@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Outfit:wght@300;400;600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --bg-dark: #07070d;
    --bg-dark-radial: radial-gradient(circle at 50% 50%, #0e0f1d 0%, #050508 100%);
    --color-chrome-start: #ffffff;
    --color-chrome-mid: #9da0a8;
    --color-chrome-dark: #494c54;
    --color-chrome-end: #d1d4dc;
    --neon-cyan: #00f3ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.4);
    --neon-purple: #bd00ff;
    --neon-purple-glow: rgba(189, 0, 255, 0.4);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & LAYOUT --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-dark-radial);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1b1c30;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Interactive Canvas Background */
#web-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: all;
    opacity: 0.7;
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* --- TYPOGRAPHY & BUTTONS --- */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.chrome-text {
    background: linear-gradient(
        135deg,
        var(--color-chrome-start) 0%,
        var(--color-chrome-mid) 25%,
        var(--color-chrome-dark) 50%,
        var(--color-chrome-mid) 75%,
        var(--color-chrome-end) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
    animation: shine 6s linear infinite;
}

.cyan-glow-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan-glow);
}

.purple-glow-text {
    color: var(--neon-purple);
    text-shadow: 0 0 15px var(--neon-purple-glow);
}

/* Chrome / Glass Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(200,200,205,0.9) 100%);
    color: #07070d;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(15, 15, 25, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    color: var(--neon-cyan);
}

/* --- GLASSMORPHIC PANELS --- */
.glass-card {
    background: rgba(12, 12, 22, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.6s;
}

.glass-card:hover::before {
    left: 100%;
}

/* --- NAVIGATION BAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(7, 7, 13, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 12px 8%;
    background: rgba(7, 7, 13, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-container img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.15));
}

.logo-container:hover img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.35));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: var(--transition-smooth);
}

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

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

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    padding: 140px 8% 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.badge-glow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse-glow 2s infinite;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 0.8;
    height: 550px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#threejs-canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    z-index: 10;
}

#threejs-canvas-container:active {
    cursor: grabbing;
}

/* Floating overlay logo in hero for depth */
.hero-floating-logo {
    position: absolute;
    width: 220px;
    height: auto;
    z-index: 5;
    pointer-events: none;
    opacity: 0.15;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    animation: float-logo 8s ease-in-out infinite;
}



.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}


