/* ============================================
   V2 PORTFOLIO - ENHANCED PREMIUM DESIGN
   ============================================ */

/* --- CSS Variables & Theme --- */
:root {
    --primary: #667eea;
    --primary-light: #8b9cf7;
    --secondary: #764ba2;
    --accent: #f093fb;
    --bg-dark: #0a0a0a;
    --bg-dark-lighter: #121218;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-primary: rgba(102, 126, 234, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --nav-bg: rgba(10, 10, 10, 0.7);
    --nav-bg-scrolled: rgba(10, 10, 10, 0.95);
}


[data-theme="light"] {
    --bg-dark: #f8f9fc;
    --bg-dark-lighter: #ffffff;
    --text-white: #1a1a2e;
    --text-muted: #666666;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glow-primary: rgba(102, 126, 234, 0.3);
    --nav-bg: rgba(248, 249, 252, 0.8);
    --nav-bg-scrolled: rgba(248, 249, 252, 0.95);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

/* --- Canvas Container --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 130px 20px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 130px 15px 60px;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}





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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Fixed Badges --- */
.live-users-badge,
.timezone-badge {
    position: fixed;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.live-users-badge:hover,
.timezone-badge:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.live-users-badge {
    top: 20px;
    left: 20px;
}

.timezone-badge {
    top: 20px;
    left: 180px;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 15px #4ade80, 0 0 30px rgba(74, 222, 128, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.eye-icon {
    width: 16px;
    height: 16px;
    fill: var(--text-white);
    stroke: var(--text-white);
}

/* --- Toggle Buttons --- */
.lang-toggle,
.theme-toggle {
    position: fixed;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lang-toggle {
    top: 20px;
}

.theme-toggle {
    top: 80px;
}

.lang-toggle:hover,
.theme-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 8px 32px var(--glow-primary);
}

/* Theme Icon Visibility - Show sun in dark mode, moon in light mode */
.theme-icon {
    font-size: 20px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode (default): Show sun icon, hide moon */
.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

/* Light mode: Show moon icon, hide sun */
[data-theme="light"] .sun-icon {
    opacity: 0;
}

[data-theme="light"] .moon-icon {
    opacity: 1;
}

[data-theme="light"] [data-i18n="contact_internship"] {
    color: #000 !important;
}

/* --- Sections --- */
section {
    min-height: 100vh;
    padding: 120px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 15px;
    /* Increased from 12px */
    margin-bottom: 5px;
    /* Reduced from 15px */
    padding: 10px 20px;
    /* Adjusted padding */
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
}

.hero-main {
    flex: 1;
    min-width: 320px;
}

.hero-section>p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-weight: 600;
    color: var(--text-white);
}

/* --- Recruiter Card --- */
.recruiter-card {
    flex: 0 0 380px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 35px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.recruiter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.recruiter-card h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-white);
}

.recruiter-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.recruiter-info-item:last-child {
    border-bottom: none;
}

.recruiter-label {
    color: var(--primary-light);
    font-weight: 600;
}

.recruiter-value {
    color: var(--text-white);
    text-align: right;
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--glow-primary);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--glow-primary);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 10px 30px var(--glow-primary);
}

.cta-button.mini {
    padding: 12px 25px;
    font-size: 14px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: 0 20px 50px var(--glow-primary);
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    /* Minimized space */
    margin-top: 40px;
    grid-column: 1 / -1;
}

.about-stat-card {
    flex: 1;
    /* Makes them equal and fills space */
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    padding: 40px 20px;
    /* Increased size */
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--glow-primary);
}

.about-stat-card h4 {
    font-size: 56px;
    /* Increased size */
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.about-stat-card p {
    font-size: 16px;
    /* Increased size */
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--glow-primary);
}

