/* ============================================
   SERVICE PAGE STYLES
   Dedicated CSS for individual service pages.
   Inherits variables from style.css.
   ============================================ */

/* Restore default cursor (main style.css hides it for custom cursor on homepage) */
*,
*::before,
*::after {
    cursor: auto !important;
}

a,
button,
.hero-cta,
.cta-btn,
.back-link,
.tech-item {
    cursor: pointer !important;
}

/* --- Code Rain Hero --- */
.service-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    text-align: center;
    padding: 2rem;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.code-rain .col {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--neon-green);
    opacity: 0.15;
    writing-mode: vertical-rl;
    white-space: nowrap;
    animation: rainFall linear infinite;
}

/* Generate 20 columns of code rain via nth-child */
.code-rain .col:nth-child(1) {
    left: 2%;
    animation-duration: 6s;
    animation-delay: 0s;
    opacity: 0.08;
}

.code-rain .col:nth-child(2) {
    left: 7%;
    animation-duration: 8s;
    animation-delay: 1s;
    opacity: 0.12;
}

.code-rain .col:nth-child(3) {
    left: 12%;
    animation-duration: 5s;
    animation-delay: 0.5s;
    opacity: 0.15;
}

.code-rain .col:nth-child(4) {
    left: 17%;
    animation-duration: 9s;
    animation-delay: 2s;
    opacity: 0.06;
}

.code-rain .col:nth-child(5) {
    left: 22%;
    animation-duration: 7s;
    animation-delay: 1.5s;
    opacity: 0.10;
}

.code-rain .col:nth-child(6) {
    left: 27%;
    animation-duration: 6s;
    animation-delay: 0.8s;
    opacity: 0.14;
}

.code-rain .col:nth-child(7) {
    left: 32%;
    animation-duration: 10s;
    animation-delay: 3s;
    opacity: 0.07;
}

.code-rain .col:nth-child(8) {
    left: 37%;
    animation-duration: 5s;
    animation-delay: 0.2s;
    opacity: 0.18;
}

.code-rain .col:nth-child(9) {
    left: 42%;
    animation-duration: 8s;
    animation-delay: 2.5s;
    opacity: 0.09;
}

.code-rain .col:nth-child(10) {
    left: 47%;
    animation-duration: 7s;
    animation-delay: 1.2s;
    opacity: 0.13;
}

.code-rain .col:nth-child(11) {
    left: 52%;
    animation-duration: 6s;
    animation-delay: 0.3s;
    opacity: 0.16;
}

.code-rain .col:nth-child(12) {
    left: 57%;
    animation-duration: 9s;
    animation-delay: 1.8s;
    opacity: 0.08;
}

.code-rain .col:nth-child(13) {
    left: 62%;
    animation-duration: 5s;
    animation-delay: 0.7s;
    opacity: 0.12;
}

.code-rain .col:nth-child(14) {
    left: 67%;
    animation-duration: 8s;
    animation-delay: 2.2s;
    opacity: 0.10;
}

.code-rain .col:nth-child(15) {
    left: 72%;
    animation-duration: 7s;
    animation-delay: 0.4s;
    opacity: 0.15;
}

.code-rain .col:nth-child(16) {
    left: 77%;
    animation-duration: 6s;
    animation-delay: 1.6s;
    opacity: 0.07;
}

.code-rain .col:nth-child(17) {
    left: 82%;
    animation-duration: 10s;
    animation-delay: 3.2s;
    opacity: 0.11;
}

.code-rain .col:nth-child(18) {
    left: 87%;
    animation-duration: 5s;
    animation-delay: 0.9s;
    opacity: 0.14;
}

.code-rain .col:nth-child(19) {
    left: 92%;
    animation-duration: 8s;
    animation-delay: 2.8s;
    opacity: 0.06;
}

.code-rain .col:nth-child(20) {
    left: 97%;
    animation-duration: 7s;
    animation-delay: 1.1s;
    opacity: 0.09;
}

