* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Solid Colors - Logo Spectrum Match */
    --primary: #F13F6E; /* Rich Magenta-Pink */
    --primary-light: #FF7F60; /* Soft Coral-Orange */
    --secondary: #7038A8; /* Deep Purple-Violet */
    --accent: #F9B731; /* Golden Accent */

    /* Foundation Spectrum - Warmer feel */
    --dark: #2E2221; /* Warm Mocha Slate */
    --light: #FDFBF8; /* Warm Off-White */
    --gray: #826F6D; /* Warm Slate Gray */
    --success: #16A34A; /* Warm Distinct Green */
    --warning: #FBBF24; /* Soft Gold-Yellow */

    /* Gradients - Logo Spectrum Core */
    --gradient-primary: linear-gradient(135deg, #F13F6E, #FF7F60, #F9B731); /* Full Brand Spectrum */
    --gradient-accent: linear-gradient(135deg, #FF7F60, #7038A8); /* Contrast Coral->Purple */
    --gradient-dark: linear-gradient(135deg, #2E2221, #4B3331); /* Warm Mocha Darks */

    /* Standard Values remains same */
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Dark mode variables - also warmer spectrum darks */
    --dark-bg: #1A1110; /* Warm Cocoa Dark */
    --dark-card: #2E2221; /* Warm Mocha Dark */
    --dark-text: #F1F5F9;
    --dark-gray: #BDB2B0;
    --dark-border: #4B3331;
    --dark-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --dark-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .stat-item,
body.dark-mode .contact-form,
body.dark-mode .contact-detail,
body.dark-mode .journey-card,
body.dark-mode .form-control {
    background-color: var(--dark-card);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode .section-title h2,
body.dark-mode .skill-header h3,
body.dark-mode .project-content h3,
body.dark-mode .journey-card h3,
body.dark-mode .contact-text h4,
body.dark-mode .form-group label {
    color: var(--dark-text);
}

body.dark-mode header {
    background-color: rgba(46, 34, 33, 0.95) !important; /* Warmer dark mode header */
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode header.hidden {
    background-color: rgba(46, 34, 33, 0.95) !important;
}

body.dark-mode .hero-text p,
body.dark-mode .project-content p,
body.dark-mode .journey-card p,
body.dark-mode .contact-info p,
body.dark-mode .stat-text,
body.dark-mode .contact-text p {
    color: var(--dark-gray);
}

body.dark-mode .skill-item {
    background-color: rgba(241, 63, 110, 0.2); /* Transparent brand magenta */
    color: var(--primary);
}

body.dark-mode .tech-tag {
    background-color: rgba(241, 63, 110, 0.2);
    color: var(--primary);
}

body.dark-mode .form-control {
    background-color: #241A19;
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .form-control:focus {
    background-color: #241A19;
    border-color: var(--primary);
}

body.dark-mode .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .btn-outline:hover {
    color: white;
}

body.dark-mode .skills {
    background-color: #1A1110;
}

body.dark-mode .contact {
    background-color: #1A1110;
}

body.dark-mode .bg-element {
    background: rgba(241, 63, 110, 0.1); /* Transparent brand element */
}

body.dark-mode header {
    background-color: rgba(46, 34, 33, 0.95);
    backdrop-filter: blur(10px);
}

body.dark-mode .logo {
    color: var(--dark-text);
}

body.dark-mode .nav-links a {
    color: var(--dark-text);
}

body.dark-mode .mobile-menu-btn {
    color: var(--dark-text);
}

/* Dark mode toggle switch - updated for brand gold/blue dark contrast */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    left: 4px;
}

body.dark-mode .theme-toggle::after {
    transform: translateX(30px);
    background: var(--dark-text);
}

.theme-toggle i {
    font-size: 0.9rem;
    z-index: 1;
}

.theme-toggle .fa-sun {
    color: #f59e0b; /* Golden sun */
    margin-right: auto;
    position: absolute;
    left: 8px;
}

.theme-toggle .fa-moon {
    color: #94a3b8; /* Cool moon is ok */
    margin-left: auto;
    position: absolute;
    right: 10px;
}

body.dark-mode .theme-toggle .fa-sun {
    color: #94a3b8;
}

body.dark-mode .theme-toggle .fa-moon {
    color: #000000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    cursor: default;
    width: 100%;
    max-width: 100%;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: 3.2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary); /* Use logo core gradient */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    animation: lineGrow 1s ease-out;
}

@keyframes lineGrow {
    0% {
        width: 0;
    }

    100% {
        width: 80px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--gradient-primary); /* Logo core gradient */
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-accent); /* Logo contrast gradient */
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary); /* Logo solid primary */
    color: var(--primary);
}

.btn-outline:hover {
    color: white;
}

/* Animated Background Elements - Updated to warmer spectrum */
.bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(241, 63, 110, 0.05); /* Transparent Brand Magenta */
    z-index: -1;
    animation: float 20s infinite linear;
}

.bg-element-1 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: -10%;
    animation-delay: 0s;
}

