@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;700&display=swap");

/* Preconnect to Google Fonts */
@font-face {
    font-family: 'Playfair Display';
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
}

:root {
    --primary: #111;
    --accent: #ff6b00;
    --bg: #fff;
    --text-muted: #666;
    --light-gray: #f9f9f9;
    --cream: #fff5e6;
    --dark-tea: #4a2c2a;
    --orange-glow: #ff4500;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf7f2;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 107, 0, 0.02) 2px, rgba(255, 107, 0, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 107, 0, 0.02) 2px, rgba(255, 107, 0, 0.02) 4px);
    background-size: 100% 100%;
    color: var(--primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-top: 0;
}

.italic {
    font-style: italic;
}

/* Navigation Overhaul */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

nav.scrolled {
    padding: 15px 60px;
    background: rgba(255, 255, 255, 0.98);
}

nav a { text-decoration: none; color: var(--primary); margin-left: 30px; transition: color 0.3s; position: relative; }
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent); }
nav .links { display: flex; align-items: center; }
.logo { font-size: 1.8rem; letter-spacing: 10px; margin: 0; text-decoration: none; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--primary); }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
}

.nav-menu.active {
    transform: translateX(0%);
}

/* Sticky Bar */
.sticky-bar {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1100;
}
.sticky-bar a { color: var(--accent); text-decoration: none; font-weight: bold; margin-left: 10px; border-bottom: 1px solid var(--accent); }

/* Hero Section - Viral Transformation */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/avant-hero.jpg') center center no-repeat;
    background-size: cover;
    filter: brightness(0.6);
    transform: scale(1.1);
    transition: transform 10s linear;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 7rem;
    margin-bottom: 24px;
    line-height: 0.85;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(50px);
    animation: reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.hero-content .cta-group {
    opacity: 0;
    animation: reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

/* Buttons */
.cta-btn {
    background-color: var(--accent);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

.cta-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.4);
    background-color: var(--orange-glow);
}

.cta-btn.outline {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
    margin-left: 20px;
}

.cta-btn.outline:hover {
    background: white;
    color: var(--primary);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 60px;
    text-align: center;
}

/* Parallax Section */
.parallax-section {
    height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Viral Grid */
.viral-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.viral-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(50px);
}

.viral-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.viral-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.viral-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.viral-card-content {
    padding: 30px;
}

.viral-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.viral-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Social Proof Bar */
.social-proof {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.proof-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h2 { font-size: 3rem; color: var(--accent); margin-bottom: 5px; }
.stat-item p { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.8rem; }

/* Video Section */
.video-section {
    background: var(--primary);
    color: white;
    padding: 120px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 100px 60px;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    nav {
        padding: 20px 30px;
    }
    nav .links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    nav .links.active {
        transform: translateX(0%);
    }
    nav .links a {
        margin: 20px 0;
        font-size: 1.5rem;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        height: 80vh;
    }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-content .cta-group { flex-direction: column; gap: 15px; }
    .cta-btn.outline { margin-left: 0; }
    .section {
        padding: 80px 0;
    }
    .section-title { font-size: 2.5rem; }
    .container {
        padding: 0 20px;
    }
    .viral-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .parallax-section {
        height: 400px;
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    .parallax-section h2 { font-size: 2.5rem; }
    .parallax-section p { font-size: 1.2rem; }
    .social-proof {
        padding: 40px 0;
    }
    .proof-flex {
        flex-direction: column;
        gap: 20px;
    }
    .stat-item h2 { font-size: 2.5rem; }
    .video-section {
        padding: 80px 0;
    }
    footer {
        padding: 60px 20px;
    }
    footer .links a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }
    .cta-btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
    .section-title { font-size: 2rem; }
    .parallax-section h2 { font-size: 2rem; }
    .parallax-section p { font-size: 1rem; }
    .viral-card h3 { font-size: 1.2rem; }
    .viral-card p { font-size: 0.85rem; }
    .stat-item h2 { font-size: 2rem; }
}

/* Social Share Buttons */
.social-share {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.social-share p {
    margin: 0 0 20px 0;
    font-weight: 600;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.line:hover {
    background: #00B900;
    border-color: #00B900;
}

.share-btn.pinterest:hover {
    background: #E60023;
    border-color: #E60023;
}

.share-btn.copy-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-btn.copy-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .sticky-bar {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.9rem; }
    .cta-btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
    .section-title { font-size: 1.8rem; }
    .parallax-section h2 { font-size: 1.8rem; }
    .parallax-section p { font-size: 0.9rem; }
    .viral-card img {
        height: 200px;
    }
    .viral-card-content {
        padding: 20px;
    }
    .viral-card h3 { font-size: 1.1rem; }
    .viral-card p { font-size: 0.8rem; }
    .stat-item h2 { font-size: 1.8rem; }
    .newsletter-section form {
        flex-direction: column;
    }
    .newsletter-section input {
        margin-bottom: 10px;
    }
    .newsletter-section button {
        width: 100%;
    }
    footer .links {
        flex-direction: column;
    }
    footer .links a {
        margin: 5px 0;
    }
    .social-share {
        padding: 20px;
    }
    .share-btn {
        width: 40px;
        height: 40px;
    }
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
}