.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-dot.red { background-color: #ff5f56; }
.window-dot.yellow { background-color: #ffbd2e; }
.window-dot.green { background-color: #27c93f; }


/* --- STATS / NUMBERS SECTION --- */
.stats-section {
    padding: 60px 8%;
    position: relative;
    background: rgba(10, 10, 20, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Subtle background glow blobs */
.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 243, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(189, 0, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stat-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(3) { transition-delay: 0.15s; }
.stat-item:nth-child(5) { transition-delay: 0.30s; }
.stat-item:nth-child(7) { transition-delay: 0.45s; }

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #9da0a8 40%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    letter-spacing: -0.02em;
}

.stat-plus {
    font-size: 2.5rem;
    vertical-align: super;
}

.stat-label-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    font-weight: 500;
}

.stat-underline {
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    margin: 0 auto;
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.stat-item.in-view .stat-underline {
    width: 60%;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
    flex-shrink: 0;
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 8%;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.service-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateZ(0);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:nth-child(odd):hover .service-card-inner {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 35px var(--neon-cyan-glow);
}

.service-card:nth-child(even):hover .service-card-inner {
    border-color: var(--neon-purple);
    box-shadow: 0 15px 35px var(--neon-purple-glow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.service-card-inner h3 {
    font-size: 1.4rem;
}

.service-card-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 100px 8%;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-extra-container {
    max-height: 10000px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition: max-height 1s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s ease-in-out, 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-extra-container.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    cursor: pointer;
}

.portfolio-preview {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0f0f1b;
}

.portfolio-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(7, 7, 13, 0.75) 0%, rgba(7, 7, 13, 0.1) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px 24px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 5;
    pointer-events: none;
}

.portfolio-preview:hover .portfolio-preview-overlay {
    opacity: 1;
}

/* Visit Site button — pinned to bottom-right corner of the image preview */
.portfolio-visit-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    text-decoration: none;
}

.portfolio-preview:hover .portfolio-visit-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Zoom-on-hover Screenshots */
.portfolio-preview-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.portfolio-scroll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1);
    opacity: 0.75;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.portfolio-preview:hover .portfolio-scroll-img {
    transform: scale(1.07);
    opacity: 1;
}



/* Dynamic Web Nodes Overlay in Mock Portfolio */
.portfolio-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.4;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-client-review {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 15px;
    margin-top: 15px;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 100px 8%;
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.contact-info h2 {
    font-size: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.cta-btn:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Success Overlay */
.submit-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 13, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 100;
}

.submit-success-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    animation: success-pulse 2s infinite;
}

/* --- FOOTER --- */
footer {
    padding: 60px 8% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(5, 5, 8, 0.8);
    position: relative;
    z-index: 10;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
}

/* Mobile footer: stack logo and socials, single line copyright */
@media (max-width: 768px) {
    footer {
        padding: 40px 5% 24px;
    }
    .footer-layout {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    .footer-bottom {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* --- ANIMATIONS --- */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
        box-shadow: 0 0 15px var(--neon-cyan);
    }
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.7)); }
}

/* --- ABOUT & WORK SECTION --- */
.about-work-section {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.about-work-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.about-card {
    height: 100%;
}

.workflow-timeline-wrapper {
    display: flex;
    flex-direction: column;
}

.workflow-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    padding-left: 25px;
}

.workflow-timeline::before {
    display: none;
}

.timeline-progress-bg {
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.timeline-progress-bar {
    position: absolute;
    left: 7px;
    top: 12px;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    z-index: 1;
    transition: height 0.05s ease-out;
}

.timeline-node {
    display: flex;
    gap: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-node::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--text-secondary);
    transition: var(--transition-smooth);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(7, 7, 13, 0.8);
}

.timeline-node:nth-child(odd):hover::before,
.timeline-node:nth-child(odd).active::before {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow), 0 0 0 4px rgba(7, 7, 13, 0.8);
    background: var(--neon-cyan);
}

.timeline-node:nth-child(even):hover::before,
.timeline-node:nth-child(even).active::before {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple-glow), 0 0 0 4px rgba(7, 7, 13, 0.8);
    background: var(--neon-purple);
}

.timeline-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.25;
    transition: var(--transition-smooth);
    margin-top: 2px;
}

.timeline-node:nth-child(odd):hover .timeline-num,
.timeline-node:nth-child(odd).active .timeline-num {
    opacity: 1;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.timeline-node:nth-child(even):hover .timeline-num,
.timeline-node:nth-child(even).active .timeline-num {
    opacity: 1;
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple-glow);
}

.timeline-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition-smooth);
}

