:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary: #10b981;
    --secondary-light: rgba(16, 185, 129, 0.1);
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #10b981 100%);
    --gradient-horizontal: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #10b981 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.smooth-scroll-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}


a, button, .nav-dot, .filter-tag, .project-card, .skill-item, .pagination-btn, .view-project-btn {
    cursor: none !important;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, var(--secondary) 100%);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9997;
    transition: transform 0.1s ease;
}

.reveal-on-scroll {
    opacity: 1;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.4s; }
.reveal-on-scroll.delay-5 { transition-delay: 0.5s; }

.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.parallax-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatDot 20s infinite ease-in-out;
}

@keyframes floatDot {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-15px, 20px); }
    75% { transform: translate(30px, 15px); }
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: 1;
}

.hover-glow:hover::before {
    left: 100%;
}

.float-animation {
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.text-gradient-scroll {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        #8b5cf6 25%,
        var(--secondary) 50%,
        #f59e0b 75%,
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 8s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.scene-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 80%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    z-index: -1;
}

.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

#projects .container {
    width: 1488px;
}

section {
    min-height: 100vh;
    padding: 60px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-dot:hover {
    transform: scale(1.5);
}

.nav-dot.active {
    background: var(--gradient);
    transform: scale(1.5);
}

.nav-dot::after {
    content: attr(data-title);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dot:hover::after {
    opacity: 1;
    top: -30px;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.skill-item {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-heavy);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-horizontal);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.projects-filter-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-stat {
    background: var(--primary-light);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-search {
    position: relative;
    min-width: 300px;
}

.filter-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.filter-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.sort-select {
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.filter-tags-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.filter-tag {
    padding: 10px 24px;
    background: white;
    color: var(--dark);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer !important;
    transition: var(--transition);
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.filter-tag.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.filter-tag.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.filter-tag i {
    font-size: 0.8rem;
}

.filter-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.project-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: var(--shadow-heavy);
}

.project-card.featured {
    grid-column: span 1;
}

.project-image {
    height: 240px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.project-card.featured .project-image {
    height: 300px;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
}

.project-content {
    padding: 32px;
    position: relative;
}

.project-card.featured .project-content {
    padding: 40px;
}

.project-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    display: none;
}

.no-projects i {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.no-projects p {
    font-size: 1.2rem;
    color: var(--gray);
}

.projects-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--gray);
    font-weight: 600;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform var(--transition);
}

.project-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.timeline {
    position: relative;
    padding-left: 60px;
    margin-top: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid var(--light-gray);
    background: transparent;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-label {
    position: absolute;
    top: 16px;
    left: 0;
    color: var(--gray);
    transition: var(--transition);
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -20px;
    font-size: 0.875rem;
    color: var(--primary);
}

.floating-label {
    position: relative;
    height: 100px;
}

.code-terminal {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.code-line {
    display: block;
    margin-bottom: 8px;
    opacity: 0;
    animation: typewriter 0.3s forwards;
}

@keyframes typewriter {
    to { opacity: 1; }
}

.stats-counter {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
}

.counter {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.fab {
    position: unset !important;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search {
        min-width: 100%;
    }
    
    .project-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-container {
        padding: 8px 16px;
        gap: 6px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .project-showcase {
        grid-template-columns: 1fr;
    }
    
    .stats-counter {
        flex-direction: column;
        gap: 40px;
    }
    
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .projects-filter-container {
        padding: 24px;
    }
    
    .filter-categories {
        justify-content: center;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.875rem;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: white;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(60px); }
}


/* Games Section Styles */
.daring-text {
    color: #ff4a4a;
    text-shadow: 0 0 10px rgba(255, 74, 74, 0.7);
    font-size: 1.8rem;
    margin: 15px 0 25px 0;
    animation: dangerFlash 1.5s infinite alternate;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 700;
}

@keyframes dangerFlash {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 74, 74, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 74, 74, 0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 120, 74, 1);
    }
}

.games-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-heavy);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-horizontal);
}

.game-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.game-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.game-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.game-card p {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.game-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.game-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.game-nav-btn {
    padding: 12px 24px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--light-gray);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.game-nav-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.game-display-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: none;
}

.game-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--gradient);
    color: white;
}

.close-game-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-game-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.game-frame {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.game-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

.placeholder-content {
    text-align: center;
    color: var(--gray);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.game-instructions {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.game-instructions h4 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive styles for games */
@media (max-width: 768px) {
    .games-slider {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 500px;
    }

    .game-display-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 400px;
    }

    .game-card {
        padding: 24px;
    }
}


/* Games Slider Styles */
.games-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-heavy);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-horizontal);
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.game-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.game-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.game-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-game-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.play-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Game Navigation */
.game-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.game-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--dark);
}

.game-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.game-dots {
    display: flex;
    gap: 10px;
}

.game-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.game-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Game Display */
.game-display-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    display: none;
}

