@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Performance & Core Web Vitals Optimization */
@font-face {
    font-family: 'Outfit';
    font-display: swap;
}

:root {
    --primary: #8E2DE2;
    --secondary: #4A00E0;
    --accent: #FF00CC;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-light: #F8F9FF;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #8E2DE2, #4A00E0);
    --gradient-accent: linear-gradient(135deg, #FF00CC, #333399);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Rendering Optimization */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade { animation: fadeIn 1s ease forwards; }
.animate-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide { animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float { animation: float 5s ease-in-out infinite; }

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    animation: fadeIn 0.8s ease;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Re-engineered for Smoothness */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: none; /* Removed outline */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Pill state */
header.scrolled {
    top: 15px;
    background: transparent;
    border-bottom: none;
    padding: 0;
}

header.scrolled .header-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none; /* Removed outline */
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 92%;
    padding: 12px 30px;
}

.logo img {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .logo img {
        height: 60px;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text span {
    color: var(--primary);
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul { display: flex; gap: 30px; transition: 0.3s; }

nav ul li a.active {
    color: var(--primary);
    font-weight: 700;
}

nav ul li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 2px;
    border-radius: 2px;
}
@media (max-width: 992px) {
    nav { display: none; } /* Hide by default on mobile/tablet */
    nav.active { display: block; }
}

.contact-btn { display: flex; align-items: center; gap: 15px; }
.menu-toggle { display: none; cursor: pointer; color: var(--secondary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74, 0, 224, 0.4); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: radial-gradient(circle at top right, rgba(142, 45, 226, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(255, 0, 204, 0.1), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--secondary);
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-image {
    max-width: 600px;
    width: 100%;
}

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 20px; color: var(--secondary); }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Grid */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
}
.card { 
    padding: 40px 30px; 
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.card:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.card:hover .card-icon {
    transform: rotate(10deg) scale(1.2);
}

/* Footer - Premium Design */
footer { 
    background: var(--white); 
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(142, 45, 226, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 0, 204, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
    gap: 50px; 
}

.footer-brand .footer-desc {
    margin: 20px 0 30px;
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3);
}

.footer-links h4, 
.footer-contact h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: var(--bg-light);
    padding: 25px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; 
        gap: 40px;
    }
    .hero-text h1 { font-size: 3rem; max-width: 100%; }
    .hero-text p { margin: 0 auto 40px; max-width: 100%; }
    .hero-btns { justify-content: center; }
    .hero-image { order: -1; max-width: 450px; margin: 0 auto; }
    
    .cards-grid { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    header.scrolled .header-inner { width: 95%; padding: 10px 20px; }
    
    nav {
        display: block !important; /* Allow JS to control visibility via top */
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 100px 20px 40px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: -1;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        visibility: hidden;
        opacity: 0;
    }
    nav.active { 
        top: 0; 
        visibility: visible;
        opacity: 1;
    }
    nav ul { flex-direction: column; text-align: center; gap: 20px; }
    nav ul li a { font-size: 1.3rem; }

    .menu-toggle { display: block; order: 1; }
    
    /* Move contact button inside nav for mobile */
    .header-inner .contact-btn .btn { display: none; }
    nav .mobile-contact-btn {
        display: block;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-text h1 { font-size: 2.2rem; }
    .card { padding: 30px 20px; }
}
