/* AI Projects Gallery - Enterprise-Level Professional Design */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --accent: #A78BFA;
    --success: #10B981;
    --bg: #0A0E1A;
    --bg-secondary: #0F1629;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 35px 80px -15px rgba(0, 0, 0, 0.9);
    --glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

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

/* Hide all scrollbars globally */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    background: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(ellipse at top, #1a1f36 0%, #0a0e1a 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Sophisticated animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

/* Floating gradient orbs */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-100px, 100px) scale(1.1); }
    66% { transform: translate(100px, -50px) scale(0.9); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.gallery-header {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 5rem;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 100;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.back-button:hover::before {
    width: 300px;
    height: 300px;
}

.back-button svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

.back-text {
    position: relative;
    z-index: 1;
}

.back-button:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.gallery-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(
        110deg,
        #fff 0%,
        #fff 25%,
        var(--primary-light) 35%,
        var(--accent) 45%,
        #fff 55%,
        #fff 65%,
        var(--primary-light) 75%,
        var(--accent) 85%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShine 4s linear infinite;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-cursor {
    display: inline-block;
    color: var(--primary-light);
    animation: titleBlink 0.8s step-end infinite;
    margin-left: 4px;
}

@keyframes titleBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}

@keyframes gradientShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.gallery-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
    line-height: 1.8;
}

.ai-badge-header {
    display: inline-block;
    padding: 0.625rem 1.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
    border: 1.5px solid var(--primary);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ai-badge-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
    contain: layout style paint;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    position: relative;
    will-change: transform;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: var(--border-hover);
    background: var(--glass-hover);
}

/* Project Status Badge */
.project-status-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2rem;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: statusPulse 2s ease-in-out infinite;
}

.project-status-badge svg {
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Status: Live - Green */
.status-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    color: #34D399;
}

.status-live svg {
    color: #10B981;
}

/* Status: Completed - Blue */
.status-completed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    border: 1.5px solid rgba(59, 130, 246, 0.6);
    color: #60A5FA;
}

.status-completed svg {
    color: #3B82F6;
}

/* Status: In Progress - Yellow/Orange */
.status-in-progress {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    color: #FBBF24;
}

.status-in-progress svg {
    color: #F59E0B;
}

/* Status: In Progress/Live - Purple */
.status-in-progress-live {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.25));
    border: 1.5px solid rgba(168, 85, 247, 0.6);
    color: #C084FC;
}

.status-in-progress-live svg {
    color: #A855F7;
}

.project-card:hover .project-status-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Project Image Container */
.project-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(167, 139, 250, 0.08));
}

.project-image-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.95) contrast(1.05);
    will-change: transform;
}