.timeline-node:nth-child(odd):hover .timeline-content h4,
.timeline-node:nth-child(odd).active .timeline-content h4 {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.timeline-node:nth-child(even):hover .timeline-content h4,
.timeline-node:nth-child(even).active .timeline-content h4 {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple-glow);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- STARTER PRICING CARD --- */
.pricing-section {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    align-items: stretch;
}

/* Mobile pricing: horizontal sliding cards with scroll-linked animation */
@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0 60px !important;
    }

    .pricing-section .section-header {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .pricing-section.stacked-mode {
        height: 300vh;
        padding: 0 !important;
    }

    .pricing-section.stacked-mode .pricing-grid {
        display: block !important;
        position: sticky;
        top: 80px; /* Sticks below navigation bar */
        height: calc(100vh - 100px);
        overflow-x: hidden !important; /* Keep horizontal sliding clipped to grid */
        overflow-y: visible !important; /* Keep shadows and outer edges visible */
        width: 100vw;
        margin: 0 !important;
        padding: 0 !important;
        left: 0;
    }

    .pricing-section.stacked-mode .pricing-card {
        position: absolute;
        top: 10px;
        left: 50%;
        width: 85vw !important;
        max-width: 85vw !important;
        min-width: 85vw !important;
        height: auto;
        max-height: calc(100vh - 160px); /* Restrict card height to prevent clipping */
        padding: 24px 20px !important; /* Compact padding */
        background: rgba(10, 10, 18, 0.96) !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(20px);
        overflow: hidden !important; /* Prevents internal scrollbar from blocking parent scroll */
        touch-action: pan-y !important; /* Fixes swipe scroll-jacking */
        scrollbar-width: none;
    }

    .pricing-section.stacked-mode .pricing-card::-webkit-scrollbar { display: none; }

    .pricing-section.stacked-mode .pricing-card:nth-child(1) {
        transform: translateX(-50%);
        z-index: 1;
    }

    .pricing-section.stacked-mode .pricing-card:nth-child(2) {
        transform: translateX(calc(-50% - 150vw));
        z-index: 2;
    }

    .pricing-section.stacked-mode .pricing-card:nth-child(3) {
        transform: translateX(calc(-50% + 150vw));
        z-index: 3;
    }

    /* Compact features list and headers for mobile deck */
    .pricing-section.stacked-mode .pricing-features {
        gap: 8px !important;
        margin-bottom: 20px !important;
        padding-top: 15px !important;
    }

    .pricing-section.stacked-mode .pricing-header h3 {
        font-size: 1.4rem !important;
        margin-bottom: 6px !important;
    }

    .pricing-section.stacked-mode .price-container {
        margin-bottom: 12px !important;
    }

    .pricing-section.stacked-mode .price-amount {
        font-size: 2.5rem !important;
    }

    /* Highlight Card 2 (Popular choice) when active/sliding in */
    .pricing-section.stacked-mode .pricing-card.popular-card {
        border-color: var(--neon-purple) !important;
        box-shadow: 0 0 35px rgba(189, 0, 255, 0.45), 0 25px 60px rgba(0, 0, 0, 0.9) !important;
    }
}

.pricing-card {
    width: 100%;
    max-width: 100%;
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 13, 23, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    border-color: rgba(0, 243, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 243, 255, 0.04);
}

.pricing-card.popular-card {
    border-color: rgba(189, 0, 255, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(189, 0, 255, 0.15);
    background: rgba(18, 13, 30, 0.85);
    transform: translateY(-8px);
}

.pricing-card.popular-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px var(--neon-purple-glow);
}

.card-glow-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.03), rgba(189, 0, 255, 0.03));
    pointer-events: none;
    z-index: -1;
    transition: var(--transition-smooth);
}

.pricing-card:hover .card-glow-accent {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.06), rgba(189, 0, 255, 0.06));
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.pricing-good-for {
    margin-bottom: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.pricing-good-for span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.pricing-good-for p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}


.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 0, 85, 0.05);
    border: 1px solid rgba(255, 0, 85, 0.2);
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff0055;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.price-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.4rem;
    font-weight: 900;
    color: #ffffff;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 6px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.pricing-features li {
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: '◇';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.pricing-action {
    display: flex;
    justify-content: center;
}

.starter-pricing-btn {
    width: 100%;
    border-radius: 12px;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.faq-accordion-container {
    max-width: 850px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(12, 12, 22, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    border-color: rgba(0, 243, 255, 0.25);
    background: rgba(12, 12, 22, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 243, 255, 0.02);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
    user-select: none;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 30px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        padding-top: 70px;
        padding-bottom: 40px;
        text-align: center;
        justify-content: center;
        min-height: 100vh;
    }

    .hero-content {
        display: contents;
    }

    .hero-content .badge-glow { order: 1; margin-left: auto; margin-right: auto; margin-bottom: 8px; }
    .hero-content h1 { order: 2; margin-bottom: 4px; line-height: 1.2; }
    
    .hero-visual {
        order: 3;
        width: 100%;
        height: 180px;
        min-height: 180px;
        margin: -15px 0;
    }

    .hero-content p {
        order: 4;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .hero-actions {
        order: 5;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- HAMBURGER MENU BUTTON --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease, background 0.3s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 78px; /* Fallback header height */
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 78px);
    background: rgba(12, 12, 22, 0.25); /* ultra transparent glass */
    backdrop-filter: blur(30px); /* extra strong glass blur */
    -webkit-backdrop-filter: blur(30px);
    z-index: 95; /* layers below fixed header at z-index: 100 */
    flex-direction: column;
    padding: 24px 8% 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* clean highlighted glass edge */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 243, 255, 0.02);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* right-aligned! */
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.mobile-nav-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0 8px 12px; /* padding on the left now */
    transition: var(--transition-smooth);
    outline: none;
}

.mobile-nav-back svg {
    color: var(--neon-cyan);
    transition: transform 0.3s ease;
}

.mobile-nav-back:hover {
    color: var(--neon-cyan);
}

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

.mobile-nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-overlay ul li a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s, text-shadow 0.3s;
}

