/* ===== DESIGN TOKENS & VARIABLES ===== */
:root {
    /* Premium Official Palette */
    --primary: #3b82f6;
    /* Electric Blue - Trust & Tech */
    --primary-glow: rgba(59, 130, 246, 0.3);
    --secondary: #6366f1;
    /* Indigo - Depth */
    --secondary-glow: rgba(99, 102, 241, 0.3);

    --accent: #f59e0b;
    /* Golden Amber - Premium touch */

    --bg-dark: #020617;
    /* Deep Midnight Slate */
    --bg-card: rgba(15, 23, 42, 0.6);
    /* Darker, more solid glass */
    --bg-card-hover: rgba(30, 41, 59, 0.8);

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-dim: #94a3b8;
    /* Slate 400 */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* Accessible Focus Indicators */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.btn:focus-visible,
.glass-card:focus-visible,
.nav-link:focus-visible {
    outline-offset: 2px;
}

.dot:focus-visible {
    outline-offset: 6px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, transparent 70%);
    /* Subtle top spotlight */
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transition: transform 0.15s ease-out, border-color 0.3s;
}

.cursor-outline.hover-project {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    backdrop-filter: blur(2px);
}

.cursor-outline.hover-project::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===== NOISE OVERLAY - Refined ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZVNzBVAAAACHRSTlMAMwA3M2V3k4e30b8AAABKSURBVDjL7dExAcAgDAMw14K5F8yc3B0o+6iCLV06S/4f6S5355T9PjM7M9Pq7OqM2tXVuTq7OqN2dXWuzq7OqF1dnaUzq7N0ZrU7i4cD6adT8IkAAAAASUVORK5CYII=');
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
}

/* ===== DECORATIVE ELEMENTS - Toned Down ===== */
.blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    /* Reduced opacity for cleaner look */
}

.blob-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

/* ===== BACKGROUND GRID - Technical ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.floating-shape {
    position: absolute;
    color: var(--text-dim);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.5rem;
    opacity: 0.05;
    user-select: none;
}

.shape-1 {
    top: 20%;
    left: 10%;
    transform: rotate(15deg);
}

.shape-2 {
    top: 60%;
    right: 15%;
    transform: rotate(-20deg);
}

.shape-3 {
    top: 80%;
    left: 20%;
    transform: rotate(45deg);
}

.shape-4 {
    top: 15%;
    right: 10%;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .bg-grid {
        background-size: 20px 20px;
    }
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    /* Tighter, more modern */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* ===== PREMIUM GLASS CARD ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    /* Highlight top border */
    border-radius: 16px;
    /* Slightly squarer */
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.glass-card:active {
    transform: scale(0.99);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
}

/* ===== NAVIGATION - Premium Pill ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 300px;
    z-index: 1000;
    padding: 10px 10px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    /* Pill shape */
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    gap: 40px;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 1002;
    color: #fff;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 100px;
}

.nav-link {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    display: none;
    /* Remove underline style */
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    /* Accent color */
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-dim);
    line-height: 1.8;
}

/* ===== BUTTONS - Clean & Technical ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    /* Less rounded */
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* ===== ABOUT SECTION (MODAL) ===== */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.9);
    /* Darker backdrop */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.about-modal-container {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: #0f172a;
    /* Solid but rich dark */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
    padding: 40px 30px;
    /* Reduced from 60px 50px */
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.about-overlay.active .about-modal-container {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal */
.about-modal-container::-webkit-scrollbar {
    width: 6px;
}

.about-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.about-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.close-about {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
    margin: 0;
    /* Reset */
}

.close-about:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    /* Editorial align */
}

.about-modal-content {
    padding: 0 !important;
}

.about-text-wrapper {
    margin-bottom: 60px;
    padding: 0 !important;
    /* Remove card padding, integrate text */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.about-text-wrapper p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dim);
}

.about-intro {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 500;
    margin-bottom: 30px !important;
}

