/**
 * ╔════════════════════════════════════════════════════════════════════════════╗
 * ║          PREMIUM PROFESSIONAL CSS STYLESHEET v3.0                          ║
 * ║     Enhanced with Professional Inter Font & Optimized Styling              ║
 * ║              Performance-Optimized | Accessibility-First                   ║
 * ╚════════════════════════════════════════════════════════════════════════════╝
 */

/* ════════════════════════════════════════════════════════════════════════════ */
/* 1. GOOGLE FONTS IMPORT - Professional Typography Stack                      */
/* ════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lora:ital@0;1&display=swap');

/* ════════════════════════════════════════════════════════════════════════════ */
/* 2. CSS VARIABLES - Design System & Token Management                         */
/* ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Primary Color Palette - Brand Identity */
    --primary-color: #0a1628;
    --secondary-color: #1e3a5f;
    --tertiary-color: #2d4a7c;
    
    /* Accent & Interactive Colors */
    --accent-color: #4a90e2;
    --accent-gold: #5b7fa8;
    --accent-light: #6ba3ff;
    --accent-dark: #3a6bc1;
    
    /* Text Color Hierarchy */
    --text-primary: #0a1628;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-light: #94a3b8;
    
    /* Background Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e8f1ff 100%);
    
    /* Transitions & Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --transition-smooth: all 0.8s ease;
    
    /* Shadow System - Elevation Levels */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(74, 144, 226, 0.25);
    --shadow-inset: inset 0 0 30px rgba(74, 144, 226, 0.1);
    
    /* Glow & Visual Effects */
    --glow: 0 0 30px rgba(74, 144, 226, 0.3);
    --glow-intense: 0 0 40px rgba(74, 144, 226, 0.5);
    
    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --space-3xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    --radius-full: 50%;
    
    /* Z-Index Stack Management */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 9000;
    --z-overlay: 9500;
    --z-toast: 9998;
    --z-loading: 9999;
    
    /* Font Family Stack */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-serif: 'Lora', Georgia, serif;
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
    --primary-color: #4a90e2;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.9);
    --glow-intense: 0 0 40px rgba(74, 144, 226, 0.5);
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 3. GLOBAL RESET & BASE STYLES                                              */
/* ════════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Animated Background Overlay Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 127, 168, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(107, 163, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: var(--z-base);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* ════════════════════════════════════════════════════════════════════════════ */
/* 4. LOADING SCREEN - Professional Loader Component                          */
/* ════════════════════════════════════════════════════════════════════════════ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628, #1e3a5f, #2d4a7c);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loading);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Multi-Layer Spinner Loader */
.loader {
    width: 140px;
    height: 140px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #4a90e2;
    border-right: 6px solid #6ba3ff;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.3), var(--shadow-inset);
}

.loader::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 6px solid rgba(255, 255, 255, 0.05);
    border-bottom: 6px solid rgba(107, 163, 255, 0.6);
    border-left: 6px solid rgba(91, 127, 168, 0.6);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite reverse;
}

.loader::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.03);
    border-top: 4px solid rgba(74, 144, 226, 0.4);
    border-radius: var(--radius-full);
    animation: spin 1.5s linear infinite;
}

