
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0f172a; 
    --accent-color: #2563eb;  
    --text-color: #475569;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --transition-fast: 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fcfcfc;
    transition: background-color 0.5s ease, color 0.5s ease;
}



body.hacker-mode {
    --primary-color: #000000;
    --bg-light: #0a0a0a;
    --text-color: #00ff00;
    --accent-color: #00ff00;
    --white: #111111;
    font-family: 'Courier New', Courier, monospace;
    background-color: #000000;
}

body.hacker-mode .section-title, 
body.hacker-mode p, 
body.hacker-mode h1, 
body.hacker-mode h2, 
body.hacker-mode h3,
body.hacker-mode .logo,
body.hacker-mode .nav-links a {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

body.hacker-mode .about-image {
    filter: grayscale(100%) contrast(150%) sepia(100%) hue-rotate(80deg);
}

body.hacker-mode .btn {
    background-color: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
}

body.hacker-mode .btn:hover {
    background-color: #00ff00;
    color: #000;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* background-color: var(--primary-color); */
    padding: 15px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

body.hacker-mode .navbar {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #00ff00;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- General Section Styles --- */
.section {
    padding: 100px 7%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

body.hacker-mode .hero {
    background: #000;
}

.hero h2 { font-size: 1.8rem; font-weight: 400; }


.hero h1 {
    font-size: 4.5rem;
    margin: 15px 0;
    
    background: linear-gradient(270deg, #0D1A63, #2c3caa, #a3a9ca, #F68048 );
    background-size: 300% 300%;
    
   
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
   
    animation: gradient-shift 6s ease infinite;
}


@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero p { font-size: 1.25rem; margin-bottom: 40px; }

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}





/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.about-image-wrapper { flex: 1; text-align: center; }

.about-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    cursor: pointer; /* User ko pata chale click ho sakta hai */
}

.about-image:hover {
    transform: scale(1.05);
}

.about-text { flex: 2; }
.about-text p { font-size: 1.1rem; margin-bottom: 20px; }




/* --- Skills & Projects Grids --- */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category, .project-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover, .project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.skill-category h3, .project-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lnr { color: var(--accent-color); }
.project-icon { font-size: 2rem; margin-bottom: 15px; display: block; text-align: center;}
.project-card h3 { text-align: center; }




/* --- Terminal Section --- */
.terminal-window {
    background-color: #0d1117;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-header {
    background-color: #161b22;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}

.btn-close, .btn-min, .btn-max {
    width: 14px; height: 14px; border-radius: 50%;
}
.btn-close { background-color: #ff5f56; }
.btn-min { background-color: #ffbd2e; }
.btn-max { background-color: #27c93f; }

.terminal-body {
    padding: 25px;
    color: #10b981;
    font-size: 1.1rem;
    min-height: 200px;
    line-height: 1.8;
}

.prompt { color: #3b82f6; font-weight: bold; margin-right: 10px; }
.cursor { animation: blink 1s step-end infinite; }

@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0; } 
}

/* --- Live GitHub Stats --- */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box span { font-size: 3rem; color: var(--accent-color); }
.stat-box h3 { margin-top: 15px; color: var(--text-color); font-size: 1.1rem;}
.stat-box p { font-size: 3rem; font-weight: 700; color: var(--primary-color); line-height: 1;}

/* --- Contact & Footer --- */
.contact-content { text-align: center; margin-top: 30px; }
.contact-content p { font-size: 1.2rem; margin-bottom: 30px; }

footer {
    text-align: center;
    padding: 25px;
    background-color: var(--primary-color);
    color: #fff;
}




/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .about-container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 3.5rem; }
    .nav-links { display: none; } /* Mobile menu hiding for simple layout */
    .navbar { justify-content: center; }
}






/* --- 1. Tech-Skill Stock Ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    border-top: 1px solid rgba(44, 26, 26, 0.669);
    border-bottom: 1px solid rgba(70, 47, 47, 0.699);
    padding: 12px 0;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker 25s linear infinite;
}

.ticker:hover {
    animation-play-state: paused; /* Hover karne par animation ruk jayega taaki koi padh sake */
    cursor: default;
}

.ticker-item {
    padding: 0 40px;
    color: #f8fafc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ticker-item .up {
    color: #10b981; /* Investment Green color */
    margin-left: 8px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Hacker Mode ke liye Ticker Update */
body.hacker-mode .ticker-wrap {
    background-color: #000;
    border-color: #00ff00;
}
body.hacker-mode .ticker-item {
    color: #00ff00;
}
body.hacker-mode .ticker-item .up {
    color: #fff;
}





/* --- 2. 3D Glassmorphism Cards --- */
.project-card, .skill-category, .stat-box {

    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05); 
    transform-style: preserve-3d; 
}


body.hacker-mode .project-card, 
body.hacker-mode .skill-category, 
body.hacker-mode .stat-box {
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 255, 0, 0.1);
}


.project-card h3, .project-icon, .skill-item, .stat-box h3, .stat-box p, .stat-box span {
    transform: translateZ(30px); 
}




/* --- 3. Interactive Quantum Particle Background --- */
#home, #skills, #projects {
    position: relative; 
}


#particles-js, #particles-skills, #particles-projects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none; 
}

