/* Mobile Medic 2.0 - Homepage Styles */
/* Following the Design Bible: Clean, high-tech, bright aesthetic */

:root {
    --bg: #05050b;
    --surface: #0c0c16;
    --primary: #4ac7ff;
    --primary-strong: #2fa7e9;
    --accent: #b57bff;
    --accent-purple: #b57bff;
    --text: #f4f7ff;
    --muted: #9fa6c0;
    --border: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 30px 70px rgba(0, 0, 0, 0.55);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    color: var(--text);
    background: var(--bg);
    font-family: 'Config Rounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@font-face {
    font-family: 'Config Rounded';
    src: url('/assets/shared/fonts/ConfigRoundedRegular.woff2') format('woff2'),
         url('/assets/shared/fonts/ConfigRoundedRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Rounded';
    src: url('/assets/shared/fonts/ConfigRoundedMedium.woff2') format('woff2'),
         url('/assets/shared/fonts/ConfigRoundedMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Config Rounded';
    src: url('/assets/shared/fonts/ConfigRoundedSemibold.woff2') format('woff2'),
         url('/assets/shared/fonts/ConfigRoundedSemibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% -10%, rgba(74, 199, 255, 0.16), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(181, 123, 255, 0.18), transparent 50%),
                linear-gradient(120deg, #05050b 0%, #0b0b17 45%, #090918 100%);
    color: var(--text);
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   NAVIGATION / TOPBAR
   ============================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 6vw;
    background: rgba(10, 10, 18, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease;
    isolation: isolate;
}

.brand:hover {
    opacity: 0.8;
}

.brand img {
    height: 40px;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    filter: drop-shadow(0 4px 10px rgba(181, 123, 255, 0.22));
}

.brand::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(181, 123, 255, 0.2), rgba(111, 71, 171, 0.18));
    mix-blend-mode: color;
    pointer-events: none;
    z-index: -1;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 8px;
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
}

.topbar nav > a {
    transition: color 0.2s ease;
}

.topbar nav > a:hover {
    color: var(--text);
}

.nav-group {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-trigger:hover {
    color: var(--text);
}

.nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    background: rgba(12, 12, 20, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    padding: 8px;
    display: none;
    z-index: 120;
}

.nav-panel a {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-panel a:hover {
    background: rgba(181, 123, 255, 0.12);
    color: var(--text);
}

.nav-panel__cta {
    color: var(--accent-purple) !important;
    font-weight: 700 !important;
    margin-top: 4px;
}

.nav-group:focus-within .nav-panel,
.nav-group:hover .nav-panel {
    display: block;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.primary,
.secondary,
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 44px;
}

.primary {
    background: linear-gradient(135deg, var(--accent-purple), #7f5fd4);
    color: #fff;
    box-shadow: 0 12px 30px rgba(181, 123, 255, 0.28);
}

.primary:hover {
    background: linear-gradient(135deg, #7f5fd4, var(--accent-purple));
}

.secondary {
    background: rgba(74, 199, 255, 0.12);
    color: var(--primary);
    border-color: rgba(74, 199, 255, 0.3);
}

.secondary:hover {
    background: rgba(74, 199, 255, 0.2);
}

.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

.ghost:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

main {
    padding: 0 0 80px;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-carousel {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 199, 255, 0.08) 0%, rgba(181, 123, 255, 0.08) 100%);
    border-radius: 0 0 48px 48px;
    margin-bottom: 80px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 8vw 80px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    overflow: hidden;
}

.hero-slide.active {
    position: relative;
    min-height: 80vh;
    height: 100%;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide__backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: saturate(1.05);
    z-index: 0;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 5, 12, 0.85), rgba(11, 11, 23, 0.7));
    opacity: var(--overlay, 0.6);
    z-index: 1;
}

.hero-slide__content {
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.hero-slide__content h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin: 16px 0 20px;
    letter-spacing: -0.02em;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slide__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 32px;
    max-width: 520px;
}

.hero-slide__content.align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-slide__content.align-right {
    text-align: right;
    margin-left: auto;
}

.hero-slide__visual {
    display: grid;
    place-items: center;
    min-height: 400px;
    position: relative;
    z-index: 2;
}

.device-float {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 199, 255, 0.2), rgba(181, 123, 255, 0.18));
    display: grid;
    place-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.device-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 199, 255, 0.35), rgba(181, 123, 255, 0.35));
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}

