* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #00d4ff;
            --secondary: #ff006e;
            --accent: #8338ec;
            --dark: #0a0a0a;
            --light: #ffffff;
            --glass: rgba(255, 255, 255, 0.1);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            color: var(--light);
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .glass {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
        }

        .floating {
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1000;
            padding: 15px 25px;
            backdrop-filter: blur(10px);
            background: rgba(10, 10, 10, 0.8); /* Added darker background */
            margin: 0; /* Remove any margins */
            border-radius: 0; /* Remove border radius */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle border */
        }

        .nav-links {
            display: flex;
            gap: 20px;
            list-style: none;
            justify-content: center; /* Center the links */
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--primary);
            transform: scale(1.1);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            padding: 120px 20px 100px; /* Added top padding to account for navigation */
            padding-top: 80px; /* Increase top padding to account for fixed nav */
            margin-top: 0;
        }

        .hero-content {
            z-index: 2;
            max-width: 800px;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientText 4s ease infinite;
        }

        @keyframes gradientText {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .hero p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .cta-buttons {
            position: relative;
            z-index: 3; /* Ensure buttons stay on top */
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        .btn {
            position: relative;
            z-index: 3; /* Ensure buttons stay on top */
            padding: 15px 30px;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary {
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            color: white;
        }

        /* Profile Photo */
        .profile-photo {
            position: relative;
            margin: 20px auto 30px; /* Added top margin */
            display: inline-block;
        }

        .profile-img {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary);
            box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
            animation: profileFloat 6s ease-in-out infinite;
        }

        @keyframes profileFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }

        .photo-glow {
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
            opacity: 0.3;
            animation: glowPulse 3s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes glowPulse {
            0%, 100% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.1); opacity: 0.5; }
        }

        .btn-secondary {
            background: transparent;
            color: var(--light);
            border: 2px solid var(--primary);
        }

        .btn-download {
            background: linear-gradient(45deg, var(--accent), var(--primary));
            color: white;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
        }

        /* Floating Elements */
        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .floating-element {
            position: absolute;
            opacity: 0.1;
            animation: floatRandom 20s linear infinite;
        }

        @keyframes floatRandom {
            0% { transform: translateY(100vh) rotate(0deg); }
            100% { transform: translateY(-100px) rotate(360deg); }
        }

        /* Section Styles */
        .section {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 3rem;
            text-align: center;
            margin-bottom: 60px;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Stats Section */
        .stats-section {
            position: relative;
            padding: 80px 20px;
            margin-top: -50px; /* Adjust this value as needed */
            z-index: 1;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 0 auto;
            max-width: 1200px;
        }

        .stat-card {
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            background: var(--glass);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary);
            display: block;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.8;
            color: var(--light);
        }

        /* Update the media query for mobile responsiveness */
        @media (max-width: 768px) {
            .stats-section {
                padding: 40px 15px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .stat-card {
                padding: 25px 15px;
            }

            .stat-number {
                font-size: 2.2rem;
            }

            .stat-label {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Skills Grid */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .skill-category {
            padding: 30px;
            padding-right: 20px;
            transition: all 0.3s ease;
        }

        .skill-category:hover {
            transform: scale(1.05);
        }

        .skill-category h3 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        

        .skill-tag {
            background: linear-gradient(45deg, var(--accent), var(--secondary));
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Skill Tags in Languages & Framework Section */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

/* Project Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tech-stack.active {
    opacity: 1;
    transform: translateY(0);
}

.tech-pill {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--light);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Individual Project Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.tech-tag {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(131, 56, 236, 0.1));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.2);
    border-color: transparent;
}

/* Add icons to tech tags */
.tech-tag i {
    font-size: 0.9rem;
}

/* Animation for tech tags */
@keyframes tagPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.skill-tag, .tech-tag, .tech-pill {
    animation: tagPop 0.3s ease forwards;
}

/* Stagger animation for multiple tags */
.skill-tags .skill-tag:nth-child(1) { animation-delay: 0s; }
.skill-tags .skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-tags .skill-tag:nth-child(3) { animation-delay: 0.2s; }
.skill-tags .skill-tag:nth-child(4) { animation-delay: 0.3s; }

        /* Experience Timeline */
        .timeline {
            position: relative;
            padding-left: 30px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 2px;
            background: linear-gradient(to bottom, var(--primary), var(--secondary));
        }

        .timeline-item {
            position: relative;
            margin-bottom: 50px;
            padding: 30px;
            margin-left: 30px;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -45px;
            top: 30px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary);
            box-shadow: 0 0 20px var(--primary);
        }

        .timeline-item h3 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .timeline-item .company {
            color: var(--secondary);
            font-weight: 600;
            margin-bottom: 15px;
        }

        /* Projects Grid */
        .projects-container {
            position: relative;
            max-width: 100%;
            overflow: hidden;
            padding: 0 40px; /* Space for navigation buttons */
        }

        .projects-grid {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            -ms-overflow-style: none;  /* Hide scrollbar IE and Edge */
            scrollbar-width: none;  /* Hide scrollbar Firefox */
            gap: 30px;
            padding: 20px 0;
            scroll-snap-type: x mandatory;
        }

        .projects-grid::-webkit-scrollbar {
            display: none; /* Hide scrollbar Chrome, Safari, Opera */
        }

        .project-card {
            min-width: 150px;
            max-width: 150px; /* Fixed width for cards */
            scroll-snap-align: start;
        }

        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            color: var(--dark);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .scroll-btn:hover {
            background: var(--accent);
            transform: translateY(-50%) scale(1.1);
        }

        .scroll-btn.prev {
            left: 0;
        }

        .scroll-btn.next {
            right: 0;
        }

        /* Modal for full-screen image view */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            backdrop-filter: blur(10px);
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            z-index: 2001;
        }

        /* Add these styles for the project modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.project-modal.active {
    display: flex;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            text-align: center;
        }

        .contact-item {
            padding: 30px;
            transition: all 0.3s ease;
            color: var(--light);
            text-decoration: none;
            display: block;
        }

        .contact-item:hover {
            transform: scale(1.1);
        }

        .contact-item i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .contact-item h3 {
            color: var(--light);
            margin-bottom: 10px;
        }

        .contact-item span {
            color: var(--light);
            opacity: 0.9;
            font-weight: 500;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            /* Navigation */
            nav {
                padding: 10px 15px;
            }
            
            .nav-links {
                gap: 10px;
            }
            
            /* Hero Section */
            .hero {
                padding-top: 60px;
            }

            .hero h1 {
                font-size: 2.2rem;
                line-height: 1.1;
                margin-bottom: 15px;
            }

            .hero p {
                font-size: 1rem;
                margin-bottom: 25px;
                line-height: 1.4;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }

            .btn {
                width: 100%;
                max-width: 280px;
                padding: 12px 24px;
                font-size: 0.9rem;
                justify-content: center;
            }

            /* Sections */
            .section {
                padding: 60px 15px;
            }

            .section-title {
                font-size: 2rem;
                margin-bottom: 40px;
            }

            /* Stats Grid */
            .stats-section {
                padding: 40px 15px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .stat-card {
                padding: 25px 15px;
            }

            .stat-number {
                font-size: 2.2rem;
            }

            .stat-label {
                font-size: 0.9rem;
            }

            /* Skills Grid */
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .skill-category {
                padding: 20px;
            }

            .skill-category h3 {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }

            .skill-tags {
                gap: 8px;
            }

            .skill-tag {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            /* Timeline */
            .timeline {
                padding-left: 20px;
            }

            .timeline-item {
                padding: 20px 15px;
                margin-left: 20px;
                margin-bottom: 30px;
            }

            .timeline-item::before {
                left: -35px;
            }

            .timeline-item h3 {
                font-size: 1.1rem;
            }

            .timeline-item .company {
                font-size: 0.9rem;
            }

            .timeline-item p {
                font-size: 0.9rem;
                line-height: 1.5;
            }

            /* Projects Grid */
            .projects-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .project-card {
                padding: 20px;
            }

            .project-card h3 {
                font-size: 1.1rem;
                margin-bottom: 10px;
            }

            .project-card p {
                font-size: 0.9rem;
                line-height: 1.5;
            }

            /* Update tech tag styles */
            .tech-tag {
                background: rgba(0, 212, 255, 0.2);
                color: var(--primary);
                padding: 6px 14px;
                border-radius: 15px;
                font-size: 0.9rem;
                font-weight: 500;
                border: 1px solid var(--primary);
                transition: all 0.3s ease;
                margin: 4px;
                display: inline-block;
            }

            .tech-tag:hover {
                background: var(--primary);
                color: var(--dark);
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
            }

            .project-tech {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 15px;
            }

            /* Contact Grid */
            .contact-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .contact-item {
                padding: 20px 10px;
                color: var(--light);
                text-decoration: none;
            }

            .contact-item i {
                font-size: 2rem;
                margin-bottom: 10px;
                color: var(--primary);
            }

            .contact-item h3 {
                font-size: 1rem;
                margin-bottom: 5px;
                color: var(--light);
            }

            .contact-item span {
                font-size: 0.9rem;
                color: var(--light);
                font-weight: 500;
                opacity: 0.9;
            }

            /* Profile Photo Mobile */
            .profile-img {
                width: 120px;
                height: 120px;
            }

            /* Gallery Mobile */
            /* Gallery Styles */
        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .gallery-nav {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .gallery-btn {
            padding: 12px 24px;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .gallery-btn:hover,
        .gallery-btn.active {
            background: var(--primary);
            color: var(--dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            grid-auto-rows: auto;
        }

        .gallery-grid.hidden {
            display: none;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.02);
            box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
        }

        .gallery-item.landscape {
            grid-column: span 1;
            aspect-ratio: 3/2;
        }

        .gallery-item.portrait {
            grid-column: span 1;
            aspect-ratio: 2/3;
        }

        .gallery-item.square {
            grid-column: span 1;
            aspect-ratio: 1/1;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        /* Gallery overlay styles */
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            color: white;
            padding: 30px 20px 20px;
            transform: translateY(100%);
            transition: transform 0.5s ease;
        }

        .gallery-overlay h4 {
            font-size: 1.3rem;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--primary);
        }

        .gallery-overlay p {
            font-size: 1rem;
            opacity: 0.9;
            margin: 0;
        }

        /* Desktop hover effect */
        @media (min-width: 769px) {
            .gallery-item:hover .gallery-overlay {
                transform: translateY(0);
            }
        }

        /* Mobile styles - permanent overlay */
        @media (max-width: 768px) {
            .gallery-overlay {
                transform: translateY(0); /* Always visible on mobile */
                padding: 20px 15px;
                background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
            }

            .gallery-overlay h4 {
                font-size: 1.1rem;
                margin-bottom: 4px;
            }

            .gallery-overlay p {
                font-size: 0.9rem;
            }
        }

            /* Floating elements - reduce on mobile */
            .floating-element {
                opacity: 0.05;
                font-size: 1rem !important;
            }

            /* Reduce animations on mobile for better performance */
            .floating-element {
                animation-duration: 30s;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }

            .hero p {
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.6rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .stat-card {
                padding: 20px 10px;
            }

            .stat-number {
                font-size: 1.8rem;
            }

            .contact-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .nav-links {
                gap: 5px;
            }

            .nav-links a {
                font-size: 0.8rem;
                padding: 4px 8px;
            }
        }

        /* Animation for scroll reveal */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

       /* Update the projects grid styles */
.projects-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Loading indicator styles */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading .loading-spinner {
    display: block;
}

.loading .projects-grid {
    opacity: 0.5;
}

.project-nav {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .project-btn {
            padding: 12px 24px;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .project-btn:hover,
        .project-btn.active {
            background: var(--primary);
            color: var(--dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
        }

       
        /* Update the projects grid styles */
       

        /* Update hidden class for filtered projects */
        .project-card.hidden {
            display: none;
            transform: translateY(20px);
            opacity: 0;
            width: 0;
            height: 0;
            margin: 0;
            padding: 0;
        }

        

.project-card {
    min-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

        .project-card.hidden {
            transform: translateY(20px);
            opacity: 0;
            pointer-events: none;
        }

        

        .project-content {
            padding: 20px;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 15px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            transform: translateX(5px);
            color: var(--accent);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Add this animation to your Languages & Framework section */
        .skills-grid .skill-category {
            animation: cardFloat 6s ease-in-out infinite;
        }

        @keyframes cardFloat {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-10px) rotate(1deg);
            }
        }

        .skill-category:nth-child(2) {
            animation-delay: -1.5s;
        }

        .skill-category:nth-child(3) {
            animation-delay: -3s;
        }

        .skill-category:nth-child(4) {
            animation-delay: -4.5s;
        }

        ul.custom-bullets li {
        position: relative;
        padding-left: 20px;
        list-style: none;
        }

        ul.custom-bullets li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #00D4FF;
        font-size: 18px;
        line-height: 1;
        }

        .subtitle-container {
    height: 60px; /* Adjust this value based on your largest text height */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text {
    font-size: 1.5rem;
    opacity: 0.9;
    margin: 0;
    min-height: 1.5em;
    text-align: center;
}

@media (max-width: 768px) {
    .subtitle-container {
        height: 48px; /* Adjust for mobile */
    }
    
    .typing-text {
        font-size: 1rem;
    }
}



/* Add these CSS styles to fix the gallery layout */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-btn:hover,
.gallery-btn.active {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.gallery-grid.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color:#00D4FF;
    font-weight: bold;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}



/* Loading indicator styles */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading .loading-spinner {
    display: block;
}

.loading .projects-grid {
    opacity: 0.5;
}

.project-nav {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .project-btn {
            padding: 12px 24px;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .project-btn:hover,
        .project-btn.active {
            background: var(--primary);
            color: var(--dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
        }

        /* Update the skill tag and tech tag styles */
.skill-tag, .tech-tag {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--light);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.skill-tag:hover, .tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    background: linear-gradient(45deg, var(--accent), var(--primary));
}

/* Tech stack container styles */
.tech-stack-container {
    margin: 20px 0;
    text-align: center;
}

.tech-stack {
    display: none;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.tech-stack.active {
    display: flex;
}


