/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   MODERN PROFESSIONAL COLOR SCHEME
   ============================================ */

:root {
    /* Primary Colors - Deep Professional Blues */
    --primary-dark: #0f172a;        /* Slate 900 - Deep navy */
    --primary-blue: #1e40af;        /* Blue 700 - Rich blue */
    --primary-light: #3b82f6;       /* Blue 500 - Bright blue */
    
    /* Secondary Colors - Elegant Purples */
    --secondary-deep: #581c87;      /* Purple 900 - Deep purple */
    --secondary-main: #7c3aed;      /* Violet 600 - Vibrant purple */
    --secondary-light: #a78bfa;     /* Violet 400 - Light purple */
    
    /* Accent Colors - Warm & Energetic */
    --accent-cyan: #06b6d4;         /* Cyan 500 - Fresh cyan */
    --accent-teal: #14b8a6;         /* Teal 500 - Modern teal */
    --accent-orange: #f97316;       /* Orange 500 - Warm orange */
    --accent-pink: #ec4899;         /* Pink 500 - Vibrant pink */
    
    /* Neutral Colors - Clean & Professional */
    --neutral-white: #ffffff;       /* Pure white */
    --neutral-50: #f8fafc;          /* Slate 50 - Almost white */
    --neutral-100: #f1f5f9;         /* Slate 100 - Very light gray */
    --neutral-200: #e2e8f0;         /* Slate 200 - Light gray */
    --neutral-300: #cbd5e1;         /* Slate 300 - Gray */
    --neutral-400: #94a3b8;         /* Slate 400 - Medium gray */
    --neutral-600: #475569;         /* Slate 600 - Dark gray */
    --neutral-700: #334155;         /* Slate 700 - Darker gray */
    --neutral-800: #1e293b;         /* Slate 800 - Very dark gray */
    --neutral-900: #0f172a;         /* Slate 900 - Almost black */
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    
    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(15, 23, 42, 0.7);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.20);
    --shadow-colored: 0 8px 32px rgba(124, 58, 237, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-50);
    overflow-x: hidden;
    padding-top: 72px;
}

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

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MODERN NAVIGATION REDESIGN
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all var(--transition-slow);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-lg);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-logo h2,
.navbar.scrolled .nav-link,
.navbar.scrolled .btn-login {
    color: var(--primary-dark);
}

.navbar.scrolled .hamburger .bar {
    background: var(--primary-dark);
}

/* Light theme when mobile menu is open */
.navbar.menu-open {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--neutral-200);
}

.navbar.menu-open .nav-logo h2,
.navbar.menu-open .nav-link,
.navbar.menu-open .btn-login {
    color: var(--primary-dark);
}

.navbar.menu-open .hamburger .bar {
    background: var(--primary-dark);
}

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

/* Logo Redesign */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.nav-logo img {
    transition: transform var(--transition-base), filter var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.nav-logo:hover img {
    transform: scale(1.05) rotate(2deg);
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neutral-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.nav-logo h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-logo:hover h2::before {
    width: 100%;
}

/* Navigation Buttons Redesign */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: 10px;
    font-size: 0.95rem;
}

.btn-login:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--neutral-white);
    border-color: var(--primary-light);
}

.btn-join {
    background: var(--gradient-primary);
    color: var(--neutral-white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-join:hover::before {
    left: 0;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

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

.navbar.scrolled .btn-join {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-colored);
}

.navbar.scrolled .btn-join:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

/* Theme Toggle Redesign */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: var(--neutral-white);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.1rem;
}

.theme-toggle:hover { 
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.25);
}

.theme-toggle:active {
    transform: translateY(0) rotate(0deg);
}

.navbar.scrolled .theme-toggle { 
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.dark-mode .theme-toggle { 
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.1);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(251, 191, 36, 0.15);
}

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

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: all var(--transition-smooth);
    position: relative;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--neutral-white);
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link {
    color: var(--neutral-600);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-dark);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

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

.navbar.scrolled .nav-link::after {
    background: var(--gradient-primary);
}

/* Dropdown Menu Redesign */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 800px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 2rem;
}

.dropdown-col {
    position: relative;
}

.dropdown-col::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.dropdown-col:last-child::after {
    display: none;
}

.dropdown-col h4 {
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-col h4::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neutral-700);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all var(--transition-smooth);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-smooth);
}