.device-icon {
    font-size: 120px;
    color: var(--primary);
    opacity: 0.9;
}

.hero-slide__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-slide__actions.center { justify-content: center; }
.hero-slide__actions.end { justify-content: flex-end; }

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

.carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    pointer-events: none;
    z-index: 10;
}

.carousel-button {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-carousel:hover .carousel-button {
    opacity: 1;
}

.carousel-button:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 20px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(181, 123, 255, 0.95);
    width: 18px;
    border-radius: 10px;
    transform: none;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* ============================================
   SECTION HEADERS & EYEBROWS
   ============================================ */

.section-header {
    max-width: 760px;
    margin-bottom: 40px;
    padding: 0 6vw;
}

.section-header.centered {
    text-align: center;
    margin: 0 auto 40px;
}

.section-header h2 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.6vw, 3.2rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
}

.section-header p,
.section-subhead {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

.section-hero h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    white-space: nowrap;
}

.section-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.section-header.centered .section-cta {
    justify-content: center;
}

@media (max-width: 768px) {
    .section-hero h2 {
        white-space: normal;
    }
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 10px;
}

/* ╔════════════════════════════════════════════════════════════════╗
   ║                    SERVICES SECTION                            ║
   ║                                                                ║
   ║  📍 CONFIGURATION GUIDE:                                       ║
   ║                                                                ║
   ║  🎨 DESKTOP CONFIGURATION (Line ~505)                          ║
   ║     - Card dimensions (padding, height)                        ║
   ║     - Text spacing (margins between elements)                  ║
   ║     - Image size & placement for each device                   ║
   ║                                                                ║
   ║  📱 MOBILE CONFIGURATION (Line ~838)                           ║
   ║     - Card dimensions (padding, height)                        ║
   ║     - Text spacing (margins between elements)                  ║
   ║     - Image size & placement for each device                   ║
   ║                                                                ║
   ║  💡 TIPS:                                                      ║
   ║     • Right padding = space reserved for image                 ║
   ║     • Negative bottom = how much phone emerges from edge       ║
   ║     • Negative right = how much image overflows card           ║
   ║     • Width = device image size                                ║
   ║                                                                ║
   ╚════════════════════════════════════════════════════════════════╝ */

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    margin: 80px 0;
    padding: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 6vw;
    margin-top: 32px;
}

