/* style.css */
:root {
    --primary-color: #4b6cb7;
    /* Blue color from the resume */
    --primary-hover: #3b579d;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f0f4f8;
    /* Light blue/grey suitable for the new theme */
    --border-color: #eaeaea;
    --pill-bg: rgba(255, 255, 255, 0.95);
    --pill-shadow: rgba(0, 0, 0, 0.05);
    --pill-shadow-hover: rgba(0, 0, 0, 0.08);
    --pill-border: rgba(75, 108, 183, 0.1);
    --pill-border-hover: rgba(75, 108, 183, 0.3);
    --nav-divider: #eaeaea;
    --icon-color: #555;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

body.dark-mode {
    --primary-color: #608fef;
    /* Brighter, glowing blue for dark mode */
    --primary-hover: #7ba2f2;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --bg-color: #0b1120;
    /* Deep navy/slate background */
    --bg-secondary: #162032;
    /* Slightly lighter navy */
    --border-color: #1e293b;
    --pill-bg: rgba(255, 255, 255, 0.06);
    /* Bright enough to stand out as a glass pill */
    --pill-shadow: rgba(0, 0, 0, 0.2);
    --pill-shadow-hover: rgba(0, 0, 0, 0.4);
    --pill-border: rgba(255, 255, 255, 0.1);
    /* Visible border to define the shape */
    --pill-border-hover: rgba(255, 255, 255, 0.2);
    --nav-divider: rgba(255, 255, 255, 0.2);
    --icon-color: #cbd5e1;

    /* Dark mode: unified deep space gradient */
    background: linear-gradient(180deg,
            #090e1e 0%,
            #0d1528 25%,
            #0b1120 50%,
            #0d1528 75%,
            #090e1e 100%) fixed;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Prompt', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background: linear-gradient(180deg,
            #eef2fb 0%,
            /* top: soft blue-lavender */
            #f4f7fd 25%,
            #f8faff 50%,
            /* mid: almost white */
            #f4f7fd 75%,
            #eef2fb 100%
            /* bottom: mirrors top */
        );
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Image Copy Protection Utility */
.no-copy {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: auto;
    /* Allow clicks, but not drags or context menu */
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 10px auto 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   HEADER
/* =========================================
   HEADER (Floating Pill Design)
   ========================================= */
.floating-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.nav-pill {
    background-color: var(--pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--pill-border);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--pill-shadow);
    pointer-events: auto;
    /* Re-enable clicks for the pill */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill:hover {
    box-shadow: var(--pill-shadow-hover);
    border-color: var(--pill-border-hover);
}

body.dark-mode .nav-pill {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
    text-transform: uppercase;
    margin-right: 40px;
    /* Increase spacing from logo to menu items */
    transition: color 0.3s ease;
}

body.dark-mode .logo {
    color: #fff;
    text-shadow: 0 0 15px rgba(96, 143, 239, 0.3);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-color);
    background-color: var(--pill-bg);
}

.nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #111827;
    /* Dark border as requested */
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-color: #111827;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid var(--nav-divider);
    padding-left: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--icon-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--text-color);
}

.icon-btn i {
    font-size: 1.1rem;
}

.lang-text {
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* =========================================
   MAIN CONTENT (Placeholder)
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

/* =========================================
   WAVE SECTION DIVIDERS
   ========================================= */
.section-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -2px;
    /* overlap so no gap */
    margin-bottom: -2px;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* CSS variables for wave fills — more visible in dark mode */
:root {
    --wave-fill: rgba(99, 102, 241, 0.07);
    --wave-fill2: rgba(167, 139, 250, 0.05);
}

body.dark-mode {
    --wave-fill: rgba(99, 102, 241, 0.12);
    --wave-fill2: rgba(167, 139, 250, 0.08);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 110px 5% 40px;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

/* Decorative Background Orbs */
.hero-bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, rgba(67, 97, 238, 0) 70%);
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(242, 100, 42, 0.12) 0%, rgba(242, 100, 42, 0) 70%);
    bottom: -100px;
    right: 5%;
    animation-delay: -5s;
    animation-duration: 12s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
    bottom: 10%;
    left: 15%;
    filter: blur(50px);
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);
    top: 40%;
    right: 30%;
    filter: blur(40px);
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

/* Global Scroll Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-container-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
    z-index: 10;
    margin-top: -40px;
    /* Less negative margin now that container has proper top padding */
}

.portfolio-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -2px;
    font-family: 'Inter', 'Outfit', sans-serif;
    position: relative;
    width: max-content;
    max-width: 100%;
}

.portfolio-title .port {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8ca8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    display: inline-block;
}

.portfolio-title .folio {
    color: var(--text-color);
    display: inline-block;
}

/* Add a very subtle reflection/glow to the whole title */
.portfolio-title::after {
    content: 'PORTFOLIO';
    position: absolute;
    left: 0;
    top: 5px;
    z-index: -1;
    filter: blur(24px);
    opacity: 0.15;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-details {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-details .name-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hero-details .edu-bold {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.hero-details .edu-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.4;
}

/* Co-op Info Card (Premium Glassmorphism) */
.coop-card {
    background: var(--pill-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--pill-border);
    border-radius: 28px;
    padding: 18px 24px;
    margin-top: 25px;
    max-width: fit-content;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--pill-shadow);
}

body.dark-mode .coop-card {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.coop-card:hover {
    transform: translateY(-5px);
    border-color: var(--pill-border-hover);
    box-shadow: 0 8px 25px var(--pill-shadow-hover);
}

.coop-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    background-color: #10b981;
    border-radius: 50%;
    opacity: 0.4;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.coop-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.coop-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coop-item i {
    font-size: 1rem;
    color: var(--primary-color);
}

.coop-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.coop-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent);
    margin: 12px 0;
}

.coop-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.coop-date i {
    color: var(--primary-color);
    opacity: 0.7;
}

.project-pill {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--pill-bg);
    padding: 18px 25px 18px 18px;
    border-radius: 28px;
    box-shadow: 0 4px 15px var(--pill-shadow);
    border: 1px solid var(--pill-border);
    margin-top: 25px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.pill-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pill-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.pill-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.pill-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.pill-meta i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.pill-meta i.fas.fa-external-link-alt {
    font-size: 0.75rem;
    margin-left: 5px;
}