@keyframes rainFall {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(200vh);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.service-badge {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border: 1px solid var(--neon-green);
    border-radius: 30px;
    color: var(--neon-green);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.service-main-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
    position: relative;
}

/* Glitch layers on the title */
.service-main-title::before,
.service-main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-main-title::before {
    left: 2px;
    text-shadow: -3px 0 var(--neon-green);
    animation: serviceGlitch1 3s infinite linear alternate-reverse;
}

.service-main-title::after {
    left: -2px;
    text-shadow: 3px 0 var(--gold);
    animation: serviceGlitch2 4s infinite linear alternate-reverse;
}

@keyframes serviceGlitch1 {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 100% 0);
    }

    92% {
        clip-path: inset(20% 0 40% 0);
    }

    94% {
        clip-path: inset(60% 0 10% 0);
    }

    96% {
        clip-path: inset(30% 0 50% 0);
    }

    98% {
        clip-path: inset(70% 0 5% 0);
    }
}

@keyframes serviceGlitch2 {

    0%,
    88%,
    100% {
        clip-path: inset(0 0 100% 0);
    }

    90% {
        clip-path: inset(40% 0 20% 0);
    }

    93% {
        clip-path: inset(10% 0 60% 0);
    }

    96% {
        clip-path: inset(50% 0 30% 0);
    }

    99% {
        clip-path: inset(5% 0 80% 0);
    }
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta.primary {
    background: var(--neon-green);
    color: var(--bg-dark);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.hero-cta.primary:hover {
    background: transparent;
    color: var(--neon-green);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
    transform: translateY(-3px);
}

.hero-cta.secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.hero-cta.secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}


/* --- Section Shared --- */
.service-section {
    padding: 8rem 6%;
    position: relative;
    background: var(--bg-dark);
}

.service-section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-num {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--neon-green);
    letter-spacing: 6px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}


/* --- What We Build Cards --- */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.build-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.4s, box-shadow 0.4s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.build-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.1);
}

.build-card:hover::before {
    transform: scaleX(1);
}

.build-card .card-icon {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.4s, text-shadow 0.4s;
}

.build-card:hover .card-icon {
    transform: scale(1.2) rotate(-5deg);
    text-shadow: 0 0 25px var(--neon-green);
}

.build-card .card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.build-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* --- Tech Stack Marquee --- */
.tech-marquee-section {
    padding: 5rem 0;
    background: rgba(0, 255, 0, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.tech-marquee-track {
    display: flex;
    gap: 4rem;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 100px;
    transition: transform 0.3s, filter 0.3s;
    cursor: default;
}

.tech-item:hover {
    transform: scale(1.2) translateY(-5px);
}

.tech-item .tech-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color 0.3s, text-shadow 0.3s;
}

.tech-item:hover .tech-icon {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.tech-item .tech-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.tech-item:hover .tech-name {
    color: #fff;
}


/* --- Process Timeline --- */
.timeline-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

/* Vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-green), var(--gold), var(--neon-green));
    opacity: 0.3;
}

.timeline-step {
    position: relative;
    padding: 2.5rem 0 2.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-step:last-child {
    border-bottom: none;
}

/* Glowing dot */
.timeline-step::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px rgba(0, 255, 0, 0.3);
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-step:hover::before {
    transform: scale(1.4);
    box-shadow: 0 0 25px var(--neon-green), 0 0 50px rgba(0, 255, 0, 0.5);
}

.step-num {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--neon-green);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.step-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
    transition: text-shadow 0.3s;
}

.timeline-step:hover .step-title {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.step-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
}


/* --- CTA Section --- */
.service-cta {
    padding: 10rem 6%;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.05) 0%, var(--bg-dark) 70%);
}

.cta-heading {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.cta-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--neon-green);
    color: var(--bg-dark);
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover {
    background: transparent;
    color: var(--neon-green);
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.5);
    transform: translateY(-4px) scale(1.05);
}

.cta-btn:hover::before {
    width: 400px;
    height: 400px;
}


/* --- Back Nav --- */
.service-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
}

.back-link:hover {
    color: var(--neon-green);
    transform: translateX(-5px);
}

.service-nav .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.service-nav .nav-logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    transition: filter 0.3s, transform 0.3s;
}

.service-nav .nav-logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.4));
    transform: scale(1.05);
}


/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--neon-green);
    display: block;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
    display: block;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .service-main-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .cta-heading {
        font-size: 2.2rem;
    }

    .build-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        gap: 2rem;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .timeline-container {
        padding-left: 30px;
    }

    .timeline-step {
        padding-left: 1.5rem;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .service-main-title {
        font-size: 2rem;
    }

    .service-badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .cta-heading {
        font-size: 1.8rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .service-section {
        padding: 5rem 4%;
    }
}