/* --- VIBRANT CREATIVE AGENCY THEME --- */
/* Unified Typography: Using only 'Outfit' for a clean, modern look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Bold Agency Palette */
    --bg-dark: #0a0a0a;           /* Deep Canvas Black */
    --bg-card: #141414;           /* Elevated Dark Gray */
    --bg-light: #ffffff;          /* Pure White for contrast sections */
    
    --accent-primary: #ff007f;    /* Electric Magenta */
    --accent-secondary: #7000ff;  /* Deep Violet */
    --gradient-brand: linear-gradient(135deg, #ff007f 0%, #7000ff 100%);
    
    /* Text Colors */
    --text-light: #f4f4f5;        /* Crisp White */
    --text-muted: #a1a1aa;        /* Slate Gray */
    --text-dark: #0a0a0a;         /* For light sections */
    
    /* UI Elements */
    --border-color: #27272a;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 90px;
    --border-radius: 20px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
/* Updated to use Outfit with better proportions */
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- UTILITIES --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.py-mega { padding: 120px 0; }
.py-large { padding: 80px 0; }
.text-center { text-align: center; }
.bg-white { background-color: var(--bg-light); color: var(--text-dark); }
.bg-white h2, .bg-white h3 { color: var(--text-dark); }
.bg-white .text-muted { color: #52525b; }

/* --- BUTTONS --- */
.btn-primary {
    background: var(--gradient-brand); color: #fff !important;
    padding: 16px 40px; border-radius: 50px; font-weight: 700; font-family: 'Outfit', sans-serif;
    text-transform: uppercase; letter-spacing: 1.5px; display: inline-flex; align-items: center; gap: 10px;
    border: none; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; z-index: 1;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #7000ff 0%, #ff007f 100%); z-index: -1; transition: opacity 0.4s ease; opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4); }

.btn-outline {
    background: transparent; color: var(--text-light) !important; border: 2px solid var(--border-color);
    padding: 14px 38px; border-radius: 50px; font-weight: 700; font-family: 'Outfit', sans-serif;
    text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition); cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary) !important; }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; height: var(--header-height); z-index: 1000;
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition); display: flex; align-items: center;
}
header.scrolled { height: 75px; background: rgba(10, 10, 10, 0.98); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo h1 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }

.nav-links { display: flex; gap: 35px; list-style: none; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; border: none; background: none; z-index: 1001; }
.hamburger span { width: 35px; height: 3px; background: var(--text-light); border-radius: 5px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent-primary); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent-primary); }

/* --- HERO SECTION --- */
.hero { padding-top: calc(var(--header-height) + 60px); padding-bottom: 100px; position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-glow { position: absolute; top: 10%; right: 10%; width: 500px; height: 500px; background: var(--accent-primary); filter: blur(250px); opacity: 0.3; border-radius: 50%; z-index: -1; }
.hero-glow-2 { position: absolute; bottom: -10%; left: -10%; width: 400px; height: 400px; background: var(--accent-secondary); filter: blur(250px); opacity: 0.3; border-radius: 50%; z-index: -1; }

/* Fixed letter spacing and sizing for Hero */
.hero h1 { font-size: 5rem; letter-spacing: -1px; margin-bottom: 30px; text-transform: uppercase; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- SCROLLING MARQUEE --- */
.marquee-container { background: var(--gradient-brand); padding: 20px 0; overflow: hidden; position: relative; display: flex; transform: rotate(-2deg); margin: 40px 0; width: 105vw; left: -2%; }
.marquee-content { display: flex; white-space: nowrap; animation: marquee 20s linear infinite; }
/* Fixed Font & Letter Spacing */
.marquee-text { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; text-transform: uppercase; padding: 0 40px; letter-spacing: 1px; }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* --- SERVICES GRID --- */
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; }
.section-title p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.service-card { background: var(--bg-card); padding: 50px 40px; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: var(--transition); position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--accent-primary); transform: translateY(-10px); }
.service-icon { font-size: 3rem; margin-bottom: 20px; display: inline-block; }
.service-card h3 { font-size: 2rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; }
/* Fixed Font */
.service-link { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent-primary); padding-bottom: 5px; }
.service-link:hover { color: var(--accent-primary); }

