.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
}

.contact-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.0;
    letter-spacing: -0.01em;
    transition: color var(--transition-speed) ease;
    
    /* Reveal animation */
    opacity: 0;
    transform: translateY(20px);
    animation: contactReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-subtitle-line {
    font-size: 1.15rem;
    color: var(--sub-color);
    line-height: 1.6;
    margin-bottom: 5px;
    transition: color var(--transition-speed) ease;
    
    /* Reveal animation */
    opacity: 0;
    transform: translateY(15px);
    animation: contactReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-header p:nth-child(2) { animation-delay: 0.1s; }
.contact-header p:nth-child(3) { animation-delay: 0.2s; }

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto 1.25fr;
    width: 100%;
    max-width: 960px;
    gap: 45px;
    align-items: center;
    margin-top: 5px;
    
    /* Reveal animation */
    opacity: 0;
    transform: translateY(30px);
    animation: contactReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

/* Left Column: Info */
.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 22px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--desc-color);
    line-height: 1.6;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.info-value {
    color: var(--sub-color);
}

.info-link.email-link {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.info-link.email-link:hover {
    opacity: 0.7;
}

/* Middle Column: OR */
.contact-or-col {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.or-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sub-color);
    text-transform: uppercase;
}

/* Right Column: Form */
.contact-form-col {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sub-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.form-group textarea {
    resize: none;
    min-height: 110px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    background: var(--text-color);
    color: var(--bg-color);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .submit-btn:hover {
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.05);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Alerts Block */
.alerts {
    width: 100%;
    max-width: 960px;
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.15);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #b58900;
    border: 1px solid rgba(255, 193, 7, 0.15);
}

/* Footer Link */
.back-home-container {
    text-align: center;
    margin-top: 35px;
}

.back-home-link {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.back-home-link:hover {
    opacity: 0.7;
}

/* Animations */
@keyframes contactReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Collapsing */
@media (max-width: 768px) {
    /* Enable scrolling on small screens to prevent clipping content */
    html, body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-info-col {
        text-align: center;
    }
    
    .info-list li {
        justify-content: center;
    }
    
    .contact-or-col {
        padding: 5px 0;
    }
    
    .hero {
        padding: 30px 20px;
    }
}