.mobile-nav-overlay ul li a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan-glow);
}

.mobile-nav-overlay .mobile-cta {
    margin-top: 24px;
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }
    
    .hamburger-btn {
        display: flex;
    }

    .mobile-nav-overlay {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Hide Get Started button in header on mobile to save space */
    header > .btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 .chrome-text {
        display: block;
        font-size: 1.45rem;
        margin-top: 4px;
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-card, 
    .portfolio-card {
        position: sticky;
        top: 240px;
        background: rgba(10, 10, 18, 0.96) !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-bottom: 24px;
        backdrop-filter: blur(20px);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Stats section — 2x2 grid on mobile */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding: 24px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .stat-plus {
        font-size: 1.8rem;
    }
}

/* --- CUSTOM SPIDER CURSOR & DANGLE SPIDER --- */

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 5px var(--neon-cyan-glow));
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

#custom-cursor.visible {
    opacity: 1;
}

#custom-cursor.hovering {
    color: var(--neon-purple);
    filter: drop-shadow(0 0 10px var(--neon-purple-glow));
    transform: translate(-50%, -50%) scale(1.35);
}

#custom-cursor.moving .spider-leg {
    animation: cursor-leg-wiggle 0.2s ease-in-out infinite alternate;
}

/* Wiggle left legs and right legs in opposite phases */
#custom-cursor.moving .spider-legs-left .spider-leg:nth-child(odd),
#custom-cursor.moving .spider-legs-right .spider-leg:nth-child(even) {
    animation: cursor-leg-wiggle-a 0.15s ease-in-out infinite alternate;
}

#custom-cursor.moving .spider-legs-left .spider-leg:nth-child(even),
#custom-cursor.moving .spider-legs-right .spider-leg:nth-child(odd) {
    animation: cursor-leg-wiggle-b 0.15s ease-in-out infinite alternate;
}

@keyframes cursor-leg-wiggle-a {
    0% { transform: rotate(-3deg) translate(0px, 0px); }
    100% { transform: rotate(3deg) translate(-1px, -1px); }
}

@keyframes cursor-leg-wiggle-b {
    0% { transform: rotate(3deg) translate(1px, -1px); }
    100% { transform: rotate(-3deg) translate(0px, 0px); }
}

/* Hide default cursor on desktop */
@media (pointer: fine) {
    body, a, button, input, textarea, select, .btn, [data-tilt], .radio-btn label, .color-option {
        cursor: none !important;
    }
}

/* Hanging Spider Corner Styling */
.hanging-spider-container {
    position: fixed;
    top: 0;
    right: 40px; /* Far right corner */
    width: 40px;
    height: auto;
    pointer-events: none; /* Clicks pass through thread */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 99990; /* Floats over nav and everything */
}

.silk-thread {
    width: 1px;
    height: var(--thread-len, 80px); /* Dynamic scroll height */
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.08));
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    /* transition: height 0.15s ease-out; - removed for instant scroll sync */
}

.hanging-spider {
    width: 32px;
    height: 32px;
    color: var(--color-chrome-mid);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
    animation: gentle-swing 6s ease-in-out infinite alternate;
    transform-origin: top center;
    cursor: pointer;
    pointer-events: auto; /* Clickable spider */
    transition: color 0.3s, filter 0.3s;
}