.about-description {
    color: var(--text-dim);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.highlight-item {
    text-align: center;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.highlight-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ===== PROJECTS - Minimal & Clean ===== */
.project-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 20px !important;
    background: rgba(30, 41, 59, 1) !important;
    /* Solid Slate Background */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Stronger Border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Cover everything by default */
}

.project-card:hover {
    border-color: var(--primary) !important;
    background: rgba(40, 55, 75, 1) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.6), transparent);
}

.project-content {
    padding: 5px 0;
    /* Remove side padding for cleaner look */
}

.view-updates,
.view-reviews {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-dim) !important;
    border-radius: 100px !important;
    padding: 8px 18px !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-updates:hover,
.view-reviews:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--primary);
    /* Keep brand color */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: #fff;
    transform: translateX(3px);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Enhanced Hire for Similar Button */
.hire-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 12px !important;
    /* Slightly rounded for button look */
    padding: 10px 24px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hire-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.hire-cta:hover::before {
    opacity: 1;
}

.hire-cta:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), 0 0 15px var(--primary-glow) !important;
}

.hire-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hire-cta:hover::after {
    opacity: 1;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.project-card.featured .hire-cta {
    animation: pulse-soft 2s infinite;
}


.source-link {
    opacity: 0.8;
    /* Higher opacity */
    font-size: 0.85rem;
    color: #cbd5e1;
    /* Slate 300 */
}

.source-link:hover {
    opacity: 1;
    color: #fff;
}

.project-title {
    color: #ffffff !important;
    /* Pure White */
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description {
    color: #e2e8f0 !important;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== PROJECTS SHOWCASE GRID (NEW) ===== */
.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-pills-container {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Enhanced Project Card within Showcase */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    border-top: 1px solid var(--glass-highlight) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.project-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

.featured-badge {
    font-size: 0.7rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.project-links {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin-top: auto;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    gap: 20px;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .projects-showcase-grid {
        grid-template-columns: 1fr;
    }

    .filter-pills-container {
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filter-pills-container::-webkit-scrollbar {
        display: none;
    }
}

/* ===== CONTACT - Technical Forms ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.contact-info>p {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.15rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px !important;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.4) !important;
    border-radius: 16px !important;
}

.contact-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
}

.contact-method p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER - Official & Clean ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: #020617;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 140px 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    /* Reduced from 80px */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        background: rgba(2, 6, 23, 0.8);
        border-bottom: 1px solid var(--glass-border);
        padding: 15px 20px;
    }

    .navbar .container {
        padding: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nav-links {
        display: none;
        /* Hide Desktop Links */
    }

    /* ===== MOBILE BOTTOM NAVBAR - iOS Style ===== */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        background: rgba(15, 23, 42, 0.85);
        /* Darker Slate */
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 35px;
        /* Pill */
        padding: 12px 20px;
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.7rem;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        width: 60px;
    }

    .mobile-nav-item span.material-symbols-rounded {
        font-size: 1.6rem;
    }

    .mobile-nav-item.active {
        color: #fff;
    }

    .mobile-nav-item.active span.material-symbols-rounded {
        font-variation-settings: 'FILL' 1;
        transform: translateY(-2px);
    }

    /* Bottom-Sheet Style Modal for Mobile */
    .about-modal-container {
        width: 100%;
        max-width: none;
        height: 85vh;
        max-height: 85vh;
        bottom: 0;
        position: fixed;
        border-radius: 32px 32px 0 0;
        padding: 30px 20px;
        /* Reduced vertical padding */
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .about-overlay.active .about-modal-container {
        transform: translateY(0);
    }

    .close-about {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Drag Handle for Bottom Sheet */
    .about-modal-container::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    /* Form Improvements */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        /* Avoid iOS Zoom */
        padding: 18px;
    }

    /* Adjust container padding for mobile */
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
        /* Reduced from 15px+ or standard */
    }

    .section-subtitle {
        margin-bottom: 40px;
        /* Explicitly set for mobile match */
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    /* Notch Support */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .mobile-bottom-nav {
            bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .navbar {
        display: none;
        /* Hide top bar on mobile as we have bottom nav */
    }

    /* Small Header for Mobile to show Logo */
    body::before {
        content: 'Arshin.';
        position: fixed;
        top: 20px;
        left: 20px;
        font-weight: 800;
        font-size: 1.2rem;
        z-index: 999;
        color: #fff;
        mix-blend-mode: difference;
    }

    .project-card {
        padding: 15px;
    }
}

/* Fix for projects-grid display */
.projects-grid {
    display: flex;
    gap: 0;
    margin-top: 0;
    width: 100%;
    /* Remove CSS transition when using GSAP for transform */
    transition: opacity 0.4s ease;
}

.projects-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    /* Reduced from 40px */
    width: 100%;
    min-height: auto;
    /* Removed fixed height to reduce gap */
}

/* New Project System Styles */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.project-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.featured-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.project-card.featured {
    border-color: rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(2, 6, 23, 0.9)) !important;
}

.hire-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-weight: 600;
    transition: var(--transition);
}

.hire-cta:hover {
    gap: 12px;
}

.projects-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    margin: 0;
    align-self: stretch;
    display: flex;
}

.project-card {
    flex: 0 0 100%;
    /* Ensure visibility */
    visibility: visible !important;
}

.project-image {
    min-height: 220px;
}

.slider-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 768px) {
    .projects-slider-wrapper {
        margin-top: 10px;
        /* Reduced */
        min-height: auto;
        /* Allow shrink */
        gap: 0;
        position: relative;
    }

    .projects-viewport {
        margin: 0;
        padding: 0;
    }

    .slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(2, 6, 23, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        z-index: 20;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .project-card {
        padding: 15px;
        gap: 15px;
    }

    /* Mobile Contrast Hotfix */
    .project-title,
    .project-description,
    .tag,
    .project-links>* {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .project-title {
        color: #ffffff !important;
    }

    .project-description {
        color: #e2e8f0 !important;
    }
}

/* ===== THREADS STYLE UPDATES (MESSENGER TIMELINE) ===== */
.thread-post {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 40px;
    width: 100%;
}

.thread-avatar {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    margin-top: 15px;
    /* Align with bubble top */
    box-shadow: 0 0 0 2px var(--bg-dark);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

/* Pulse effect for the latest item */
.thread-post:first-child .thread-avatar {
    background: var(--accent);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 15px var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 2px var(--bg-dark), 0 0 15px var(--accent);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 2px var(--bg-dark), 0 0 25px var(--accent);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px var(--bg-dark), 0 0 15px var(--accent);
    }
}

/* Timeline Line */
.thread-post::before {
    content: '';
    position: absolute;
    left: 7px;
    /* Center with avatar (16px width / 2 - 1px width) */
    top: 31px;
    /* Start below avatar */
    bottom: -15px;
    width: 2px;
    background: linear-gradient(to bottom, var(--glass-border), rgba(255, 255, 255, 0.05));
    z-index: 1;
}

.thread-post:last-child::before {
    display: none;
}

.thread-post:last-child {
    padding-bottom: 0;
}

/* Messenger Bubble */
.thread-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 4px 20px 20px 20px;
    /* Messenger style rounded corner */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease, background 0.3s;
    margin-top: 5px;
    /* Slight offset */
}

.thread-content:hover {
    transform: translateX(5px);
    background: rgba(40, 55, 75, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bubble Arrow */
.thread-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent var(--glass-border) transparent transparent;
    display: block;
    /* Create the border triangle */
}

/* Inner filled arrow */
.thread-content::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent rgba(30, 41, 59, 0.6) transparent transparent;
    display: block;
}

.thread-content:hover::after {
    border-color: transparent rgba(40, 55, 75, 0.8) transparent transparent;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-author {
    font-weight: 700;
    color: var(--primary);
    /* Highlight author */
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.thread-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: monospace;
    /* Tech feel */
    opacity: 0.8;
}

.thread-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    /* Brighter text */
    white-space: pre-wrap;
}

/* Media styling */
.thread-media {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    max-width: 100%;
}

.thread-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.thread-media:hover .thread-img {
    transform: scale(1.03);
}

.latest-badge {
    background: var(--accent);
    color: #000;
    border: none;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    margin-left: 10px;
}

@media (max-width: 640px) {
    .thread-post {
        gap: 15px;
        padding-bottom: 30px;
    }

    .thread-content {
        padding: 15px;
    }
}

/* ===== INSTAGRAM STYLE UPDATES ===== */
.insta-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.insta-card {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

/* Header */
.insta-header {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 12px;
    border-bottom: 0px solid var(--glass-border);
}

.insta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
}

.insta-avatar.no-story {
    background: transparent;
    padding: 0;
}

.insta-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #000;
    display: block;
}

.insta-user-info {
    display: flex;
    flex-direction: column;
}

.insta-username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.insta-location {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Image */
.insta-image-container {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insta-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
    display: block;
}

/* Actions */
.insta-actions {
    display: flex;
    padding: 12px 14px 0;
    gap: 16px;
}

.insta-action-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.insta-action-btn .material-symbols-rounded {
    font-size: 26px;
    font-weight: 300;
}

.insta-action-btn:hover {
    transform: scale(1.1);
}

.insta-action-btn.liked .material-symbols-rounded {
    color: #ff3040;
    font-variation-settings: 'FILL' 1;
}

/* Likes & Caption */
.insta-content {
    padding: 12px 14px;
}

.insta-likes {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #fff;
}

.insta-caption {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
}

.insta-caption-username {
    font-weight: 600;
    margin-right: 6px;
}

.insta-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* Comments */
.insta-comments-section {
    padding: 0 14px;
}

.insta-comments-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insta-comment {
    font-size: 0.85rem;
    display: flex;
    gap: 6px;
}

.insta-comment-user {
    font-weight: 600;
    color: #fff;
}

.insta-comment-text {
    color: #e2e8f0;
}

.insta-view-comments {
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
}

/* Input */
.insta-input-area {
    display: flex;
    align-items: center;
    padding: 14px;
    border-top: 1px solid var(--glass-border);
    gap: 10px;
}

.insta-input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 0;
}

.insta-input::placeholder {
    color: var(--text-dim);
}

.insta-input:focus {
    outline: none;
}

.insta-post-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

.insta-input:not(:placeholder-shown)+.insta-post-btn {
    opacity: 1;
    pointer-events: all;
}

.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.google-auth-btn:hover {
    background: #f1f1f1;
}

.auth-wrapper {
    padding: 14px;
    border-top: 1px solid var(--glass-border);
}

/* ===== THREADS STYLE (TEXT-ONLY POSTS) ===== */
.threads-card {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.threads-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.threads-user-info {
    flex: 1;
}

.threads-content {
    padding: 0 0 0 42px;
    /* Align with username */
}

.threads-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    white-space: pre-wrap;
}

.threads-actions {
    display: flex;
    gap: 16px;
    padding: 8px 0 0 42px;
}

.threads-stats {
    padding: 0 0 0 42px;
    margin-top: -4px;
}

/* ===== PROJECT LAB - EXPERIMENTAL THEME ===== */
#projects-overlay .about-modal-container {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #1a1f35 100%);
    position: relative;
    overflow: hidden;
}

