/* Global Styles - Traboda-inspired Color Scheme */
:root {
    /* Primary Colors - Inspired by Traboda's professional palette */
    --primary-color: #2563eb;      /* Blue - Primary actions */
    --secondary-color: #1e40af;    /* Darker Blue - Secondary elements */
    --accent-color: #f59e0b;       /* Amber - Accent highlights */
    --success-color: #10b981;      /* Green - Success states */
    --warning-color: #f59e0b;      /* Amber - Warning states */
    --error-color: #ef4444;        /* Red - Error states */
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-900: #111827;
    --bg-primary: #2563eb;
    --bg-secondary: #1e40af;
    --bg-accent: #f59e0b;
    
    /* Border Colors */
    --border-gray-200: #e5e7eb;
    --border-gray-300: #d1d5db;
    --border-primary: #2563eb;
    --border-accent: #f59e0b;
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Legacy support */
    --text-color: var(--text-primary);
    --light-bg: var(--bg-gray-50);
    --dark-bg: var(--bg-gray-900);
    --white: var(--bg-white);
}

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

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-gray-200);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-container .nav-logo {
    margin-right: auto;
    margin-left: 0;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 1002;
}

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

.nav-logo img {
    transition: all 0.3s ease;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-gray-50);
    transform: translateY(-1px);
}

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

.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-gray-50);
}

.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .menu-btn {
        display: block;
    }
}

.menu-btn:hover {
    background: var(--bg-gray-50);
}

.menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-btn[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropbtn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background: var(--bg-gray-50);
}

.dropdown-content a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: var(--bg-gray-50);
    color: var(--primary-color);
}

/* Hero Section - Refined Design */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 2;

}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 85vh;
    position: relative;
    z-index: 10;
}

.hero-text {
    text-align: left;
    z-index: 1003;
    position: relative;
    max-width: 800px;
    padding-right: 2rem;
}

/* Hero Badge */
.hero-badge {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    animation: badge-float 3s ease-in-out infinite;
}

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

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    z-index: 2;
    overflow: hidden;
}

/* Main Illustration */
.main-illustration {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.shield-icon {
    font-size: 8rem;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

/* Security Elements */
.security-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.security-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: orbit 4s linear infinite;
}

.dot-1 { top: 20%; left: 20%; animation-delay: 0s; }
.dot-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.dot-3 { top: 50%; left: 10%; animation-delay: 1s; }
.dot-4 { top: 50%; right: 10%; animation-delay: 1.5s; }
.dot-5 { bottom: 20%; left: 20%; animation-delay: 2s; }
.dot-6 { bottom: 20%; right: 20%; animation-delay: 2.5s; }

/* Floating Elements */
.play-button-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 200px;
    justify-content: center;
}

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

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.play-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
}

.play-icon svg {
    width: 16px;
    height: 16px;
}

.play-button:hover .play-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.play-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-description {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 1s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 1.2s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a67d8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 1.4s;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: count-up 2s ease-out;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-on-dark);
}

/* Hero Title - New Design */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    z-index: 10;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out forwards;
}

.title-line-1 {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    animation-delay: 0.2s;
}

.title-line-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3b82f6;
    animation-delay: 0.6s;
    font-size: 0.8em;
    margin-top: 0.5rem;
}

/* Animated Text - Refined */
.animated-text {
    overflow: hidden;
    border-right: 4px solid var(--primary-color);
    white-space: nowrap;
    margin: 0;
    animation: typing 4s steps(50, end), blink-caret 1s step-end infinite, text-glow 2s ease-in-out infinite alternate;
    animation-delay: 0.8s;
    animation-fill-mode: both;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #667eea; /* Fallback color for browsers that don't support background-clip */
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1002;
    display: block;
    width: 100%;
}

/* Hero Visual - Refined Design */
.hero-icon {
    position: relative;
    z-index: 3;
    width: 280px;
    height: 280px;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-gray-50) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gray-200);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-icon:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

.hero-icon:hover::before {
    opacity: 1;
}

.hero-icon svg {
    width: 160px;
    height: 160px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.hero-icon:hover svg {
    transform: scale(1.05);
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    }
    100% {
        text-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.4);
    }
}

/* Logo */
.logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

/* Buttons - Refined Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.button-outline:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.button-outline:hover::before {
    transform: scaleX(1);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
}

/* Sections - Traboda Style */
.section {
    padding: 4rem 0;
}

.section-offset {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.section-primary {
    background: var(--bg-white);
    color: var(--text-primary);
}

.section-secondary {
    background: var(--bg-gray-50);
    color: var(--text-primary);
}

.section-accent {
    background: var(--bg-primary);
    color: var(--text-white);
}

.section-accent .section-title h2,
.section-accent .section-title .muted {
    color: var(--text-white);
}

.section-tertiary {
    background: var(--bg-gray-900);
    color: var(--text-white);
}

.section-tertiary .section-title h2,
.section-tertiary .section-title .muted {
    color: var(--text-white);
}

.section-gradient {
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
    color: var(--text-primary);
}

.section-pattern {
    background: var(--bg-white);
    position: relative;
}

.section-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    z-index: 0;
}

.section-pattern > * {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title .muted {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo text styling applied site-wide */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-left: 0.4rem; /* push the text slightly right from the logo image */
}
.nav-logo-text .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo-text .nav-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -2px;
  margin-left: 2.9rem;
}

/* Ensure all images are responsive */
.hero-visual img,
.gallery-item img,
.feature-card img,
.logo-tile img,
.hackathon-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Responsive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
}

@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Feature Cards - Refined Design */
.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.primary {
    border-left: 4px solid var(--primary-color);
}

.feature-card.primary h3 {
    color: var(--primary-color);
}

.feature-card.secondary {
    border-left: 4px solid var(--secondary-color);
}

.feature-card.secondary h3 {
    color: var(--secondary-color);
}

.feature-card.accent {
    border-left: 4px solid var(--accent-color);
}

