/* =========================================
   VARIABLES & BASE SETUP
========================================= */
:root {
    --bg-color: #FBFBFD; /* Apple Milky White */
    --text-color: #1D1D1F; /* Soft Charcoal */
    --text-secondary: #86868B;
    --font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.4s;
}

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

html, body {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility; /* Improves text crispness */
    overflow-x: hidden; /* Prevents horizontal wobble */
    width: 100%;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    color: #000000;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    text-align: center;
}

.tagline {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6E6E73;
}

/* =========================================
   LAYOUT & NAVIGATION
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    content-visibility: auto; /* MASSIVE performance boost: defers rendering off-screen sections */
    contain-intrinsic-size: 1000px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separation */
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--text-secondary);
}

/* =========================================
   BUTTONS (HERO & GLOBAL)
========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

/* Unified Button Structure */
.cta-btn, .whatsapp-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 54px;
    padding: 0 2.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* Primary Button (Solid) */
.cta-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.cta-btn:hover {
    background-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Secondary Button (Ghost/Outline) */
.whatsapp-cta.hero-whatsapp {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(29, 29, 31, 0.25);
}

.whatsapp-cta.hero-whatsapp:hover {
    border-color: var(--text-color);
    background-color: rgba(29, 29, 31, 0.03);
    transform: translateY(-3px);
}

/* Footer CTA (Solid) */
.whatsapp-cta:not(.hero-whatsapp) {
    background-color: var(--text-color);
    color: var(--bg-color);
    margin: 1rem 0 3rem 0;
}

.whatsapp-cta:not(.hero-whatsapp):hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   PORTFOLIO GRIDS & VIDEO IFRAMES
========================================= */
.sub-heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 5rem 0 2rem 0;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-placeholder {
    position: relative;
    width: 100%;
    background-color: #E5E5EA;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.video-placeholder.landscape { aspect-ratio: 16 / 9; }
.video-placeholder.vertical { aspect-ratio: 9 / 16; }

.custom-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    cursor: pointer;
}

.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    border-radius: 12px;
}

.video-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.video-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.video-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   ABOUT, FAQ, & CONTACT
========================================= */
.about-content, .faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.faq-item {
    border-bottom: 1px solid rgba(29, 29, 31, 0.1);
    padding: 1.5rem 0;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    list-style: none;
    outline: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-top: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.contact { text-align: center; }

.email-link {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    margin: 2rem 0;
    transition: color var(--transition-speed);
}

.email-link:hover { color: var(--text-secondary); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.social-links a:hover { color: var(--text-secondary); }

footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* =========================================
   ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity; /* Hardware acceleration for smooth scrolling */
}

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

/* =========================================
   STRICT RESPONSIVE DESIGN (MOBILE & TABLET)
========================================= */
@media (max-width: 768px) {
    /* Scale Typography */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .tagline { font-size: 1.2rem; }

    /* Fix Navigation Spacing */
    .navbar { padding: 1.2rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; }

    /* Fix Container Overflows */
    .container { padding: 0 1.5rem; }

    /* Stack Grids */
    .video-grid { grid-template-columns: 1fr; }
    .vertical-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

    /* Stack Hero Buttons for Mobile */
    .hero-buttons {
        flex-direction: column; /* Stacks the buttons vertically */
        width: 100%;
        gap: 1rem;
    }

    .cta-btn, .whatsapp-cta.hero-whatsapp {
        width: 100%; /* Makes buttons full width on small screens */
        text-align: center;
    }
    
    .email-link { font-size: 1.5rem; }
}