/* Lab Grid Background */
#projects-overlay .about-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: labGridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes labGridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Lab Title Styling */
#projects .section-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #3b82f6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 900;
    letter-spacing: -0.02em;
    animation: labTitleGlow 3s ease-in-out infinite;
}

#projects .section-title::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: labIconFloat 2s ease-in-out infinite;
}

#projects .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: labLineGlow 2s ease-in-out infinite;
}

@keyframes labTitleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    }
}

@keyframes labIconFloat {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-60%) rotate(5deg);
    }
}

@keyframes labLineGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Lab Subtitle */
#projects .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

#projects .section-subtitle::before {
    content: '> ';
    color: #3b82f6;
    font-weight: bold;
}

/* Lab Container Effects */
#projects .container {
    position: relative;
    z-index: 1;
}

/* Floating Lab Particles */
#projects-overlay .about-modal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: labParticles 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes labParticles {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Enhanced Project Cards for Lab */
#projects .project-card {
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#projects .project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #6366f1, #8b5cf6, #3b82f6);
    background-size: 300% 300%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: labBorderGlow 3s ease infinite;
}

/* #projects .project-card:hover::before {
    opacity: 1;
} */

@keyframes labBorderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

#projects .project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.15),
        0 0 40px rgba(59, 130, 246, 0.1);
}