.feature-card.accent h3 {
    color: var(--accent-color);
}

.feature-card.tertiary {
    border-left: 4px solid var(--gray-500);
}

.feature-card.tertiary h3 {
    color: var(--gray-700);
}

/* Section-specific card styling */
.section-accent .feature-card {
    background: var(--bg-white);
    color: var(--text-primary);
}

.section-tertiary .feature-card {
    background: var(--bg-gray-800);
    color: var(--text-white);
    border-color: var(--gray-700);
}

.section-tertiary .feature-card h3 {
    color: var(--text-white);
}

.section-tertiary .feature-card p {
    color: var(--gray-300);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.125rem;
    margin: 0;
}

/* Pricing Section */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 768px) {
    .pricing {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .pricing {
        max-width: 100%;
        gap: 1rem;
    }
}

.plan {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan:hover::after {
    transform: scaleX(1);
}

.plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.plan.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.25);
    background: linear-gradient(135deg, #fff 0%, #fef7ed 100%);
    position: relative;
    z-index: 2;
}

.plan.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-radius: 16px;
    z-index: -1;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 2rem;
}

.price {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
}

.currency {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.plan.popular .amount {
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-gray-200);
    position: relative;
    padding-left: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    display: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin-top: auto;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin-top: auto;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.plan h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan .muted {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 1rem;
}

.plan li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Video Section */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrap iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
}

/* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.logo-tile img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
}

/* Responsive Design - Refined */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        min-height: 70vh;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .play-button {
        padding: 1.25rem 2rem;
        min-width: 180px;
        font-size: 1rem;
    }
    
    .play-icon {
        width: 20px;
        height: 20px;
        padding: 6px;
    }
    
    .play-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .play-text {
        font-size: 1rem;
    }
    
    .hero-visual {
        order: 2;
        height: 300px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line-1 {
        font-size: 1em;
    }
    
    .title-line-2 {
        font-size: 0.8em;
    }
    
    .animated-text {
        font-size: 3rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #667eea; /* Fallback color */
    }
    
    .hero-description {
        font-size: 1.25rem;
        max-width: 100%;
    }
    
    .hero-icon {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        gap: 2rem;
        min-height: 60vh;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-line-1 {
        font-size: 1em;
    }
    
    .title-line-2 {
        font-size: 0.8em;
    }
    
    .animated-text {
        font-size: 2.5rem;
        animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite, text-glow 2s ease-in-out infinite alternate;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #667eea; /* Fallback color */
    }
    
    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-icon {
        width: 180px;
        height: 180px;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .play-button {
        padding: 1rem 1.5rem;
        min-width: 160px;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .play-icon {
        width: 18px;
        height: 18px;
        padding: 5px;
    }
    
    .play-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .play-text {
        font-size: 0.9rem;
    }
    
    .btn, .button-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    .section-title .muted {
        font-size: 1.125rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 400px;
        background: var(--bg-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-y: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-left: 1px solid var(--border-gray-200);
        z-index: 1001;
    }
    
    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-links.active::before {
        opacity: 1;
    }

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

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 12px;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        background: var(--bg-gray-50);
        transform: none;
        padding-left: 2rem;
    }
    
    .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
    
    .nav-link.active:hover {
        background: var(--secondary-color);
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: var(--bg-gray-50);
        margin: 0;
        animation: none;
        display: none;
    }
    
    .dropdown-content a {
        padding: 0.8rem 2rem;
        text-align: left;
        border-bottom: 1px solid var(--border-gray-200);
        font-size: 0.95rem;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .dropdown-content a:hover {
        padding-left: 2.5rem;
        background: var(--primary-color);
        color: white;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .section {
        padding: 3rem 0;
    }

    /* Mobile Grid Adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .plan.popular {
        transform: none;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .logo-tile {
        padding: 1rem;
    }
    
    .logo-tile img {
        max-height: 50px;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }

    .video-wrap iframe {
        height: 250px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .plan {
        padding: 2rem 1.5rem;
    }
    
    .amount {
        font-size: 2.8rem;
    }
    
    .currency {
        font-size: 1.5rem;
    }
    
    .plan-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .plan-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1.5rem;
    }
} 
@media (max-width: 576px) {
    /* Adjust general text sizes for better readability */
    body {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }

    /* Navbar adjustments for small screens */
    .navbar-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .amount {
        font-size: 2.2rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    .plan-features li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .plan-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1.2rem;
        top: -12px;
    }
    
    .btn-outline,
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-logo span {
        font-size: 1.2rem;
    }
    
    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .logo-tile {
        padding: 0.75rem;
    }
    
    .logo-tile img {
        max-height: 40px;
    }
    
    .nav-links {
        width: 90%;
        padding: 4rem 1.5rem 2rem;
    }
    
    .nav-link,
    .dropbtn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .dropdown-content a {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line-1 {
        font-size: 1em;
    }
    
    .title-line-2 {
        font-size: 0.8em;
    }
    
    .animated-text {
        font-size: 2rem;
        animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite, text-glow 2s ease-in-out infinite alternate;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #667eea; /* Fallback color */
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Adjust button sizes */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Section Headings */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Team Section */
    .team-member img {
        width: 150px;
        height: 150px;
    }

    /* Blog Grid */
    .blog-card img {
        height: 150px;
    }

    .blog-content {
        padding: 1rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section ul {
        padding: 0;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Improve Contact Form on Mobile */
@media (max-width: 480px) {
    .contact-form {
        padding: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Improve Blog Grid for Small Screens */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Make Footer More Compact */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== NAVBAR BUTTON STYLES ===== */
.nav-link.button-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link.button-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-link.btn.get-started {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.nav-link.btn.get-started:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Mobile button adjustments */
@media (max-width: 768px) {
    .nav-link.button-outline,
    .nav-link.btn.get-started {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-link.button-outline:hover,
    .nav-link.btn.get-started:hover {
        transform: none;
        padding-left: 1.5rem;
    }
}
/* Container */
.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1300px;
    margin: auto;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 1rem;
  }
  
  /* Stat Card Style */
  .stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
  
  /* Headings */
  .stat-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
  }
  
  /* Paragraphs */
  .stat-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
  
  /* Optional icon (if you want to add later) */
  .stat-card::before {
    
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .stat-container {
      grid-template-columns: 1fr;
    }
  
    .stat-card {
      text-align: center;
    }
  
    .stat-card::before {
      margin: 0 auto;
    }
  }/* Event Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.5s ease-in-out;
}

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

.modal-content {
    background-color: var(--light-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 70%;
    max-width: 600px;
    animation: slideUp 0.4s ease-out;
    position: relative;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

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

/* Close Button */
.close {
    color: var(--accent-color);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Event Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--light-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 70%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-in-out;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* Smooth Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* Event Image */
#eventImage {
    width: 75%;
    padding: 65px; /* Apply 1 cm padding around the image */

    height: auto;
    border-radius: 20px;
    margin-bottom: 15px;
    object-fit: contain;
    animation: zoomIn 0.6s ease-in-out;
    transition: all 0.3s ease;
}

#eventImage:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Event Title */
#eventTitle {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in-out;
}

/* Event Description */
#eventDescription {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Countdown Timer */
.countdown {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    gap: 1rem;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
    }
    to {
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
    }
}

.countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown div span {
    font-size: 1.2rem;
    color: var(--light-bg);
    font-weight: 600;
}

.countdown div p {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Hover Effect */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        padding: 1rem !important;
        max-width: 98vw !important;
    }
    #eventImage {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
    #okButton {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .modal-content > div[style*="text-align: center"] {
        margin-top: 16px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
}

@media (max-width: 576px) {
    .countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }
}
#okButton {
    background-color: #4CAF50;  /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#okButton:hover {
    background-color: #45a049;
}




@media (max-width: 992px) {
    .navbar-container {
        flex-wrap: wrap;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .stat-container {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding: 5rem 2rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-line-1 {
        font-size: 1em;
    }
    
    .title-line-2 {
        font-size: 0.8em;
    }
    
    .animated-text {
        font-size: 1.8rem;
        animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite, text-glow 2s ease-in-out infinite alternate;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #667eea; /* Fallback color */
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    #eventImage {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .mission-grid {
        display: block;
    }
    .mission-grid > div {
        margin-bottom: 2rem;
    }
}

/* Mobile Responsive Styles for Hackathon Cards and Results Page */
@media (max-width: 768px) {
    /* Hackathon Cards */
    .hackathon-card {
        width: 100% !important;
        margin: 1rem 0;
    }
    
    /* Past Hackathons Section */
    #past-hackathons .container > div > div {
        width: 100% !important;
        margin: 1rem 0;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-item {
        padding: 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Winners Section */
    .winner-card {
        margin-bottom: 2rem !important;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .gallery-item {
        height: 200px !important;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Page Title */
    .page-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Section Padding */
    .section {
        padding: 2rem 1rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 1rem !important;
    }
}

@media (max-width: 576px) {
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Winners Section - Mobile Scrollable */
    .winners-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        padding-right: 0.5rem !important;
    }
    
    .winners-container::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .winners-container::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    .winners-container::-webkit-scrollbar-thumb {
        background: var(--accent-color) !important;
        border-radius: 3px !important;
    }
    
    .winners-container::-webkit-scrollbar-thumb:hover {
        background: #2980b9 !important;
    }
    
    .winner-card {
        padding: 1rem !important;
        margin-bottom: 0 !important;
        min-height: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .winner-card > div[style*="background"] {
        padding: 1rem !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .winner-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .winner-card p {
        font-size: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Vision Section - Mobile Scrollable */
    .vision-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        max-height: 500px !important;
        overflow-y: auto !important;
        padding-right: 0.5rem !important;
    }
    
    .vision-grid::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .vision-grid::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color) !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb:hover {
        background: #2980b9 !important;
    }
    
    .vision-grid > div {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        min-height: 150px !important;
        /* Disable hover effects on mobile */
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    }
}

@media (max-width: 480px) {
    /* Stats Grid */
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* Winners Section - Small Mobile Scrollable */
    .winners-container {
        max-height: 350px !important;
        gap: 0.8rem !important;
    }
    
    .winner-card {
        padding: 0.8rem !important;
        min-height: 100px !important;
    }
    
    .winner-card > div[style*="background"] {
        padding: 0.8rem !important;
    }
    
    .winner-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .winner-card p {
        font-size: 0.9rem !important;
        margin: 0.3rem 0 !important;
    }
    
    /* Mission Section - Small Mobile Scrollable */
    .mission-container {
        max-height: 550px !important;
        gap: 1.5rem !important;
    }
    
    .mission-container h3 {
        font-size: 1.6rem !important;
    }
    
    .mission-container p {
        font-size: 0.95rem !important;
    }
    
    .mission-container > div:last-child > div {
        padding: 1.5rem !important;
    }
    
    .mission-container h4 {
        font-size: 1.2rem !important;
    }
    
    .mission-container li span {
        font-size: 0.9rem !important;
    }
    
    /* Gallery Item */
    .gallery-item {
        height: 200px !important;
    }
}

@media (max-width: 360px) {
    /* Winners Section - Extra Small Mobile Scrollable */
    .winners-container {
        max-height: 300px !important;
        gap: 0.6rem !important;
    }
    
    .winner-card {
        padding: 0.6rem !important;
        min-height: 80px !important;
    }
    
    .winner-card > div[style*="background"] {
        padding: 0.6rem !important;
    }
    
    .winner-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .winner-card p {
        font-size: 0.8rem !important;
        margin: 0.2rem 0 !important;
    }
    
    .winner-card img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .card {
        padding: 0.6rem !important;
    }
    
    .page-title {
        font-size: 1.3rem !important;
    }
    
    .section-title h2 {
        font-size: 1.5rem !important;
    }
}

/* Mission Section - Mobile Scrollable */
@media (max-width: 768px) {
    .mission-container {
        display: flex !important;
        flex-direction: column !important;
        max-height: 600px !important;
        overflow-y: auto !important;
        padding-right: 0.5rem !important;
        gap: 2rem !important;
    }

    .mission-container::-webkit-scrollbar {
        width: 6px !important;
    }

    .mission-container::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }

    .mission-container::-webkit-scrollbar-thumb {
        background: var(--secondary-color) !important;
        border-radius: 3px !important;
    }

    .mission-container::-webkit-scrollbar-thumb:hover {
        background: #2980b9 !important;
    }

    .mission-container h3 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    .mission-container p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }

    .mission-container > div:last-child > div {
        padding: 2rem !important;
    }

    .mission-container h4 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    .mission-container li {
        margin-bottom: 1rem !important;
    }

    .mission-container li span {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* Vision Section - Mobile Scrollable */
    .vision-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        max-height: 500px !important;
        overflow-y: auto !important;
        padding-right: 0.5rem !important;
    }
    
    .vision-grid::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .vision-grid::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color) !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb:hover {
        background: #2980b9 !important;
    }
    
    .vision-grid > div {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        min-height: 150px !important;
        /* Disable hover effects on mobile */
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    }
}

@media (max-width: 576px) {
    /* Mission Section - Small Mobile Scrollable */
    .mission-container {
        max-height: 550px !important;
        gap: 1.5rem !important;
    }
    
    .mission-container h3 {
        font-size: 1.6rem !important;
    }
    
    .mission-container p {
        font-size: 0.95rem !important;
    }
    
    .mission-container > div:last-child > div {
        padding: 1.5rem !important;
    }
    
    .mission-container h4 {
        font-size: 1.2rem !important;
    }
    
    .mission-container li span {
        font-size: 0.9rem !important;
    }
    
    /* Vision Section - Small Mobile Scrollable */
    .vision-grid {
        max-height: 450px !important;
        gap: 0.8rem !important;
    }
    
    .vision-grid > div {
        padding: 1.2rem !important;
        min-height: 130px !important;
    }
    
    .vision-grid h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .vision-grid p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    /* Mission Section - Extra Small Mobile Scrollable */
    .mission-container {
        max-height: 500px !important;
        gap: 1.2rem !important;
    }
    
    .mission-container h3 {
        font-size: 1.5rem !important;
    }
    
    .mission-container p {
        font-size: 0.9rem !important;
    }
    
    .mission-container > div:last-child > div {
        padding: 1.2rem !important;
    }
    
    .mission-container h4 {
        font-size: 1.1rem !important;
    }
    
    .mission-container li span {
        font-size: 0.85rem !important;
    }
    
    /* Vision Section - Extra Small Mobile Scrollable */
    .vision-grid {
        max-height: 400px !important;
        gap: 0.6rem !important;
    }
    
    .vision-grid > div {
        padding: 1rem !important;
        min-height: 110px !important;
    }
    
    .vision-grid h4 {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .vision-grid p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    /* Mission Section - Extra Small Mobile Scrollable */
    .mission-container {
        max-height: 450px !important;
        gap: 1rem !important;
    }
    
    .mission-container h3 {
        font-size: 1.4rem !important;
    }
    
    .mission-container p {
        font-size: 0.85rem !important;
    }
    
    .mission-container > div:last-child > div {
        padding: 1rem !important;
    }
    
    .mission-container h4 {
        font-size: 1rem !important;
    }
    
    .mission-container li span {
        font-size: 0.8rem !important;
    }
    
    /* Vision Section - Extra Small Mobile Scrollable */
    .vision-grid {
        max-height: 350px !important;
        gap: 0.5rem !important;
    }
    
    .vision-grid > div {
        padding: 0.8rem !important;
        min-height: 100px !important;
    }
    
    .vision-grid h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .vision-grid p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 1024px) {
    /* Tablet - 2 columns */
    .vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .vision-grid > div {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Mobile - Single column scrollable */
    .vision-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        max-height: 500px !important;
        overflow-y: auto !important;
        padding-right: 0.5rem !important;
    }
    
    .vision-grid::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .vision-grid::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color) !important;
        border-radius: 3px !important;
    }
    
    .vision-grid::-webkit-scrollbar-thumb:hover {
        background: #2980b9 !important;
    }
    
    .vision-grid > div {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        min-height: 150px !important;
        /* Disable hover effects on mobile */
        transform: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Gallery Grid */
.gallery-grid {
    grid-template-columns: 1fr !important;
}

/* Modal Content Responsive Fixes */
.modal-content {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        padding: 1rem !important;
        max-width: 98vw !important;
    }
    #eventImage {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
    #okButton {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .modal-content > div[style*="text-align: center"] {
        margin-top: 16px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 0.5rem !important;
        width: 99vw !important;
        max-width: 99vw !important;
    }
    #okButton {
        font-size: 1rem !important;
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .modal-content > div[style*="text-align: center"] {
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
  .future-opportunities-scroll {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding-right: 0.5rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--secondary-color) #f0f0f0 !important;
  }
  .future-opportunities-scroll::-webkit-scrollbar {
    width: 6px !important;
  }
  .future-opportunities-scroll::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
    border-radius: 3px !important;
  }
  .future-opportunities-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color) !important;
    border-radius: 3px !important;
  }
  .future-opportunities-scroll::-webkit-scrollbar-thumb:hover {
    background: #2980b9 !important;
  }
}

/* Blog Post Styles */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.blog-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #3498db 100%);
    color: white;
    padding: 4rem 3rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.blog-meta .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta .author::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat center;
    background-size: contain;
}

.blog-meta .date::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>') no-repeat center;
    background-size: contain;
    margin-right: 0.5rem;
}

.blog-content {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}

.blog-content h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-content ul, .blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.blog-content ol {
    counter-reset: item;
}

.blog-content ol li {
    counter-increment: item;
    position: relative;
}

.blog-content ol li::before {
    content: counter(item);
    position: absolute;
    left: -2rem;
    top: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

.blog-content .highlight-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.blog-content .highlight-box::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffc107"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') no-repeat center;
    background-size: 16px;
}

.blog-content .info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.blog-content .info-box::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232196f3"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center;
    background-size: 16px;
}

.blog-content .warning-box {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #f44336;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.blog-content .warning-box::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f44336"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>') no-repeat center;
    background-size: 16px;
}

.blog-content .success-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.blog-content .success-box::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234caf50"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
    background-size: 16px;
}

.blog-content .code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    position: relative;
}