.timeline-date {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

/* --- Certifications Timeline --- */
.horizontal-timeline {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 25px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.horizontal-timeline::-webkit-scrollbar {
    height: 6px;
}

.horizontal-timeline::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 3px;
}

.horizontal-timeline::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.cert-item {
    flex: 0 0 260px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cert-item:hover::before {
    transform: scaleX(1);
}

.cert-item:hover {
    transform: translateY(-10px);
    background: var(--glass-bg-hover);
    border-color: var(--primary);
    box-shadow: 0 20px 50px var(--glow-primary);
}

.cert-date {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-item h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.cert-item p {
    font-size: 13px;
}

/* --- Projects Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 35px;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px var(--glow-primary);
}

.project-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle darken gradient - You can adjust 0.6 to change intensity */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card-content h3,
.project-card-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-card-content h3,
.project-card:hover .project-card-content p {
    opacity: 1;
    transform: translateY(0);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-light);
}

.project-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px var(--glow-primary);
}

.project-link::after {
    display: none;
}

/* --- Project Modal GitHub Button --- */
.project-modal-github {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.project-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--glow-primary);
}

.project-github-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--glow-primary);
}

.project-github-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- Skills Section --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 25px;
}

.skill-progress-item {
    margin-bottom: 20px;
}

.skill-progress-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    transition: width 1s ease;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* --- Contact Section --- */
.cv-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.4s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: var(--glass-bg-hover);
    box-shadow: 0 20px 50px var(--glow-primary);
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-card p {
    font-size: 14px;
    word-break: break-word;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-dark-lighter);
    margin: 15vh auto;
    padding: 50px;
    border: 1px solid var(--primary);
    width: 95%;
    max-width: 1400px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 35px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
}

.modal-image-container {
    flex: 0 0 300px;
}

.modal-image-container img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.modal-info {
    flex: 1;
}

.modal-info ul {
    list-style: none;
    margin-top: 20px;
}

.modal-info ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
}

.modal-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* --- Footer (if needed) --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--glass-border);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .recruiter-card {
        flex: 1 0 auto;
        width: 100%;
        max-width: 420px;
    }

    .cta-group {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        justify-self: center;
    }

    .about-stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-stat-card {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 100px 20px;
    }

    .section-content {
        padding: 40px 25px;
        border-radius: 20px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .live-users-badge,
    .timezone-badge {
        font-size: 11px;
        padding: 8px 12px;
    }

    .timezone-badge {
        top: 60px;
    }

    .lang-toggle,
    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .theme-toggle {
        top: 70px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image-container {
        flex: auto;
    }

    .modal-content {
        padding: 30px;
        margin: 10% auto;
        width: 90%;
    }

    .hero-quick-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .recruiter-card {
        padding: 25px;
    }

    .recruiter-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .recruiter-value {
        text-align: left;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme='light'] .scroll-top-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.scroll-top-btn:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.arrow-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover .arrow-icon {
    transform: translateY(-3px);
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* CTA Button Fixes for Readability */
.cta-button.secondary {
    color: var(--primary) !important;
}

.cta-button.secondary:hover {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.project-modal-content {
    max-width: 1400px !important;
    width: 98% !important;
    background: var(--bg-dark-lighter) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-project-info {
    padding: 30px;
    color: var(--text-white);
}

.modal-project-info h2 {
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-project-info p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
}

.screenshot-grid img {
    width: 100%;
    height: 65px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-grid img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Grid Item Wrapper (for labels) */
.grid-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    height: 65px;
    width: 90px;
    /* Small thumbnail size */
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    /* Let clicks pass to wrapper */
}

.media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 5px 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.grid-item:hover .media-label {
    opacity: 1;
    transform: translateY(0);
}

#project-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal.active {
    display: block !important;
}

/* Two-Column Project Modal Styles */
.project-modal-body.two-column {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px;
    max-height: 90vh;
}

.modal-gallery-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}



.modal-info-side h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-info-side p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .project-modal-body.two-column {
        flex-direction: column;
    }

    .modal-gallery-side,
    .modal-info-side {
        flex: none;
        width: 100%;
    }

    .project-card {
        min-height: 350px;
    }
}

/* --- Lightbox Modal Styles --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 5001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

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

.lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    transition: all 0.4s ease;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 5005;
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 0 20px var(--glow-primary);
}

.lightbox-nav.prev {
    left: -60px;
}

.lightbox-nav.next {
    right: -60px;
}

.lightbox-controls {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}


@media (max-width: 1200px) {
    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
}

/* Modal Image Interactivity */
#project-modal-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#project-modal-img:hover {
    transform: scale(1.01);
}