        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #1a202c;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Enhanced Color System */
        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #ec4899;
            --accent: #10b981;
            --warning: #f59e0b;
            --success: #059669;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-dark: #1e293b;
            --text-primary: #1f2937;
            --text-secondary: #64748b;
            --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
            --gradient-2: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
            --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            --shadow: 0 10px 25px rgba(0,0,0,0.1);
            --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
            --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --border-radius: 0.5rem;
            --border-radius-lg: 1rem;
            --border-radius-xl: 1.5rem;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Enhanced Header & Navigation */
        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px) saturate(180%);
            color: var(--text-primary);
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
            border-bottom: 1px solid rgba(99, 102, 241, 0.1);
            transition: var(--transition);
        }

        /* Ensure header stays fixed */
        body {
            padding-top: 80px;
        }

        .header.scrolled {
            background: rgba(15, 23, 42, 0.95);
            box-shadow: var(--shadow-lg);
        }

        .header.scrolled .nav-menu a {
             color: white;
        }

        .header.scrolled .logo-text {
            color: white;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient-1);
            border-radius: var(--border-radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .logo-text {
            color: var(--primary);
            transition: var(--transition);
        }

        .logo:hover .logo-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-menu a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            position: relative;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            overflow: hidden;
        }

       /* --- FINAL NAVIGATION LINK STYLES --- */