.blog-content .code-block::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: #2d3748;
    padding: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e2e8f0"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>') no-repeat center;
    background-size: 16px;
}

.blog-content .image-container {
    margin: 2rem 0;
    text-align: center;
}

.blog-content .image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.blog-content .image-container img:hover {
    transform: scale(1.02);
}

.blog-content .image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.blog-content .table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.blog-content th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.blog-content td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-content tr:hover {
    background: #f8f9fa;
}

.blog-content .tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.2rem;
    transition: all 0.3s ease;
}

.blog-content .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.blog-content .progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.blog-content .progress-bar .progress {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.blog-content .timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.blog-content .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.blog-content .timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-content .timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.blog-content .timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-content .timeline-item p {
    margin-bottom: 0;
    color: #666;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.toc::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>') no-repeat center;
    background-size: 20px;
    opacity: 0.5;
}

.toc h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>') no-repeat center;
    background-size: 16px;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.toc a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.toc a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.toc a:hover::before {
    width: 100%;
}

.toc a.active {
    background: var(--primary-color);
    color: white;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-post {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .blog-header {
        padding: 3rem 2rem 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-content {
        padding: 2rem;
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.6rem;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .blog-title {
        font-size: 1.6rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-content h2 {
        font-size: 1.4rem;
    }
    
    .blog-content ul, .blog-content ol {
        padding-left: 1.5rem;
    }
    
    .blog-content ul li::before {
        left: -1.2rem;
    }
    
    .blog-content ol li::before {
        left: -1.5rem;
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }
}

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

.blog-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-content h2 {
    animation-delay: 0.1s;
}

.blog-content h3 {
    animation-delay: 0.2s;
}

.blog-content p {
    animation-delay: 0.3s;
}

.blog-content ul, .blog-content ol {
    animation-delay: 0.4s;
}

/* Print styles for blog */
@media print {
    .blog-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .blog-header {
        background: white !important;
        color: black !important;
    }
    
    .blog-content {
        color: black;
    }
    
    .blog-content h2, .blog-content h3 {
        color: black;
    }
}

/* ===== DROPDOWN STYLES ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    top: 100%;
    left: 0;
    border: 1px solid var(--border-gray-200);
    backdrop-filter: blur(10px);
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-gray-200);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--bg-gray-50);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile dropdown behavior */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: var(--bg-gray-50);
        margin-top: 0.5rem;
        animation: none;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content a {
        padding: 1rem 2rem;
        text-align: left;
        border-bottom: 1px solid var(--border-gray-200);
        font-size: 0.9rem;
    }
    
    .dropdown-content a:hover {
        padding-left: 2rem;
    }
    
    .dropbtn {
        width: 100%;
        justify-content: space-between;
    }
}

/* --- SERVICES PAGE MODERN STYLES --- */
.services-hero {
  background: linear-gradient(120deg, #3498db 0%, #6dd5fa 100%);
  color: #fff;
  padding: 4rem 0 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.services-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.services-hero-content p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

.services-section {
  background: var(--light-bg);
  padding: 3rem 0 4rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.service-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 6px 32px rgba(44,62,80,0.10), 0 1.5px 6px rgba(44,62,80,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 12px 36px rgba(44,62,80,0.16), 0 2px 8px rgba(44,62,80,0.10);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  animation: popIn 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}
.service-card p {
  font-size: 1.05rem;
  color: #555;
  opacity: 0.93;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .services-hero {
    padding: 2.5rem 0 1.5rem 0;
  }
  .services-hero-content h1 {
    font-size: 2.1rem;
  }
  .services-section {
    padding: 2rem 0 2.5rem 0;
  }
  .services-grid {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .services-hero-content h1 {
    font-size: 1.4rem;
  }
  .services-hero-content p {
    font-size: 1rem;
  }
  .service-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
}

/* --- SINGLE COLUMN SERVICES VERTICAL FLOW --- */
.services-vertical-section {
  background: var(--light-bg);
  padding: 0 0 4rem 0;
}
.services-vertical-flow {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-vertical-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08), 0 1.5px 6px rgba(44,62,80,0.04);
  border: 1.5px solid var(--light-bg);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
  transition: box-shadow 0.18s, border 0.18s;
}
.service-vertical-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.13), 0 2px 8px rgba(44,62,80,0.08);
  border: 1.5px solid var(--secondary-color);
}
.service-vertical-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  background: var(--secondary-color);
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  animation: popIn 0.7s cubic-bezier(.4,2,.6,1);
}
.service-vertical-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.service-vertical-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}
.service-vertical-card h4 {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0.7rem;
  opacity: 0.92;
}
.service-vertical-card p {
  font-size: 1.08rem;
  color: var(--text-color);
  opacity: 0.93;
  margin-bottom: 0;
}
.service-separator {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 2.2rem auto 2.2rem auto;
  opacity: 0.18;
}
.services-hero {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 4rem 0 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.services-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: #fff;
}
.services-hero-content p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
  color: #f8f9fa;
}
.services-hero-illustration {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.services-hero-illustration svg ellipse {
  fill: url(#hero-palette-gradient);
}
@media (max-width: 900px) {
  .services-vertical-section {
    padding: 0 0 2.5rem 0;
  }
  .services-vertical-flow {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  .service-vertical-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
  }
  .service-vertical-icon {
    width: 56px;
    height: 56px;
  }
  .service-vertical-icon svg {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 600px) {
  .service-vertical-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .service-vertical-icon {
    width: 44px;
    height: 44px;
  }
  .service-vertical-icon svg {
    width: 24px;
    height: 24px;
  }
  .service-separator {
    width: 40px;
    margin: 1.2rem auto 1.2rem auto;
  }
}

/* --- HORIZONTAL SERVICES GRID LAYOUT --- */
.services-horizontal-section {
  background: var(--light-bg);
  padding: 3rem 0 4rem 0;
}
.services-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.service-horizontal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44,62,80,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(44,62,80,0.05);
}
.service-horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44,62,80,0.12);
}
.service-horizontal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 2px solid var(--secondary-color);
}
.service-horizontal-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
}
.service-horizontal-card p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  flex-grow: 1;
}
.learn-more-btn {
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}
.learn-more-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .services-horizontal-section {
    padding: 2rem 0 3rem 0;
  }
  .services-horizontal-grid {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .service-horizontal-card {
    padding: 1.5rem 1rem 1rem 1rem;
  }
  .service-horizontal-icon {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 600px) {
  .services-horizontal-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .service-horizontal-card {
    padding: 1.2rem 0.8rem 0.8rem 0.8rem;
  }
  .service-horizontal-icon {
    width: 48px;
    height: 48px;
  }
  .learn-more-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* --- SERVICES CAROUSEL LAYOUT --- */
.services-carousel-section {
  background: var(--light-bg);
  padding: 3rem 0 4rem 0;
}
.services-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.services-main-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
}

/* Carousel Track */
.services-carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.services-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.services-carousel-track:active {
  cursor: grabbing;
}

/* Carousel Cards */
.service-carousel-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44,62,80,0.08);
  padding: 1.8rem 1.2rem 1.2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(44,62,80,0.05);
  min-width: 220px;
  flex-shrink: 0;
}
.service-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44,62,80,0.12);
}
.service-carousel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid var(--secondary-color);
}
.service-carousel-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}
.service-carousel-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  opacity: 0.9;
  flex-grow: 1;
}