.dropdown-link:hover::before {
    height: 100%;
}

.dropdown-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    color: var(--primary-light);
    transform: translateX(5px);
    padding-left: 1.2rem;
}

.dropdown-link.disabled {
    color: var(--neutral-400);
    pointer-events: none;
    opacity: 0.5;
}

/* Hamburger Menu - Mobile Optimized */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    min-width: 50px;
    min-height: 50px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.bar {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.navbar.scrolled .bar {
    background: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar.menu-open .bar {
    background: #1a1a1a;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile menu overlay (backdrop) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, 
        var(--primary-dark) 0%, 
        var(--primary-blue) 20%, 
        var(--secondary-main) 50%, 
        var(--accent-cyan) 80%, 
        var(--primary-light) 100%);
    overflow: hidden;
    padding: 0;
}

.hero-container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--neutral-white);
    position: relative;
}

.hero-content p {
    color: var(--neutral-white) !important;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--neutral-white);
    letter-spacing: -0.02em;
}

/* Animated Text Effect */
.animated-text {
    background: linear-gradient(45deg, 
        var(--neutral-white), 
        var(--accent-cyan), 
        var(--accent-teal), 
        var(--neutral-white), 
        var(--primary-light));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    color: var(--neutral-white);
}

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

.btn-start-project {
    background: var(--neutral-white);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    margin-bottom: 2rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-start-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-start-project:hover::before {
    left: 0;
}

.btn-start-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    color: var(--neutral-white);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--neutral-white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--neutral-white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--neutral-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}


.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Network Container */
.network-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.center-text {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.center-text .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.center-text .label {
    font-size: 0.9rem;
    opacity: 0.95;
    color: #fef3c7;
}

/* Orbits */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.orbit-1 {
    width: 300px;
    height: 300px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 450px;
    height: 450px;
    animation: rotate 30s linear infinite reverse;
}

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

/* Profile Avatars */
.profile-avatar {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Positions - Orbit 1 */
.avatar-1 {
    top: -35px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation: counterRotate 20s linear infinite;
}

.avatar-2 {
    top: 50%;
    right: -35px;
    transform: translateY(-50%) rotate(0deg);
    animation: counterRotate 20s linear infinite;
}

.avatar-3 {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation: counterRotate 20s linear infinite;
}

/* Avatar Positions - Orbit 2 */
.avatar-4 {
    top: -35px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation: counterRotate 30s linear infinite reverse;
}

.avatar-5 {
    top: 20%;
    right: -35px;
    transform: translateY(-50%) rotate(0deg);
    animation: counterRotate 30s linear infinite reverse;
}

.avatar-6 {
    bottom: 20%;
    right: -35px;
    transform: translateY(50%) rotate(0deg);
    animation: counterRotate 30s linear infinite reverse;
}

.avatar-7 {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation: counterRotate 30s linear infinite reverse;
}

.avatar-8 {
    top: 20%;
    left: -35px;
    transform: translateY(-50%) rotate(0deg);
    animation: counterRotate 30s linear infinite reverse;
}

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

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .network-container {
        width: 350px;
        height: 350px;
    }

    .orbit-1 {
        width: 220px;
        height: 220px;
    }

    .orbit-2 {
        width: 320px;
        height: 320px;
    }

    .center-circle {
        width: 120px;
        height: 120px;
    }

    .center-text .number {
        font-size: 1.8rem;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .company-logos {
        justify-content: center;
        gap: 1rem;
    }

    .logo-item {
        font-size: 0.9rem;
    }
}

/* Connecting Lines */
.connecting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-svg {
    width: 100%;
    height: 100%;
}

/* Hero Footer */
.hero-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.company-logos {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.logo-item:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--neutral-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-colored);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--neutral-white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Why Us Section */
.why-us {
    padding: 6rem 0;
    background: var(--neutral-white);
}

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

.why-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.why-card:hover {
    background: var(--neutral-50);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-colored);
}

.why-icon i {
    font-size: 2rem;
    color: var(--neutral-white);
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.why-card p {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Recent Work Section */
.recent-work {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

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

.work-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-smooth);
    background: var(--neutral-white);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.work-image {
    height: 250px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.work-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.work-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--neutral-white);
  color: var(--neutral-800);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
  transition: all var(--transition-smooth);
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
  border-color: var(--primary-light);
}

.chip.feature-highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: var(--primary-dark);
  border-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: var(--shadow-colored);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(30,64,175,0.95) 100%);
  color: var(--neutral-200);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--neutral-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--neutral-300);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
    border-color: transparent;
}

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

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