.loader-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(120deg, #fff, #6ba3ff, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite, textShine 3s linear infinite;
    z-index: 1;
    letter-spacing: 2px;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 5. SCROLL PROGRESS BAR - Visual Feedback                                   */
/* ════════════════════════════════════════════════════════════════════════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff, #5b7fa8);
    background-size: 200% 100%;
    z-index: var(--z-toast);
    transition: width 0.1s linear;
    box-shadow: 0 2px 15px rgba(74, 144, 226, 0.6), 0 0 30px rgba(107, 163, 255, 0.4);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 2px 15px rgba(74, 144, 226, 0.6), 0 0 30px rgba(107, 163, 255, 0.4);
        background-position: 0% center;
    }
    50% {
        box-shadow: 0 2px 20px rgba(74, 144, 226, 0.8), 0 0 40px rgba(107, 163, 255, 0.6);
        background-position: 100% center;
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 6. NAVIGATION BAR - Fixed Header Component                                 */
/* ════════════════════════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 25px 0;
    z-index: var(--z-fixed);
    transition: var(--transition-spring);
    backdrop-filter: saturate(180%);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 0 rgba(74, 144, 226, 0.1);
    padding: 15px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    letter-spacing: -0.5px;
}

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

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.logo-text:hover::after {
    width: 100%;
}

.logo-text .accent {
    color: #4a90e2;
    position: relative;
}

.logo-text .accent::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #6ba3ff, #5b7fa8);
    border-radius: var(--radius-full);
    animation: blink 2s infinite;
    box-shadow: 0 0 15px rgba(107, 163, 255, 0.6);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
    letter-spacing: 0.2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff, #5b7fa8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2), transparent);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after {
    width: 120%;
    height: 120%;
}

.nav-link:hover {
    color: #4a90e2;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #4a90e2;
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, #4a90e2, #6ba3ff);
    border-color: #6ba3ff;
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5), 0 0 30px rgba(107, 163, 255, 0.3);
}

.theme-toggle i {
    position: relative;
    z-index: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.hamburger:hover span:nth-child(1) {
    transform: translateX(-5px);
}

.hamburger:hover span:nth-child(3) {
    transform: translateX(5px);
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 7. HERO SECTION - Main Landing Area                                        */
/* ════════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 40px 80px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d4a7c 75%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(74, 144, 226, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(107, 163, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(91, 127, 168, 0.1) 0%, transparent 40%);
    background-size: cover;
    animation: backgroundShift 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(107, 163, 255, 0.1) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}

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

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

.hero-content {
    max-width: 650px;
    z-index: 1;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 40px rgba(74, 144, 226, 0.2);
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(120deg, #4a90e2, #6ba3ff, #5b7fa8, #4a90e2);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(107, 163, 255, 0.3));
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-family: var(--font-family-serif);
    font-weight: 400;
    line-height: 1.8;
    min-height: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Button Component Styles */
.btn {
    padding: 16px 36px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-size: 15px;
    font-family: var(--font-family-primary);
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #6ba3ff);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4), 0 0 30px rgba(107, 163, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.6), 0 0 50px rgba(107, 163, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0a1628;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

/* Hero Visual Section */
.hero-visual {
    position: relative;
    width: 450px;
    height: 450px;
    animation: fadeInRight 1s ease 0.5s both;
}

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

/* Floating Card Component */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), var(--shadow-inset);
}

.card-1 {
    width: 240px;
    height: 300px;
    top: 0;
    left: 0;
    animation: float 7s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
}

.card-2 {
    width: 220px;
    height: 270px;
    top: 120px;
    right: 0;
    animation: float 8s ease-in-out infinite 1.5s;
    background: linear-gradient(135deg, rgba(107, 163, 255, 0.15), rgba(107, 163, 255, 0.05));
}

.card-3 {
    width: 200px;
    height: 240px;
    bottom: 0;
    left: 100px;
    animation: float 9s ease-in-out infinite 3s;
    background: linear-gradient(135deg, rgba(91, 127, 168, 0.2), rgba(91, 127, 168, 0.08));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(-1deg);
    }
    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 8. GLOBAL UTILITY CLASSES & HELPERS                                        */
/* ════════════════════════════════════════════════════════════════════════════ */

.text-center {
    text-align: center;
}

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