/* Service Details Container */
.service-details-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Service Details */
.service-details {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(44,62,80,0.12);
  border: 1px solid rgba(44,62,80,0.08);
}

.service-details h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.service-details p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.service-details li {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  opacity: 0.9;
}

.service-details li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .services-carousel-section {
    padding: 2rem 0 3rem 0;
  }
  .services-main-heading {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  .services-carousel-track {
    gap: 1.2rem;
  }
  .service-carousel-card {
    padding: 1.5rem 1rem 1rem 1rem;
    min-width: 200px;
  }
  .service-carousel-icon {
    width: 48px;
    height: 48px;
  }
  .service-details {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .service-details h3 {
    font-size: 1.5rem;
  }
  .service-details p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .services-carousel-container {
    padding: 0 1rem;
  }
  .services-main-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .services-carousel-track {
    gap: 0.8rem;
  }
  .service-carousel-card {
    padding: 1rem 0.6rem 0.6rem 0.6rem;
    min-width: 140px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.06);
  }
  .service-carousel-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .service-carousel-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }
  .service-carousel-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.6rem;
  }
  .service-carousel-icon svg {
    width: 24px;
    height: 24px;
  }
  .learn-more-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .service-details {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  .service-details h3 {
    font-size: 1.3rem;
  }
  .service-details p {
    font-size: 0.95rem;
  }
  .service-details li {
    font-size: 0.9rem;
  }
}