/* This rule styles the links in their default state. */
.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    position: relative;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* This rule creates the highlight effect when you hover or select a link. */
.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: var(--gradient-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

        .nav-menu a:hover::before,
        .nav-menu a.active::before {
            left: 0;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        /* Enhanced Hero Section */
        .hero {
            background: var(--gradient-hero);
            color: white;
            padding: 40px 0 80px;
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .hero::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 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23grad1)"/><circle cx="800" cy="600" r="200" fill="url(%23grad1)"/><circle cx="600" cy="100" r="100" fill="url(%23grad1)"/></svg>') center/cover;
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-20px) rotate(120deg); }
            66% { transform: translateY(-10px) rotate(240deg); }
        }

        .hero-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-text h1 {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            line-height: 1.1;
            font-weight: 900;
            min-height: 220px;
        }

        .typing-cursor {
            display: inline-block;
            background-color: white;
            margin-left: 3px;
            width: 3px;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .hero-text .subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .hero-text p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.9;
            line-height: 1.6;
        }

        .hero-visual {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-card {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(20px);
            border-radius: var(--border-radius-xl);
            padding: 3rem;
            border: 1px solid rgba(255,255,255,0.2);
            transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
            transition: var(--transition);
            box-shadow: var(--shadow-xl);
            text-align: center;
            animation: floatUp 6s ease-in-out infinite;
        }

        .hero-card:hover {
            transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
        }

        @keyframes floatUp {
            0%, 100% { transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0px); }
            50% { transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(-15px); }
        }

        .hero-card-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            transition: var(--transition);
            border: 2px solid transparent;
            cursor: pointer;
            font-size: 1.1rem;
            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: var(--transition);
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: white;
            color: var(--primary);
            box-shadow: var(--shadow);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border-color: white;
        }

        .btn-secondary:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
        }

        /* Tech Stack Section */
        .tech-stack {
            background: var(--bg-dark);
            color: white;
            text-align: center;
            padding: 3rem 0;
        }

        .tech-icons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .tech-icon {
            font-size: 3rem;
            color: rgba(255, 255, 255, 0.7);
            transition: var(--transition);
            cursor: pointer;
        }

        .tech-icon:hover {
            color: var(--accent);
            transform: scale(1.3) rotate(5deg);
            text-shadow: 0 0 20px currentColor;
        }

        /* Services Section */
        .services {
            padding: 100px 0;
            background: var(--bg-secondary);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section-title {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title .eyebrow {
            font-size: 0.875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .section-title h2 {
            font-size: 3.5rem;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            font-weight: 900;
            line-height: 1.1;
        }

        .section-title p {
            font-size: 1.25rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background: white;
            padding: 3rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-1);
            transform: scaleX(0);
            transition: var(--transition);
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .service-card > * {
            position: relative;
            z-index: 2;
        }

        .service-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-1);
            border-radius: var(--border-radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: white;
            font-size: 2rem;
            position: relative;
            overflow: hidden;
        }

        .service-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            transform: scale(0);
            transition: var(--transition);
        }

        .service-card:hover .service-icon::after {
            transform: scale(1);
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .service-card h3 {
            color: var(--text-primary);
            margin-bottom: 1rem;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .service-card p {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* Stats Section */
        .stats {
            background: var(--gradient-2);
            color: white;
            padding: 80px 0;
            position: relative;
        }

        .stats::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 300,100 0,300"/><polygon fill="rgba(255,255,255,0.05)" points="1000,1000 700,900 1000,700"/></svg>');
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .stat-item {
            text-align: center;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius-xl);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: var(--transition);
        }

        .stat-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-item h3 {
            font-size: 4rem;
            margin-bottom: 0.5rem;
            color: white;
            font-weight: 800;
        }

        .stat-item p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* Enhanced Portfolio Preview Section with Slider */
        .portfolio-preview {
            padding: 100px 0;
            background: white;
        }

        .featured-portfolio-slider {
            position: relative;
            overflow: hidden;
            margin-top: 4rem;
        }

        .featured-portfolio-wrapper {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .featured-portfolio-slide {
            min-width: 100%;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            padding: 0 1rem;
        }

        .portfolio-card {
            background: white;
            border-radius: var(--border-radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .portfolio-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .portfolio-image {
            height: 280px;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            position: relative;
            overflow: hidden;
        }

        .portfolio-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: var(--transition);
        }

        .portfolio-card:hover .portfolio-image img {
            transform: scale(1.05);
        }

        .portfolio-image i {
            position: relative;
            z-index: 2;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(99, 102, 241, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

        .portfolio-card:hover .portfolio-overlay {
            opacity: 1;
        }

        .portfolio-content {
            padding: 2rem;
        }

        .portfolio-content h3 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
            font-weight: 700;
        }

        .portfolio-content .client {
            color: var(--primary);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .portfolio-content p {
            color: var(--text-secondary);
            font-size: 1rem;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .portfolio-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tag {
            background: var(--gradient-1);
            color: white;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* Featured Portfolio Navigation */
        .featured-portfolio-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin-top: 2rem;
            position: relative;
        }

        .featured-nav-btn {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--text-primary);
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .featured-nav-btn:hover {
            background: white;
            box-shadow: var(--shadow-lg);
            transform: scale(1.1);
        }

        .featured-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .featured-portfolio-dots {
            display: flex;
            gap: 0.5rem;
            margin: 0 1rem;
        }

        .featured-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
            opacity: 0.5;
            position: relative;
        }

        .featured-dot.active {
            background: var(--primary);
            opacity: 1;
            transform: scale(1.2);
        }

        .featured-dot:hover {
            opacity: 0.8;
            transform: scale(1.1);
        }

        .featured-slide-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 600;
        }

        /* Auto-slide progress indicator */
        .auto-slide-progress {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: rgba(99, 102, 241, 0.2);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: var(--primary);
            width: 0%;
            transition: width linear;
            border-radius: 2px;
        }

        /* Project Detail Pages */
        .project-header {
            background: var(--gradient-1);
            color: white;
            padding: 40px 0 60px;
            position: relative;
            min-height: 20vh;
            display: flex;
            align-items: center;
        }

        .project-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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/></svg>');
        }

        .project-info {
            position: relative;
            z-index: 2;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
            text-decoration: none;
            font-weight: 600;
            margin-bottom: 2rem;
            transition: var(--transition);
            opacity: 0.8;
        }

        .back-button:hover {
            transform: translateX(-5px);
            opacity: 1;
        }

        .project-details {
            padding: 80px 0;
            background: var(--bg-secondary);
        }

        .project-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 4rem;
            margin-bottom: 4rem;
        }

        .project-description {
            background: white;
            padding: 3rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow);
        }

        .project-description h3 {
            color: var(--text-primary);
            font-size: 1.8rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .project-description p {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 2rem;
        }

        .features-list {
            list-style: none;
            margin-bottom: 2rem;
        }

        .features-list li {
            color: var(--text-secondary);
            padding: 0.5rem 0;
            padding-left: 2rem;
            position: relative;
            line-height: 1.6;
        }

        .features-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
            font-size: 1.2rem;
        }

        .project-meta {
            background: white;
            padding: 2rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow);
            height: fit-content;
        }

        .meta-item {
            margin-bottom: 1.5rem;
        }

        .meta-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }

        .meta-value {
            color: var(--text-primary);
            font-weight: 600;
        }

        /* Enhanced Image Slider */
        .image-slider {
            background: white;
            border-radius: var(--border-radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            margin-bottom: 3rem;
            position: relative;
        }

        .slider-container {
            position: relative;
            overflow: hidden;
        }

        .slider-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide {
            min-width: 100%;
            height: 500px;
            position: relative;
            cursor: pointer;
            overflow: hidden;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .slide:hover img {
            transform: scale(1.05);
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            backdrop-filter: blur(2px);
        }

        .slide:hover .slide-overlay {
            opacity: 1;
        }

        .zoom-icon {
            color: white;
            font-size: 3rem;
            text-shadow: 0 0 20px rgba(255,255,255,0.5);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .slide:hover .zoom-icon {
            transform: scale(1);
        }

        .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--text-primary);
            transition: var(--transition);
            z-index: 3;
            box-shadow: var(--shadow);
        }

        .slider-nav:hover {
            background: white;
            box-shadow: var(--shadow-lg);
            transform: translateY(-50%) scale(1.1);
        }

        .slider-nav.prev {
            left: 30px;
        }

        .slider-nav.next {
            right: 30px;
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            gap: 1rem;
            padding: 2rem;
            background: var(--bg-secondary);
        }

        .dot {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
            opacity: 0.5;
            position: relative;
            overflow: hidden;
        }

        .dot::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary);
            border-radius: 50%;
            transform: scale(0);
            transition: var(--transition);
        }

        .dot.active::before {
            transform: scale(1);
        }

        .dot.active {
            opacity: 1;
            transform: scale(1.3);
        }

        .dot:hover {
            opacity: 0.8;
            transform: scale(1.2);
        }

        /* Enhanced Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            backdrop-filter: blur(10px);
        }

        .lightbox.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .lightbox-content {
            max-width: 90vw;
            max-height: 90vh;
            position: relative;
            animation: scaleIn 0.3s ease;
        }

        @keyframes scaleIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .lightbox img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-xl);
        }

        .lightbox-close {
            position: absolute;
            top: -50px;
            right: -50px;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border: none;
            color: white;
            font-size: 2rem;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            border: 2px solid rgba(255,255,255,0.2);
        }

        .lightbox-close:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.1);
        }

        /* Contact Section */
        .contact {
            background: var(--bg-secondary);
            padding: 100px 0;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 4rem;
        }

        .contact-info {
            background: white;
            padding: 3rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1rem;
            border-radius: 15px;
            transition: var(--transition);
        }

        .contact-item:hover {
            background: var(--bg-secondary);
            transform: translateX(5px);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            background: var(--gradient-1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        .contact-form {
            background: white;
            padding: 3rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow);
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid #e2e8f0;
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: var(--transition);
            background: var(--bg-secondary);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        /* Footer */
        .footer {
            background: var(--bg-dark);
            color: white;
            padding: 60px 0 30px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h4 {
            color: white;
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .footer-section ul {
            list-style: none;
            line-height: 2;
        }

        .footer-section a {
            color: #94a3b8;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-section a:hover {
            color: white;
            transform: translateX(5px);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            width: 50px;
            height: 50px;
            background: var(--gradient-1);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }

        .social-links a:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #374151;
            color: #94a3b8;
        }

        /* Page Transitions */
        .page {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: var(--transition);
        }

        .page.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
            animation: fadeInPage 0.6s ease;
        }

        @keyframes fadeInPage {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* CTA Section */
        .cta-section {
            background: var(--gradient-3);
            color: white;
            text-align: center;
            padding: 4rem 0;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .cta-content {
            position: relative;
            z-index: 2;
        }

        .cta-content h2 {
            font-size: 2.5rem;
            font-weight: 900;
            margin-bottom: 1rem;
        }

        .cta-content p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 3rem;
                min-height: 180px;
            }

            .section-title h2 {
                font-size: 2.5rem;
            }

            .project-content {
                grid-template-columns: 1fr;
            }

            .featured-portfolio-slide {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .featured-portfolio-slide .portfolio-card:nth-child(n+3) {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: rgba(15, 23, 42, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                padding: 2rem;
                gap: 1rem;
                box-shadow: var(--shadow-xl);
            }

            .nav-menu.active {
                display: flex;
            }

            .nav-menu a {
                color: white;
                width: 100%;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 2.5rem;
                min-height: 150px;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .contact-content {
                grid-template-columns: 1fr;
            }

            .slider-nav {
                width: 50px;
                height: 50px;
            }

            .slider-nav.prev {
                left: 20px;
            }

            .slider-nav.next {
                right: 20px;
            }

            .lightbox-close {
                top: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
            }

            .featured-portfolio-slide {
                grid-template-columns: 1fr;
                padding: 0;
            }

            .featured-nav-btn {
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 2rem;
                min-height: 120px;
            }

            .stat-item h3 {
                font-size: 2.5rem;
            }

            .slide {
                height: 300px;
            }

            .portfolio-image {
                height: 200px;
            }

            .btn {
                font-size: 1rem;
                padding: 0.875rem 1.5rem;
            }

            .slider-nav {
                display: none;
            }

            .featured-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

            .featured-portfolio-dots {
                margin: 0 0.5rem;
            }

            .featured-dot {
                width: 10px;
                height: 10px;
            }
        }

        /* Animation Keyframes */
        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Add this new rule for the coding texture overlay */
/* Updated rule for a denser coding texture overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cstyle%3E.symbol%7Bfont-family:monospace;font-size:20px;fill:white;font-weight:bold%7D%3C/style%3E%3Ctext x='50' y='80' class='symbol'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='250' y='120' class='symbol'%3E{...}%3C/text%3E%3Ctext x='150' y='200' class='symbol'%3E=&gt;%3C/text%3E%3Ctext x='300' y='280' class='symbol'%3E();%3C/text%3E%3Ctext x='80' y='350' class='symbol'%3Econst%3C/text%3E%3Ctext x='20' y='30' class='symbol'%3E//%3C/text%3E%3Ctext x='330' y='60' class='symbol'%3E[]%3C/text%3E%3Ctext x='180' y='40' class='symbol'%3Evar%3C/text%3E%3Ctext x='20' y='280' class='symbol'%3E%26amp;%26amp;%3C/text%3E%3Ctext x='210' y='380' class='symbol'%3Efunc%3C/text%3E%3C/svg%3E");
    background-size: 350px;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}