.game-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--gradient);
    color: white;
}

.close-game-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-game-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.game-frame {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .games-slider {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 500px;
    }

    .game-display-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .game-navigation {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .game-frame {
        height: 400px;
    }

    .game-card {
        padding: 20px;
    }
}

/* Games Slider Styles - Full Width Slides */
.games-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.games-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.games-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.game-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

.slide-content {
    width: 100%;
    padding: 0 15px;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card-header {
    margin-bottom: 30px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.game-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.2;
}

.game-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 800px;
}

.game-card-body {
    flex-grow: 1;
    margin-bottom: 30px;
}

.game-preview {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-terminal {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #3d3d3d;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: #999;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-left: 15px;
}

.terminal-content {
    padding: 25px;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.terminal-prompt {
    color: var(--primary);
    font-weight: 600;
    margin-right: 10px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.game-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 1rem;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius);
}

.game-stat i {
    color: var(--primary);
    font-size: 1.2rem;
}

.game-card-footer {
    display: flex;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

/* Dots Indicator */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 20px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-card {
        padding: 30px;
    }

    .game-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 992px) {
    .game-card {
        padding: 25px;
    }

    .game-title {
        font-size: 1.7rem;
    }

    .slider-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .game-stats {
        gap: 20px;
    }

    .game-stat {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 0 10px;
    }

    .game-card {
        padding: 20px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-description {
        font-size: 1rem;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .slider-navigation {
        padding: 0 10px;
    }

    .game-stats {
        gap: 15px;
    }

    .game-stat {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    .game-card-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .terminal-content {
        padding: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-card {
        padding: 16px;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .game-stats {
        gap: 10px;
        justify-content: center;
    }

    .game-stat {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

section#games {
    flex-direction: column;
}

/* Reset all cursor properties */
* {
    cursor: auto;
}

/* Specifically target interactive elements */
a, button, input[type="button"], input[type="submit"], input[type="reset"] {
    cursor: pointer !important;
}

/* Fix for disabled states */
button:disabled,
input:disabled {
    cursor: not-allowed !important;
}

/* Glass morphism elements */
.glass {
    cursor: default !important;
}

.glass button,
.glass a {
    cursor: pointer !important;
}

/* Fix for game-specific issues */
.game-slide * {
    cursor: default;
}

.game-slide button,
.game-slide a,
.game-slide .btn {
    cursor: pointer !important;
}

/* Ensure no parent is hiding cursor */
body, html {
    cursor: default !important;
}

/* Remove any cursor:none declarations */
*[style*="cursor: none"],
*[style*="cursor:none"] {
    cursor: auto !important;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.preview-section {
    margin-bottom: 30px;
}

.preview-placeholder {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--gray);
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* Modal Styles - Updated Layout */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px 48px;
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.modal-category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    color: white;
    line-height: 1.1;
    max-width: 90%;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.modal-close-btn {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 40px 48px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.modal-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.modal-section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
    font-weight: 700;
}

.modal-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Stats */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modal-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--light);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.modal-stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
    background: white;
}

.modal-stat-item i {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.modal-stat-item i.featured {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
}

/* Tech Tags */
.modal-tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.modal-tech-tag {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.05);
}

.modal-tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Image Container */
.modal-image-container {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.1),
        inset 0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.modal-image-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 50px rgba(99, 102, 241, 0.15),
        inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-image-container:hover .modal-image {
    transform: scale(1.02);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    z-index: 2;
}

.image-placeholder i {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--light-gray);
    opacity: 0.6;
}

.image-placeholder p {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 500;
}

/* Description */
.modal-description {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.15rem;
    margin: 0;
}

.modal-description p {
    margin: 0;
    line-height: 1.8;
    color: var(--dark);
    opacity: 0.9;
}

/* Buttons */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.modal-btn {
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary {
    background: var(--light);
    color: var(--dark);
    border-color: var(--light-gray);
}

.modal-btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.15);
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.modal-btn:disabled:hover::before {
    left: -100%;
}

/* Responsive Modal */
@media (max-width: 1200px) {
    .modal-grid {
        gap: 32px;
    }

    .modal-title {
        font-size: 2.4rem;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal-image-container {
        height: 300px;
    }

    .modal-title {
        font-size: 2.2rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 30px;
    }

    .modal-header {
        padding: 24px 30px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-section {
        padding: 24px;
    }

    .modal-close-btn {
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .modal-image-container {
        height: 250px;
    }

    .modal-stat-item {
        padding: 16px;
    }

    .modal-stat-item i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }
    .code-line {
        white-space: pre-wrap;
        white-space-collapse: collapse;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-section {
        padding: 20px;
    }

    .modal-section-title {
        font-size: 1.2rem;
        padding-bottom: 12px;
    }

    .modal-image-container {
        height: 200px;
    }

    .modal-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .modal-close-btn {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
