/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --primary: #2563eb;       /* Bright Blue */
    --dark: #1e293b;          /* Slate Dark (Text) */
    --light: #f8fafc;         /* Off-White (Background) */
    --accent: #f59e0b;        /* Amber/Orange */
    --secondary: #7c3aed;     /* Purple */
    
    /* Functional Colors */
    --success: #10b981;
    --danger: #ef4444;
    --white: #ffffff;
    
    /* Neutrals */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
}

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

html { scroll-behavior: smooth; }

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

.container { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

a { text-decoration: none; color: var(--primary); transition: var(--transition-fast); }
a:hover { color: var(--accent); }

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 { 
    font-family: 'Raleway', sans-serif; 
    font-weight: 700; 
    line-height: 1.2; 
}

/* GLOBAL H1: Gradient Text Effect */
/* Note: This looks great on white backgrounds, but invisible on dark/gradient backgrounds */
h1 { 
    font-size: 3.5rem; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; /* Makes text take the background color */
    margin-bottom: 1.5rem; 
    display: inline-block; 
    position: relative; 
}

/* GLOBAL H2: Dark Slate Color */
h2 { 
    font-size: 2.5rem; 
    color: var(--dark); 
    margin-bottom: 2rem; 
    position: relative; 
    display: inline-block; 
}

p { margin-bottom: 1.5rem; color: var(--gray-600); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--secondary)); border-radius: 5px; }

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 1rem 0; 
    box-shadow: var(--shadow); 
    transform: translateY(-100%); 
    animation: slideDown 0.8s 0.3s ease-out forwards; 
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-family: 'Raleway', sans-serif; 
    font-size: 2rem; 
    font-weight: 800; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
}

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--dark); font-weight: 600; padding: 0.5rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Mobile Menu Toggle */
.hamburger { display: none; flex-direction: column; cursor: pointer; background: none; border: none; padding: 0.5rem; z-index: 1001; }
.hamburger span { width: 25px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin: 3px 0; border-radius: 2px; transition: var(--transition); }

/* =========================================
   4. BUTTONS
   ========================================= */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    padding: 1rem 2rem; 
    border-radius: var(--border-radius); 
    font-weight: 600; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
}

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* =========================================
   5. PAGE HEADER (The Fix is Here)
   ========================================= */
.page-header { 
    padding: 160px 0 80px; 
    text-align: center; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
    position: relative; 
    overflow: hidden; 
}

/* FIX: We must remove the gradient text effect for H1s inside the Page Header.
   Otherwise, blue text on a blue background = invisible.
*/
.page-header h1 { 
    color: var(--white); 
    background: none; /* Removes the gradient background */
    -webkit-text-fill-color: var(--white); /* Fills text with white */
    animation: fadeInDown 1s ease-out; 
}

.page-header h2 {
    color: var(--white); /* Ensures any H2 here is also white */
}

.page-header p { 
    font-size: 1.3rem; 
    color: rgba(255, 255, 255, 0.9); 
    animation: fadeInUp 1s 0.3s ease-out both; 
}

/* =========================================
   6. FOOTER
   ========================================= */
footer { 
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%); 
    color: white; 
    padding: 5rem 0 2rem; 
    position: relative; 
    overflow: hidden; 
}

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.footer-section h3 { color: white; margin-bottom: 1.5rem; font-size: 1.5rem; }
.footer-section ul { list-style: none; }
.footer-section ul li a { color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 0.5rem; }

/* Social Icons */
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px; 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
    border-radius: 50%; 
    transition: var(--transition); 
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

/* =========================================
   7. GLOBAL ANIMATIONS
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Utility Classes for Dark Sections */
/* Use this if you have a dark background section where H2 disappears */
.text-white, .section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    background: none !important;
}

/* Responsive Base */
@media (max-width: 768px) {
    .nav-links { 
        position: fixed; top: 0; left: -100%; width: 80%; height: 100vh; 
        background: white; flex-direction: column; align-items: center; 
        justify-content: center; box-shadow: var(--shadow-xl); 
        transition: var(--transition); 
    }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
}