.project-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--pill-shadow-hover);
    border-color: var(--pill-border-hover);
}

.pill-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6482d8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(75, 108, 183, 0.3);
}

.project-icon {
    font-size: 1.1rem;
    margin-left: 6px;
    vertical-align: middle;
}

.text-green {
    color: #2e7d32;
}

.text-navy {
    color: var(--primary-color);
}

body.dark-mode .text-green {
    color: #81c784;
    /* Lighter green for dark mode */
}

body.dark-mode .text-navy {
    color: #8ca8f9;
    /* Vibrant light blue for dark mode */
}

/* Typewriter Cursor */
.typewriter-cursor::after {
    content: '|';
    display: inline-block;
    color: var(--primary-color);
    animation: blinkCursor 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================
   INTERACTIVE BADGE
   ========================================= */
.hero-badge-container {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    user-select: none;
}

.pendulum-container {
    position: absolute;
    top: -350px;
    left: 50%;
    transform-origin: top center;
    cursor: grab;
    z-index: 15;
    will-change: transform;
    touch-action: none;
    /* Prevent scrolling on touch */
    transform: rotate(0deg);
    /* Start at 0deg so it doesn't flash left on F5 */
}

.pendulum-container:active {
    cursor: grabbing;
}

.lanyard {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 350px;
    background: #1e2b4d;
    /* PSU Dark Navy */
    background-image: linear-gradient(90deg, #151e36 0%, #2c3e66 30%, #435889 50%, #2c3e66 70%, #151e36 100%);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.lanyard::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: #2c3e66;
    /* PSU Mid Navy */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.badge-wrapper {
    position: absolute;
    top: 350px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.badge-clip {
    width: 35px;
    height: 50px;
    background: #435889;
    /* PSU Light Navy */
    border-radius: 6px;
    margin: 0 auto;
    position: relative;
    top: 20px;
    z-index: 2;
    background-image: linear-gradient(180deg, #5b74a8 0%, #2c3e66 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.badge-clip::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #1e2b4d;
    /* PSU Dark Navy */
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.interactive-badge {
    width: 300px;
    height: 420px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f7fb 100%);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.05),
        /* Softer main shadow */
        0 1px 3px rgba(0, 0, 0, 0.01) inset;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Lighter border */
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.3s ease;
}

.interactive-badge:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Continuous shimmer/twinkle effect for the ID card */
.interactive-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shimmerEffect 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

@keyframes shimmerEffect {
    0% {
        transform: rotate(30deg) translateY(-100%) translateX(-100%);
    }

    100% {
        transform: rotate(30deg) translateY(100%) translateX(100%);
    }
}

/* Subtle gradient overlay for realism */
.interactive-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 247, 250, 0) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

/* Dark mode overrides for the solid card */
body.dark-mode .interactive-badge {
    background: #1e293b;
    /* Premium slate color */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 1px 1px rgba(255, 255, 255, 0.05) inset;
}

body.dark-mode .interactive-badge:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

body.dark-mode .interactive-badge::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.badge-hole {
    width: 60px;
    height: 12px;
    background: #f0f4f8;
    border-radius: 12px;
    margin: 0 auto 15px auto;
    /* Reduced margin to fit logo */
    position: relative;
    z-index: 1;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateZ(10px);
}

.badge-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    transform: translateZ(30px);
}

body.dark-mode .badge-logo {
    filter: brightness(1.2);
    /* Make it subtly pop on dark slate */
}

.badge-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
    position: relative;
    background-color: #eee;
    pointer-events: auto;
    /* Re-enable for hover effect */
    -webkit-user-drag: none;
    user-select: none;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(50px);
}

.badge-img:hover {
    transform: translateZ(60px) scale(1.12) rotate(8deg);
}

.badge-info {
    margin-top: 35px;
    text-align: center;
    z-index: 1;
    transform: translateZ(40px);
}

.badge-info h3 {
    font-size: 2rem;
    color: #1e2b4d;
    /* PSU Dark Navy */
    margin-bottom: 5px;
    font-weight: 700;
}

body.dark-mode .badge-info h3 {
    color: #ffffff;
}

.badge-info p {
    font-size: 1.2rem;
    color: #435889;
    /* PSU Light Navy */
    font-weight: 600;
}

body.dark-mode .badge-info p {
    color: #8ca8f9;
    /* Vibrant light blue for dark mode contrast */
}


/* =========================================
   PRO-LEVEL VISUAL ENHANCEMENTS
   ========================================= */


/* 2. Premium Film Grain */
.film-grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    animation: grainMove 8s steps(10) infinite;
}

@keyframes grainMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

