:root {
            --primary: #000000;
            --secondary: #111111;
            --accent: #222222;
            --highlight: #ffffff;
            --text: #f1f1f1;
            --gradient: linear-gradient(135deg, #000000 0%, #222222 100%);
        }

        
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        /* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loader-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.loader-circle {
    width: 140px;
    height: 140px;
    border-radius: 90%;
    position: absolute;

    /* 40% of circle arc (divided into 4 color bands, 10% each) */
    background: conic-gradient(
        #ff3d00 0% 10%,   /* color 1 */
        #00c853 10% 20%,  /* color 2 */
        #2962ff 20% 30%,  /* color 3 */
        #ffea00 30% 40%,  /* color 4 */
        transparent 40% 100% /* rest of circle empty */
    );

    /* make it like a 10px ring */
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), black calc(100% - 9px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), black calc(100% - 9px));

    animation: spin 2s linear infinite;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Enhanced Animations */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.language-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a {
    transition: all 0.3s ease;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.hero .btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating animation for elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Add floating to some elements */
.project-card:nth-child(odd) {
    animation: float 4s ease-in-out infinite;
}

.project-card:nth-child(even) {
    animation: float 4s ease-in-out infinite 1s;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    background: linear-gradient(-45deg, #ffffff, #aaaaaa, #ffffff, #cccccc);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

/* Enhanced loader animation */
.loader-circle {
    animation: spin 1.5s linear infinite, colors 3s ease-in-out infinite;
}

@keyframes colors {
    0%, 100% {
        background: conic-gradient(#ff3d00 0% 10%, #00c853 10% 20%, #2962ff 20% 30%, #ffea00 30% 40%, transparent 40% 100%);
    }
    25% {
        background: conic-gradient(#ffea00 0% 10%, #ff3d00 10% 20%, #00c853 20% 30%, #2962ff 30% 40%, transparent 40% 100%);
    }
    50% {
        background: conic-gradient(#2962ff 0% 10%, #ffea00 10% 20%, #ff3d00 20% 30%, #00c853 30% 40%, transparent 40% 100%);
    }
    75% {
        background: conic-gradient(#00c853 0% 10%, #2962ff 10% 20%, #ffea00 20% 30%, #ff3d00 30% 40%, transparent 40% 100%);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Enhanced scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

/* Mobile optimizations for animations */
@media (max-width: 768px) {
    .project-card {
        animation: none !important;
    }
    
    .hero h1 {
        animation: gradient-shift 6s ease infinite;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.loaded #loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

        body {
            font-family: 'Inter', sans-serif;
            background: var(--primary);
            color: var(--text);
            overflow-x: hidden;
            line-height: 1.6;
            cursor: url('cursor\ \(Custom\).png') 0 0, auto;
        }
        
        #threejs-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.2;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        header.scrolled {
            background: rgba(0, 0, 0, 0.9);
            padding: 15px 0;
            backdrop-filter: blur(10px);
        }
        
        header {
            position: fixed;
            width: 100%;
            padding: 20px 0;
            z-index: 100;
            transition: all 0.5s ease;
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo {
            width: 50px;
            height: 50px;
            transition: all 0.5s ease;
        }
        
        .name {
            color: var(--highlight);
            font-size: 1.2rem;
            font-weight: 600;
            white-space: nowrap;
            text-decoration: none;
        }
        
        .nav-links {
            display: flex;
            gap: 25px;
        }
        
        
        .nav-links a {
            color: var(--highlight);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 5px 0;
            text-decoration: none;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--highlight);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
        }
        
        .hero h1 {
            font-size: 4.5rem;
            margin-bottom: 20px;
            background: linear-gradient(90deg, var(--highlight), #aaaaaa);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 40px;
            opacity: 0.9;
        }
        
        .btn {
            display: inline-block;
            padding: 15px 30px;
            background: var(--gradient);
            color: var(--highlight);
            border: 1px solid var(--highlight);
            text-decoration: none;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            background: var(--highlight);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
        }
        
        /* About Section */
        .about {
            padding: 120px 0;
            background: var(--gradient);
        }
        
        .section-title {
            font-size: 2.5rem;
            margin-bottom: 60px;
            text-align: center;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--highlight);
        }
        
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        
        .about-text p {
            margin-bottom: 20px;
        }
        
        /* About Skills Section */
.about-skills {
    width: 100%;
}

.lang {
    width: 100%;
    background: var(--accent);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.language-container {
    width: 100%;
    overflow: hidden;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.language-item {
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--highlight);
    padding: 20px;
    min-height: 120px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--highlight);
    color: var(--primary);
}

.language-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.language-item span {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .name {
        font-size: 1.1rem;
    }
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 40px;
        height: 40px;
    }
    .name {
        font-size: 1rem;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-text {
        text-align: center;
    }
    .about-text p {
        margin-bottom: 15px;
    }
    .about-skills {
        margin-top: 30px;
    }
    .lang {
        padding: 15px;
    }
    .language-container {
        width: 100%;
    }
    .language-item {
        padding: 15px;
        min-height: 100px;
    }
    
    .language-item i {
        font-size: 2rem;
    }
    
    .language-item span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
    }
    .name {
        font-size: 0.9rem;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-text {
        text-align: center;
    }
    .about-text p {
        margin-bottom: 10px;
    }
    .about-skills {
        margin-top: 20px;
    }
    .lang {
        padding: 10px;
    }
    .language-container {
        width: 100%;
    }
    .language-grid {
        grid-template-columns: 1fr;
    }

    .language-item {
        padding: 10px;
        min-height: 80px;
    }
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .language-item {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 70px;
        padding: 15px 20px;
    }
    
    .language-item i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 1.8rem;
    }
    
    .lang h3 {
        font-size: 1.5rem;
    }
}
        
        /* Projects Section */
        .projects {
            padding: 120px 0;
        }
        
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }
        
        .project-card {
            background: var(--secondary);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }
        
        .project-image {
            height: 250px;
            overflow: hidden;
        }
        
        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Changed from cover to contain */
            background: #222;    /* Optional: adds a background behind transparent images */
            transition: transform 0.5s ease;
        }
        
        .project-card:hover .project-image img {
            transform: scale(1.1);
        }
        
        .project-info {
            padding: 25px;
        }
        
        .project-info h3 {
            margin-bottom: 15px;
            font-size: 1.5rem;
        }
        
        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        
        .project-tag {
            background: var(--accent);
            padding: 5px 15px;
            border-radius: 50px;
            font-size: 0.8rem;
        }
        
        /* Contact Section */
        .contact {
            padding: 120px 0;
            background: var(--gradient);
            text-align: center;
        }
        
        .contact p {
            max-width: 600px;
            margin: 0 auto 40px;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
        }
        
        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 1px solid var(--highlight);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: white;
            background: var(--secondary);
            text-decoration: none;
            font-size: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .social-link:hover {
            background: var(--highlight);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
        }
        
        /* Footer */
        footer {
            padding: 30px 0;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        

        /* Add these styles to your existing CSS */

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--highlight);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    /* Language Grid Mobile Styles */
    .language-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .language-item {
        aspect-ratio: unset;
        min-height: 100px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 25px;
    }
    
    .language-item i {
        margin-bottom: 0;
        margin-right: 20px;
        font-size: 2rem;
    }
    
    .language-item span {
        font-size: 1.2rem;
    }
    
    /* Adjust header padding when scrolled on mobile */
    header.scrolled {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .lang h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .language-item {
        padding: 12px 20px;
    }
    
    .language-item i {
        font-size: 1.8rem;
        margin-right: 15px;
    }
    
    .language-item span {
        font-size: 1.1rem;
    }

    .hamburger .line {
        width: 25px;
        height: 2px;
    }
}

/* Hamburger Animation */
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        .floating {
            animation: float 6s ease-in-out infinite;
        }

        /* Media Queries */
        @media (max-width: 768px) {
            .about-content {
                grid-template-columns: 1fr;
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
            
            .hero h1 {
                font-size: 3rem;
            }
        }
        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .project-info h3 {
                font-size: 1.3rem;
            }
        }
        @media (max-width: 360px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .btn {
                padding: 8px 16px;
                font-size: 0.8rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .project-info h3 {
                font-size: 1.2rem;
            }
        }
        @media (max-width: 320px) {
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .btn {
                padding: 6px 12px;
                font-size: 0.7rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .project-info h3 {
                font-size: 1.1rem;
            }
        }
        @media (max-width: 280px) {
            .hero h1 {
                font-size: 1.5rem;
            }
            
            .btn {
                padding: 4px 8px;
                font-size: 0.6rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
            
            .project-info h3 {
                font-size: 1rem;
            }
        }
        @media (max-width: 240px) {
            .hero h1 {
                font-size: 1.2rem;
            }
            
            .btn {
                padding: 2px 4px;
                font-size: 0.5rem;
            }
            
            .section-title {
                font-size: 1.1rem;
            }
            
            .project-info h3 {
                font-size: 0.9rem;
            }
        }
        @media (max-width: 200px) {
            .hero h1 {
                font-size: 1rem;
            }
            
            .btn {
                padding: 1px 2px;
                font-size: 0.4rem;
            }
            
            .section-title {
                font-size: 0.9rem;
            }
            
            .project-info h3 {
                font-size: 0.8rem;
            }
        }
        @media (max-width: 160px) {
            .hero h1 {
                font-size: 0.8rem;
            }
            
            .btn {
                padding: 0px 1px;
                font-size: 0.3rem;
            }
            
            .section-title {
                font-size: 0.7rem;
            }
            
            .project-info h3 {
                font-size: 0.7rem;
            }
        }
        @media (max-width: 120px) {
            .hero h1 {
                font-size: 0.6rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.2rem;
            }
            
            .section-title {
                font-size: 0.5rem;
            }
            
            .project-info h3 {
                font-size: 0.6rem;
            }
        }
        @media (max-width: 80px) {
            .hero h1 {
                font-size: 0.4rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.3rem;
            }
            
            .project-info h3 {
                font-size: 0.5rem;
            }
        }
        @media (max-width: 40px) {
            .hero h1 {
                font-size: 0.2rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }
        @media (max-width: 20px) {
            .hero h1 {
                font-size: 0.1rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }
        @media (max-width: 10px) {
            .hero h1 {
                font-size: 0.1rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }
        @media (max-width: 5px) {
            .hero h1 {
                font-size: 0.1rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }

        @media (max-width: 2px) {
            .hero h1 {
                font-size: 0.1rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }
        @media (max-width: 1px) {
            .hero h1 {
                font-size: 0.1rem;
            }
            
            .btn {
                padding: 0px 0px;
                font-size: 0.1rem;
            }
            
            .section-title {
                font-size: 0.1rem;
            }
            
            .project-info h3 {
                font-size: 0.1rem;
            }
        }

        /* Project Button Style */
.project-card .btn {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.15);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 20px;
}

.project-card .btn:hover {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 114, 255, 0.25);
}

/* Example CSS Fixes for the removed inline styles */

/* Fix for logo link underline */
.logo-link {
    text-decoration: none;
}

/* Fix for footer layout */
footer .container.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Also check the logo image style if it looks wrong */
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add a new class or modify the existing container within the footer */

/* The 'footer-content' class was added to replace the inline styles */
.footer-content {
    /* These three lines replicate the layout behavior that was removed from the HTML */
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

/* Optional: Clean up the logo alignment which also used inline styles */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Replaces 'gap: 10px' from the old inline style */
}

/* Ensure the logo image maintains its size */
.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}