.hanging-spider:hover {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

@keyframes gentle-swing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* --- SPIDER CATCH MINI-GAME STYLES --- */
.game-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-progress-fill {
    height: 100%;
    width: 10%; /* Initial width */
    background: linear-gradient(90deg, #00ff66, var(--neon-cyan));
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
    transition: width 0.3s ease;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-weight: 600;
    color: #00ff66;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

/* --- PREMIUM DETAILS MODAL --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 8, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.5s ease;
}

.project-modal-content {
    position: relative;
    width: 75vw;
    height: 75vh;
    max-width: 1100px;
    max-height: 800px;
    background: rgba(13, 13, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 243, 255, 0.03);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Close Button */
.project-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10010;
    transition: var(--transition-smooth);
}

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

/* Modal Body */
.project-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 50px;
}

/* Modal Content Layout */
.project-modal-header {
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 25px;
}

.project-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.project-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.project-modal-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.6;
}

/* Grid Layout — 2 columns: Highlights | Satisfaction */
.project-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

/* Medium desktop: balanced 2 columns */
@media (min-width: 1024px) {
    .project-modal-grid {
        grid-template-columns: 1.2fr 0.9fr;
        gap: 28px;
    }
}

/* Gallery section is now placed at the top of modal body */

/* Tablet / small desktop */
@media (max-width: 991px) {
    .project-modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* Mobile: full single column */
@media (max-width: 576px) {
    .project-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.project-modal-col-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-modal-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Custom Bullet Point Icons */
.project-modal-list li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    font-weight: bold;
    transition: var(--transition-fast);
}

.project-modal-list li:hover {
    color: var(--text-primary);
}

/* Satisfaction Box */
.project-modal-satisfaction-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.project-modal-satisfaction-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-modal-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
}

.project-modal-quote-author {
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- MODAL IMAGE GALLERY (Repositioned to the top of modal body) --- */
.project-modal-gallery {
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex/grid child to scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
    margin-bottom: 24px;
    min-width: 0 !important;
    width: 100% !important;
}

.project-modal-gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Horizontal scroll strip for all devices */
.project-modal-gallery-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    padding-bottom: 8px;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for horizontal gallery */
.project-modal-gallery-grid::-webkit-scrollbar {
    height: 6px;
}
.project-modal-gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}
.project-modal-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.project-modal-gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Scrollbar stays visible on small screens to let user scroll */

.project-modal-gallery-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
    /* Fixed width for horizontal scrolling thumbs */
    width: 240px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .project-modal-gallery-thumb {
        width: 140px;
    }
}

.project-modal-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.project-modal-gallery-thumb:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.project-modal-gallery-thumb:hover img {
    transform: scale(1.05);
}

/* Expand hint icon overlay */
.project-modal-gallery-thumb::after {
    content: '\2295';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.project-modal-gallery-thumb:hover::after {
    opacity: 1;
}

/* --- IMAGE LIGHTBOX OVERLAY --- */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(4, 4, 8, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1);
}

.img-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.img-lightbox-inner {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    transform: scale(0.85);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lightbox.active .img-lightbox-inner {
    transform: scale(1);
}

.img-lightbox-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
    aspect-ratio: 16 / 10;
    object-position: center;
}

.img-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 13, 23, 0.9) !important;
    border: 1px solid rgba(0, 243, 255, 0.4) !important;
    color: var(--neon-cyan) !important;
    font-size: 1.6rem !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 20010;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3) !important;
}

.img-lightbox-nav:hover {
    background: rgba(0, 243, 255, 0.1) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6) !important;
}

.img-lightbox-nav.prev {
    left: 20px;
}

.img-lightbox-nav.next {
    right: 20px;
}

.img-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.img-lightbox-close:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

