/* ==============================================
   PROJECTS PAGE STYLES - RESPONSIVE
   ============================================== */


/* CSS Variables - Matching about-style.css */

:root {
    --primary-color: #4a6fff;
    --secondary-color: #ff6b6b;
    --accent-color: #00d4aa;
    --accent-color2: #044d85;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --text-secondary: #94a3b8;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 5px 20px rgba(38, 136, 255, 0.445);
    --shadow-medium: 0 10px 30px rgba(255, 23, 147, 0.492);
    --border-radius: 12px;
    --dark-bg: #0f172a;
}


/* Reset and Base Styles */

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}


/* Preloader Styles */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    overflow: hidden;
}


/* 1. LOGO STYLES */

.logo-container2 {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
}

.logo-icon {
    width: 300px;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-icon span {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 32px;
}


/* 2. TEXT STYLES */

h1.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    position: relative;
    text-align: center;
    line-height: 1;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.2s;
}


/* Glitch Layers */

h1.brand-name::before,
h1.brand-name::after {
    content: "GameLiminals";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0.8;
}

h1.brand-name::before {
    color: #ff0055;
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

h1.brand-name::after {
    color: #00f0ff;
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.tagline-box {
    background: linear-gradient(255deg, rgba(125, 147, 255, 1) 0%, rgba(252, 70, 107, 1) 100%);
    color: #fff;
    padding: 8px 24px;
    margin-top: 20px;
    font-size: 1.1rem;
    letter-spacing: 4px;
    display: inline-block;
    box-shadow: 6px 6px 0px rgba(98, 0, 234, 0.2);
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.4s;
}

.tagline-text {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
}


/* 3. LOADING BAR */

.loader-wrapper {
    margin-top: 45px;
    width: 300px;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    animation: preloaderContent 3s ease-in-out forwards;
    animation-delay: 0.6s;
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar-fill {
    height: 100%;
    background: #6200ea;
    width: 0%;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.5);
    animation: fillBar 3s ease-in-out forwards;
}


/* 4. ANIMATIONS */

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

@keyframes fillBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes preloaderContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Glitch Keyframes */

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-1px, 0);
    }
}


/* Helper Class to Hide */

.hide-preloader {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}


/* Custom Cursor */

.cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(74, 111, 255, 0.3);
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s, width 0.2s, height 0.2s;
    mix-blend-mode: normal;
    box-shadow: 0 0 10px rgba(74, 111, 255, 0.5);
}

.cursor.hover {
    transform: scale(1.8);
    background: rgba(255, 107, 107, 0.3);
    border-color: var(--secondary-color);
}


/* Header & Navigation */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 500;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 111, 255, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    left: 50%;
    bottom: -5px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}


/* Hero Section Base */

section {
    padding: 80px 0;
}

.section-light {
    background: var(--background-gray);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Orbitron', sans-serif;
}

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


/* Projects Hero Section */

.projects-hero {
    padding: 140px 5% 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.projects-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

.projects-hero-text {
    animation: fadeInUp 1s ease;
}

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

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

.projects-title {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: rgb(0, 0, 0);
}

.projects-subtitle {
    font-size: 1rem;
    color: #042048bb;
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.8;
    margin: 0 auto 3rem;
}


/* Projects Stats */

.projects-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 111, 255, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--accent-color2);
    margin-bottom: 1rem;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color2);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-content p {
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
    font-weight: 500;
}


/* Floating Shapes */

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgb(2, 122, 177);
    border-right: 8px solid #000000;
    border-left: 3px solid #000000;
    border-bottom: 8px solid #000000;
    border-top: 3px solid #000000;
    backdrop-filter: blur(10px);
    animation: floatGameElement 8s infinite ease-in-out;
    transition: all 0.3s ease;
    z-index: 1;
}