.project-card:hover .project-image-static {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

/* Add a subtle overlay for better text contrast on images */
.project-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image-container::after {
    opacity: 0.7;
}

.project-image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(167, 139, 250, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.placeholder-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.image-overlay {
    position: absolute;
    top: -3rem;
    left: 0;
    transform: translateY(-10px);
    padding: 0.75rem 1.75rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.image-overlay svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.project-image-container:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Project Content */
.project-content {
    padding: 2.25rem;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
    border: 1px solid var(--primary);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9675rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

/* Tech Badges */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.project-card:hover .tech-badge {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Project Footer */
.project-footer {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
    border: 2px solid var(--primary);
    border-radius: 3rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.project-link:hover::before {
    width: 400px;
    height: 400px;
}

.project-link:hover {
    color: #fff;
    gap: 1rem;
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-link svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.project-link:hover svg {
    transform: translateX(4px) scale(1.1);
}

/* ===== FOOTER ===== */
.gallery-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    animation: fadeIn 1.2s ease 0.6s backwards;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image-container {
        height: 280px;
    }
}

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

    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .gallery-header {
        margin-top: 2rem;
    }

    .gallery-title {
        font-size: 2.75rem;
    }

    .gallery-subtitle {
        font-size: 1.0625rem;
    }

    .project-status-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.85rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }

    .project-status-badge svg {
        width: 10px;
        height: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .project-content {
        padding: 1.75rem;
    }

    .project-title {
        font-size: 1.625rem;
    }

    .project-image-placeholder {
        height: 220px;
    }

    .placeholder-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        margin-bottom: 3rem;
    }

    .gallery-title {
        font-size: 2.25rem;
    }

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

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-tag {
        align-self: flex-start;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Cursor follower glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.08) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Hide cursor glow on mobile */
@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ===== COMING SOON MODAL ===== */
.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    padding: 2rem;
}

.coming-soon-modal.active {
    opacity: 1;
    visibility: visible;
}

.coming-soon-content {
    background: linear-gradient(135deg, rgba(15, 22, 41, 0.95), rgba(10, 14, 26, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon-modal.active .coming-soon-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.coming-soon-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

.coming-soon-icon svg {
    color: var(--primary-light);
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.coming-soon-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 2px solid var(--primary-light);
    border-radius: 3rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.coming-soon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.coming-soon-btn:hover::before {
    width: 400px;
    height: 400px;
}

.coming-soon-btn:hover {
    border-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 2.5rem 2rem;
    }

    .coming-soon-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }

    .coming-soon-icon svg {
        width: 60px;
        height: 60px;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .coming-soon-btn {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
    color: var(--text-primary);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-top-cta-button {
    position: absolute;
    top: 2rem;
    right: 6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 2px solid var(--primary-light);
    border-radius: 3rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
    z-index: 10001;
}

.lightbox-top-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.lightbox-top-cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.lightbox-top-cta-button:hover {
    gap: 1rem;
    border-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.6);
}

.lightbox-top-cta-button svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.lightbox-top-cta-button:hover svg {
    transform: translateX(4px) scale(1.1);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    max-width: 98%;
    max-height: 95vh;
    width: 100%;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.lightbox-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.lightbox-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin: 0;
}

.lightbox-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 2px solid var(--primary-light);
    border-radius: 3rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.lightbox-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.lightbox-cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.lightbox-cta-button:hover {
    gap: 1rem;
    border-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.6);
}

.lightbox-cta-button svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.lightbox-cta-button:hover svg {
    transform: translateX(4px) scale(1.1);
}

.lightbox-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

/* Main featured image - the GIF - single image for performance */
.lightbox-gallery-image {
    width: 95%;
    max-width: 1600px;
    max-height: 80vh;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox {
        padding: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .lightbox-close svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-top-cta-button {
        top: 5rem;
        right: 1rem;
        left: 1rem;
        padding: 0.875rem 2rem;
        font-size: 1rem;
        gap: 0.5rem;
        justify-content: center;
    }

    .lightbox-top-cta-button svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-content {
        max-width: 100%;
        padding: 0.5rem;
    }

    .lightbox-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .lightbox-title {
        font-size: 1.5rem;
        order: 2;
    }

    .lightbox-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .lightbox-cta-button svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-gallery {
        gap: 1rem;
    }

    .lightbox-gallery-image {
        max-height: 70vh;
        border-radius: 0.75rem;
    }
}

/* ===== CLIENT PROJECTS SECTION ===== */
.client-projects-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Client project cards */
.client-grid {
    margin-top: 2rem;
}

.client-card {
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.client-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.client-placeholder {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.client-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
}

.client-badge svg {
    color: #10B981;
}

/* Your project placeholder */
.placeholder-card {
    border: 2px dashed var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(167, 139, 250, 0.03));
}

.placeholder-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(167, 139, 250, 0.08));
}

.your-project-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(167, 139, 250, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    gap: 0.75rem;
}

.placeholder-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-link {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border-color: var(--primary-light) !important;
}

.cta-link:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5) !important;
}

/* Responsive client projects */
@media (max-width: 768px) {
    .client-projects-section {
        margin-top: 3rem;
        padding-top: 2.5rem;
    }

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

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