/* ROOT VARIABLES & GENERAL STYLES */
:root {
    --primary-color: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --secondary-color: #1f2937;

    /* Light Mode */
    --bg-color: #e0e5ec;
    --text-color: #374151;
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --neumorphism-shadow: 0.5rem 0.5rem 1rem var(--shadow-dark), -0.5rem -0.5rem 1rem var(--shadow-light);
    --neumorphism-inset-shadow: inset 0.3rem 0.3rem 0.6rem var(--shadow-dark), inset -0.3rem -0.3rem 0.6rem var(--shadow-light);

    /* Dark Mode */
    --bg-color-dark: #111827;
    --text-color-dark: #e5e7eb;
    --card-bg-dark: rgba(31, 41, 55, 0.5);
    --card-border-dark: rgba(55, 65, 81, 0.7);
    --shadow-light-dark: rgba(55, 65, 81, 0.5);
    --shadow-dark-dark: rgba(0, 0, 0, 0.5);
    --neumorphism-shadow-dark: 0.5rem 0.5rem 1rem var(--shadow-dark-dark), -0.5rem -0.5rem 1rem var(--shadow-light-dark);
    --neumorphism-inset-shadow-dark: inset 0.3rem 0.3rem 0.6rem var(--shadow-dark-dark), inset -0.3rem -0.3rem 0.6rem var(--shadow-light-dark);

    /* Previously undefined — now defined */
    --section-bg: var(--bg-color);
    --border-color: rgba(79, 70, 229, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(79, 70, 229, 0.2);
    --transition: all 0.3s ease-in-out;
    --text-muted: rgba(55, 65, 81, 0.6);

    --font-family: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
}

body.dark-mode {
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --card-bg: var(--card-bg-dark);
    --card-border: var(--card-border-dark);
    --neumorphism-shadow: var(--neumorphism-shadow-dark);
    --neumorphism-inset-shadow: var(--neumorphism-inset-shadow-dark);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition-smooth);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    color: var(--primary-color);
}

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

/* CUSTOM CURSOR */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(79, 70, 229, 0.2);
    border: 2px solid transparent;
}
body:hover .cursor-dot, body:hover .cursor-outline {
    opacity: 1;
}

/* THEME TOGGLE */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1f2937;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider .fa-moon { position: absolute; left: 9px; top: 9px; color: white;}
.slider .fa-sun { position: absolute; right: 9px; top: 9px; color: white; display: none;}
input:checked + .slider .fa-moon { display: none; }
input:checked + .slider .fa-sun { display: block; }


/* HEADER & NAVBAR */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}
.header.sticky {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}
 .logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-color);
    
    display: flex;
  align-items: center; 

}




.logo img {
  /* Remove or adjust max-width: 5%; */
  height: 2rem; /* Example: Adjust this value to match your desired height */
  width: auto; /* Maintain aspect ratio */
  margin-right: 5px;
  /* vertical-align: middle; -- Often not strictly needed with flexbox on parent */
}

.nav-menu {
    display: flex;
    list-style: none;
}
.nav-link {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #1f2937;
    background-image: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
}
.hero-tagline {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 400;
}
.typewriter {
    color: var(--primary-color);
    font-weight: 600;
}
.typed-cursor {
    font-size: 2rem;
    color: var(--primary-color);
}
.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px var(--primary-glow);
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}
.btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}
.mouse::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: 1;
    animation: wheel 1.5s infinite;
}
@keyframes wheel {
    to { top: 25px; opacity: 0; }
}

/* ABOUT SECTION */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--neumorphism-shadow);
}
.glowing-border {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105%;
    height: 105%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotate-glow 5s linear infinite;
}
@keyframes rotate-glow {
    0% { transform: translate(-50%, -50%) rotate(0deg); border-image: conic-gradient(from 0deg, var(--primary-color), transparent 50%) 1; }
    100% { transform: translate(-50%, -50%) rotate(360deg); border-image: conic-gradient(from 0deg, var(--primary-color), transparent 50%) 1; }
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.about-text p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}
.skill-card {
    background: var(--card-bg);
    padding: 2rem 1rem;
    border-radius: 20px;
    box-shadow: var(--neumorphism-shadow);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}
.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* Safari 9+ and iOS Safari 9+ support */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}
.project-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(var(--rotateX, 0)) rotateY(var(--rotateY, 0));
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.project-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.tech-stack span {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.project-links {
    margin-top: 1rem;
}
.link-icon {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
}
.link-icon:hover {
    color: var(--primary-color);
}
.link-icon i {
    margin-right: 0.5rem;
}

/* EXPERIENCE TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}
.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.timeline-content {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 0.5rem;
}
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* CONTACT SECTION */
.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.contact-form {
    flex: 2;
}
.contact-info {
    flex: 1;
}
.form-group {
    margin-bottom: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: var(--bg-color);
    box-shadow: var(--neumorphism-inset-shadow);
    color: var(--text-color);
    font-family: var(--font-family);
    transition: var(--transition-smooth);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .btn {
    width: auto;
}
.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
}
.social-icon {
    font-size: 2rem;
    color: var(--text-color);
    transition: var(--transition-smooth);
}
.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* FOOTER */
.footer {
    background: var(--secondary-color);
    color: #e5e7eb;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.5rem;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        margin: 1.5rem 0;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-content {
        flex-direction: column;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item:nth-child(odd) {
       text-align: left;
    }
    .timeline-dot {
        left: 23px;
    }
     .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
}
@media (max-width: 576px) {
    .hero-title { font-size: 3rem; }
    .hero-tagline { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .btn-secondary {
        margin-left: 0;
    }
}
/* Add these styles to your existing style.css file */

/* UPDATED SKILLS SECTION */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.skill-card {
    background: var(--card-bg);
    padding: 1.5rem 1rem; /* Adjusted padding */
    border-radius: 20px;
    box-shadow: var(--neumorphism-shadow);
    border: 1px solid var(--card-border); -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}
.skill-card i {
    font-size: 2.5rem; /* Adjusted icon size */
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.skill-card span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ACHIEVEMENTS SECTION */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--neumorphism-shadow);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15);
}