.footer-section ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--neutral-white);
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent-cyan);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .dropdown-menu {
        min-width: 650px;
    }

    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 20px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .nav-container {
        padding: 0.8rem 20px;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    .nav-logo img {
        height: 80px !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0.8rem 20px;
        max-width: 100%;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-logo img {
        height: 70px !important;
    }

    /* Mobile Menu - Enhanced for Phone Devices */
    .nav-menu {
        position: fixed;
        left: -110%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        padding: 100px 1.5rem 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        gap: 0.3rem;
        opacity: 0;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

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

    .nav-item {
        margin: 0;
        width: 100%;
        padding: 0 0.5rem;
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }

    /* Stagger animation for menu items */
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.35s; }
    .nav-menu.active .nav-item:nth-child(7) { animation-delay: 0.4s; }

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

    .nav-link {
        display: flex;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 14px;
        justify-content: center;
        align-items: center;
        color: #2d3748;
        width: 100%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        transition: left 0.3s ease;
        z-index: -1;
    }

    .nav-link:active::before {
        left: 0;
    }

    .nav-link:active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        color: #667eea;
        transform: scale(0.98);
    }

    .nav-buttons {
        display: none;
    }

    .btn-join {
        display: inline-block;
        margin: 1.5rem auto 1rem;
        width: calc(100% - 3rem);
        text-align: center;
        padding: 1.2rem;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
        -webkit-tap-highlight-color: transparent;
    }

    .btn-join:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }

    /* Mobile dropdown: Enhanced accordion style with scrolling */
    .dropdown-menu {
        position: static;
        min-width: 100%;
        max-width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(135deg, rgba(247, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 2px solid rgba(102, 126, 234, 0.1);
        border-radius: 16px;
        padding: 0;
        margin: 0.5rem 0;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    }

    .dropdown.open .dropdown-menu {
        display: block;
        max-height: 600px; /* Maximum height before scrolling */
        padding: 1.5rem 1rem;
        opacity: 1;
        overflow-y: auto; /* Enable vertical scrolling */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Custom scrollbar for dropdown (webkit browsers) */
    .dropdown.open .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown.open .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(59, 130, 246, 0.1);
        border-radius: 10px;
    }

    .dropdown.open .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--gradient-primary);
        border-radius: 10px;
    }

    .dropdown.open .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: var(--gradient-secondary);
    }

    /* Scroll indicator for mobile dropdown */
    .dropdown.open .dropdown-menu::after {
        content: '⌄';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0.5rem;
        background: linear-gradient(to top, rgba(248, 250, 252, 0.98) 0%, transparent 100%);
        color: var(--primary-light);
        font-size: 1.5rem;
        pointer-events: none;
        animation: bounce 2s infinite;
    }

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

    /* Hide scroll indicator when at bottom */
    .dropdown.open .dropdown-menu.scrolled-bottom::after {
        display: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-toggle i {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown.open .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }

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

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 0.5rem; /* Extra space for scrolling */
    }

    .dropdown-col {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 0;
    }

    .dropdown-col::after {
        display: none;
    }

    .dropdown-col:last-child {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    .dropdown-col h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: left;
        justify-content: flex-start;
        color: #667eea;
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, rgba(247, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
        z-index: 1;
    }

    .dropdown-link {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        text-align: left;
        justify-content: flex-start;
        border-radius: 10px;
        margin-bottom: 0.3rem;
        background: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-link:active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
        transform: scale(0.98);
        color: #667eea;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #ffffff !important;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 1rem auto;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .btn-start-project {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .network-container {
        width: 280px !important;
        height: 280px !important;
        margin: 0 auto;
    }

    .orbit-1 {
        width: 200px !important;
        height: 200px !important;
    }

    .orbit-2 {
        width: 270px !important;
        height: 270px !important;
    }

    .center-circle {
        width: 100px !important;
        height: 100px !important;
    }

    .center-text .number {
        font-size: 1.6rem !important;
    }

    .center-text .label {
        font-size: 0.75rem !important;
    }

    .profile-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    /* Sections Mobile */
    .services, .why-us, .recent-work {
        padding: 3rem 0;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-image {
        height: 200px;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section ul {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .company-logos {
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo-item {
        font-size: 0.85rem;
    }

    /* Feature Chips Mobile */
    .feature-chips {
        justify-content: center;
        gap: 0.4rem;
    }

    .chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Small Mobile (max-width: 480px) - Enhanced Touch Experience */
@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 1.1rem;
    }

    .nav-logo img {
        height: 60px !important;
    }

    /* Larger touch targets for hamburger */
    .hamburger {
        padding: 14px;
        min-width: 55px;
        min-height: 55px;
    }

    .bar {
        width: 30px;
        height: 3.5px;
        margin: 4.5px 0;
    }

    /* Enhanced mobile menu */
    .nav-menu {
        padding: 90px 1rem 2rem;
    }

    .nav-link {
        padding: 1.3rem 1.2rem;
        font-size: 1.15rem;
        border-radius: 12px;
    }

    .btn-join {
        width: calc(100% - 2rem);
        padding: 1.3rem;
        font-size: 1.15rem;
        margin: 1.5rem auto 1rem;
    }

    /* Dropdown enhancements for small screens */
    .dropdown.open .dropdown-menu {
        max-height: 500px; /* Slightly smaller on small screens */
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dropdown-col {
        padding-bottom: 1rem;
    }

    .dropdown-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .dropdown-col h4 {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    /* Ensure scrollbar is visible on small screens */
    .dropdown.open .dropdown-menu::-webkit-scrollbar {
        width: 8px; /* Slightly wider for easier use */
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.2;
        color: #ffffff !important;
    }

    .hero-content p {
        font-size: 0.95rem;
        color: #ffffff !important;
    }

    .btn-start-project,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.95rem;
    }

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

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .why-icon {
        width: 70px;
        height: 70px;
    }

    .why-icon i {
        font-size: 1.8rem;
    }

    .why-card h3 {
        font-size: 1.2rem;
    }

    .network-container {
        width: 250px !important;
        height: 250px !important;
    }

    .orbit-1 {
        width: 180px !important;
        height: 180px !important;
    }

    .orbit-2 {
        width: 240px !important;
        height: 240px !important;
    }

    .center-circle {
        width: 90px !important;
        height: 90px !important;
    }

    .center-text .number {
        font-size: 1.4rem !important;
    }

    .center-text .label {
        font-size: 0.7rem !important;
    }

    .profile-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .footer-logo h2 {
        font-size: 1.5rem;
    }

    .contact-item {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
    }

    .hamburger .bar {
        width: 22px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0.6rem 10px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

    .nav-logo img {
        height: 50px !important;
    }

    .hero-title {
        font-size: 1.5rem;
        color: #ffffff !important;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .service-card,
    .why-card,
    .work-card {
        padding: 1.2rem 0.8rem;
    }
}

/* Landscape Mobile (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding: 1rem 0;
    }

    .nav-item {
        margin: 0.3rem 0;
    }

    .nav-link {
        padding: 0.5rem 1rem;
    }

    /* Theme toggle positioned in mobile menu */
    .theme-toggle {
        position: fixed;
        top: 18px;
        right: 80px;
        z-index: 1001;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        -webkit-tap-highlight-color: transparent;
    }

    .theme-toggle:active {
        transform: scale(0.9);
    }

    .hero {
        min-height: auto !important;
    }

    .network-container {
        width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-to-top,
    .theme-toggle {
        display: none;
    }

    body {
        padding-top: 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .dropdown-link,
    .btn-join,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .service-card:hover,
    .work-card:hover,
    .why-card:hover {
        transform: none;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Loading animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Intersection Observer animations will be handled by JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* Night Mode (Dark Theme) */
/* Scoped using body.dark-mode to avoid breaking existing styles */
/* ===================== */
body.dark-mode {
    color: #e5e7eb;
    background: #0b0f14;
}

/* Navbar */
body.dark-mode .nav-link,
body.dark-mode .btn-login,
body.dark-mode .nav-logo h2 { color: #e5e7eb; }
body.dark-mode .nav-logo h2::before { background: #e5e7eb; }
body.dark-mode .navbar.scrolled,
body.dark-mode .navbar.menu-open { background: rgba(17,24,39,0.9); border-bottom: 1px solid rgba(255,255,255,0.08); }
body.dark-mode .navbar.scrolled .nav-logo h2,
body.dark-mode .navbar.scrolled .nav-link,
body.dark-mode .navbar.scrolled .btn-login { color: #e5e7eb; }

/* Dark Mode Navbar Styles */
body.dark-mode .navbar {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled,
body.dark-mode .navbar.menu-open {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .nav-link,
body.dark-mode .btn-login,
body.dark-mode .nav-logo h2 { 
    color: #e5e7eb; 
}

body.dark-mode .navbar.scrolled .nav-link,
body.dark-mode .navbar.scrolled .btn-login,
body.dark-mode .navbar.scrolled .nav-logo h2 { 
    color: #e5e7eb; 
}

body.dark-mode .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode .nav-logo h2::before {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

body.dark-mode .btn-join {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

body.dark-mode .btn-join:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

body.dark-mode .bar {
    background: #e5e7eb;
}

body.dark-mode .navbar.scrolled .bar,
body.dark-mode .navbar.menu-open .bar {
    background: #e5e7eb;
}

/* Dark Mode Dropdown */
body.dark-mode .dropdown-menu { 
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dropdown-menu::before {
    background: rgba(31, 41, 55, 0.98);
    border-left-color: rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-col h4 { 
    color: #fbbf24;
}

body.dark-mode .dropdown-col h4::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

body.dark-mode .dropdown-link { 
    color: #e5e7eb; 
}

body.dark-mode .dropdown-link::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

body.dark-mode .dropdown-link:hover { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24; 
}

/* Mobile menu panel in dark mode */
@media (max-width: 768px) {
    body.dark-mode .nav-menu { 
        background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    body.dark-mode .dropdown-menu { 
        background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    }
    
    body.dark-mode .nav-link { 
        color: #e5e7eb; 
    }
    
    body.dark-mode .nav-link:hover {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
        color: #fbbf24;
    }
}

/* Dropdown */
body.dark-mode .dropdown-menu { background: rgba(17,24,39,0.97); border: 1px solid rgba(255,255,255,0.06); }
body.dark-mode .dropdown-col h4 { color: #cbd5e1; }
body.dark-mode .dropdown-link { color: #e5e7eb; }
body.dark-mode .dropdown-link:hover { background: rgba(255,255,255,0.06); color: #a5b4fc; }

/* Hero text in dark */
body.dark-mode .hero-content { color: #f3f4f6; }
body.dark-mode .hero-title { color: #f9fafb; }
body.dark-mode .btn-start-project { background: #111827; color: #f9fafb; }

/* Chips */
body.dark-mode .chip { background: #0f172a; color: #e5e7eb; border-color: rgba(255,255,255,0.08); }
body.dark-mode .chip.feature-highlight { color: #fff; }

/* Sections */
body.dark-mode .services { background: #0f1620; }
body.dark-mode .recent-work { background: #0f1620; }
body.dark-mode .why-us { background: #0b0f14; }
body.dark-mode .section-header h2 { color: #e5e7eb; }
body.dark-mode .section-header p { color: #cbd5e1; }

/* Cards */
body.dark-mode .service-card { background: #0f172a; border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
body.dark-mode .service-card h3 { color: #e5e7eb; }
body.dark-mode .service-card p { color: #cbd5e1; }
body.dark-mode .service-features li { color: #cbd5e1; }

body.dark-mode .why-card:hover { background: rgba(255,255,255,0.04); }
body.dark-mode .why-card h3 { color: #e5e7eb; }
body.dark-mode .why-card p { color: #cbd5e1; }

body.dark-mode .work-card { background: #0f172a; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
body.dark-mode .work-overlay { background: rgba(0,0,0,0.6); }

/* Footer stays dark; just ensure link contrast */
body.dark-mode .footer-links a,
body.dark-mode .footer-section ul li a { color: #94a3b8; }
body.dark-mode .footer-section ul li a:hover,
body.dark-mode .footer-links a:hover { color: #fff; }

/* Scroll to top button */
body.dark-mode .scroll-to-top { box-shadow: 0 4px 15px rgba(0,0,0,0.5); }