.shape:hover {
    transform: scale(1.2);
    background: rgba(74, 111, 255, 0.3);
    box-shadow: 0 0 30px rgba(74, 111, 255, 0.5);
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-4 {
    top: 40%;
    right: 5%;
    animation-delay: 3s;
}

.shape-5 {
    top: 60%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes floatGameElement {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 111, 255, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* ==============================================
   PROJECT GRID SECTION - FIXED CARD SIZES
   Cards never stretch, all same size
   ============================================== */

.project-section {
    padding: 6rem 5%;
    background: var(--background-light);
    position: relative;
    z-index: 2;
}

.project-section .content {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-section .content h2 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.project-section .content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Project Grid Styles - Fixed card sizes, never stretch */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    /* Exactly 3 cards, fixed width */
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    justify-content: center;
}


/* Fixed card dimensions - ALL CARDS SAME SIZE */

.project-card {
    background-color: transparent;
    width: 350px;
    /* Fixed width - NEVER changes */
    height: 350px;
    /* Fixed height */
    perspective: 1000px;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
}

.project-card:hover .card-inner,
.project-card.flipped .card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--shadow-medium);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--background-light);
}

.card-front {
    border: 3px solid var(--border-color);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents image distortion, covers area properly */
    transition: transform 0.3s ease;
}

.project-card:hover .card-front img {
    transform: scale(1.05);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.project-card-content {
    text-align: center;
    width: 100%;
}

.project-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: white;
}

.project-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    backdrop-filter: blur(5px);
}


/* ==============================================
   OVERLAY STYLES - FROM INDEX.HTML
   ============================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    background: var(--background-light);
    padding: 0;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 3px solid var(--primary-color);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.overlay.hidden .overlay-content {
    transform: translateY(50px);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.overlay-header {
    padding: 2rem 2.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
}

#overlay-title {
    font-size: 2.5rem;
    color: white !important;
    margin: 0;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
}


/* Carousel Styles */

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    border: 2px solid var(--border-color);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.overlay-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

#overlay-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-list li {
    background: rgba(74, 111, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(74, 111, 255, 0.2);
}

.detail-row {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    font-size: 0.95rem;
}

.detail-row strong {
    color: var(--text-dark);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}


/* Footer */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-address {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-address i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-email {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}


/* Responsive Overlay */

@media (max-width: 768px) {
    .overlay {
        padding: 1rem;
    }

    .overlay-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }

    .overlay-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    #overlay-title {
        font-size: 1.75rem;
    }

    .overlay-body {
        padding: 1.5rem;
        flex-direction: column;
    }

    .carousel-container {
        height: 200px;
    }

    .detail-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .overlay-body {
        flex-direction: row;
    }
}


/* ========== RESPONSIVE DESIGN FOR PROJECT GRID ========== */


/* Large Desktop - 3 cards */

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(3, 350px);
    }

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


/* Desktop - 2 cards when screen is smaller */

@media (max-width: 1199px) and (min-width: 769px) {
    .project-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 1.5rem;
    }

    .project-card {
        width: 300px;
        height: 300px;
    }

    .project-card-content h3 {
        font-size: 1.3rem;
    }

    .project-card-content p {
        font-size: 0.9rem;
    }
}


/* Tablet - 2 cards */

@media (max-width: 768px) and (min-width: 481px) {
    .project-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 1.2rem;
    }

    .project-card {
        width: 280px;
        height: 280px;
    }

    .project-card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .project-card-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .card-back {
        padding: 1.5rem;
    }
}


/* Mobile - 1 card */

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 280px;
        /* Single column, fixed width */
        gap: 1rem;
        justify-content: center;
    }

    .project-card {
        width: 280px;
        height: 280px;
    }

    .project-card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .project-card-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .card-back {
        padding: 1.5rem;
    }
}


/* Very small mobile */

@media (max-width: 320px) {
    .project-grid {
        grid-template-columns: 250px;
    }

    .project-card {
        width: 250px;
        height: 250px;
    }

    .project-card-content h3 {
        font-size: 1.1rem;
    }

    .project-card-content p {
        font-size: 0.8rem;
    }
}


/* Animation for card flip */

@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }

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

.project-card {
    animation: flipIn 0.6s ease-out;
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

.project-card:nth-child(5) {
    animation-delay: 0.4s;
}

.project-card:nth-child(6) {
    animation-delay: 0.5s;
}


/* Loading animation for cards */

.project-card img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* ==============================================
   FEEDBACK & RATING STYLES
   ============================================== */

.feedback-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.feedback-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.5rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #ffc107;
}