.service-grid.two-up {
    grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   🎨 DESKTOP CARD CONFIGURATION
   Fine-tune card appearance for desktop screens
   ============================================ */

/* Service Cards with Brand Colors & Device Images */
.service-card {
    position: relative;
    background: linear-gradient(135deg, var(--brand-primary, var(--primary)), var(--brand-secondary, var(--primary-strong)));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);

    /* 📐 DESKTOP CARD DIMENSIONS */
    padding: 40px 280px 40px 40px;  /* top | right (space for image) | bottom | left */
    min-height: 320px;

    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Category-specific colors */
.service-card[data-category="phones"] {
    --brand-primary: #802a8f;
    --brand-secondary: #5a1e64;
}

.service-card[data-category="tablets"] {
    --brand-primary: #0098fd;
    --brand-secondary: #0284c7;
}

.service-card[data-category="consoles"] {
    --brand-primary: #31cca2;
    --brand-secondary: #0d9488;
}

.service-card[data-category="computers"] {
    --brand-primary: #ff8b3e;
    --brand-secondary: #ea580c;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.service-card__content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* 📝 DESKTOP TEXT SPACING */
.service-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0;  /* Space below eyebrow */
}

.service-card h3 {
    margin: 10px 0 12px;  /* top | left-right | bottom */
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.service-card p {
    margin: 0 0 16px;  /* top | left-right | bottom */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 240px;  /* Slightly tighter to give the image more room */
}

/* ============================================
   📱 DESKTOP IMAGE CONFIGURATION
   Fine-tune device image size and placement
   Negative bottom values make phones "emerge" from bottom
   ============================================ */

.service-card__image {
    position: absolute;
    height: auto;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__image {
    transform: scale(1.05);
}

.service-card__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* 📱 Phones - Desktop */
.service-card[data-category="phones"] .service-card__image {
    width: 340px;        /* Image width */
    right: 10px;         /* Distance from right edge */
    bottom: -70px;       /* Negative = emerges from bottom (more negative = more clipped) */
}

/* 📲 Tablets - Desktop */
.service-card[data-category="tablets"] .service-card__image {
    width: 350px;
    right: 10px;
    bottom: -75px;
}

/* 🎮 Consoles - Desktop */
.service-card[data-category="consoles"] .service-card__image {
    width: 340px;
    right: 10px;
    bottom: -70px;
}

/* 💻 Computers - Desktop */
.service-card[data-category="computers"] .service-card__image {
    width: 350px;
    right: 10px;
    bottom: -75px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.text-link:hover {
    gap: 10px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
    margin: 110px 0;
    padding: 90px 6vw;
    background: linear-gradient(135deg, rgba(74, 199, 255, 0.08), rgba(181, 123, 255, 0.08));
    border-radius: 52px 52px 0 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: left;
    overflow: hidden;
}

.step-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(74, 199, 255, 0.3), rgba(181, 123, 255, 0.25));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
            mask-composite: exclude;
    pointer-events: none;
}

.step-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.85rem;
}

.step-number {
    color: var(--accent-purple);
}

.step-label {
    color: var(--primary-strong);
    letter-spacing: 0.08em;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-slide {
        grid-template-columns: 1fr;
        padding: 100px 6vw 60px;
        gap: 40px;
    }

    .hero-slide__visual {
        order: -1;
        min-height: 300px;
    }

    .device-float {
        width: 220px;
        height: 220px;
    }

    .device-icon {
        font-size: 90px;
    }

    .hero-carousel {
        min-height: 55vh;
        border-radius: 0 0 32px 32px;
    }

    /* Adjust service cards for tablet */
    .service-card {
        padding: 36px 240px 36px 36px;
    }

    .service-card[data-brand="iphone"] .service-card__image,
    .service-card[data-brand="samsung"] .service-card__image,
    .service-card[data-brand="google"] .service-card__image,
    .service-card[data-brand="motorola"] .service-card__image {
        width: 300px;
    }

    .service-card[data-brand="ipad"] .service-card__image,
    .service-card[data-brand="samsung-tab"] .service-card__image {
        width: 310px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 14px 5vw;
        gap: 12px;
    }

    .topbar nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .actions {
        margin-left: auto;
    }

    .hero-carousel {
        min-height: 35vh;
        margin-bottom: 60px;
        border-radius: 0 0 24px 24px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 60px 5vw 40px;
        gap: 30px;
    }

    .hero-slide.active {
        min-height: 35vh;
    }

    .hero-slide__visual {
        display: none;
    }

    .hero-slide__content {
        max-width: 100%;
        text-align: center;
    }

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

    .hero-slide__subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-slide__actions {
        justify-content: center;
    }

    .carousel-controls {
        padding: 0 1vw;
    }

    .carousel-button {
        width: 50px;
        height: 50px;
        font-size: 28px;
        opacity: 0.8;
    }

    .carousel-button:hover {
        opacity: 1;
    }

    .carousel-dots {
        bottom: 16px;
        right: 16px;
        padding: 5px 8px;
    }

    .carousel-dot {
        width: 5px;
        height: 5px;
    }

    .carousel-dot.active {
        width: 14px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-grid.two-up {
        grid-template-columns: 1fr;
    }

    /* ============================================
       📱 MOBILE CARD CONFIGURATION (768px and below)
       Fine-tune card appearance for mobile screens
       ============================================ */

    /* 📐 MOBILE CARD DIMENSIONS */
    .service-card {
        padding: 24px 160px 24px 24px;  /* leave room for a larger hero image */
        min-height: auto;
        max-height: none;
        align-items: center;
    }

    /* 📝 MOBILE TEXT SPACING */
    .service-card p {
        max-width: 100%;  /* Text can use full width (up to right padding) */
    }

    .service-card__content {
        margin-bottom: 0;
    }

    /* ============================================
       📱 MOBILE IMAGE CONFIGURATION (768px and below)
       Fine-tune device image size and placement
       Negative bottom values make phones "emerge" from bottom
       Negative right values let image overflow card edge
       ============================================ */

    .service-card__image {
        position: absolute;
    }

    /* 📱 Phones - Mobile */
    .service-card[data-category="phones"] .service-card__image {
        width: clamp(200px, 50vw, 260px);
        right: -8px;
        bottom: -70px;
    }

    /* 📲 Tablets - Mobile */
    .service-card[data-category="tablets"] .service-card__image {
        width: clamp(210px, 50vw, 270px);
        right: -8px;
        bottom: -75px;
    }

    /* 🎮 Consoles - Mobile */
    .service-card[data-category="consoles"] .service-card__image {
        width: clamp(200px, 50vw, 260px);
        right: -8px;
        bottom: -70px;
    }

    /* 💻 Computers - Mobile */
    .service-card[data-category="computers"] .service-card__image {
        width: clamp(210px, 50vw, 270px);
        right: -8px;
        bottom: -75px;
    }

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

    .how-it-works {
        padding: 60px 5vw;
        border-radius: 32px 32px 0 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    /* Medium phones - adjust card spacing */
    .service-card {
        padding: 22px 150px 22px 22px;
    }

    .service-card__image {
        width: clamp(180px, 52vw, 230px);
    }

    .service-card[data-category="phones"] .service-card__image,
    .service-card[data-category="consoles"] .service-card__image {
        width: clamp(180px, 52vw, 230px);
        right: -10px;
        bottom: -60px;
    }

    .service-card[data-category="tablets"] .service-card__image,
    .service-card[data-category="computers"] .service-card__image {
        width: clamp(190px, 54vw, 240px);
        right: -10px;
        bottom: -65px;
    }
}

@media (max-width: 480px) {
    .hero-slide__content h1 {
        font-size: 1.8rem;
    }

    .hero-slide__subtitle {
        font-size: 1rem;
    }

    .device-float {
        width: 180px;
        height: 180px;
    }

    .device-icon {
        font-size: 70px;
    }

    .primary,
    .secondary,
    .ghost {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    main {
        padding-bottom: 60px;
    }

    .services {
        margin: 60px 0;
    }

    .how-it-works {
        margin: 80px 0 0;
    }

    /* Smaller service cards for very small screens */
    .service-card {
        min-height: 0;
        padding: 20px 140px 20px 20px;
    }

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

    .service-card p {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .service-card__image {
        width: clamp(150px, 55vw, 210px);
        bottom: -50px;
    }

    .service-card[data-category="phones"] .service-card__image,
    .service-card[data-category="consoles"] .service-card__image {
        width: clamp(150px, 55vw, 210px);
        bottom: -55px;
        right: -10px;
    }

    .service-card[data-category="tablets"] .service-card__image,
    .service-card[data-category="computers"] .service-card__image {
        width: clamp(160px, 57vw, 220px);
        bottom: -60px;
        right: -10px;
    }
}