/* Lab Status Indicator */
#projects .empty-projects-state::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: labPulse 2s ease-in-out infinite;
}

@keyframes labPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

/* Lab Corner Accents */
#projects-overlay .about-modal-container {
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 0 60px rgba(59, 130, 246, 0.2),
        inset 0 0 60px rgba(59, 130, 246, 0.05);
}

/* Mobile Lab Adjustments */
@media (max-width: 768px) {
    #projects .section-title::before {
        left: -40px;
        font-size: 1.8rem;
    }

    #projects .section-subtitle {
        font-size: 0.8rem;
    }
}

/* Reviews System Styles - Professional Overhaul */
.review-modal-content {
    max-width: 1000px !important;
    padding: 40px !important;
    background: #0a0f1d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 32px !important;
}

.review-header {
    margin-bottom: 45px !important;
    text-align: left;
}

.review-modal-content .section-title {
    font-size: 2.5rem !important;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-modal-content .subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 500;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: start;
}

/* Feed Column */
.reviews-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reviews-scroll-area::-webkit-scrollbar {
    width: 3px;
}

.reviews-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.review-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.review-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.review-text {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1rem;
}

/* Form Sidebar Refined */
.review-form-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 40px;
    position: sticky;
    top: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.review-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

/* Professional Inputs */
.review-form-container .form-group {
    margin-bottom: 24px;
}