.rating-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-feedback {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-feedback:hover {
    background: var(--accent-color2);
    transform: translateY(-2px);
}

.project-link-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.project-link-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.project-link-btn i {
    font-size: 1rem;
}


/* Feedback Stats */

.feedback-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
}


/* Responsive adjustments for feedback section */

@media (max-width: 768px) {
    .feedback-buttons {
        flex-direction: column;
    }

    .project-link-btn,
    .submit-feedback {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .rating-container {
        flex-wrap: wrap;
    }
}


/* Fix for overlay layout to prevent blank space */

.overlay-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
}

.overlay-image-container {
    flex: 0 0 auto;
    width: 100%;
}

.carousel-container {
    height: 350px;
}

.overlay-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/* Ensure details take full height */

.detail-section {
    flex: 1;
}


/* Fix feedback section layout */

.feedback-section {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}


/* Improve feedback buttons layout */

.feedback-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feedback-buttons .project-link-btn:first-child {
    background: var(--primary-color);
}

.feedback-buttons .project-link-btn:last-child {
    background: var(--text-dark);
}


/* Remove margin from last element in details */

.overlay-details>*:last-child {
    margin-bottom: 0;
}


/* Responsive adjustments for overlay */

@media (min-width: 768px) {
    .overlay-body {
        flex-direction: row;
        align-items: flex-start;
    }

    .overlay-image-container {
        flex: 0 0 45%;
    }

    .overlay-details {
        flex: 0 0 55%;
        padding-left: 2rem;
    }

    .carousel-container {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .overlay-body {
        flex-direction: column;
    }

    .overlay-image-container,
    .overlay-details {
        width: 100%;
    }

    .carousel-container {
        height: 250px;
    }

    .feedback-buttons {
        flex-direction: column;
    }

    .feedback-buttons .project-link-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* Fix for GitHub button duplication */

.github-btn-added {
    background: var(--text-dark) !important;
}

.github-btn-added:hover {
    background: var(--primary-color) !important;
}


/* ==============================================
   EXCITEMENT SLIDER STYLES
   ============================================== */

.excitement-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.excitement-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.excitement-section h4 i {
    color: var(--accent-color);
}

.excitement-slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.excitement-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.excitement-labels span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.excitement-labels span i {
    font-size: 1.2rem;
}

.excitement-slider-wrapper {
    position: relative;
    padding: 1rem 0;
}

.excitement-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff6b6b, #ffd166, #06d6a0);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.excitement-slider:hover {
    opacity: 1;
}

.excitement-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.excitement-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.excitement-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-color2);
}

.excitement-value-display {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(74, 111, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(74, 111, 255, 0.3);
}

.excitement-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.excitement-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}


/* Feedback stats adjustment */

.feedback-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .excitement-percentage {
        font-size: 2rem;
    }

    .feedback-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .excitement-percentage {
        font-size: 1.8rem;
    }

    .excitement-text {
        font-size: 0.8rem;
    }

    .feedback-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}


/* Additional responsive fixes for header and navigation */

@media (max-width: 1280px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1450px) {
    .logo-title {
        display: none;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .projects-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        margin: 3rem auto 0;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    h1.brand-name {
        font-size: 2.5rem;
    }

    .logo-icon {
        width: 200px;
        height: 200px;
    }

    .tagline-box {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .loader-wrapper {
        width: 220px;
        margin-top: 35px;
    }

    .projects-hero {
        padding: 120px 5% 60px;
        margin-top: 70px;
        min-height: auto;
    }

    .projects-title {
        font-size: 2.5rem;
    }

    .projects-stats {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .project-section {
        padding: 4rem 5% !important;
    }

    .project-section .content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    h1.brand-name {
        font-size: 2rem;
    }

    .logo-icon {
        width: 150px;
        height: 150px;
    }

    .projects-title {
        font-size: 2rem;
    }

    .projects-subtitle {
        font-size: 1rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .project-section .content h2 {
        font-size: 1.8rem;
    }

    .project-section .content p {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        align-items: left;
    }
}

@media (max-width: 360px) {
    .projects-title {
        font-size: 1.8rem;
    }
}