.hero-content, .skills-grid, .projects-grid, .ticker-wrap, .section-title, .section-subtitle {
    position: relative;
    z-index: 2;
}




/* --- 3. Neon Scroll Progress Tracker --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000; 
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%; 
    background: var(--accent-color);
    
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    transition: width 0.1s ease-out; 
}

/* Hacker Mode ke liye Neon Green Glow */
body.hacker-mode .scroll-progress-bar {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}




.dark-showcase {
    background-color: var(--bg-light); 
    color: var(--text-color);
    padding-top: 100px;
    padding-bottom: 100px;
}

.project-header-top {
    text-align: center;
    margin-bottom: 40px;
}

.sub-heading {
    color: var(--accent-color);
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.premium-title {
    font-size: 3.5rem;
    color: var(--primary-color); 
    font-weight: 700;
}

.highlight-text {
    color: var(--accent-color); 
    text-shadow: none; 
}

/* --- Filter Buttons --- */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15); 
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3); 
}

/* --- Modern Project Cards Grid (Light Version) --- */
.modern-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}



 .modern-card {
    background: var(--white); 
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); 
    border-color: rgba(0, 0, 0, 0.1);
}

/* Card Image Area (Top) */
.card-image-top {
    height: 220px;
    background: #e2e8f0; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.modern-card:hover .card-icon {
    transform: scale(1.1); 
}

/* Card Content Area (Bottom) */
.card-content {
    padding: 35px 30px;
} 




/* Major/Minor Tags */
.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-tag.minor {
    color: #f43f5e; 
}

.modern-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.modern-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-stack span {
    background: var(--bg-light); 
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(37, 99, 235, 0.1); 
    color: var(--accent-color);
    border-color: rgba(37, 99, 235, 0.2);
}


/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {
   
    .section {
        padding: 80px 5%; 
    }
    
    
    .section-title {
        font-size: 2.2rem;
    }

   
    .projects-grid, 
    .skills-grid, 
    .stats-container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    
    .project-card, 
    .skill-category, 
    .stat-box {
        padding: 25px 20px;
    }

    
    .terminal-window {
        width: 100%;
        margin: 20px auto 0;
    }
    .terminal-body {
        font-size: 0.95rem;
        padding: 15px;
    }
}

/* --- Cyberpunk Glitch Effect on Hover (Only for Hacker Mode) --- */
body.hacker-mode .hero h1 {
    position: relative;
    transition: all 0.2s ease;
}

body.hacker-mode .hero h1:hover {
    animation: glitch-anim 0.3s linear infinite;
    color: #fff; 
    text-shadow: 4px 0 #b33b95, -4px 0 #00fff9; 
    cursor: crosshair;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-3px, 3px) }
    40% { transform: translate(-3px, -3px) }
    60% { transform: translate(3px, 3px) }
    80% { transform: translate(3px, -3px) }
    100% { transform: translate(0) }
}




* {
    cursor: none !important; 
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color); 
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999; 
    pointer-events: none; 
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}



.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
}

body.hacker-mode .cursor-dot {
    background-color: #00ff00;
}
body.hacker-mode .cursor-outline {
    border-color: #00ff00;
}
body.hacker-mode .cursor-outline.hovered {
    background-color: rgba(0, 255, 0, 0.1);
}







body.hacker-mode .dark-showcase {
    background-color: #000000;
    border-top: 1px dashed #00ff00;
    border-bottom: 1px dashed #00ff00;
}


body.hacker-mode .sub-heading,
body.hacker-mode .premium-title,
body.hacker-mode .highlight-text {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', Courier, monospace;
}


body.hacker-mode .filter-btn {
    color: #00ff00;
    border-color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
}

body.hacker-mode .filter-btn:hover,
body.hacker-mode .filter-btn.active {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 15px #00ff00;
}


body.hacker-mode .modern-card {
    background: #050505;
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

body.hacker-mode .modern-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    border-color: #00ff00;
}


body.hacker-mode .card-image-top {
    background: #000000;
    border-bottom: 1px dashed #00ff00;
}

body.hacker-mode .card-icon {
    filter: drop-shadow(0 0 15px #00ff00) grayscale(100%) sepia(100%) hue-rotate(80deg);
}


body.hacker-mode .project-tag,
body.hacker-mode .project-tag.minor,
body.hacker-mode .modern-card h3,
body.hacker-mode .modern-card p {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: none;
}


body.hacker-mode .tech-stack span {
    background: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
}

body.hacker-mode .tech-stack span:hover {
    background: #00ff00;
    color: #000000;
}







@media screen and (max-width: 768px) {

    .section {
        padding: 80px 5%; 
    }

    .dark-showcase {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    
    .premium-title {
        font-size: 2.2rem; 
    }
    
    .section-title {
        font-size: 2rem;
    }

    .sub-heading {
        font-size: 0.75rem;
    }

    
    .modern-projects-grid {
       
        grid-template-columns: 1fr; 
        gap: 30px;
    }

   
    .card-content {
        padding: 25px 20px; 
    }

    .card-image-top {
        height: 180px; 
    }

    .card-icon {
        font-size: 4rem;
    }

  
    .project-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

   
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}


@media screen and (max-width: 380px) {
    .premium-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