/* Photo Gallery Styles */
.photo-gallery {
  margin: 3rem 0;
}

.gallery-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: white;
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.active {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gallery-btn:active {
  transform: scale(0.95);
}

.gallery-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-indicator.active {
  background: white;
  transform: scale(1.2);
}

.gallery-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design for Gallery */
@media (max-width: 768px) {
  .gallery-slider {
    height: 350px;
  }
  
  .gallery-btn {
    width: 40px;
    height: 40px;
  }
  
  .gallery-controls {
    padding: 0 0.5rem;
  }
  
  .gallery-indicators {
    bottom: 0.5rem;
  }
  
  .gallery-indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-slider {
    height: 250px;
  }
  
  .gallery-btn {
    width: 35px;
    height: 35px;
  }
  
  .gallery-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ===== CHATBOT STYLES ===== */

/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover svg {
  transform: rotate(10deg);
}

/* Pulse animation for attention */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4), 0 0 0 10px rgba(52, 152, 219, 0.1);
  }
  100% {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  }
}

/* Chatbot Panel */
.chatbot-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.chatbot-panel.show {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.chatbot-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.chatbot-header span {
  position: relative;
  z-index: 1;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

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

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

/* Chatbot Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Chat Messages */
.chat-msg {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
  animation: messageSlide 0.3s ease-out;
}

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

.chat-msg.user {
  background: linear-gradient(135deg, var(--secondary-color), #5dade2);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.chat-msg.bot {
  background: white;
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-msg.system {
  background: #fff3cd;
  color: #856404;
  align-self: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid #ffeaa7;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-self: flex-start;
  max-width: 80px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Chatbot Input Area */
.chatbot-input {
  padding: 1rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.chatbot-input input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.chatbot-input input:focus {
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.chatbot-input input::placeholder {
  color: #6c757d;
}

.chatbot-send {
  background: linear-gradient(135deg, var(--secondary-color), #5dade2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.chatbot-send:active {
  transform: scale(0.95);
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chatbot-send svg {
  width: 20px;
  height: 20px;
}

/* Quick Actions */
.chatbot-quick-actions {
  padding: 0.8rem 1rem;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  background: white;
  border: 1px solid #dee2e6;
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-action-btn:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

/* Message Timestamps */
.message-timestamp {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 0.3rem;
  text-align: right;
}

.chat-msg.bot .message-timestamp {
  text-align: left;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .chatbot-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }
  
  .chatbot-toggle svg {
    width: 24px;
    height: 24px;
  }
  
  .chatbot-panel {
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    width: auto;
    height: 450px;
    border-radius: 16px;
  }
  
  .chatbot-messages {
    padding: 0.8rem;
  }
  
  .chat-msg {
    max-width: 85%;
    font-size: 0.9rem;
  }
  
  .chatbot-input {
    padding: 0.8rem;
  }
  
  .chatbot-input input {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }
  
  .chatbot-send {
    width: 40px;
    height: 40px;
  }
  
  .chatbot-send svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .chatbot-panel {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    height: 400px;
    border-radius: 16px;
  }
  
  .chatbot-header {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .chatbot-messages {
    padding: 0.6rem;
  }
  
  .chat-msg {
    max-width: 90%;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
  }
  
  .chatbot-input {
    padding: 0.6rem;
  }
  
  .chatbot-input input {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
  
  .quick-action-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .chatbot-panel {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .chatbot-messages {
    background: #1a202c;
  }
  
  .chatbot-input {
    background: #2d3748;
    border-top-color: #4a5568;
  }
  
  .chatbot-input input {
    background: #1a202c;
    border-color: #4a5568;
    color: white;
  }
  
  .chatbot-input input::placeholder {
    color: #a0aec0;
  }
  
  .chat-msg.bot {
    background: #4a5568;
    color: white;
    border-color: #718096;
  }
  
  .chatbot-quick-actions {
    background: #1a202c;
    border-top-color: #4a5568;
  }
  
  .quick-action-btn {
    background: #4a5568;
    border-color: #718096;
    color: white;
  }
  
  .quick-action-btn:hover {
    background: var(--secondary-color);
  }
}

/* Accessibility improvements */
.chatbot-toggle:focus,
.chatbot-send:focus,
.chatbot-close:focus,
.quick-action-btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.chatbot-input input:focus {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .chatbot-toggle {
    border: 2px solid white;
  }
  
  .chatbot-panel {
    border: 2px solid var(--primary-color);
  }
  
  .chat-msg {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle,
  .chatbot-panel,
  .chat-msg,
  .typing-dot {
    animation: none;
  }
  
  .chatbot-toggle:hover,
  .chatbot-send:hover {
    transform: none;
  }
}

/* --- Utility layout helpers --- */
.section-offset {
  padding-top: 120px;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.centered-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.event-highlight-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.event-highlight-header {
  background: var(--accent-color);
  color: #fff;
  padding: 1.25rem;
  text-align: center;
}

.event-highlight-body {
  padding: 1.75rem;
  color: var(--text-primary);
}

.event-highlight-body ul {
  margin: 1rem 0 0 1rem;
  line-height: 1.6;
}

.event-highlight-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.past-carousel-container {
  position: relative;
}

.past-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.past-carousel::-webkit-scrollbar {
  height: 6px;
}

.past-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.past-carousel .hackathon-card {
  flex: 0 0 320px;
  max-width: 320px;
  height: auto;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-gray-200);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

.carousel-nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}

.carousel-nav-btn.past-prev {
  left: 0;
}

.carousel-nav-btn.past-next {
  right: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.how-step {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.future-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.future-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: flex-start;
}

.contact-form-card,
.contact-info-card,
.info-panel {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  width: 100%;
}

.contact-form-card h3,
.contact-info-card h3 {
  margin-bottom: 1.75rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.contact-info-content {
  margin-top: 1.5rem;
}

.contact-info-list p {
  color: #666;
}

.social-media-section {
  margin-top: 2.5rem;
}

.social-media-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.icon-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-bullet__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aside-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

.aside-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.winner-rank {
  padding: 1.5rem;
  border-radius: 14px;
  color: #111;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.mission-grid {
  align-items: stretch;
}

.mission-grid .info-panel {
  padding: 2rem;
  color: #fff;
  background: var(--secondary-color);
}

.card-banner {
  padding: 1rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.card-banner.accent {
  background: var(--accent-color);
}

.card-banner.primary {
  background: var(--primary-color);
}

.card-stack {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.stats-box {
  background: var(--light-bg);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-gray-200);
}

.stats-box ul {
  padding-left: 1.1rem;
  margin: 0.25rem 0 0;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pill-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.pill-list .pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}

.vision-panel {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.team-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1rem;
}

.team-card {
  text-align: center;
  padding: 1rem;
}

/* --- Global responsive enhancements (Nov 2025 sweep) --- */
:where(html, body) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .navbar-container,
  .hero-container,
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 110px 0 70px;
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-text {
    padding-right: 0;
    margin: 0 auto;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    height: auto;
  }
  .hero-badge,
  .hero-buttons,
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  .main-illustration {
    width: min(360px, 80vw);
    height: min(360px, 80vw);
  }
  .shield-container {
    width: min(180px, 55vw);
    height: min(180px, 55vw);
  }
  .shield-icon {
    font-size: clamp(4rem, 12vw, 6rem);
  }
  .shield-glow {
    width: min(260px, 80vw);
    height: min(260px, 80vw);
  }
  .two-column-grid,
  .contact-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 3rem 0;
  }
  .section-title {
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero {
    padding: 100px 0 60px;
  }
  .hero-content {
    gap: 2rem;
  }
  .hero-text {
    text-align: center;
  }
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }
  .carousel-nav-btn {
    display: none;
  }
  .past-carousel {
    gap: 1rem;
  }
  .past-carousel .hackathon-card {
    flex: 0 0 80vw;
    max-width: 80vw;
  }
  .section-title h2 {
    font-size: 2.2rem;
  }
  .section-title .muted {
    font-size: 1rem;
  }
  .logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .hackathon-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  #pastCarousel .hackathon-card {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    height: auto !important;
  }
  #pastPrev,
  #pastNext {
    top: auto !important;
    bottom: -20px !important;
    transform: none !important;
  }
  .services-carousel-track {
    scroll-snap-type: x mandatory;
  }
  .service-carousel-card {
    scroll-snap-align: center;
    min-width: 70vw;
  }
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .blog-post {
    margin-top: 90px;
  }
  .toc {
    width: 100%;
    margin-bottom: 2rem;
  }
  .hero-visual {
    max-width: 360px;
  }
  .main-illustration {
    width: min(320px, 75vw);
    height: min(320px, 75vw);
  }
  .shield-container {
    width: min(160px, 50vw);
    height: min(160px, 50vw);
  }
  .contact-form-card,
  .contact-info-card {
    padding: 2rem;
    max-width: 520px;
    margin: 0 auto;
  }
  .info-panel {
    padding: 2rem;
  }
  .two-column-grid,
  .cards-grid,
  .future-grid {
    gap: 1.5rem;
  }
  .blog-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-content table th,
  .blog-content table td {
    white-space: nowrap;
  }
  .modal .modal-content {
    width: min(92vw, 520px) !important;
    margin: 10vh auto;
    padding: 1.75rem !important;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .badge-text {
    font-size: 0.8rem;
  }
  .hero-visual {
    max-width: 300px;
  }
  .main-illustration {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }
  .shield-container {
    width: min(140px, 45vw);
    height: min(140px, 45vw);
  }
  .shield-glow {
    width: min(220px, 70vw);
    height: min(220px, 70vw);
  }
  .event-highlight-body {
    padding: 1.25rem;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  .info-panel {
    padding: 1.75rem;
  }
  #pastPrev,
  #pastNext {
    display: none !important;
  }
  .gallery-container {
    border-radius: 16px;
  }
  .blog-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 96px 0 48px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  .hero-visual {
    max-width: 240px;
  }
  .main-illustration {
    width: min(220px, 65vw);
    height: min(220px, 65vw);
  }
  .shield-container {
    width: min(120px, 40vw);
    height: min(120px, 40vw);
  }
  .shield-glow {
    width: min(200px, 65vw);
    height: min(200px, 65vw);
  }
  .play-button {
    width: 100%;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .section-title .muted {
    font-size: 0.95rem;
  }
  .blog-meta {
    gap: 0.5rem;
  }
  .modal .modal-content {
    border-radius: 16px !important;
    padding: 1.25rem !important;
  }
  .winner-rank {
    padding: 1rem;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 1.25rem;
  }
}

/* Mobile Nav Overlay & Small-screen polish */
@media (max-width: 768px) {
  /* Slide-in panel for navigation on mobile */
  /* Mobile: full-width slide-down menu anchored below the navbar */
  .nav-links {
    position: fixed;
    top: 64px; /* sits directly under the navbar */
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    width: 100%;
    max-width: none;
    background: var(--bg-white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-100%); /* hidden above the viewport area */
    transition: transform 0.33s cubic-bezier(.2,.9,.2,1);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
    align-items: stretch;
    z-index: 990; /* below navbar (1000) so navbar stays visible */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* No pseudo overlay here — keep the navbar clean and avoid overlap.
     If dimming is desired, we can add a separate overlay element and handle
     it via JS so it doesn't interfere with the navbar. */
  .nav-links::before { display: none; }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links.active::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* Larger, touch-friendly links (stacked and centered) */
  .nav-link {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
    border-radius: 8px;
    text-align: left;
  }

  /* Improve visual separation for grouped actions */
  .nav-links .button-outline,
  .nav-links .btn.get-started {
    margin-top: 0.5rem;
    width: calc(100% - 2rem);
    margin-left: 1rem;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: rgba(37,99,235,0.06);
    color: var(--primary-color);
    transform: none;
  }

  /* Ensure outlined buttons and primary call-to-action are visible */
  .nav-link.button-outline {
    margin-top: 0.5rem;
  }

  .menu-btn {
    display: block;
    background: transparent;
    border: none;
    padding: 0.25rem;
    margin-left: 0.75rem;
    z-index: 1010; /* above nav-links so it's always clickable */
  }

  .menu-btn svg { width: 26px; height: 26px; }

  /* Dropdowns: make nested links stack in mobile */
  .dropdown .dropdown-content {
    position: static;
    display: none;
    background: var(--bg-gray-50) !important;
    box-shadow: none;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0;
  }

  .dropdown .dropdown-content a {
    display: block;
    padding: 1rem 1.5rem !important;
    color: var(--text-secondary);
    font-weight: 400;
    border-radius: 0;
    background: var(--bg-gray-50);
    border-bottom: 1px solid var(--border-gray-200);
    margin: 0 !important;
    font-size: 0.95rem;
  }

  .dropdown .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown .dropdown-content a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 2rem !important;
  }

  /* When clicking on Services on mobile, JS toggles inline display; keep it visible when set */
  .dropdown .dropdown-content[style*="display: block"] {
    display: block !important;
  }

  /* Reduce hero visual footprint on small tablets/phones */
  .hero {
    padding-top: 96px;
    padding-bottom: 48px;
    min-height: 64vh;
  }

  .hero-title {
    font-size: 2.6rem;
    text-align: center;
  }

  .hero-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual { order: 2; margin-top: 1rem; display: flex; justify-content: center; }
  .main-illustration { width: min(240px, 60vw); height: min(240px, 60vw); }
  .shield-container { width: min(140px, 40vw); height: min(140px, 40vw); }
  .play-button { margin-top: 0.75rem; min-width: 180px; width: auto; }
}

@media (max-width: 420px) {
  .nav-links { width: 92%; max-width: 320px; padding-top: 3rem; }
  .hero-title { font-size: 2.1rem; }
  .hero-description { font-size: 0.98rem; }
  .nav-logo span { font-size: 1.05rem; }
}

/* Force navbar to be white on small screens (smartphones) */
@media (max-width: 600px) {
  .navbar {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-gray-200) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Ensure hamburger and logo remain visible on white background */
  .menu-btn svg {
    color: var(--text-primary) !important;
  }

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