.bg-element-3 {
    width: 200px;
    height: 200px;
    top: 17%;
    right: 10%;
    animation-delay: 10s;
}

.bg-element-4 {
    width: 200px;
    height: 200px;
    top: 72%;
    right: 50%;
    animation-delay: 15s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(0) rotate(180deg);
    }

    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    transform: translateY(0);
}

header.hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: var(--gradient-primary); /* Logo core gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient-primary); /* Logo core gradient */
    bottom: -5px;
    left: 0;
    transition: var(--transition);
    border-radius: 5px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary); /* Logo primary solid */
}

/* FIXED: Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 140px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.hero-text h1 span {
    background: var(--gradient-primary); /* Logo core gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: scaleIn 1s ease 0.9s forwards;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 0 auto;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: var(--shadow-hover);
    animation: profileFloat 6s ease-in-out infinite;
    z-index: 5;
    position: relative;
}

@keyframes profileFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Circular Skills Animation - FIXED to be less aggressive with updated logo-colors */
.skills-orbits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.skill-orbit {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(241, 63, 110, 0.2); /* Transparent brand primary */
}

/* Orbits remains same scale */
.skill-orbit-1 {
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    animation: rotateOrbit 80s linear infinite;
}

.skill-orbit-2 {
    width: calc(100% + 150px);
    height: calc(100% + 150px);
    animation: rotateOrbit 70s linear infinite reverse;
}

.skill-orbit-3 {
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    animation: rotateOrbit 90s linear infinite;
}

.skill-orbit-4 {
    width: calc(100% + 250px);
    height: calc(100% + 250px);
    animation: rotateOrbit 85s linear infinite reverse;
}

.skill-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 10;
    font-size: 1.5rem;
    color: var(--primary); /* Logo primary spectrum */
}

.skill-badge:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: var(--gradient-primary); /* Full spectrum on hover */
    color: white;
}

@keyframes rotateOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.floating-badge {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--primary); /* Logo primary solid */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow);
    animation: badgeFloat 8s ease-in-out infinite;
    z-index: 20;
}

/* .floating-badge:nth-child(2) - updated to warm spectrum contrast */
.badge1 {
    top: 70%;
    left: 0%;
    background: linear-gradient(135deg, var(--warning), var(--accent)); /* Warm gold contrast */
    animation-delay: 1s;
}

/* .floating-badge:nth-child(3) - updated to primary gradient spectrum */
.badge2 {
    bottom: 60%;
    left: 80%;
    background: var(--gradient-primary); /* Logo spectrum core */
    animation-delay: 2s;
}

@keyframes badgeFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-25px) scale(1.1);
    }
}

/* Skills Section - updated for warm foundations */
.skills {
    position: relative;
    background-color: var(--light); /* Warm light spectrum */
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary); /* Logo primary spectrum solid */
    transition: var(--transition);
}

.skill-card:hover::before {
    height: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary); /* Logo core gradient */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(241, 63, 110, 0.2); /* Transparent brand-primary */
}

.skill-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    background-color: rgba(241, 63, 110, 0.1); /* Transparent brand primary magenta */
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-item i {
    font-size: 0.9rem;
}

.skill-item:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Projects Section */
.projects-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    padding: 12px 28px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    border-color: var(--primary); /* Logo spectrum primary solid */
    color: var(--primary);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--gradient-primary); /* Full Logo core gradient */
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
}