/* --- PORTFOLIO GALLERY --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/5; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: var(--transition); }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag { display: inline-block; background: var(--accent-primary); color: #fff; padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; width: fit-content; }
.portfolio-overlay h3 { font-size: 1.8rem; color: #fff; margin-bottom: 5px; }
.portfolio-overlay p { color: #d4d4d8; font-size: 1rem; }

/* --- STATS COUNTER --- */
.stats-wrapper { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; }
.stat-box { text-align: center; }
/* Fixed Font */
.stat-box h3 { font-size: 4.5rem; line-height: 1; margin-bottom: 10px; font-family: 'Outfit', sans-serif; letter-spacing: -1px; }
.stat-box p { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

/* --- TESTIMONIAL SLIDER --- */
.slider-container { position: relative; overflow: hidden; padding-bottom: 40px; }
.slider-wrapper { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.slide { min-width: 100%; padding: 40px; text-align: center; box-sizing: border-box; }
/* Fixed Fonts */
.quote-mark { font-size: 5rem; color: var(--accent-primary); font-family: 'Outfit', sans-serif; line-height: 0; margin-bottom: 20px; display: block; opacity: 0.3;}
.testimonial-text { font-size: 1.8rem; font-family: 'Outfit', sans-serif; line-height: 1.4; margin-bottom: 30px; font-weight: 600; }
.slide h4 { font-size: 1.2rem; color: var(--accent-secondary); margin-bottom: 5px; text-transform: uppercase; }
.slide p { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px;}
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--accent-primary); transform: scale(1.5); }

/* --- CTA BANNER --- */
.cta-box { background: var(--gradient-brand); padding: 80px 5%; border-radius: var(--border-radius); text-align: center; position: relative; overflow: hidden; }
.cta-box h2 { font-size: 3.5rem; color: #fff; margin-bottom: 20px; }
.cta-box p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; }
.cta-box .btn-outline { border-color: #fff; color: #fff !important; }
.cta-box .btn-outline:hover { background: #fff; color: var(--accent-primary) !important; }

/* --- FOOTER --- */
footer { padding: 100px 0 30px; border-top: 1px solid var(--border-color); background: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-brand h2 { font-size: 2.2rem; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); margin-bottom: 25px; max-width: 350px; }
.socials a { display: inline-flex; width: 45px; height: 45px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50%; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 15px; transition: var(--transition); color: var(--text-light); }
.socials a:hover { background: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-5px); }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent-primary); padding-left: 8px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-muted); }

/* --- ANIMATIONS (Triggered by JS) --- */
.reveal { opacity: 0; visibility: hidden; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; visibility: visible; }
.slide-up { transform: translateY(60px); }
.slide-up.active { transform: translateY(0); }
.slide-left { transform: translateX(-60px); }
.slide-left.active { transform: translateX(0); }
.slide-right { transform: translateX(60px); }
.slide-right.active { transform: translateX(0); }
.zoom-in { transform: scale(0.9); }
.zoom-in.active { transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero { flex-direction: column; text-align: center; justify-content: center; }
    .hero-btns { justify-content: center; }
    .section-title h2 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .nav-container.menu-open .nav-links {
        display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0;
        width: 100%; background: var(--bg-dark); padding: 40px 5%; border-top: 1px solid var(--border-color);
        text-align: center; gap: 30px; height: 100vh;
    }
    /* Fixed Font */
    .nav-container.menu-open .nav-links a { font-size: 1.5rem; font-family: 'Outfit', sans-serif; font-weight: 700; }
    
    .py-mega { padding: 80px 0; }
    .hero h1 { font-size: 3rem; }
    .marquee-text { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .socials { justify-content: center; }
}