/* ============================================
   CONTACT PAGE - EDITORIAL DARK AESTHETIC
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --dark-bg: #1a1a1a;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Keep navbar dark even if scrolled class is added */
#header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header.scrolled .logo,
#header.scrolled .nav-link {
    color: var(--white) !important;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    opacity: 1;
}

.logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.7;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
    display: none;
}

.hamburger-line {
    background: var(--white) !important;
}

#header.scrolled .hamburger-line {
    background: var(--white) !important;
}

.hamburger.active .hamburger-line {
    background: white !important;
}

/* ============================================
   MAIN CONTACT SECTION
   ============================================ */

.contact-main {
    min-height: 100vh;
    padding-top: 80px;
}

.contact-section {
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background-image: url('contact.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Mobile viewport fix */
@supports (-webkit-touch-callout: none) {
    .contact-section {
        min-height: -webkit-fill-available;
    }
}

/* Blur overlay */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

/* ============================================
   LEFT SIDE - CONTACT INFO
   ============================================ */

.contact-left {
    color: var(--white);
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 4rem;
    color: var(--white);
}

.contact-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-block {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.info-block-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.info-block-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--white);
}

.info-block-text a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.info-block-text a:hover {
    opacity: 0.7;
    border-bottom-color: var(--white);
}

/* ============================================
   RIGHT SIDE - FORM CARD
   ============================================ */

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-card {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Inter', sans-serif;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
}

.form-select:focus,
.form-select:valid {
    color: var(--text-primary);
}

.form-select option {
    color: var(--text-primary);
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 2rem;
    margin-top: 1rem;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-submit:hover {
    background: var(--text-secondary);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.form-submit .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-submit:hover .arrow {
    transform: translateX(4px);
}

.form-submit:active {
    transform: translate3d(0, 0, 0);
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { 
    width: 10px; 
}

::-webkit-scrollbar-track { 
    background: var(--dark-bg); 
}

::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 5px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: rgba(255, 255, 255, 0.3); 
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #000000;
    color: #FFFFFF;
    padding: 5rem 3rem 3rem;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 1200px) {
    .contact-container {
        gap: 4rem;
        padding: 0 3rem;
    }
    
    .contact-title {
        font-size: 6rem;
    }
}

@media (max-width: 1024px) {
    .contact-section {
        background-attachment: scroll;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2.5rem;
    }
    
    .contact-title {
        font-size: 5rem;
        margin-bottom: 3rem;
    }
    
    .contact-left {
        text-align: center;
    }
    
    .contact-info-blocks {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .form-card {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger-line {
        width: 100%;
        height: 2px;
        background: var(--white);
        transition: all 0.3s ease;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    #navbar .nav-links .nav-link {
        font-size: 1.3rem;
        color: white !important;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        padding: 0.75rem 0;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    #navbar .nav-links.active .nav-link {
        opacity: 1;
        transform: translateX(0);
        color: white !important;
    }
    
    .nav-links.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-link::after {
        display: none;
    }
    
    #navbar {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    /* Mobile viewport fixes for contact section */
    .contact-main {
        padding-top: 80px;
    }
    
    .contact-section {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px); /* Dynamic viewport height */
        background-attachment: scroll;
        padding: 3rem 0;
    }
    
    .contact-container {
        padding: 0 1.5rem;
        gap: 3rem;
    }
    
    .contact-title {
        font-size: 3.5rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-info-blocks {
        gap: 2rem;
    }
    
    .info-block-text {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 2.5rem 2rem;
    }
    
    .form-card-title {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        gap: 1.2rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.9rem;
        padding: 0.9rem 0;
    }
    
    .form-submit {
        padding: 1.1rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2.5rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo {
        font-size: 2.5rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}