@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

        :root {
            --site-color: #5170FF;
            --site-color-dark: #3a52d4;
            --site-color-light: #eef0ff;
            --text-dark: #1a1a2e;
            --text-mid: #444;
            --text-light: #777;
            --white: #ffffff;
            --bg: #f8f9ff;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: "Poppins", sans-serif;
            background-color: var(--bg);
            color: var(--text-dark);
        }

        /* Prevent scroll when mobile menu is open */
        body.menu-open {
            overflow: hidden;
        }

        a { text-decoration: none; color: inherit; }

        /* ── NAVBAR ── */
        .header-main {
            border-radius: 50px;
            background-color: rgba(66, 66, 66, 0.801);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            position: fixed;
            top: 20px;
            left: 50%;
            width: 80%;
            height: 60px;
            transform: translateX(-50%);
            z-index: 1000;
            padding: 0 50px;
        }

        .header-main-logo {
            width: 60%;
        }

        .header-main-logo img {
            width: 80px;
            align-self: center;
        }

        .header-main-nav { 
            width: 40%; 
            white-space: nowrap;
        }

        .header-main-nav ul {
            display: flex;
            align-items: center;
            list-style: none;
            gap: 25px;
        }

        .header-main-nav ul li a {
            padding: 0 10px;
            color: var(--white);
            font-size: 16px;
            transition: 0.3s;
        }

        .header-main-nav ul li a:hover {
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 5px;
        }

        /* ── HAMBURGER BUTTON ── */
        .hamburger {
            display: none; /* hidden on desktop */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 40px;
            height: 40px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            z-index: 1100;
            flex-shrink: 0;
        }

        .ham-line {
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--white);
            border-radius: 2px;
            transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                        opacity   0.25s ease,
                        width     0.3s ease;
            transform-origin: center;
        }

        /* Animate to X when open */
        .hamburger.is-open .ham-line:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .hamburger.is-open .ham-line:nth-child(2) {
            opacity: 0;
            width: 0;
        }

        .hamburger.is-open .ham-line:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        /* ── MOBILE MENU OVERLAY ── */
        .mobile-menu {
            display: none; /* hidden on desktop */
            position: fixed;
            inset: 0;
            background: rgba(26, 26, 46, 0.97);
            backdrop-filter: blur(12px);
            z-index: 999;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            /* Slide in from top */
            opacity: 0;
            transform: translateY(-20px);
            pointer-events: none;
            transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        }

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

        .mobile-menu ul li {
            overflow: hidden;
        }

        .mobile-menu ul li a {
            font-size: 28px;
            font-weight: 700;
            color: var(--white);
            letter-spacing: 1px;
            position: relative;
            display: inline-block;
            transition: color 0.3s ease;
        }

        .mobile-menu ul li a::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--site-color);
            transition: width 0.3s ease;
        }

        .mobile-menu ul li a:hover {
            color: var(--site-color);
        }

        .mobile-menu ul li a:hover::after {
            width: 100%;
        }

        /* Open state */
        .mobile-menu.is-open {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        /* ── HERO BANNER ── */
        .services-hero {
            width: 100%;
            min-height: 340px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 140px 60px 80px;
            position: relative;
            overflow: hidden;
        }

        .services-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: #5170FF;
        }

        .services-hero .hero-tag {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 16px;
            position: relative;
            color: hsl(0, 0%, 85%);
        }

        .services-hero h1 {
            font-size: 52px;
            font-weight: 800;
            color: var(--white);
            line-height: 1.15;
            position: relative;
            margin-bottom: 20px;
        }

        .services-hero p {
            font-size: 17px;
            color: rgba(255,255,255,0.7);
            max-width: 620px;
            line-height: 1.75;
            position: relative;
        }

        /* ── GRID SECTION ── */
        .services-grid-section {
            max-width: 1280px;
            margin: 0 auto;
            padding: 90px 60px 120px;
        }

        .section-label {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 60px;
        }

        .section-label::before {
            content: "";
            width: 50px;
            height: 2px;
            background: var(--site-color);
            display: inline-block;
        }

        .section-label span {
            font-size: 20px;
            font-weight: 600;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--site-color);
        }

        /* ── SERVICE CARDS ── */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 32px;
        }

        .service-card {
            background: var(--white);
            border-radius: 20px;
            padding: 44px 44px 40px;
            box-shadow: 0 4px 30px rgba(0,0,0,0.07);
            border: 1px solid rgba(81,112,255,0.08);
            display: flex;
            flex-direction: column;
            gap: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            position: relative;
            overflow: hidden;
            height: 650px;
        }

        .service-card::after {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 4px;
            height: 100%;
            background: var(--site-color);
            border-radius: 20px 0 0 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 48px rgba(81,112,255,0.15);
            border-color: rgba(81,112,255,0.3);
        }

        .service-card:hover::after {
            opacity: 1;
        }

        .card-icon {
            width: 58px;
            height: 58px;
            background: var(--site-color-light);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .card-icon svg {
            width: 28px;
            height: 28px;
            stroke: var(--site-color);
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .card-title-block h2 {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .card-title-block .card-tag {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--site-color);
            opacity: 0.8;
        }

        .card-description {
            font-size: 14px;
            line-height: 1.75;
            color: var(--text-mid);
        }

        .card-included {
            background: var(--site-color-light);
            border-radius: 14px;
            padding: 20px 24px;
        }

        .card-included h4 {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--site-color);
            margin-bottom: 14px;
        }

        .card-included ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .card-included ul li {
            font-size: 13.5px;
            color: var(--text-mid);
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.5;
        }

        .card-included ul li::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--site-color);
            flex-shrink: 0;
            margin-top: 6px;
        }

        .card-perfect {
            border-top: 1px solid rgba(81,112,255,0.12);
            padding-top: 18px;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .perfect-label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--site-color);
            white-space: nowrap;
            padding-top: 2px;
            flex-shrink: 0;
        }

        .card-perfect p {
            font-size: 13.5px;
            color: var(--text-light);
            line-height: 1.65;
        }

        .btn-consult {
            margin-top: 30px;
        }

        .btn-consult a {
            padding: 10px 25px;
            border-radius: 50px;
            color: hsl(0, 0%, 100%);
            background-color: #5170FF;
            font-size: 16px;
        }

        /* ── CTA BANNER ── */
        .cta-banner {
            background: linear-gradient(135deg, var(--site-color) 0%, #3a52d4 100%);
            padding: 80px 60px;
            text-align: center;
        }

        .cta-banner h2 {
            font-size: 38px;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .cta-banner p {
            font-size: 17px;
            color: rgba(255,255,255,0.8);
            margin-bottom: 36px;
        }

        .cta-btn {
            display: inline-block;
            background: var(--white);
            color: var(--site-color);
            font-size: 16px;
            font-weight: 700;
            padding: 16px 44px;
            border-radius: 50px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .cta-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 32px rgba(0,0,0,0.3);
        }

        /* ── FOOTER ── */
        .footer {
            background: hsl(0, 0%, 20%);
            color: hsl(0, 0%, 80%);
            padding: 60px 8% 20px;
            font-size: 14px;
        }

        .footer-container {
            display: flex;
            gap: 50px;
        }

        .col-brand { 
            width: 35%; 
        }

        .col-brand img {
            width: 30%;
        }

        .col-brand p {
            line-height: 1.6;
            font-size: 13px;
            color: hsl(0, 0%, 70%);
        }

        .footer-container h3 {
            color: var(--white);
            font-weight: 500;
            margin-bottom: 12px;
            font-size: 17px;
        }

        .footer-container ul {
            list-style: none;
        }

        .footer-container ul li {
            margin-bottom: 10px;
            font-size: 14px;
            color: hsl(0, 0%, 70%);
        }

        .footer-container ul li a {
            color: hsl(0, 0%, 70%);
            transition: 0.3s;
        }

        .footer-container ul li a:hover { color: var(--white); }

        .footer-bottom {
            border-top: 1px solid hsl(0, 0%, 35%);
            margin-top: 40px;
            padding-top: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: hsl(0, 0%, 60%);
        }


/* RESPONSIVE BREAKPOINTS */

/* ── TABLET (≤ 1114px) ── */
@media (max-width: 1114px) {
    .header-main {
        width: 90%;
        justify-content: space-between;
        padding: 0 20px;
    }

    .header-main-nav{
        display: none;
    }

    .hamburger {
            display: flex;
        }

        .mobile-menu {
            display: flex;
        }

    .services-grid-section {
        padding: 70px 40px 100px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .service-card {
        padding: 36px 32px 32px;
    }

    .cta-banner {
        padding: 70px 40px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .col-brand {
        width: 100%;
    }

    .col-brand img {
        width: 20%;
        margin-bottom: 14px;
    }
}

/* ── MOBILE (≤ 884px) ── */
@media (max-width: 884px) {

    /* Navbar layout */
    .header-main {
        width: 92%;
        height: 56px;
        top: 14px;
        border-radius: 40px;
        justify-content: space-between;
        padding: 0 18px 0 20px;
    }

    .header-main-logo {
        width: auto;
        padding-left: 0;
    }

    .header-main-logo img {
        width: 60px;
    }

    /* Hide desktop nav, show hamburger */
    .header-main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Show mobile menu overlay (flex so content centres) */
    .mobile-menu {
        display: flex;
    }

    /* Hero */
    .services-hero {
        padding: 120px 24px 64px;
        min-height: auto;
    }

    .services-hero h1 {
        font-size: 36px;
    }

    .services-hero p {
        font-size: 15px;
    }

    /* Grid */
    .services-grid-section {
        padding: 56px 20px 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .section-label {
        margin-bottom: 40px;
    }

    .section-label span {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .service-card {
        padding: 28px 24px 26px;
        gap: 16px;
        width: 50%;
        height: auto;
    }

    .card-title-block h2 {
        font-size: 19px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .card-included {
        padding: 16px 18px;
    }

    /* CTA */
    .cta-banner {
        padding: 56px 24px;
    }

    .cta-banner h2 {
        font-size: 28px;
    }

    .cta-banner p {
        font-size: 15px;
    }

    .cta-btn {
        font-size: 14px;
        padding: 20px 50px;
    }

    /* Footer */
    .footer {
        padding: 48px 6% 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .col-brand {
        width: 100%;
    }

    .col-brand img {
        width: 25%;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {

    .services-hero h1 {
        font-size: 30px;
    }

    .services-hero .hero-tag {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .service-card {
        width: 100%;
    }

    .card-header {
        gap: 14px;
    }

    .card-perfect {
        flex-direction: column;
        gap: 6px;
    }

    .perfect-label {
        white-space: normal;
    }

    .cta-banner h2 {
        font-size: 24px;
    }

    .col-brand img {
        width: 35%;
    }

    .mobile-menu ul li a {
        font-size: 24px;
    }
}