.project-card.visible {
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.project-img-container {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 63, 110, 0.9); /* Opaque primary magenta spectrum */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 30px;
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary); /* Logo core gradient */
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.project-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: rgba(241, 63, 110, 0.1); /* Transparent primary magenta */
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Journey Section - updated to warmer dark background */
.journey {
    background: var(--gradient-dark); /* Warm mocha spectrum darks */
    color: white; /* Text contrast */
    position: relative;
}

.journey-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.journey-card {
    background: white;
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.journey-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.journey-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent); /* Logo contrast gold accent */
}

.journey-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--accent); /* Logo contrast gold accent */
}

.journey-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: rgb(0, 0, 0); /* Still black on light card */
}

.journey-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.journey-date {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(249, 183, 49, 0.2); /* Transparent contrast gold */
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stats Section - Updated standard slate text to warmer slate */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
}

.stat-item.visible {
    opacity: 1;
    transform: scale(1);
}

.stat-item:hover {
    scale: 1.05;
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-primary); /* Logo core gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--gradient-primary); /* Logo core gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-text {
    font-size: 1.2rem;
    color: var(--gray);
}

/* Testimonials Section - updated to warmer foundation */
.testimonials {
    padding: 80px 0;
    background-color: var(--light); /* Warm light foundations */
}

.dark-mode .testimonials {
    background-color: var(--dark-bg);
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Slider Styles */
.testimonial-slider {
    overflow: hidden;
    margin: 50px 0;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.dark-mode .testimonial-slider {
    background: var(--dark-card);
    box-shadow: var(--dark-shadow);
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease;
}

/* Slide Styles */
.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary); /* Logo primary solid spectrum */
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 30px;
    font-style: italic;
}

.dark-mode .testimonial-text {
    color: var(--dark-text);
}

.client-info {
    margin-top: 30px;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary); /* Logo spectrum primary solid */
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-name {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.dark-mode .client-name {
    color: var(--dark-text);
}

.client-role {
    color: var(--gray);
    font-size: 1rem;
}

.dark-mode .client-role {
    color: var(--dark-gray);
}

/* Timer Dots */
.timer-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.timer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .timer-dot {
    background: #475569;
}

.timer-dot.active {
    background: var(--primary); /* Logo spectrum primary solid */
    transform: scale(1.2);
}

/* Contact Section - updated to warmer light foundation */
.contact {
    background-color: var(--light); /* Warm light foundation */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--gradient-primary); /* Logo core gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.contact-detail:hover {
    scale: 1.05;
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary); /* Logo core gradient */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-text h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-text p {
    margin: 0;
    color: var(--gray);
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light); /* Warm light input background */
}

.form-control:focus {
    border-color: var(--primary); /* Logo primary solid spectrum */
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(241, 63, 110, 0.1); /* Transparent primary magenta */
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.success-message {
    background-color: #D1F2EB; /* Warmer spectrum transparent success */
    color: #0E6655; /* Warm spectrum success distinct green */
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #A3E4D7;
    display: none;
}

.error-message {
    background-color: #F8D7DA; /* Opaque error is distinct */
    color: #721C24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #F5C6CB;
    display: none;
}

/* Footer - updated for warmer foundations */
footer {
    background: var(--gradient-dark); /* Warm cocoa dark foundations */
    color: white; /* Text contrast */
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: white; /* Contrast white in footer logo */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    background: var(--gradient-primary); /* Full Logo core spectrum */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1); /* Opaque standard transparent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary); /* Logo spectrum primary solid */
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Design - Orbits adjustments keep warm foundations and colors */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .profile-container {
        width: 400px;
        height: 400px;
    }

    .skill-orbit-1 {
        width: calc(100% + 80px);
        height: calc(100% + 80px);
    }

    .skill-orbit-2 {
        width: calc(100% + 160px);
        height: calc(100% + 160px);
    }

    .skill-orbit-3 {
        width: calc(100% + 240px);
        height: calc(100% + 240px);
    }

    .skill-orbit-4 {
        width: calc(100% + 320px);
        height: calc(100% + 320px);
    }
}

