/* ================= GLOBAL FIX ================= */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

section {
    position: relative;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #00E5A8, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================= HERO ================= */

.services-hero {
    padding: 160px 60px 100px;
    text-align: center;
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #0F172A, #122D35);
}

/* RIGHT GLOW */

.services-hero::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.22) 0%,
        rgba(0, 229, 168, 0.08) 35%,
        transparent 75%
    );
    top: -300px;
    right: -300px;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

/* LEFT GLOW */

.services-hero::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle,
        rgba(0, 229, 168, 0.18) 0%,
        rgba(0, 229, 168, 0.06) 40%,
        transparent 75%
    );
    bottom: -400px;
    left: -350px;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

/* HERO TEXT */

.services-hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-hero h5 {
    color: #00E5A8;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.services-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.2;
    font-weight: 700;
    color: #FFFFFF;
    overflow-wrap: break-word;
}

.services-hero p {
    margin: 20px auto;
    max-width: 650px;
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
}

/* ================= HERO BUTTONS ================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

/* PRIMARY BUTTON */

.btn-primary {
    background: linear-gradient(135deg, #00E5A8, #FFFFFF);
    color: #0F172A;
    border: 1px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 229, 168, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 229, 168, 0.4);
}

/* SECONDARY BUTTON */

.btn-secondary {
    background: transparent;
    color: #00E5A8;
    border: 2px solid #00E5A8;
}

.btn-secondary:hover {
    background: #00E5A8;
    color: #0F172A;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 168, 0.25);
}

/* KEYBOARD ACCESSIBILITY */

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

/* ================= GLASS CARDS ================= */

.glass-card,
.service-card,
.step,
.why-card {
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* GLOW BORDER EFFECT */

.service-card::before,
.step::before,
.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 229, 168, 0.18),
        transparent
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* KEEP CARD CONTENT ABOVE GLOW */

.service-card > *,
.step > *,
.why-card > * {
    position: relative;
    z-index: 1;
}

/* ================= SERVICES ================= */

.services {
    padding: 100px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #102A34);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}

.service-card {
    height: 100%;
}

.service-card i {
    display: inline-block;
    font-size: 32px;
    color: #00E5A8;
    margin-bottom: 18px;
}

.service-card h3 {
    color: #FFFFFF;
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.service-card p {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ================= PROCESS ================= */

.process {
    padding: 100px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #132F36);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}

.step {
    height: 100%;
}

.step span {
    display: inline-block;
    font-size: 30px;
    color: #00E5A8;
    font-weight: 700;
    margin-bottom: 18px;
}

.step h3 {
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ================= WHY CHOOSE US ================= */

.why-us {
    padding: 100px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0F172A, #102A34);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}

.why-card {
    height: 100%;
}

.why-card i {
    display: inline-block;
    font-size: 28px;
    color: #00E5A8;
    margin-bottom: 18px;
}

.why-card h3 {
    color: #FFFFFF;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.why-card p {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ================= SECTION HEADERS ================= */

.section-header {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.section-header h5 {
    color: #00E5A8;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.3;
    margin-bottom: 18px;
}

.section-header p {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 auto;
}

/* ================= DESKTOP HOVER ================= */

@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .step:hover,
    .why-card:hover {
        transform: translateY(-8px);
        border-color: rgba(0, 229, 168, 0.5);
        box-shadow: 0 25px 60px rgba(0, 229, 168, 0.14);
    }

    .service-card:hover::before,
    .step:hover::before,
    .why-card:hover::before {
        opacity: 1;
    }
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
    .services-hero {
        padding: 140px 35px 85px;
    }

    .services,
    .process,
    .why-us {
        padding: 80px 35px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .process-steps,
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .glass-card,
    .service-card,
    .step,
    .why-card {
        padding: 28px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .services-hero {
        padding: 125px 24px 75px;
    }

    .services-hero h1 {
        font-size: clamp(32px, 7vw, 42px);
        line-height: 1.25;
    }

    .services-hero p {
        font-size: 16px;
        line-height: 1.8;
        margin: 18px auto;
    }

    .services,
    .process,
    .why-us {
        padding: 70px 24px;
    }

    .services-grid,
    .process-steps,
    .why-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 35px;
    }

    .glass-card,
    .service-card,
    .step,
    .why-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .section-header h2 {
        font-size: clamp(27px, 6vw, 34px);
    }

    .section-header p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        max-width: 320px;
        margin: 28px auto 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 48px;
        padding: 13px 20px;
    }

    .service-card:hover,
    .step:hover,
    .why-card:hover {
        transform: none;
    }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {
    .services-hero {
        padding: 115px 18px 60px;
    }

    .services-hero h5 {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .services-hero h1 {
        font-size: 31px;
    }

    .services-hero p {
        font-size: 14px;
    }

    .services,
    .process,
    .why-us {
        padding: 60px 18px;
    }

    .services-grid,
    .process-steps,
    .why-grid {
        gap: 18px;
        margin-top: 30px;
    }

    .glass-card,
    .service-card,
    .step,
    .why-card {
        padding: 25px 18px;
    }

    .service-card i {
        font-size: 29px;
    }

    .service-card h3,
    .step h3,
    .why-card h3 {
        font-size: 19px;
    }

    .service-card p,
    .step p,
    .why-card p {
        font-size: 14px;
    }

    .section-header h5 {
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 27px;
    }

    .section-header p {
        font-size: 14px;
    }
}

/* ================= EXTRA SMALL MOBILE ================= */

@media (max-width: 360px) {
    .services-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-hero h1 {
        font-size: 27px;
    }

    .services-hero p {
        font-size: 13px;
    }

    .services,
    .process,
    .why-us {
        padding-left: 14px;
        padding-right: 14px;
    }

    .glass-card,
    .service-card,
    .step,
    .why-card {
        padding: 22px 16px;
    }

    .hero-buttons {
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

/* ================= REDUCED MOTION ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