/* 3. 3D Tilt Foundation */
.project-card,
.ai-work-card,
.interactive-badge {
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover,
.ai-work-card:hover {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

/* 4. Mouse Parallax Foundation */
.hero-bg-orbs .orb {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: #888888;
    font-size: 0.95rem;
    font-weight: 400;
}

/* =========================================
   404 ERROR PAGE
   ========================================= */
.error-page .main-content {
    background-color: var(--bg-color);
    /* Use a simpler background for the error page */
}

.error-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    z-index: 10;
}

.error-illustration {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.illustration-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding-bottom: 90%;
    /* Maintain aspect ratio 1:1 */
    background-color: var(--bg-secondary);
    border-radius: 50%;
    z-index: -1;
}

.unplugged-svg {
    width: 100%;
    height: auto;
}

.error-text {
    flex: 1;
    max-width: 450px;
    text-align: left;
}

.error-code {
    font-family: 'Inter', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -5px;
    margin-bottom: 0;
    text-shadow: -8px 0px 0px var(--bg-secondary);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* =========================================
   CHATBOT
   ========================================= */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    /* Ensure it's above the chatbot window */
    transition: transform 0.3s ease;
    overflow: hidden;
}

.chatbot-toggle-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.chatbot-toggle-btn .icon-close {
    transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
    opacity: 0;
}

.chatbot-toggle-btn.active .icon-open {
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
    opacity: 0;
}

.chatbot-toggle-btn.active .icon-close {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1002;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transform-origin: bottom right;
}

.chatbot-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.chatbot-close-btn:hover {
    opacity: 1;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
}

.chat-message.user {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-message.ai {
    background-color: var(--primary-color);
    color: #ffffff;
    /* AI messages always on primary color background */
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-content {
    flex: 1;
}

.chat-content p {
    margin: 0 !important;
    display: block;
    margin-bottom: 8px;
}

.chat-content p:last-child {
    margin-bottom: 0;
}

.chat-content ul,
.chat-content ol {
    margin: 10px 0;
    padding-left: 0;
    list-style-type: none;
}

.chat-content li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.chat-content li::before {
    content: "•";
    color: currentColor;
    opacity: 0.8;
    font-size: 1.2rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.chat-content li>* {
    margin: 0 !important;
    display: inline-block;
}

.chat-message.ai a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.chat-message.ai a:hover {
    color: #f1f5f9;
}

/* Chatbot Quick Reply Chips */
.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Suggestion Chips */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-left: 0;
    margin-left: 10px;
    /* Aligned with general chat layout */
    animation: fadeIn 0.4s ease-out forwards;
}

.suggestion-chip {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    font-family: inherit;
}

.suggestion-chip:hover {
    background: var(--pill-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--pill-shadow-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-message.loading p {
    display: flex;
    gap: 5px;
}

.chat-message.loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b0c4de;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-message.loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-message.loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* AI Message Avatar */
.chat-avatar {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-avatar i {
    font-size: 0.9rem;
    color: white;
}

#chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    background-color: transparent;
    font-size: 1rem;
    color: var(--text-color);
}

#chatbot-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

#chatbot-send-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

#chatbot-send-btn:hover {
    color: var(--primary-hover);
}

.chatbot-disclaimer {
    padding: 8px 15px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}




/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 768px) {
    .nav-pill {
        width: 90%;
        justify-content: space-between;
    }

    .nav-actions {
        border-left: none;
        padding-left: 0;
        gap: 10px;
    }

    .icon-btn.theme-toggle {
        display: flex;
        margin-right: 5px;
    }

    .icon-btn i.fa-language {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        /* Above mobile menu */
    }

    .nav {
        position: fixed;
        top: 0;
        left: -110%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease, visibility 0.4s ease;
        z-index: 1000;
        visibility: hidden;
    }

    .nav.active {
        left: 0;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 1.25rem;
        padding: 12px 30px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container-layout {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .hero-text {
        order: 2;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .portfolio-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-details {
        align-items: center;
    }

    .hero-quote {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .coop-card {
        margin: 25px auto 0;
        text-align: center;
        width: 95%;
        max-width: 440px;
        padding: 22px 20px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    body.dark-mode .coop-card {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .coop-status {
        margin-bottom: 18px;
    }

    .coop-grid {
        justify-content: center;
        gap: 15px;
    }

    .coop-date {
        justify-content: center;
        font-size: 0.85rem;
    }

    .project-pill {
        margin: 25px auto 0;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
        max-width: 440px;
        border-radius: 24px;
        gap: 15px;
    }

    .pill-icon-box {
        margin-right: 0;
        width: 45px;
        height: 45px;
    }

    .pill-content {
        align-items: center;
    }

    .pill-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .pill-meta {
        justify-content: center;
    }

    .hero-badge-container {
        display: none !important;
        order: 1;
        width: 100%;
        height: 480px;
        /* Give enough vertical space for the hanging animation */
        margin-top: 0px;
        margin-bottom: 0px;
        position: relative;
        overflow: visible;
    }

    .pendulum-container {
        position: absolute;
        top: -60px;
        /* Hang slightly off top edge but visible */
        left: 50%;
        transform: translateX(-50%) scale(0.65);
        /* Perfectly center horizontally and scale */
        transform-origin: top center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* --- 404 Page --- */
    .error-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .error-container {
        flex-direction: column;
        gap: 40px;
    }

    .error-text {
        text-align: center;
        max-width: 500px;
    }

    .error-illustration {
        max-width: 300px;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .portfolio-title {
        font-size: 3rem;
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-details .name-text {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .hero-details .edu-bold {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-details .edu-text {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .hero-quote p {
        font-size: 0.95rem;
    }

    .coop-grid {
        flex-direction: column;
        gap: 10px;
    }

    .coop-card {
        padding: 18px;
    }

    .project-pill {
        padding: 15px 20px;
    }

    .project-pill span {
        font-size: 0.85rem;
    }

    .hero-badge-container {
        height: 420px;
        /* Slight bump to contain the pendulum string cleanly vertically */
        margin-top: -10px;
        margin-bottom: 0px;
    }

    .pendulum-container {
        transform: translateX(-50%) scale(0.55);
        /* Maintain X-centering while scaling */
    }

    .pendulum-container {
        top: -100px;
        /* Pull it up a bit since the scale is smaller */
        transform: scale(0.55);
    }

    /* --- 404 Page --- */
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .error-desc {
        font-size: 1rem;
    }
}

/* Visibility classes for "View More" */
.project-card.project-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
}

.btn-view-more {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px var(--pill-shadow);
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--pill-shadow-hover);
}

.btn-view-more i {
    transition: transform 0.3s ease;
}

.btn-view-more.active i {
    transform: rotate(180deg);
}

/* =========================================
   CINEMATIC SPLASH SCREEN
   ========================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    /* Adaptive background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.splash-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(75, 108, 183, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(59, 87, 157, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 30% 90%, rgba(75, 108, 183, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(59, 87, 157, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(75, 108, 183, 0.15) 0%, transparent 70%);
    opacity: 0;
    filter: blur(30px);
    /* Pro-level smooth blending */
    animation: fadeInGlow 2s ease forwards, breathAndShift 10s ease-in-out infinite alternate;
}

body.dark-mode .splash-bg-glow {
    background:
        radial-gradient(circle at 10% 20%, rgba(96, 143, 239, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(123, 162, 242, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 30% 90%, rgba(96, 143, 239, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(123, 162, 242, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(96, 143, 239, 0.15) 0%, transparent 70%);
}

@keyframes breathAndShift {
    0% {
        transform: scale(1) translate(0%, 0%);
    }

    50% {
        transform: scale(1.1) translate(-2%, 2%);
    }

    100% {
        transform: scale(1.05) translate(2%, -2%);
    }
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

/* Centralized Logo Container */
.splash-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
}

.splash-logo-inner {
    position: absolute;
    inset: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.2);
    z-index: 2;
    animation: logoPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

body.dark-mode .splash-logo-inner {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
}

.splash-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation: rotateRing 1.5s linear infinite;
}

.ring-2 {
    inset: -10px;
    border-bottom-color: rgba(96, 143, 239, 0.5);
    border-left-color: rgba(96, 143, 239, 0.5);
    animation: rotateRing 2s linear infinite reverse;
}

/* Text & Progress Container */
.splash-text-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpSplash 1s ease 0.5s forwards;
}

.splash-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.title-main {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--text-color);
    text-indent: 12px;
    /* Center with tracking */
}

.title-sub {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Loading Progress Bar */
.splash-loading-bar {
    width: 240px;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

body.dark-mode .splash-loading-bar {
    background: rgba(255, 255, 255, 0.05);
}

.loading-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--primary-hover));
    background-size: 200% 100%;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.3s ease;
}

.splash-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Visibility State */
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Animations */
@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInGlow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUpSplash {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PROJECT MODAL
   ========================================= */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.show {
    display: flex;
    opacity: 1;
}

@keyframes shakeModal {

    0%,
    100% {
        transform: scale(1) translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: scale(1) translateX(-6px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: scale(1) translateX(6px);
    }
}

.modal-content.shake {
    animation: shakeModal 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.modal-content.dark-modal-layout {
    background: #0f172a;
    /* Dark slate background */
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content.dark-modal-layout::-webkit-scrollbar {
    width: 8px;
}

.modal-content.dark-modal-layout::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content.dark-modal-layout::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.project-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

/* TOP NAV */
.modal-top-nav {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-close-btn-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 20px;
}

.modal-close-btn-new:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-breadcrumb {
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.modal-breadcrumb .highlight {
    color: #e2e8f0;
    font-weight: 500;
}

/* GRID LAYOUT */
.modal-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 32px;
}

@media (max-width: 900px) {
    .modal-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* LEFT COL */
.modal-left-col {
    display: flex;
    flex-direction: column;
}

.modal-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    border-radius: 4px;
    margin-bottom: 24px;
}

.modal-main-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* STATS */
.modal-stats-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 1.5rem;
    color: #60a5fa;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* ACTION BUTTONS */
.modal-action-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-action {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.outline-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.outline-action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: #e2e8f0;
}

.dark-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* TECH BADGES */
.modal-tech-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tech-badge i {
    color: #60a5fa;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* RIGHT COL */
.modal-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-image-showcase {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.mockup-slider {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.mockup-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.mockup-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.mockup-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mockup-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* =========================================
   ABOUT ME SECTION (NEW DESIGN)
   ========================================= */
.about-section {
    padding: 100px 0 60px;
    padding-top: 120px;
    /* extra top space for the wave overlap */
    position: relative;
    z-index: 5;
    overflow: hidden;
    /* Wave-top shape using clip-path ellipse pointing up */
    clip-path: ellipse(110% 100% at 50% 100%);
    margin-top: -60px;
    /* pull up into hero area to create seamless wave */
    background: rgba(235, 240, 255, 0.55);
    backdrop-filter: blur(2px);
}

body.dark-mode .about-section {
    background: rgba(13, 21, 40, 0.6);
}

.about-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 2;
}

/* Centered Title */
.about-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.7s ease;
}

.about-header.show {
    opacity: 1;
    transform: translateY(0);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.about-tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Main 2-column row */
.about-main-row {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Left col - text */
.about-text-col {
    flex: 1;
    min-width: 280px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.about-text-col.show {
    opacity: 1;
    transform: translateX(0);
}

.about-greeting {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.about-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 5px;
    /* Reduced from 20px to bring Thai name closer */
}

.about-name-th {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 25px;
    /* Regain the space before bio */
}


.about-bio {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 30px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-about-primary {
    background: linear-gradient(135deg, var(--primary-color), #6d28d9);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-about-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-about-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-about-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Right col - profile photo */
.about-photo-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.about-photo-col.show {
    opacity: 1;
    transform: translateX(0);
}

/* Refined Photo Ring (Premium Glassmorphism) */
.about-photo-ring {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
    background: var(--pill-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--pill-border);
    box-shadow: 0 15px 35px var(--pill-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-ring:hover {
    transform: scale(1.03) rotate(2deg);
    border-color: var(--pill-border-hover);
    box-shadow: 0 20px 45px var(--pill-shadow-hover);
}

/* Premium Gradient Halo */
.about-photo-ring::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #a78bfa, #818cf8);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite, pulseGlow 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
        filter: blur(8px);
    }

    50% {
        transform: scale(1.08);
        opacity: 0.7;
        filter: blur(15px);
    }
}

.about-photo-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid white;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .about-photo-ring-inner {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Floating Decorative Badges */
.floating-badge {
    position: absolute;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 10;
    white-space: nowrap;
    transition: all 0.3s ease;
}

body.dark-mode .floating-badge {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #8ca8f9;
}

.badge-ux {
    top: 15%;
    left: -20%;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-frontend {
    bottom: 20%;
    right: -25%;
    animation: floatBadge 4s ease-in-out infinite 0.5s;
}

.floating-badge i {
    font-size: 1rem;
    color: var(--primary-color);
}

body.dark-mode .floating-badge i {
    color: #8ca8f9;
}

.floating-badge:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.floating-badge:hover i {
    color: white;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media screen and (max-width: 768px) {
    .badge-ux {
        left: -10%;
        top: 10%;
    }

    .badge-frontend {
        right: -10%;
        bottom: 15%;
    }
}

@media screen and (max-width: 480px) {
    .floating-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .badge-ux {
        left: -5%;
    }

    .badge-frontend {
        right: -5%;
    }
}

/* Badge-style shimmer sweep across the photo */
.about-photo-ring-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.12) 40%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0.12) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shimmerEffect 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

.about-photo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}



/* Stats Row */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.35s;
}

.about-stats-row.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 25px 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #a78bfa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.stat-card:hover .stat-link-icon {
    opacity: 1;
    color: var(--primary-color);
}

/* Skills below stats */
.about-skills-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
}

.about-skills-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Keep old .about-text-box for the about-text-col which reuses those styles */
.about-text-box {
    flex: 1;
    min-width: 300px;
}

.about-text-box.show {
    opacity: 1;
    transform: none;
}



.about-text-box p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pill-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.highlight-item i {
    color: var(--primary-color);
}

.about-skills-box {
    flex: 1;
    min-width: 300px;

    /* Reveal from BELOW */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.about-skills-box.show {
    opacity: 1;
    transform: translateY(0);
}

.skills-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.skills-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 450px;
}

/* Filter tabs row */
.skills-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.skill-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.skill-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.skill-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Hidden badges when filtered */
.skill-badge.hidden {
    display: none;
}

/* Fade-in animation for visible badges */
.skill-badge {
    animation: badgeFadeIn 0.3s ease forwards;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skill-badge i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.skill-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

.skill-badge:hover i {
    color: var(--primary-hover);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-section {
    padding: 0 0 40px;
    /* No top padding — flows directly from About Me */
    position: relative;
    z-index: 4;
    background: rgba(235, 240, 255, 0.55);
    /* identical to about-section */
    backdrop-filter: blur(2px);
}

body.dark-mode .portfolio-section {
    background: rgba(13, 21, 40, 0.6);
    /* identical to dark about-section */
}


.center-header {
    align-items: center;
    text-align: center;
}

.portfolio-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.dark-mode .project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(96, 143, 239, 0.3);
}

body.dark-mode .project-card:hover {
    border-color: rgba(96, 143, 239, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #f1f5f9;
}

body.dark-mode .project-img-wrapper {
    background: #0f172a;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Professional Project Status Badge */
.project-status-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-dot-blink {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-dot-static {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
}


/* Glass reflection on image hover */
.project-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.project-card:hover .project-img-wrapper::after {
    transform: translateX(100%);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8ca8f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.project-info {
    padding: 0 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.project-tag {
    background: rgba(96, 143, 239, 0.08);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(96, 143, 239, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-card .project-title {
    font-size: 1.55rem;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.project-card .project-desc {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}

.project-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 10px;
}

.card-details-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(96, 143, 239, 0.3);
}

.card-details-btn:hover {
    background: var(--primary-hover);
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(96, 143, 239, 0.4);
    color: white;
}

body.dark-mode .card-details-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-details-btn span {
    transition: transform 0.3s ease;
}

.card-details-btn:hover span {
    transform: translateX(3px);
}


.tech-stack-mini {
    display: flex;
    gap: 12px;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 20px 20px 80px;
    background: rgba(235, 240, 255, 0.55);
    /* same as about + portfolio */
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
}

body.dark-mode .contact-section {
    background: rgba(13, 21, 40, 0.6);
    /* same as dark about + portfolio */
}

/* Removed `.contact-section::before` gradient to fix background splitting */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-container,
.connect-container {
    width: 100%;
    background: #ffffff;
    /* Clean white background */
    border: none;
    /* Removed border */
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Same soft shadow as project cards */
    transition: all var(--transition-speed) ease;
}

body.dark-mode .contact-container,
body.dark-mode .connect-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Connect With Me Panel Specifics */
.connect-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.connect-line {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.connect-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f6f9;
    /* Light grey background */
    border: none;
    /* Removed border */
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

body.dark-mode .social-btn {
    background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

body.dark-mode .social-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.social-btn-featured {
    padding: 24px;
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-grid .social-btn {
    margin-bottom: 0;
}

.social-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
}

.social-btn-featured .social-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
}

.copy-action-icon {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
    opacity: 0.5;
}

.social-btn:hover .copy-action-icon {
    opacity: 1;
    color: var(--primary-color);
}

.copy-action-icon.copied {
    color: #10B981 !important;
    transform: scale(1.1);
}

.gmail-icon {
    background: linear-gradient(135deg, #f2a65a, #ea4335, #c5221f);
}

.instagram-icon {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.facebook-icon {
    background: linear-gradient(135deg, #1877f2, #145dbf);
}

.github-icon {
    background: linear-gradient(135deg, #333333, #1a1a1a);
}

.tiktok-icon {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

/* In light mode, darken the GitHub and TikTok icons slightly to contrast */
body:not(.dark-mode) .github-icon {
    background: linear-gradient(135deg, #555555, #333333);
}

body:not(.dark-mode) .tiktok-icon {
    background: linear-gradient(135deg, #444444, #222222);
}


.social-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.social-btn-featured .social-name {
    font-size: 1.2rem;
}

.social-handle {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Base styles for the Get in Touch form */
.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.contact-share-btn {
    background: none;
    border: none;
    color: var(--icon-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-share-btn:hover {
    color: var(--primary-hover);
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--icon-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.textarea-group {
    align-items: flex-start;
}

.textarea-group .input-icon {
    top: 20px;
}

.contact-input {
    width: 100%;
    background: #f4f6f9;
    /* Light grey to match social buttons */
    border: none;
    border-radius: 12px;
    padding: 16px 20px 16px 50px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.3s ease;
}

body.dark-mode .contact-input {
    background: rgba(255, 255, 255, 0.05);
}

.contact-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.contact-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(75, 108, 183, 0.1);
}

body.dark-mode .contact-input:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(96, 143, 239, 0.15);
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.contact-textarea {
    resize: none;
}

.btn-send {
    margin-top: 10px;
    background: var(--primary-color);
    /* Solid blue */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(75, 108, 183, 0.2);
}

body.dark-mode .btn-send {
    box-shadow: 0 10px 20px rgba(96, 143, 239, 0.3);
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(75, 108, 183, 0.3);
}

body.dark-mode .btn-send:hover {
    box-shadow: 0 15px 25px rgba(96, 143, 239, 0.4);
}

.btn-send:active {
    transform: translateY(1px);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {

    .contact-container,
    .connect-container {
        padding: 30px 20px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   CLICK RIPPLE EFFECT
   ========================================= */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Ignore future clicks */
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, rgba(67, 97, 238, 0) 70%);
    border: 1px solid rgba(67, 97, 238, 0.5);
    z-index: 9999;
    animation: rippleAnim 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body.dark-mode .click-ripple {
    background: radial-gradient(circle, rgba(140, 168, 249, 0.4) 0%, rgba(140, 168, 249, 0) 70%);
    border-color: rgba(140, 168, 249, 0.5);
}

@keyframes rippleAnim {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }

    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

/* =========================================
   GLOBAL SCROLL ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.show {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SUCCESS CONFIRMATION MODAL
   ========================================= */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

body.dark-mode .success-modal-content {
    background: var(--bg-secondary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.success-modal.show .success-modal-content {
    transform: translateY(0) scale(1);
}

.success-icon {
    font-size: 4.5rem;
    color: #10B981;
    /* Emerald green */
    margin-bottom: 20px;
    opacity: 0;
}

.success-modal.show .success-icon {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

.success-title {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.success-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.close-success-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   IMAGE VIEWER MODAL
   ========================================= */
.mockup-slide {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.image-viewer-modal {
    position: fixed;
    z-index: 9999;
    /* Set a very high z-index to ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-viewer-close:hover {
    color: #ccc;
}

/* =========================================
   PROJECT STANDALONE PAGE LAYOUT
   ========================================= */
.project-single-section {
    padding: 120px 0 80px 0;
    min-height: 100vh;
}

.project-page-header {
    margin-bottom: 40px;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-bottom: 20px;
}

.project-back-link:hover {
    color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.project-stat-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.project-stat-card:hover {
    transform: translateY(-2px);
}

.project-stat-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.project-stat-info {
    display: flex;
    flex-direction: column;
}

.project-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.project-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.project-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.project-btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.project-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(75, 108, 183, 0.2);
}

.project-btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.project-btn-outline:hover {
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.project-tech-stack h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.project-badge i {
    color: var(--primary-color);
}

.project-badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-badge:hover i {
    color: white;
}

.project-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-hero-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.project-hero-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-hero-img:hover img {
    transform: scale(1.03);
}

.project-feature-list-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.project.pj-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-features {
    list-style: none;
    padding: 0;
}

.project-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.project-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.9em;
}

/* =========================================
   PROJECT BREADCRUMB NAV
   ========================================= */
.project-top-nav {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.project-back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.project-back-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.project-breadcrumb .highlight {
    color: var(--text-color);
    font-weight: 600;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.show {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PROJECT TECH STACK DETAILS
   ========================================= */
.tech-category {
    background-color: var(--pill-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px var(--pill-shadow);
    border: 1px solid var(--pill-border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tech-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--pill-shadow-hover);
    border-color: var(--primary-color);
}

.tech-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--pill-shadow);
}

.tech-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.tech-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Custom Background for Rice Project */
body.rice-theme {
    background: linear-gradient(180deg, #eef7f0 0%, #dcefe1 25%, #ebf5ed 50%, #dcefe1 75%, #eef7f0 100%) fixed !important;
}

body.dark-mode.rice-theme {
    background: linear-gradient(180deg, #091a0f 0%, #0d2817 25%, #0b1f12 50%, #0d2817 75%, #091a0f 100%) fixed !important;
}

/* Tech Group Labels inside badge area */
.tech-group {
    margin-bottom: 16px;
}

.tech-group:last-child {
    margin-bottom: 0;
}

.tech-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.tech-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tech-group-dot.ai-ml {
    background: linear-gradient(135deg, #608fef, #8ca8f9);
    box-shadow: 0 0 6px rgba(96, 143, 239, 0.6);
}

.tech-group-dot.app-dev {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* =========================================
   PROJECT HERO — 2-COLUMN LAYOUT (reference style)
   ========================================= */
.pj-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "left right";
    /* Move content to left, image to right */
    gap: 60px;
    align-items: flex-start;
    min-height: calc(100vh - 280px);
    padding-top: 10px;
}

/* ---- LEFT COLUMN ---- */
.pj-hero-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- RIGHT COLUMN ---- */
.pj-hero-right {
    grid-area: right;
    position: relative;
    z-index: 5;
    margin-top: -20px;
    flex: 1;
    background: none;
    /* Removed background */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

/* Graduation / Status badge */
.pj-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(96, 143, 239, 0.1);
    border: 1px solid rgba(96, 143, 239, 0.25);
    border-radius: 50px;
    padding: 6px 14px;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 0.2px;
}

.pj-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: badgePulse 1.8s infinite ease-in-out;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

.pj-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-color);
    margin: 0 0 14px 0;
}

.pj-hero-accent {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), #8ca8f9);
    margin-bottom: 24px;
}

.pj-hero-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 28px;
}

/* Stats row */
.pj-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.pj-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pj-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.pj-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pj-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Action buttons */
.pj-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Tech section */
.pj-tech-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pj-tech-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pj-tech-label i {
    color: var(--primary-color);
}

/* ---- RIGHT COLUMN: Mockup ---- */
.pj-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    /* Gap managed by margins */
}

.pj-mockup-frame {
    background: #0d1528;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 540px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pj-mockup-frame:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

body:not(.dark-mode) .pj-mockup-frame {
    background: transparent;
    box-shadow: none;
    border: none;
}

body:not(.dark-mode) .pj-mockup-bar {
    background: transparent;
    border-bottom: none;
}

body:not(.dark-mode) .pj-feature-overlay {
    border: none;
    background: transparent;
}

body:not(.dark-mode) .pj-feature-title {
    color: #1e293b;
}

body:not(.dark-mode) .pj-feature-list li {
    color: #475569;
}

body:not(.dark-mode) .pj-feature-list li i {
    color: var(--primary-color);
}

/* Browser bar with dots */
.pj-mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pj-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.pj-dot.red {
    background: #ff5f57;
}

.pj-dot.yellow {
    background: #febc2e;
}

.pj-dot.green {
    background: #28c840;
}

/* Screenshot image */
.pj-mockup-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.pj-mockup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- PRO-LEVEL BENTO GRID (Apple/SaaS Aesthetic) --- */
.pj-feature-overlay {
    padding: 0;
    margin-top: 25px;
    /* Reduced from 40px */
    background: transparent;
    border: none;
    box-shadow: none;
}

.pj-feature-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pj-feature-title i {
    font-size: 0.85rem;
    background: transparent;
    width: auto;
    height: auto;
}

.pj-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* Slightly more space for the frames */
}

@media screen and (max-width: 992px) {
    .pj-feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .pj-feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Tighter gap on mobile, but enough for cards */
    }
}

.pj-feature-full {
    grid-column: span 3;
}

@media screen and (max-width: 992px) {
    .pj-feature-full {
        grid-column: span 2;
    }
}

@media screen and (max-width: 576px) {
    .pj-feature-full {
        grid-column: span 1;
    }
}

.pj-feature-list li {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body:not(.dark-mode) .pj-feature-list li {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body:not(.dark-mode) .pj-feature-header i {
    background: none !important;
    box-shadow: none !important;
}

/* Feature Number - Pro Aesthetic (Hidden in transparent design to reduce clutter) */
.pj-feature-list li::before {
    display: none;
}

body:not(.dark-mode) .pj-feature-list li::before {
    color: rgba(0, 0, 0, 0.02);
}

.pj-feature-list li:hover {
    transform: translateY(-5px);
    /* Lift effect for cards */
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .pj-feature-list li:hover {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

/* Icon & Category Tag */
.pj-feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced from 12px */
}

/* Specifically target the header icon box - Glow Aesthetic */
.pj-feature-header i {
    width: auto;
    height: auto;
    background: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    box-shadow: none;
    filter: drop-shadow(0 0 6px currentColor);
    /* Slightly tighter glow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 4px;
}

.pj-feature-list li:hover .pj-feature-header i {
    filter: drop-shadow(0 0 15px currentColor);
    transform: scale(1.1);
}

/* Ensure icons inside the feature list mini remain small and unstyled by the header icon rule */
.pj-feature-list-mini li i {
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
    color: var(--primary-color);
    margin-top: 4px;
}

/* Feature Content */
.pj-feature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Icon Color Helpers */
.icon-blue {
    color: #3b82f6 !important;
}

.icon-green {
    color: #10b981 !important;
}

.icon-yellow {
    color: #f59e0b !important;
}

.icon-purple {
    color: #8b5cf6 !important;
}

.icon-pink {
    color: #ff4d6d !important;
}

.icon-red {
    color: #ef4444 !important;
}

.pj-feature-list li span {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.1px;
}

body:not(.dark-mode) .pj-feature-list li span {
    color: #1e293b;
}

.pj-feature-list li p {
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
    opacity: 0.7;
}

/* Pro Glow Effect */
.pj-feature-list li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pj-feature-list li:hover::after {
    opacity: 1;
}


/* =========================================
   PROJECT IMAGE SLIDER / CAROUSEL
   ========================================= */
.pj-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.pj-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.mockup-slide:hover {
    transform: scale(1.02);
}

/* Prev / Next buttons */
.pj-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.pj-slider-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.1);
}

.pj-slider-prev {
    left: 10px;
}

.pj-slider-next {
    right: 10px;
}

/* Dot indicators */
.pj-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.pj-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pj-slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Professional Graduation Badge */
.graduation-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(var(--primary-rgb), 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    animation: badgeFloat 3s ease-in-out infinite;
}

.graduation-badge.status-dev {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.graduation-badge i {
    font-size: 0.9rem;
    color: #FACC15;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

body:not(.dark-mode) .graduation-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   CERTIFICATIONS SECTION (Infinite Marquee)
   ========================================= */
.certifications-section {
    padding: 60px 0;
    overflow: hidden; /* Hide horizontal scrollbar */
    background: transparent;
    position: relative;
}

.certSwiper {
    width: 100%;
    position: relative;
    padding: 20px 0 40px !important; /* Add bottom padding for shadow spread */
    /* Soft gradient masks on left/right to fade in/out smoothly */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Make the Swiper transition purely linear for continuous marquee effect */
.certSwiper .swiper-wrapper {
    transition-timing-function: linear;
}

.cert-item {
    position: relative;
    width: 350px; /* Base width of cert cards */
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.cert-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-item:hover img {
    transform: scale(1.1);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.cert-overlay p {
    color: #94a3b8;
    font-size: 0.9rem;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.cert-item:hover .cert-overlay h4,
.cert-item:hover .cert-overlay p {
    transform: translateY(0);
}

/* Light Mode Support for Certifications Revert */
body:not(.dark-mode) .cert-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .cert-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, transparent 100%);
}

body:not(.dark-mode) .cert-overlay h4 {
    color: var(--text-dark);
}

body:not(.dark-mode) .cert-overlay p {
    color: var(--primary-color);
}

@media screen and (max-width: 480px) {
    .cert-item {
        width: 260px;
        height: 180px;
    }
}

/* =========================================
   AI WORKS SECTION
   ========================================= */
.ai-works-section {
    padding: 40px 0 20px;
    position: relative;
    z-index: 2;
    background: transparent !important;
    overflow: hidden;
}

.aiWorksSwiper {
    padding: 20px 0 60px !important;
}

/* AI Works Custom Navigation Arrows */
.ai-swiper-nav {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.4); /* Glassmorphism dark */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.ai-swiper-nav::after {
    display: none; /* Hide default Swiper font icon */
}

.ai-swiper-nav i {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.ai-swiper-nav:hover {
    background: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.ai-swiper-nav:hover i {
    color: #ffffff;
}

body:not(.dark-mode) .ai-swiper-nav {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .ai-swiper-nav:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(75, 108, 183, 0.3);
}

.aiWorksSwiper .swiper-button-prev {
    left: 15px;
}

.aiWorksSwiper .swiper-button-next {
    right: 15px;
}

@media screen and (max-width: 768px) {
    .ai-swiper-nav {
        width: 40px;
        height: 40px;
    }
    .ai-swiper-nav i {
        font-size: 1rem;
    }
}

.ai-work-card {
    position: relative;
    background: var(--bg-color);
    /* Adaptive */
    height: 380px;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 10px 15px -3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border mode friendly */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-work-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ai-work-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.6s ease;
}

.ai-work-card:hover img {
    transform: scale(1.05);
}

.swiper-slide {
    width: auto;
    /* Width will be set dynamically via JS */
    height: 380px;
    transition: opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
    .ai-work-card {
        height: 320px;
    }

    .swiper-slide {
        height: 320px;
    }
}

.ai-work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-work-card:hover .ai-work-overlay {
    opacity: 1;
}

.ai-work-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.ai-work-card:hover .ai-work-overlay span {
    transform: translateY(0);
}

/* Custom Swiper Pagination */
.aiWorksSwiper .swiper-pagination {
    bottom: 0 !important;
}

.aiWorksSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
}

.aiWorksSwiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    opacity: 1;
}

/* =========================================
   PROJECT DETAIL PAGE - PREMIUM STYLES
   ========================================= */
.pj-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pj-feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.pj-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--card-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.pj-feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pj-feature-card:hover::before {
    opacity: 0.1;
}

.pj-feature-card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: var(--icon-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px var(--icon-shadow);
}

.pj-feature-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

.pj-feature-card-text {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.pj-feature-list-mini {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.pj-feature-list-mini li {
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pj-feature-list-mini li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 4px;
}

.pj-details-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.pj-details-card::after {
    content: '</>';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 12rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.pj-details-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pj-details-subtitle i {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pj-details-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.pj-details-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pj-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pj-details-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.pj-details-list li i {
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 1.1rem;
}

.pj-details-list strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

/* Specific Card Themes */
.card-theme-heart {
    --icon-bg: linear-gradient(135deg, #ff4d6d, #ff85a1);
    --icon-shadow: rgba(255, 77, 109, 0.4);
    --card-glow: #ff4d6d;
}

.card-theme-music {
    --icon-bg: linear-gradient(135deg, #7b2cbf, #9d4edd);
    --icon-shadow: rgba(123, 44, 191, 0.4);
    --card-glow: #7b2cbf;
}

.card-theme-robot {
    --icon-bg: linear-gradient(135deg, #10b981, #34d399);
    --icon-shadow: rgba(16, 185, 129, 0.4);
    --card-glow: #10b981;
}

.card-theme-tools {
    --icon-bg: linear-gradient(135deg, #3b82f6, #60a5fa);
    --icon-shadow: rgba(59, 130, 246, 0.4);
    --card-glow: #3b82f6;
}

.card-theme-utility {
    --icon-bg: linear-gradient(135deg, #f59e0b, #fbbf24);
    --icon-shadow: rgba(245, 158, 11, 0.4);
    --card-glow: #f59e0b;
}

body:not(.dark-mode) .pj-feature-card {
    background: #fff;
    border-color: #f1f5f9;
}

body:not(.dark-mode) .pj-feature-card-title {
    color: #1e293b;
}

body:not(.dark-mode) .pj-feature-card-text {
    color: #64748b;
}

body:not(.dark-mode) .pj-feature-list-mini li {
    color: #475569;
}

body:not(.dark-mode) .pj-details-card {
    background: #f8faff;
    border-color: #edf2f7;
}

body:not(.dark-mode) .pj-details-subtitle {
    color: #1e293b;
}

body:not(.dark-mode) .pj-details-list li {
    background: #fff;
    border: 1px solid #edf2f7;
    color: #475569;
}

body:not(.dark-mode) .pj-details-list strong {
    color: #1e293b;
}

/* Project Status Badge (Under Development) */
.pj-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    margin-bottom: 20px;
}

.pj-badge-dot {
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulse-yellow 2s infinite ease-in-out;
}

.pj-badge-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    opacity: 0;
    animation: ring-pulse-yellow 2s infinite ease-in-out;
}

.pj-project-badge span:not(.pj-badge-dot) {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes pulse-yellow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes ring-pulse-yellow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

body:not(.dark-mode) .pj-project-badge {
    background: rgba(245, 158, 11, 0.05);
}

/* =========================================
   PROJECT DETAIL MOBILE OPTIMIZATION
   ========================================= */
@media screen and (max-width: 992px) {
    .pj-hero-layout {
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .project-top-nav {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }

    /* Let's set the order of the two main columns */
    .pj-hero-layout {
        display: flex;
        flex-direction: column;
        text-align: left;
        min-height: auto;
        padding-top: 40px;
        gap: 25px;
    }

    .pj-hero-left,
    .pj-hero-right {
        display: contents;
    }

    /* 1. Project Badge, Title, Accent */
    .pj-project-badge {
        order: 1;
        margin-bottom: 8px;
    }

    .pj-hero-title {
        order: 2;
        margin-bottom: 8px;
    }

    .pj-hero-accent {
        order: 3;
        margin-bottom: 24px;
    }

    /* 2. Mockup Image IMMEDIATELY after text header */
    .pj-mockup-frame {
        order: 4;
        max-width: 100%;
        margin-bottom: 30px;
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(75, 108, 183, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* 3. Description & Stats Below Image */
    .pj-hero-desc {
        order: 5;
        margin-bottom: 24px;
    }

    .pj-stats-row {
        order: 6;
        margin-bottom: 24px;
    }

    /* 4. Actions */
    .pj-actions {
        order: 7;
        margin-bottom: 30px;
    }

    /* 5. Key Features Card (Bottom) */
    .pj-feature-overlay {
        order: 8;
        margin-bottom: 30px;
        margin-top: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* 6. Tech Section */
    .pj-tech-section {
        order: 9;
    }

    .tech-group-label {
        justify-content: center;
    }

    .project-badges {
        justify-content: center;
        gap: 8px;
    }

    .project-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .pj-details-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .pj-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pj-feature-card {
        padding: 25px;
        width: 100%;
    }

    .pj-details-subtitle {
        font-size: 1.5rem;
        justify-content: center;
    }

    .pj-details-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .pj-hero-title {
        font-size: 2.2rem;
    }

    .pj-stat-num {
        font-size: 1.6rem;
    }

    .pj-stat-label {
        font-size: 0.7rem;
    }

    .pj-hero-desc {
        font-size: 0.95rem;
    }

    .pj-details-content {
        font-size: 1rem;
    }


}