/* Helper Scrollbar within Modal content */
.project-modal-body::-webkit-scrollbar {
    width: 6px;
}
.project-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.project-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.project-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Theme adaptation classes */
.project-modal[data-theme="cyan"] .project-modal-badge {
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.15);
    background: rgba(0, 243, 255, 0.02);
}
.project-modal[data-theme="cyan"] .project-modal-title {
    background-image: linear-gradient(135deg, #ffffff 0%, #85f3ff 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-modal[data-theme="cyan"] .project-modal-col-title {
    color: var(--neon-cyan);
}
.project-modal[data-theme="cyan"] .project-modal-list li::before {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.project-modal[data-theme="purple"] .project-modal-badge {
    color: var(--neon-purple);
    border-color: rgba(189, 0, 255, 0.15);
    background: rgba(189, 0, 255, 0.02);
}
.project-modal[data-theme="purple"] .project-modal-title {
    background-image: linear-gradient(135deg, #ffffff 0%, #d685ff 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-modal[data-theme="purple"] .project-modal-col-title {
    color: var(--neon-purple);
}
.project-modal[data-theme="purple"] .project-modal-list li::before {
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
}

/* Lock scroll on body */
body.modal-open {
    overflow: hidden !important;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 991px) {
    .project-modal-content {
        width: 75vw !important;
        max-width: 75vw !important;
        height: 75vh !important;
        max-height: 75vh !important;
        overflow-x: hidden !important;
    }
    .project-modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        min-width: 0 !important;
        width: 100% !important;
    }
    .project-modal-gallery {
        min-width: 0 !important;
        width: 100% !important;
    }
    .project-modal-gallery-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    .project-modal-body {
        padding: 40px 30px;
    }
    .project-modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .project-modal-content {
        width: 75vw !important;
        max-width: 75vw !important;
        height: 75vh !important;
        max-height: 75vh !important;
        border-radius: 16px;
        overflow-x: hidden !important;
    }
    .project-modal-grid {
        min-width: 0 !important;
        width: 100% !important;
    }
    .project-modal-gallery {
        min-width: 0 !important;
        width: 100% !important;
    }
    .project-modal-gallery-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    .project-modal-body {
        padding: 30px 20px;
    }
    .project-modal-title {
        font-size: 1.4rem;
    }
    .project-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    .project-modal-live-link {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        display: inline-flex !important;
        width: fit-content !important;
        padding: 8px 14px !important;
        font-size: 0.76rem !important;
    }
}

/* Live Link button at top right of modal */
.project-modal-live-link {
    position: absolute;
    top: 20px;
    right: 80px; /* to the left of the close button */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 0, 85, 0.05);
    border: 1px solid rgba(255, 0, 85, 0.2);
    border-radius: 50px;
    color: #ff0055;
    text-decoration: none;
    font-size: 0.82rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 10010;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.05);
}

.project-modal-live-link:hover {
    background: rgba(255, 0, 85, 0.15);
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
    color: #ff3377;
    transform: translateY(-2px);
}

/* Blinking red dot */
.pulse-dot-red {
    width: 8px;
    height: 8px;
    background-color: #ff0055;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px #ff0055;
}

.pulse-dot-red::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ff0055;
    opacity: 0;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* --- PROJECTS LANDING SHOWCASE (Desktop Defaults) --- */
.projects-landing-header {
    text-align: center;
    padding: 160px 8% 60px;
    position: relative;
    z-index: 10;
}
.projects-landing-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.projects-landing-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}
.nav-links a.active::after {
    width: 100%;
}
.projects-showcase-section {
    padding: 20px 8% 100px;
    position: relative;
    z-index: 10;
}