.text-secondary {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.tracking-tight {
    letter-spacing: -0.5px;
}

.tracking-normal {
    letter-spacing: 0.3px;
}

.tracking-wide {
    letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 9. RESPONSIVE DESIGN - Mobile First Approach                               */
/* ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        padding: 120px 30px 60px;
    }

    .hero-visual {
        width: 380px;
        height: 380px;
    }

    .hero-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #0a1628, #1e3a5f);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInDown 0.5s ease forwards;
    }

    @keyframes fadeInDown {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }
    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.2s;
    }
    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.3s;
    }
    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 14px 28px;
        font-size: 14px;
    }

    .logo-text {
        font-size: 24px;
    }

    .nav-container {
        padding: 0 20px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* 10. SMOOTH TRANSITIONS & THEME SWITCHING                                   */
/* ════════════════════════════════════════════════════════════════════════════ */

* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.preload * {
    transition: none !important;
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* END OF ENHANCED PROFESSIONAL CSS STYLESHEET v3.0                            */
/* ════════════════════════════════════════════════════════════════════════════ */

/* Services Section */
.services {
    padding: 120px 40px;
    background: var(--bg-gradient);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(74, 144, 226, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(107, 163, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 52px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
    animation: fadeInUp 0.8s ease;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff, #5b7fa8);
    border-radius: 3px;
    animation: expandWidth 1s ease 0.5s both;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 80px;
    font-size: 19px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Main Category Styling */
.main-category {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-category.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    text-align: center;
    margin-bottom: 70px;
    padding: 60px;
    background: linear-gradient(135deg, #0a1628, #1e3a5f, #2d4a7c);
    border-radius: 30px;
    box-shadow: var(--shadow-xl), inset 0 0 60px rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 163, 255, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, #6ba3ff, #4a90e2, transparent);
    animation: slideGlow 3s ease-in-out infinite;
}

@keyframes slideGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-20%); }
    50% { opacity: 1; transform: translateX(20%); }
}

.category-icon {
    font-size: 80px;
    color: #4a90e2;
    margin-bottom: 25px;
    display: block;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(74, 144, 226, 0.5));
}

.category-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(107, 163, 255, 0.3), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.category-header h2 {
    font-size: 44px;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(74, 144, 226, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.service-module {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-module.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 45px;
    padding: 30px 40px;
    background: linear-gradient(135deg, #4a90e2, #6ba3ff, #5b7fa8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4), 0 0 40px rgba(107, 163, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.module-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.module-header:hover::before {
    left: 100%;
}

.module-header:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5), 0 0 60px rgba(107, 163, 255, 0.3);
}

.module-icon {
    font-size: 36px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.module-header h3 {
    font-size: 32px;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.5px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--bg-primary);
    padding: 45px;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
    transform: scale(0.9);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(107, 163, 255, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(107, 163, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-card.aos-animate {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-xl), var(--glow);
    border-color: #4a90e2;
}

.card-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #4a90e2, #6ba3ff);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #6ba3ff, #5b7fa8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(107, 163, 255, 0.6);
}

.service-card:hover .card-icon::after {
    opacity: 1;
    animation: ping 1s ease infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.service-card:hover .card-icon {
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6), 0 0 40px rgba(107, 163, 255, 0.4);
}

.card-icon i {
    font-size: 40px;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff);
    transition: width 0.4s ease;
}

.service-card:hover h4 {
    color: #4a90e2;
}

.service-card:hover h4::after {
    width: 50px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 15px;
}

.sample-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    padding: 10px 20px 10px 0;
    border-radius: 8px;
}

.sample-btn::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #6ba3ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
}

.sample-btn:hover::before {
    width: calc(100% - 30px);
}

.sample-btn:hover {
    gap: 15px;
    color: #6ba3ff;
    padding-left: 5px;
}

.sample-btn i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.sample-btn:hover i {
    transform: translateX(8px) scale(1.2);
}

/* CTA Section */
.cta-section {
    padding: 120px 40px;
    background: linear-gradient(135deg, #0a1628, #1e3a5f, #2d4a7c, #1e3a5f, #0a1628);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 163, 255, 0.1) 0%, transparent 70%);
    animation: rotate 40s linear infinite reverse;
}

.cta-section h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 40px rgba(74, 144, 226, 0.3);
    animation: fadeInUp 0.8s ease;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-section h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #050d1a, #0a1628);
    color: white;
    padding: 80px 40px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, #5b7fa8, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #5b7fa8);
    border-radius: 2px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #4a90e2;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-section a:hover {
    color: #4a90e2;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #4a90e2;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-icons a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icons a:hover i {
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4a90e2, #5b7fa8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.back-to-top:hover::before {
    width: 100%;
    height: 100%;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.6);
}

.back-to-top:active {
    transform: translateY(-5px) scale(1.05);
}

.back-to-top i {
    position: relative;
    z-index: 1;
    font-size: 20px;
    animation: arrowBounce 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 30px 60px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 40px 25px;
    }
    
    .category-icon {
        font-size: 55px;
    }
    
    .category-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #0a1628, #1e3a5f);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInDown 0.5s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes fadeInDown {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .module-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .module-header h3 {
        font-size: 24px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px;
    }
    
    .back-to-top i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .category-header {
        padding: 30px 20px;
    }
    
    .category-icon {
        font-size: 45px;
    }
    
    .category-header h2 {
        font-size: 26px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .card-icon {
        width: 65px;
        height: 65px;
    }
    
    .card-icon i {
        font-size: 30px;
    }
    
    .service-card h4 {
        font-size: 19px;
    }
}

/* Smooth transitions for theme switching */
* {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Disable transitions during page load */
.preload * {
    transition: none !important;
}section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #0a1628, #1e3a5f);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-section h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.cta-section .btn {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
}