.review-form-container .form-group input,
.review-form-container .form-group textarea {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 18px 22px !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.review-form-container .form-group input::placeholder,
.review-form-container .form-group textarea::placeholder {
    color: #475569 !important;
}

.review-form-container .form-group input:focus,
.review-form-container .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1) !important;
    outline: none !important;
}

/* Professional Stars */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 12px;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.star {
    cursor: pointer;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.star:hover {
    transform: scale(1.15) rotate(5deg);
}

.star:hover,
.star:hover~.star,
.star.active,
.star.active~.star {
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

/* Submit Button */
#review-form .btn-primary {
    background: #fff !important;
    color: #020617 !important;
    border: none !important;
    width: 100% !important;
    padding: 18px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-top: 10px !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

#review-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    background: var(--primary) !important;
}

/* Summary Refined */
.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.average-rating {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.total-reviews-count {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Polish */
@media (max-width: 900px) {
    .review-modal-content {
        padding: 30px !important;
        max-height: 95vh;
    }

    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .review-form-container {
        position: static;
        order: -1;
        padding: 30px;
    }

    .review-modal-content .section-title {
        font-size: 1.8rem !important;
    }

    .average-rating {
        font-size: 3rem;
    }

    .reviews-scroll-area {
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .review-modal-content {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .star-rating {
        font-size: 2.2rem;
    }

    .review-form-container {
        padding: 25px;
        border-radius: 20px;
    }

    #review-form .btn-primary {
        padding: 16px !important;
    }
}