/**
 * Contact Page - Bold Cinematic Design
 * Dramatic visuals with split layout
 */

/* ========== CINEMATIC HERO ========== */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transform: scale(1.1);
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(16,185,129,0.15) 100%
    );
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.contact-hero h1 span {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SPLIT CONTACT SECTION ========== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contact-image-side {
    position: relative;
    background: #000;
    overflow: hidden;
}

.contact-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.contact-image-side:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.contact-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

.contact-info-card {
    color: #fff;
}

.contact-info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(8px);
}

.contact-info-item i {
    width: 48px;
    height: 48px;
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
}

.contact-info-item span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}

.contact-info-item span:last-child {
    font-size: 1rem;
    color: #fff;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #10b981;
}

.contact-form-side {
    background: var(--bg-primary);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-side h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact-form-side > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
}

/* Override default form styles for this layout */
.contact-form-side .contact-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-form-side .contact-form:hover {
    box-shadow: none;
}

/* ========== PROCESS SECTION ========== */
.contact-process {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.contact-process .container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-process h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-process > .container > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-secondary);
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Connecting line */
.process-cards::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981, #34d399);
    z-index: 0;
}

.process-card {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-card-number {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--bg-primary);
    border: 3px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.process-card-number i {
    font-size: 2.5rem;
    color: #10b981;
    transition: transform 0.4s ease;
}

.process-card:hover .process-card-number {
    background: #10b981;
    transform: scale(1.1);
}

.process-card:hover .process-card-number i {
    color: #fff;
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.process-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

/* ========== FAQ SECTION ========== */
.contact-faq {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.contact-faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(16,185,129,0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    font-size: 1.25rem;
    color: #10b981;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.faq-open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.faq-open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========== CTA SECTION ========== */
.contact-cta {
    position: relative;
    padding: 6rem 2rem;
    background: #000;
    text-align: center;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.contact-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(16,185,129,0.2) 100%);
}

.contact-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered process cards */
.process-card:nth-child(1) { transition-delay: 0.1s; }
.process-card:nth-child(2) { transition-delay: 0.2s; }
.process-card:nth-child(3) { transition-delay: 0.3s; }
.process-card:nth-child(4) { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-image-side {
        min-height: 400px;
    }

    .contact-form-side {
        padding: 3rem 2rem;
    }

    .process-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-cards::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 40vh;
    }

    .contact-hero p {
        font-size: 1.0625rem;
    }

    .contact-image-overlay {
        padding: 2rem;
    }

    .contact-info-card h3 {
        font-size: 1.5rem;
    }

    .contact-form-side {
        padding: 2.5rem 1.5rem;
    }

    .contact-form-side h2 {
        font-size: 1.75rem;
    }

    .process-cards {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .process-card-number {
        width: 80px;
        height: 80px;
    }

    .process-card-number i {
        font-size: 2rem;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-image-side {
        min-height: 350px;
    }

    .contact-info-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========== DARK MODE ========== */
[data-theme="dark"] .contact-form-side {
    background: var(--bg-primary);
}

[data-theme="dark"] .contact-process {
    background: var(--bg-secondary);
}

[data-theme="dark"] .process-card-number {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .contact-faq {
    background: var(--bg-primary);
}

[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .faq-question:hover {
    background: var(--bg-tertiary);
}
