/* ===== Design System ===== */
:root {
    /* Color Scheme */
    --primary: #7f6dd3;
    --secondary: #538ae2;
    --accent: #925bff;
    --surface: #f8f9ff;
    --background: #ffffff;
    --text: #2b2d42;
    --border: rgba(125, 125, 125, 0.15);

    /* Typography */
    --base-size: 1rem;
    --scale: 1.25;
    --h1: calc(var(--h2) * var(--scale));
    --h2: calc(var(--h3) * var(--scale));
    --h3: calc(var(--h4) * var(--scale));
    --h4: calc(var(--h5) * var(--scale));
    --h5: calc(var(--base-size) * var(--scale));

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--base-size);
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: var(--h1); line-height: 1.1; }
h2 { font-size: var(--h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }

section {
    text-align: center;
    padding: var(--space-lg) 0;
    scroll-margin-top: 100px;
}

section:nth-child(odd) {
    background: var(--surface);
}

section::after {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    width: 80%;
    max-width: 1200px;
}

/* ===== Header ===== */
/* Existing header styles remain unchanged */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2 rem;
   
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* Hamburger Styles */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger-inner {
    position: relative;
    width: 24px;
    height: 18px;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.top { top: 0; }
.middle { top: 8px; }
.bottom { top: 16px; }


/* Existing other styles remain unchanged below */
nav ul li a {
    position: relative;
    font-size: 1 rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background: none !important;
    -webkit-text-fill-color: initial;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(135deg, #4285F4, #9C27B0);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 70%;
}

nav ul li a.active {
    color: #4285F4;
}

nav ul li a.active::after {
    width: 100%;
}

nav img {
    height: 40px;
    transition: transform 0.3s ease;
    padding: 0;
    transform: scale(1.5);
}

nav img:hover {
    transform: scale(1.7);
}

 /* Header Button Styles */
 .header-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 1.5rem; /* Reduced padding for header */
    margin: 0 0.5rem; /* Adjusted margin */
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller font */
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: 2px solid var(--accent);
    color: var(--background);
    box-shadow: var(--shadow-sm);
    height: 40px; /* Fixed height for consistency */
}

.header-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    color: linear-gradient(45deg, var(--primary), var(--secondary));
    
    top: 0;
    left: -100%;
    transition: 0.4s;
}

.header-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--primary);
    
}

.header-btn:hover::after {
    left: 100%;
}


/* Optional: Add icon support */
.header-btn .btn-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.header-btn:hover .btn-icon {
    transform: translateX(2px);
}

@media(max-width:768px){
    .header-btn {
      display: none;
      
    }
}

#home::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    z-index: 0;
    animation: rotate-border 6s linear infinite;
    filter: blur(20px);
    opacity: 0.5;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* ===== Global Transitions ===== */
* {
    transition: 
        background-color 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* Hover effect for all cards */
[class*="-card"]:hover {
    transform: translateY(-5px) rotateZ(1deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Link hover effect */
a:not(.btn):hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(127, 109, 211, 0.3);
}

/* ===== Page Load Animation ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    animation: pageLoad 1s ease forwards;
}

@keyframes pageLoad {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ===== Global Responsive Styles ===== */
@media (max-width: 1200px) {
    /* Adjust container padding */
    section {
        padding: var(--space-lg) 1rem;
    }
}


@media (max-width: 480px) {
    /* Mobile-first adjustments */
    :root {
        --h1: 2rem;
        --h2: 1.75rem;
        --base-size: 0.9rem;
    }  

}


/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    :root {
        --h1: 2.5rem;
        --h2: 2rem;
        --h3: 1.75rem;
    }

    /* Header adjustments */
    nav {
        padding: 1rem;
        justify-content: space-between;
    }

    nav img {
        transform: scale(1.2);
    }

  

    .btn {
        display: block;
        width: 90%;
        margin: 1rem auto;
        padding: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Hide desktop navigation on mobile */
    .nav-links:not(.active) {
        display: none;
    }

    /* Hamburger Animation */
    .hamburger.active .top {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .middle {
        opacity: 0;
    }
    .hamburger.active .bottom {
        transform: translateY(-8px) rotate(-45deg);
    }

}
/* ===== Reset Browser Defaults ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== Make Header Full Width ===== */
header {
    width: 100vw;
    margin: 0;
    padding: 0;
}

nav {
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
}

 
/* Nuclear option - remove all spacing */
@media (max-width: 480px) {
  
    header {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}
html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
}