:root {
    /* Global Variables - Locked to Dark Theme */
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --secondary: #34d399;
    --accent: #fbbf24;
    --danger: #f87171;
    --background: #0f172a;
    
    --surface: #1e293b;
    --surface-dark: #334155;
    --surface-darker: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border: #334155;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Rest of your existing CSS below (h1, .container, .navbar, .hero, .pyramid, etc.) */
h1, h2, h3, h4, .logo { font-family: 'Poppins', sans-serif; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
/* ... (Keep all the rest of your styling exactly as it was) */

    /* Magic UI Effects */
    .magic-hover {
        transition: var(--transition);
        position: relative;
    }

    .magic-hover:hover {
        transform: translateY(-5px);
    }

    .gradient-text {
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .gradient-border {
        position: relative;
        border-radius: var(--radius);
    }

    .gradient-border::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: var(--gradient);
        border-radius: calc(var(--radius) + 2px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gradient-border:hover::before {
        opacity: 1;
    }

    .glow {
        animation: glow 2s ease-in-out infinite alternate;
    }

    @keyframes glow {
        from {
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
        }
        to {
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
        }
    }

    /* Navigation */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(var(--background), 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 1.25rem 0;
        border-bottom: 1px solid transparent;
        transition: var(--transition);
    }

    .navbar.scrolled {
        padding: 0.9rem 0;
        border-bottom-color: var(--border);
        box-shadow: var(--shadow);
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.875rem;
        font-weight: 800;
        color: var(--text-primary);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .logo-accent {
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }

    .nav-links {
        display: flex;
        gap: 2.5rem;
        list-style: none;
    }

    .nav-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: var(--transition);
        position: relative;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--gradient);
        border-radius: 3px;
        transition: width 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--text-primary);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1.25rem;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .theme-toggle:hover {
        color: var(--primary);
        border-color: var(--primary);
        transform: rotate(15deg);
    }

    .mobile-toggle {
        display: none;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background: var(--surface);
        border: 1px solid var(--border);
        font-size: 1.5rem;
        color: var(--text-secondary);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .mobile-toggle:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 6rem 0 4rem;
        position: relative;
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 70%;
        height: 140%;
        background: var(--gradient);
        opacity: 0.03;
        border-radius: 50%;
        filter: blur(100px);
        z-index: -1;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 5rem;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 3.75rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-text h1 span {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        color: var(--text-secondary);
        margin-bottom: 2.5rem;
        font-weight: 400;
        max-width: 90%;
        font-family: 'Inter', sans-serif;
    }

    .highlight {
        background: var(--gradient);
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-sm);
        color: white;
        font-weight: 600;
    }

    .cta-buttons {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 2.5rem;
    }

    .btn {
        padding: 1.125rem 2.25rem;
        border-radius: var(--radius);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        border: 2px solid transparent;
        cursor: pointer;
        font-size: 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: left 0.7s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn-primary {
        background: var(--gradient);
        color: white;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
    }

    .btn-secondary {
        background-color: transparent;
        color: var(--text-primary);
        border-color: var(--border);
    }

    .btn-secondary:hover {
        background-color: var(--surface);
        border-color: var(--primary);
        transform: translateY(-3px);
    }

    .btn-icon {
        font-size: 1.25rem;
    }

    /* Tech Stack */
    .tech-stack {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 2.5rem;
    }

    .tech-item {
        padding: 0.75rem 1.25rem;
        background: var(--surface);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: var(--transition);
    }

    .tech-item:hover {
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    /* 3D Model Container - IMPROVED */
    .model-container {
        width: 100%;
        height: 420px;
        border-radius: var(--radius-lg);
        background: linear-gradient(145deg, var(--surface) 0%, var(--surface-dark) 100%);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border);
    }

    .model-scene {
        width: 100%;
        height: 100%;
        position: relative;
        perspective: 1000px;
    }

    .geometric-scene {
        position: absolute;
        top: 50%;
        left: 50%;
        transform-style: preserve-3d;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
    }

    .pyramid {
        position: absolute;
        top: 50%;
        left: 50%;
        transform-style: preserve-3d;
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
        animation: rotatePyramid 20s infinite linear;
    }

    .pyramid-side {
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        opacity: 0.8;
    }

    .pyramid-front {
        border-width: 0 100px 173.2px 100px;
        border-color: transparent transparent var(--primary) transparent;
        transform: translateZ(50px);
    }

    .pyramid-back {
        border-width: 0 100px 173.2px 100px;
        border-color: transparent transparent var(--secondary) transparent;
        transform: rotateY(180deg) translateZ(50px);
    }

    .pyramid-left {
        border-width: 0 100px 173.2px 100px;
        border-color: transparent transparent var(--accent) transparent;
        transform: rotateY(-90deg) translateZ(50px);
    }

    .pyramid-right {
        border-width: 0 100px 173.2px 100px;
        border-color: transparent transparent var(--primary-dark) transparent;
        transform: rotateY(90deg) translateZ(50px);
    }

    .pyramid-base {
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(139, 92, 246, 0.2);
        transform: rotateX(90deg) translateZ(-86.6px);
    }

    .floating-cubes {
        position: absolute;
        top: 20%;
        left: 20%;
        transform-style: preserve-3d;
        animation: floatCube1 8s infinite ease-in-out;
    }

    .floating-cubes:nth-child(2) {
        top: 70%;
        left: 70%;
        animation: floatCube2 10s infinite ease-in-out;
    }

    .floating-cubes:nth-child(3) {
        top: 30%;
        left: 80%;
        animation: floatCube3 12s infinite ease-in-out;
    }

    .mini-cube {
        width: 30px;
        height: 30px;
        position: relative;
        transform-style: preserve-3d;
        transform: rotateX(45deg) rotateY(45deg);
    }

    .mini-face {
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--primary);
        border: 1px solid var(--border);
        opacity: 0.6;
    }

    .mini-face.front { transform: translateZ(15px); background: var(--primary); }
    .mini-face.back { transform: translateZ(-15px) rotateY(180deg); background: var(--secondary); }
    .mini-face.right { transform: translateX(15px) rotateY(90deg); background: var(--accent); }
    .mini-face.left { transform: translateX(-15px) rotateY(-90deg); background: var(--primary-dark); }
    .mini-face.top { transform: translateY(-15px) rotateX(90deg); background: rgba(139, 92, 246, 0.7); }
    .mini-face.bottom { transform: translateY(15px) rotateX(-90deg); background: rgba(16, 185, 129, 0.7); }

    @keyframes rotatePyramid {
        from { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
        to { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
    }

    @keyframes floatCube1 {
        0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
        50% { transform: translateY(-20px) rotateX(180deg) rotateY(180deg); }
    }

    @keyframes floatCube2 {
        0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
        50% { transform: translateY(15px) rotateX(-180deg) rotateY(-180deg); }
    }

    @keyframes floatCube3 {
        0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
        50% { transform: translateY(-25px) rotateX(90deg) rotateY(90deg); }
    }

    .model-controls {
        position: absolute;
        bottom: 1.5rem;
        right: 1.5rem;
        display: flex;
        gap: 0.75rem;
        background: var(--surface);
        padding: 0.75rem;
        border-radius: 2rem;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        z-index: 10;
    }

    .model-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--background);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        font-size: 1.25rem;
    }

    .model-btn:hover {
        background: var(--gradient);
        color: white;
        border-color: transparent;
        transform: scale(1.1);
    }

    .model-info {
        position: absolute;
        bottom: 1.5rem;
        left: 1.5rem;
        background: var(--surface);
        padding: 1rem 1.5rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        z-index: 10;
    }

    .model-info h4 {
        color: var(--primary);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .model-info p {
        color: var(--text-secondary);
        font-size: 0.875rem;
        margin: 0;
    }

    /* India Map Section */
    .map-section {
        padding: 4rem 0;
        background: var(--surface);
    }

    .map-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .map-visual {
        position: relative;
        height: 400px;
        background: linear-gradient(145deg, var(--background) 0%, var(--surface-dark) 100%);
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--border);
    }

    .india-map {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .map-base {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
        fill: var(--primary);
        opacity: 0.1;
        stroke: var(--primary);
        stroke-width: 2;
    }

    .location-marker {
        position: absolute;
        width: 12px;
        height: 12px;
        background: var(--secondary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 20px var(--secondary);
        animation: pulse 2s infinite;
    }

    .location-marker::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 24px;
        background: var(--secondary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.3;
        animation: ripple 2s infinite;
    }

    .location-marker.delhi { top: 40%; left: 60%; }
    .location-marker.mumbai { top: 60%; left: 50%; }
    .location-marker.bangalore { top: 75%; left: 55%; }
    .location-marker.kolkata { top: 45%; left: 70%; }

    @keyframes pulse {
        0%, 100% { transform: translate(-50%, -50%) scale(1); }
        50% { transform: translate(-50%, -50%) scale(1.2); }
    }

    @keyframes ripple {
        0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
        100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
    }

    .map-info h3 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .map-info p {
        color: var(--text-secondary);
        margin-bottom: 2rem;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .map-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-item {
        background: var(--background);
        padding: 1.5rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: 7rem 0;
    }

    .section-header {
        text-align: center;
        margin-bottom: 5rem;
    }

    .section-header h2 {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .section-subtitle {
        color: var(--text-secondary);
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.25rem;
        line-height: 1.7;
    }

    /* Services */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
        margin-top: 4rem;
    }

    .service-card {
        background: var(--surface);
        border-radius: var(--radius);
        padding: 2.5rem;
        border: 1px solid var(--border);
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .service-card p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Projects Grid */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2.5rem;
    }

    .project-card {
        background: var(--surface);
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--border);
        transition: var(--transition);
        height: 100%;
    }

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary);
    }

    .project-img {
        height: 220px;
        background: var(--gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3.5rem;
        position: relative;
        overflow: hidden;
    }

    .project-content {
        padding: 2rem;
    }

    .project-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }

    .project-content p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tag {
        padding: 0.35rem 0.85rem;
        background-color: var(--surface-dark);
        color: var(--text-secondary);
        border-radius: 2rem;
        font-size: 0.85rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .tag:hover {
        background: var(--gradient);
        color: white;
        transform: scale(1.05);
    }

    /* Contact Section - UPDATED */
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: start;
    }

    .contact-info h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
    }

    .contact-info p {
        color: var(--text-secondary);
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .contact-details {
        list-style: none;
        margin-top: 2.5rem;
    }

    .contact-details li {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
        color: var(--text-secondary);
        font-size: 1.05rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-sm);
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 1.25rem;
        transition: var(--transition);
    }

    .contact-details li:hover .contact-icon {
        background: var(--gradient);
        color: white;
        transform: scale(1.1);
    }

    .form-group {
        margin-bottom: 1.75rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 1rem;
    }

    .form-control {
        width: 100%;
        padding: 1.125rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        transition: var(--transition);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    textarea.form-control {
        min-height: 160px;
        resize: vertical;
    }

    .form-message {
        padding: 1.25rem;
        border-radius: var(--radius-sm);
        margin-bottom: 1.75rem;
        text-align: center;
        display: none;
        font-weight: 500;
    }

    .form-message.success {
        background: rgba(16, 185, 129, 0.1);
        color: var(--secondary);
        border: 1px solid rgba(16, 185, 129, 0.3);
        display: block;
    }

    .form-message.error {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
        display: block;
    }

    /* Footer */
    footer {
        background: var(--surface);
        padding: 4rem 0 3rem;
        border-top: 1px solid var(--border);
        margin-top: 4rem;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-logo {
        font-size: 1.875rem;
        font-weight: 800;
        color: var(--text-primary);
        font-family: 'Poppins', sans-serif;
    }

    .footer-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 500;
    }

    .footer-links a:hover {
        color: var(--primary);
    }

    .social-links {
        display: flex;
        gap: 1rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background: var(--surface-dark);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: var(--transition);
        font-size: 1.25rem;
    }

    .social-link:hover {
        background: var(--gradient);
        color: white;
        transform: translateY(-3px);
    }

    .copyright {
        color: var(--text-tertiary);
        font-size: 0.9rem;
        text-align: center;
        margin-top: 3rem;
        width: 100%;
    }

    /* Scroll to top */
    .scroll-top {
        position: fixed;
        bottom: 2.5rem;
        right: 2.5rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--gradient);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        transform: translateY(-5px) scale(1.1);
    }

    /* Spacer Section */
    .spacer-section {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 3rem 0;
        background: var(--background);
    }

    .explore-btn {
        padding: 0.875rem 1.75rem;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        h1 {
            font-size: 3.25rem;
        }
        
        h2 {
            font-size: 2.5rem;
        }
        
        .hero-content {
            gap: 4rem;
        }
    }

    @media (max-width: 992px) {
        .hero-content,
        .contact-container,
        .map-container {
            grid-template-columns: 1fr;
            gap: 4rem;
        }

        .hero-text h1 {
            font-size: 2.75rem;
        }

        .hero-subtitle {
            font-size: 1.25rem;
        }

        .model-container {
            height: 380px;
            order: -1;
        }

        .map-visual {
            height: 350px;
        }
    }

    @media (max-width: 768px) {
        .mobile-toggle {
            display: flex;
        }

        .nav-links {
            position: fixed;
            top: 85px;
            left: 0;
            width: 100%;
            background: var(--background);
            flex-direction: column;
            padding: 2rem;
            gap: 1.5rem;
            border-bottom: 1px solid var(--border);
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }

        .nav-links.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .section-header h2 {
            font-size: 2.5rem;
        }

        .section-subtitle {
            font-size: 1.125rem;
        }

        .services-grid,
        .projects-grid {
            grid-template-columns: 1fr;
        }

        .map-stats {
            grid-template-columns: 1fr;
        }

        .spacer-section {
            padding: 2rem 1rem;
        }

        .explore-btn {
            width: 100%;
            justify-content: center;
            max-width: 400px;
        }

        .footer-content {
            flex-direction: column;
            text-align: center;
            gap: 2.5rem;
        }

        .footer-links {
            justify-content: center;
            flex-wrap: wrap;
        }
    }

    @media (max-width: 576px) {
        .container {
            padding: 0 1.25rem;
        }

        .hero-text h1 {
            font-size: 2.25rem;
        }

        .hero-subtitle {
            font-size: 1.125rem;
        }

        .cta-buttons {
            flex-direction: column;
        }

        .btn {
            width: 100%;
            justify-content: center;
        }

        .spacer-section {
            padding: 1.5rem 0.75rem;
        }

        .explore-btn {
            width: 100%;
            padding: 0.75rem 1.25rem;
        }

        .section-header h2 {
            font-size: 2rem;
        }

        .model-container {
            height: 300px;
        }

        .pyramid-front,
        .pyramid-back,
        .pyramid-left,
        .pyramid-right {
            border-width: 0 80px 138.6px 80px;
        }

        .pyramid-base {
            width: 160px;
            height: 160px;
            transform: rotateX(90deg) translateZ(-69.3px);
        }

        .map-visual {
            height: 250px;
        }

        .service-card {
            padding: 2rem;
        }

        .scroll-top {
            bottom: 1.5rem;
            right: 1.5rem;
            width: 48px;
            height: 48px;
            font-size: 1.25rem;
        }
    }

    @media (max-width: 400px) {
        h1 {
            font-size: 2rem;
        }
        
        h2 {
            font-size: 1.75rem;
        }
        
        .hero-text h1 {
            font-size: 1.875rem;
        }
        
        .tech-stack {
            gap: 0.5rem;
        }
        
        .tech-item {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
        }
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-up {
        animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .delay-1 {
        animation-delay: 0.1s;
    }

    .delay-2 {
        animation-delay: 0.2s;
    }

    .delay-3 {
        animation-delay: 0.3s;
    }

    .delay-4 {
        animation-delay: 0.4s;
    }

    .delay-5 {
        animation-delay: 0.5s;
    }

    .opacity-0 {
        opacity: 0;
    }

    /* Loading Animation */
    .loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--background);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .loading.hidden {
        opacity: 0;
        visibility: hidden;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 3px solid var(--border);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    .earth {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: url("https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg");
    background-size: cover;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(15deg);
    animation: earthSpin 18s linear infinite;
    box-shadow:
        inset -20px 0 40px rgba(0,0,0,0.6),
        0 0 30px rgba(56,189,248,0.35);
    z-index: 6; /* pyramid se upar */
}

@keyframes earthSpin {
    from {
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(360deg);
    }
}
   .earth {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden; /* 🔥 MOST IMPORTANT */

    background-image: url("https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg");
    background-repeat: repeat-x;

    /* 🔥 FIX HERE */
    background-size: 180% 140%;
    background-position: 10% 15%;

    animation: earthSpin 10s linear infinite;

    box-shadow:
        inset -30px 0 45px rgba(0,0,0,0.75),
        0 0 40px rgba(56,189,248,0.4);
}
@keyframes earthSpin {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}
/* container anchor */
.map-visual {
    position: relative;
    overflow: hidden;
}

/* wrapper */
.orbit-3d-wrapper {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    perspective: 900px;
}

/* center pill */
.orbit-center {
    position: absolute;
    z-index: 10;

    padding: 1.2rem 2rem;
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.35em;

    color: #60a5fa;
    background: radial-gradient(circle at top,
        rgba(30,41,59,0.95),
        rgba(2,6,23,0.95)
    );

    border: 1px solid rgba(148,163,184,0.25);
    box-shadow:
        0 0 25px rgba(96,165,250,0.35),
        inset 0 0 20px rgba(0,0,0,0.6);
}

/* ORBIT RING */
.orbit-3d {
    position: relative;
    width: 280px;
    height: 280px;

    transform-style: preserve-3d;
    transform: rotateX(65deg);
    animation: orbitSpin 22s linear infinite;
}

/* ITEMS */
.orbit-3d span {
    position: absolute;
    top: 50%;
    left: 50%;

    transform:
      rotateY(calc(var(--i) * 72deg))
      translateZ(140px);

    transform-style: preserve-3d;

    padding: 0.65rem 1.1rem;
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;

    color: #e5e7eb;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.25);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(255,255,255,0.05);

    backface-visibility: hidden;
}

/* rotation */
@keyframes orbitSpin {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to   { transform: rotateX(65deg) rotateZ(360deg); }
}

/* OUTER BOX */
.orbit-box{
  width:100%;
  height:420px;
  position:relative;
  border-radius:20px;
  background:linear-gradient(145deg,#0b1220,#1e293b);
  border:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}

/* CENTER LOCK */
.orbit-wrap{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  perspective:1400px;
}

/* 3D TILT */
.orbit-tilt{
  position:relative;
  width:320px;
  height:320px;
  transform-style:preserve-3d;
  transform: rotateX(65deg);
}

/* ROTATION */
.orbit-rotate{
  position:absolute;
  inset:0;
  animation: spin 28s linear infinite;
  transform-style:preserve-3d;
}

/* ORBIT ITEMS */
.orbit-rotate span{
  position:absolute;
  top:50%;
  left:50%;
  padding:10px 18px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:1px;
  color:#e5e7eb;

  background:rgba(15,23,42,.85);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 0 18px rgba(56,189,248,.15);

  transform:
    translate(-50%, -50%)
    rotateZ(calc(var(--i)*72deg))
    translateY(-150px)
    rotateZ(calc(var(--i)*-72deg));
}

/* CENTER PILL */
.center-pill{
  position:absolute;
  top:50%;
  left:50%;
  transform:
    translate(-50%, -50%)
    rotateX(-65deg); /* text straight */
  padding:18px 46px;
  border-radius:999px;
  background:linear-gradient(145deg,#020617,#020617);
  color:#60a5fa;
  font-weight:600;
  letter-spacing:4px;
  box-shadow:
    0 0 30px rgba(56,189,248,.35),
    inset 0 0 25px rgba(0,0,0,.6);
  z-index:10;
}

/* ANIMATION */
@keyframes spin{
  from{ transform:rotateZ(0deg); }
  to{ transform:rotateZ(360deg); }
}

.billy{
    margin-left: 10rem;
}