.achievement-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.achievement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.achievement-card p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Update project card to highlight metrics */
.project-info p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Add these styles to the bottom of style.css */

/* PROJECT CARD LINK */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.project-card-link:hover {
    transform: scale(1.03);
}

.project-card .link-icon {
    transition: color 0.3s ease;
    font-weight: 500;
}

.project-card-link:hover .link-icon {
    color: var(--primary-color);
}


/* PROJECT DETAIL PAGE */
.project-detail {
    padding-top: 6rem;
}

.back-to-projects {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.back-to-projects:hover {
    color: var(--primary-color);
}

.back-to-projects i {
    margin-right: 0.5rem;
}

.project-detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-detail-tagline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.project-detail-hero-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-detail-hero-image img {
    width: 100%;
    display: block;
}

.project-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.project-detail-left h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-detail-left p {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.feature-list li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
  }

.sidebar-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border); -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sidebar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tech-stack.detail-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-detail-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-detail-links .btn {
    width: 100%;
    text-align: center;
}

.project-gallery {
    margin-top: 4rem;
}

.project-gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}



.project-not-found {
    text-align: center;
    padding: 4rem 0;
}

.project-not-found h2 {
    font-size: 6rem;
    color: var(--primary-color);
}


/* GitHub Stats Section */
.github-stats {
    background: var(--section-bg);
    padding: 5rem 0;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.github-stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.github-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.github-stat-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.github-stat-card.full-width {
    grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .github-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .github-stat-card.full-width {
        grid-column: 1;
    }
}

/* Enhanced Loading States */
.video-skeleton {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    animation: pulse 2s infinite;
    border: 1px solid var(--border-color);
}

.skeleton-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--border-color);
}

.skeleton-title {
    height: 16px;
    background: var(--border-color);
    margin: 1rem;
    border-radius: 4px;
}

.skeleton-meta {
    height: 12px;
    background: var(--border-color);
    margin: 0 1rem 1rem;
    border-radius: 4px;
    width: 60%;
}

.no-videos-message, .error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-videos-message i, .error-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-videos-message h4, .error-state h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.no-videos-message p, .error-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-skeleton {
        margin-bottom: 1rem;
    }
}


/* YOUTUBE CHANNEL SECTION */
.youtube.section {
    background: var(--bg-color);
    position: relative;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Channel Overview */
.channel-overview {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--neumorphism-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.channel-overview:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

.channel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.channel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), #ff0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card-bg);
    padding: 8px;
}

.channel-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.channel-info p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.channel-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.stat i {
    color: #ff0000;
    width: 20px;
}

.btn-youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
    color: white;
}

/* Videos Container */
.videos-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--neumorphism-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.videos-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Video Player */
.video-player {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--neumorphism-inset-shadow);
    border: 1px solid var(--card-border);
}

.video-player iframe {
    border: none;
    display: block;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.video-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.video-card h4 {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

/* Loading Animation */
.loading-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--card-border);
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .youtube-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .channel-header {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .channel-avatar {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .channel-stats {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .channel-overview,
    .videos-container {
        padding: 1.5rem;
    }
    
    .channel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .channel-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .video-player iframe {
        height: 250px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode specific adjustments */
body.dark-mode .video-card:hover {
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
}

body.dark-mode .channel-avatar {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* RESPONSIVE UPDATES FOR DETAIL PAGE */
@media (max-width: 992px) {
    .project-detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .project-detail-title {
        font-size: 2.2rem;
    }
}






/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);         
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 10px;
    }
}

/* Dark mode adjustments */
.dark-mode .gallery-image {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .gallery-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Loading animation for lightbox image */
#lightbox-image {
    transition: opacity 0.3s ease;
}

#lightbox-image.loading {
    opacity: 0.5;
}

/* Focus styles for accessibility */
.lightbox-close:focus,
.lightbox-nav:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.gallery-image:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #a855f7);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}


/* ========================================
   AVAILABILITY BADGE
   ======================================== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}


/* ========================================
   STATS COUNTER SECTION
   ======================================== */
.stats.section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.stats.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.stat-item .stat-suffix {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item .stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   PROJECT FILTER TABS
   ======================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.project-card-link.hidden {
    display: none;
}

@keyframes filterAppear {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-card-link.filter-appear {
    animation: filterAppear 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}


/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}


/* ========================================
   IMPROVED FOOTER
   ======================================== */
.footer {
    background: var(--secondary-color);
    color: #e5e7eb;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(229, 231, 235, 0.7);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    max-width: 280px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links ul li a {
    color: rgba(229, 231, 235, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(229, 231, 235, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}


/* ========================================
   DARK MODE UPDATES FOR NEW ELEMENTS
   ======================================== */
body.dark-mode .filter-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .availability-badge {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .footer-links ul li a {
    color: rgba(229, 231, 235, 0.6);
}

body.dark-mode .footer-links ul li a:hover {
    color: var(--primary-color);
}


/* ========================================
   LIGHT MODE OVERRIDES FOR NEW ELEMENTS
   ======================================== */
body.light-mode .filter-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
    background: var(--primary-color);
    color: white;
}

body.light-mode .availability-badge {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}

body.light-mode .badge-dot {
    background-color: #059669;
}

/* Stats section is always the purple gradient — no light mode change needed */

body.light-mode .footer {
    background: #1f2937;
}

body.light-mode .scroll-progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #a855f7);
}
