/* Custom Styles for Contact Section & Modals */
html {
    font-size: 100%;
}

.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--status-badge-bg);
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--cyan-primary);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--cyan-primary);
    border-radius: 50%;
    box-shadow: 0 0 0.625rem var(--cyan-primary);
}

.contact-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.cyan-text {
    color: var(--cyan-primary);
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin-bottom: 3rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.network-module {
    margin-top: 3.5rem;
    /* Generous breathing room */
}

.btn-linkedin-premium {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--btn-linkedin-bg);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
}

.btn-linkedin-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--glow-linkedin-base) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-linkedin-premium:hover {
    border-color: rgba(10, 102, 194, 0.5);
    transform: translateY(-3px);
    background: rgba(10, 102, 194, 0.02);
    box-shadow: 0 8px 30px var(--glow-linkedin-base);
}

.btn-linkedin-premium:hover::before {
    opacity: 1;
}

.linkedin-icon-wrapper {
    position: relative;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0A66C2, #004182);
    border-radius: 0.625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    margin-right: 1.25rem;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

.linkedin-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 1;
}

.linkedin-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.linkedin-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.linkedin-arrow {
    color: #0A66C2;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-linkedin-premium:hover .linkedin-arrow {
    transform: translateX(4px) translateY(-4px);
}

.protocol-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.protocol-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.protocol-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.protocol-card input,
.protocol-card textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.protocol-card input::placeholder,
.protocol-card textarea::placeholder {
    color: var(--text-muted);
}

.protocol-card input:focus,
.protocol-card textarea:focus {
    outline: none;
    border-color: var(--cyan-primary);
    background: var(--bg-input-focus);
}

.protocol-card textarea {
    resize: vertical;
}

.block-group {
    margin-top: 1.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--cyan-gradient-1), var(--cyan-gradient-2));
    color: var(--text-inverse);
    font-weight: 700;
    padding: 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--cyan-shadow);
    filter: brightness(1.1);
}

.interface-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.version-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border-strong);
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-container {
        gap: 3rem;
    }

    .contact-title {
        font-size: 3rem;
    }

    .protocol-card {
        padding: 2rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .protocol-card input,
    .protocol-card textarea {
        padding: 0.85rem 1.15rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .network-module {
        margin-top: 2.5rem;
    }
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Theme Toggle Icons */
.icon-sun,
.icon-moon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    stroke: currentColor;
}

html[class=""] .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
    pointer-events: none;
}

html[class=""] .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

html[class="dark"] .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

html[class="dark"] .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

body {
    zoom: 110%;
}