/* --- MOBILE STICKY HEADINGS AND ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* Sticky headings for Services and Creations only */
    .services-section .section-header,
    .portfolio-section .section-header {
        position: sticky !important;
        top: 56px !important; /* Exact height of fixed navbar on mobile */
        z-index: 90 !important;
        background: #07070d !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        margin-bottom: 24px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(7, 7, 13, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .projects-landing-header {
        padding: 110px 5% 20px !important;
        text-align: center;
    }
    
    .projects-landing-header h1 {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .projects-landing-header p {
        font-size: 0.95rem !important;
    }

    /* Transition cards on mobile stack */
    .service-card, 
    .portfolio-card {
        transition: transform 0.3s ease;
    }

    /* Force two columns per row in projects.html showcase on mobile */
    .projects-showcase-section {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .projects-showcase-section .portfolio-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .projects-showcase-section .portfolio-card {
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Compact layout details for 2-column cards on smaller viewports */
    .projects-showcase-section .portfolio-info h3 {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }

    .projects-showcase-section .portfolio-info p {
        font-size: 0.76rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .projects-showcase-section .portfolio-client-review {
        font-size: 0.72rem !important;
        padding-left: 10px !important;
        margin-top: 8px !important;
        line-height: 1.4 !important;
    }

    .projects-showcase-section .portfolio-client-review strong {
        font-size: 0.68rem !important;
    }

    /* Ensure View Details buttons on project cards are visible on mobile */
    .portfolio-visit-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* Mobile overrides for new sections */
    .about-work-section,
    .pricing-section,
    .faq-section,
    .contact-section {
        padding: 60px 5% !important;
    }

    .about-work-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .workflow-timeline {
        padding-left: 10px !important;
    }

    .pricing-card {
        padding: 30px 20px !important;
    }

    .price-amount {
        font-size: 2.8rem !important;
    }

    .faq-question {
        padding: 18px 20px !important;
        font-size: 0.95rem !important;
    }

    .faq-answer-inner {
        padding: 0 20px 18px !important;
        font-size: 0.88rem !important;
    }

    /* Attention-grabbing animation for Explore Works button */
    @keyframes pulse-attention {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
        }
        50% {
            transform: scale(1.06);
            box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5), 0 0 15px rgba(189, 0, 255, 0.3);
        }
    }

    .hero-actions .btn-primary {
        animation: pulse-attention 2s infinite ease-in-out;
    }
}

/* --- FLOATING WHATSAPP WIDGET --- */
.whatsapp-btn-ripple {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990; /* Keep it below modals per constraint */
    background-color: #25D366;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-ripple 2s infinite;
}

.whatsapp-btn-ripple:hover {
    transform: scale(1.1);
}

.whatsapp-btn-ripple:active {
    transform: scale(0.95);
}

.whatsapp-btn-ripple svg {
    position: relative;
    z-index: 5;
    width: 30px;
    height: 30px;
}

/* WhatsApp Floating Button Ripple Wave Effect */
@keyframes whatsapp-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.3);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 0 0 30px rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments for WhatsApp widget */
@media (max-width: 576px) {
    .whatsapp-btn-ripple {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
    .whatsapp-btn-ripple svg {
        width: 30px;
        height: 30px;
    }
}

/* --- ENQUIRY MODAL STYLING OVERRIDES --- */
#enquiry-modal .project-modal-content {
    width: 90vw;
    height: auto;
    max-width: 480px;
    max-height: none;
    padding: 35px 30px;
    border-radius: 20px;
    background: rgba(13, 13, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 243, 255, 0.05);
}

#enquiry-modal .enquiry-modal-body {
    display: flex;
    flex-direction: column;
}

#enquiry-modal .form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#enquiry-modal .form-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

/* --- SITE GALLERY SECTION --- */
.site-gallery-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.site-gallery-card {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(13, 13, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 243, 255, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.site-gallery-card-header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-gallery-card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 0.05em;
}

.site-gallery-card-header .gallery-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-gallery-card.open .site-gallery-card-header .gallery-status-dot {
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}

/* Collapsible Body */
.site-gallery-body {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 32px;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s ease, 
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.site-gallery-card.open .site-gallery-body {
    max-height: 1000px; /* arbitrary height to fit contents */
    opacity: 1;
    visibility: visible;
    padding: 32px;
}

/* Grid Layout: 2 Columns on All Viewports */
.site-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-width: 0;
}

/* Override the fixed width of .project-modal-gallery-thumb inside our homepage grid */
.site-gallery-grid .project-modal-gallery-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 10;
}

/* Open/Close gallery button styling */
.open-gallery-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.open-gallery-btn {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 10px 24px;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
}

.open-gallery-btn:hover {
    color: #fff;
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.open-gallery-btn:active {
    transform: translateY(0);
}

/* --- INFINITE TICKER MARQUEE EFFECT --- */
.ticker-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 4px;
}

/* Fog/Fade overlay at the edges of the ticker wrapper */
.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(13, 13, 23, 1) 0%, rgba(13, 13, 23, 0) 100%);
}

.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(13, 13, 23, 1) 0%, rgba(13, 13, 23, 0) 100%);
}

.ticker-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    animation: ticker-slide-left 25s linear infinite;
}

.ticker-track .project-modal-gallery-thumb {
    margin-right: 12px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