/* FIXED: Tablet breakpoint changes remain same structure with warm foundation dark mode and colors */
@media (max-width: 991px) {
    .nav-right {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-image {
        order: 1;
    }

    .hero-btns {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white; /* Light mode nav is white ok */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        padding: 20px;
        margin: 0;
    }

    body.dark-mode .nav-links {
        background: var(--dark-card); /* Warmer dark mode slate */
    }

    .nav-links.active {
        right: 0;
    }

    .profile-container {
        width: 350px;
        height: 350px;
        margin-top: 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-detail {
        width: 100%;
        max-width: 500px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .skill-orbit-1 {
        width: calc(100% + 60px);
        height: calc(100% + 60px);
    }

    .skill-orbit-2 {
        width: calc(100% + 120px);
        height: calc(100% + 120px);
    }

    .skill-orbit-3 {
        width: calc(100% + 180px);
        height: calc(100% + 180px);
    }

    .skill-orbit-4 {
        width: calc(100% + 240px);
        height: calc(100% + 240px);
    }

    .journey-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }

    .footer-content p {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-content :first-child {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .profile-container {
        width: 320px;
        height: 320px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }

    .contact-container {
        gap: 30px;
    }

    .floating-badge {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .skill-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .skill-orbit-1 {
        width: calc(100% + 50px);
        height: calc(100% + 50px);
    }

    .skill-orbit-2 {
        width: calc(100% + 100px);
        height: calc(100% + 100px);
    }

    .skill-orbit-3 {
        width: calc(100% + 150px);
        height: calc(100% + 150px);
    }

    .skill-orbit-4 {
        width: calc(100% + 200px);
        height: calc(100% + 200px);
    }

    .testimonial-slide {
        padding: 30px 20px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .floating-badge {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .skill-card {
        padding: 25px;
        min-width: unset;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .profile-container {
        width: 280px;
        height: 280px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .contact-form {
        margin: 0 auto;
        padding: 25px 20px;
    }

    .contact-info h3 {
        font-size: 2rem;
    }

    .contact-detail {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .contact-icon {
        margin-bottom: 0;
        min-width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .contact-text h4{
        text-align: center;
    }

    .skill-orbit-1 {
        width: calc(100% + 40px);
        height: calc(100% + 40px);
    }

    .skill-orbit-2 {
        width: calc(100% + 80px);
        height: calc(100% + 80px);
    }

    .skill-orbit-3 {
        width: calc(100% + 120px);
        height: calc(100% + 120px);
    }

    .skill-orbit-4 {
        width: calc(100% + 160px);
        height: calc(100% + 160px);
    }

    .skill-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .badge1 {
        top: 5%;
        left: 75%;
    }

    .badge2 {
        bottom: 5%;
        left: 5%;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
    .form-group label{
        text-align:left;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.6rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .contact-detail {
        margin: 0 15px;
    }

    .floating-badge {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .skill-orbit-1 {
        width: calc(100% + 30px);
        height: calc(100% + 30px);
    }

    .skill-orbit-2 {
        width: calc(100% + 60px);
        height: calc(100% + 60px);
    }

    .skill-orbit-3 {
        width: calc(100% + 90px);
        height: calc(100% + 90px);
    }

    .skill-orbit-4 {
        width: calc(100% + 120px);
        height: calc(100% + 120px);
    }

    .skill-badge {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .badge1,
    .badge2 {
        display: none;
    }
}

/* for i phone se */
/* iPhone SE (320px - 400px) Specific Adjustments remains standard structure with warm foundations and colors */
@media (max-width: 400px) and (min-width: 320px) {
    .container {
        padding: 0 12px;
    }

    section {
        padding: 50px 0;
    }

    header {
        height: 60px;
    }

    .navbar {
        height: 60px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav-right {
        gap: 15px;
    }

    .theme-toggle {
        width: 50px;
        height: 25px;
    }

    .theme-toggle::after {
        width: 18px;
        height: 18px;
    }

    body.dark-mode .theme-toggle::after {
        transform: translateX(25px);
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 6px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-text h1 {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .profile-container {
        width: 240px;
        height: 240px;
        margin: 0 auto 20px;
    }

    .profile-pic {
        border-width: 5px;
    }

    .skill-orbit-1 {
        width: calc(100% + 40px);
        height: calc(100% + 40px);
    }

    .skill-orbit-2 {
        width: calc(100% + 80px);
        height: calc(100% + 80px);
    }

    .skill-orbit-3 {
        width: calc(100% + 120px);
        height: calc(100% + 120px);
    }

    .skill-orbit-4 {
        width: calc(100% + 160px);
        height: calc(100% + 160px);
    }

    .skill-badge {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .floating-badge {
        width: 55px;
        height: 55px;
        font-size: 1rem;
    }

    .badge1 {
        top: 5%;
        left: 70%;
    }

    .badge2 {
        bottom: 5%;
        left: 5%;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        padding-bottom: 15px;
    }

    .section-title h2::after {
        width: 50px;
        height: 4px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .skill-card {
        padding: 20px;
        min-width: unset;
    }

    .skill-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .skill-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .skill-header h3 {
        font-size: 1.4rem;
    }

    .skill-items {
        justify-content: center;
        gap: 8px;
    }

    .skill-item {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        margin-bottom: 0;
    }

    .project-img-container {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .project-category {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .tech-tag {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .journey-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .journey-card {
        padding: 25px;
    }

    .journey-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .journey-card h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .journey-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .stat-text {
        font-size: 0.9rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .contact-detail {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-text h4 {
        font-size: 1.1rem;
    }

    .contact-text p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    footer {
        padding: 50px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-links {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.85rem;
        padding-top: 20px;
    }

    .nav-links {
        width: 250px;
        padding: 80px 20px 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    @media (orientation: landscape) and (max-height: 500px) {
        .hero {
            padding-top: 80px;
            padding-bottom: 40px;
            min-height: 100vh;
        }

        .hero-content {
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .profile-container {
            width: 200px;
            height: 200px;
        }

        .skill-orbit-1 {
            width: calc(100% + 30px);
            height: calc(100% + 30px);
        }

        .skill-orbit-2 {
            width: calc(100% + 60px);
            height: calc(100% + 60px);
        }

        .skill-orbit-3 {
            width: calc(100% + 90px);
            height: calc(100% + 90px);
        }

        .skill-orbit-4 {
            width: calc(100% + 120px);
            height: calc(100% + 120px);
        }
    }
}

/* Extra Small Devices (320px and below) */
@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .profile-container {
        width: 220px;
        height: 220px;
    }

    .skill-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .floating-badge {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .badge1 {
        top: 3%;
        left: 75%;
    }

    .badge2 {
        bottom: 3%;
        left: 3%;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .skill-orbit-1 {
        width: calc(100% + 30px);
        height: calc(100% + 30px);
    }

    .skill-orbit-2 {
        width: calc(100% + 60px);
        height: calc(100% + 60px);
    }

    .skill-orbit-3 {
        width: calc(100% + 90px);
        height: calc(100% + 90px);
    }

    .skill-orbit-4 {
        width: calc(100% + 120px);
        height: calc(100% + 120px);
    }
}

/* FIXED: Added overflow prevention and warm foundation dark mode support remains standard */
@media (max-width: 991px) {
    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 1001;
    }
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Project Modal & Lightbox Styles 
========================================= */

.project-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 17, 16, 0.85); 
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--light);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.project-modal.active .modal-content {
    transform: translateY(0);
}

body.dark-mode .modal-content {
    background: var(--dark-card);
    color: var(--dark-text);
}

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

body.dark-mode .modal-body h2 { color: var(--dark-text); }

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.modal-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.modal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary);
}

/* Fullscreen Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

#lightboxImage {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(241, 63, 110, 0.2);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover { color: var(--primary); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* =========================================
   Modern Custom Scrollbar
========================================= */

/* Firefox Support */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--gray) transparent;
}

/* Chrome, Edge, and Safari Support */
.modal-content::-webkit-scrollbar {
    width: 8px; /* Makes it nice and thin */
}

.modal-content::-webkit-scrollbar-track {
    background: transparent; /* Hides the ugly background track */
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gray); /* Uses your warm slate gray */
    border-radius: 10px; /* Rounds the edges */
    border: 2px solid var(--dark-card); /* Creates a little padding around the thumb */
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary); /* Turns brand magenta when you hover over it! */
}

/* Optional: Apply to the whole website, not just the modal */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}