/* =========================
   Base Styles
========================= */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.headline-accent {
    background: linear-gradient(135deg, #9aa6ff, #6d7bffe0, #2de3e6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 12px 40px rgba(109, 124, 255, 0.35);
}

p {
    color: var(--text-secondary);
}

/* =========================
   Buttons
========================= */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;

}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(109, 124, 255, 0.35);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.25),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}


.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}


.btn-large {
    padding: 1.1rem 2.2rem;
}

/* =========================
   Services Hero
========================= */
.services-hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    isolation: isolate;
}

.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        /* soft center glow */
        radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.06),
            transparent 60%),

        /* subtle side vignette (thin) */
        linear-gradient(to right,
            rgba(0, 0, 0, 0),
            transparent 18%,
            transparent 82%,
            rgba(0, 0, 0, 0.25));

    z-index: -1;
}


.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.services-hero p {
    max-width: 680px;
    margin: 1.8rem auto 3.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-card {
    max-width: 1100px;
    /* wide but not full */
    margin: 0 auto;
    padding: 5rem 3rem;

    text-align: center;

    border-radius: 28px;

    background:
        linear-gradient(135deg,
            rgba(30, 71, 120, 0.155),
            rgba(18, 120, 110, 0.214));

    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-card h1 {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-card p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   Services Overview
========================= */
.services-overview {
    position: relative;
    padding: 7rem 0 6rem;
}

.services-overview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    row-gap: 1.8rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.9rem 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 109, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.service-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

.service-card-image {
    background-position: center, center bottom !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: cover, 100% 300px !important;
    border: 1px solid rgba(10, 20, 35, 0.0) !important;
    backdrop-filter: blur(20px) !important;
    min-height: 450px !important;
    position: relative !important;
    overflow: visible !important;
}

.service-card-image .card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 3rem;
}

.service-card-image h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.service-card-image p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card-image.gst-vat {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/gst.png');
}

.service-card-image.payroll {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/payroll.png');
}

.service-card-image.tax-return {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/taxreturn.png');
}

/* Global Expansion Page */
.service-card-image.us-setup {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/us.jpeg');
}

.service-card-image.uk-setup {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/uk.jpeg');
}

.service-card-image.uae-setup {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/uae.jpeg');
}

.service-card-image.sg-setup {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/global.png');
}

.service-card-image.ein-tax {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/tax.png');
}

.service-card-image.banking {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/bank.png');
}

.service-card-image.global-market {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/global.png');
}

/* IT Solutions Page */
.service-card-image.website-dev {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/website.jpeg');
}

.service-card-image.software-sol {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(15, 25, 40, 0.2) 65%), url('../assets/software.png');
}

.service-card-image.it-support {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(15, 25, 40, 0.2) 65%), url('../assets/itsupport.jpeg');
}

.service-card-image.automation {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(15, 25, 40, 0.2) 65%), url('../assets/automation.png');
}

.service-card-image.api-integration {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(15, 25, 40, 0.2) 65%), url('../assets/api.png');
}

.service-card-image.saas-mvp {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(15, 25, 40, 0.2) 65%), url('../assets/saas.png');
}

/* Marketing & Growth Page */
.service-card-image.market-research {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/market.jpeg');
}

.service-card-image.marketing-strategy {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/stratergy.jpeg');
}

.service-card-image.tech-support {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/tech.jpeg');
}

.service-card-image.seo {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/seo.png');
}

.service-card-image.performance-marketing {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/ads.png');
}

.service-card-image.analytics {
    background: linear-gradient(to bottom, rgba(10, 20, 35, 0.85) 0%, rgba(10, 20, 35, 0.65) 40%, rgba(10, 20, 35, 0.2) 65%), url('../assets/analytics.png');
}

/* Flag styles for global expansion cards */
.service-card-image .flag-icon {
    position: absolute;
    top: -25px;
    left: 2rem;
    width: 70px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    z-index: 10;
}

/* Hero background styles for country-specific pages */
.services-hero.hero-uae,
.services-hero.hero-uk,
.services-hero.services-hero-us {
    background-size: cover;
    background-position: center;
}

.services-hero.hero-uae {
    background: linear-gradient(to right, rgba(10,20,35,0.9), rgba(10,20,35,0.6)), url('../assets/uae.jpeg');
}

.services-hero.hero-uk {
    background: linear-gradient(to right, rgba(10,20,35,0.9), rgba(10,20,35,0.6)), url('../assets/uk.jpeg');
}

.hero-subtext {
    max-width: 650px;
    margin: 1rem auto 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* =========================
   Service Detail Section
========================= */
.service-detail {
    padding: 0rem 0;
}

.detail-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.detail-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
}

.detail-points {
    margin-top: 1.5rem;
    list-style: none;
}

.detail-points li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

/* =========================
   CTA Section
========================= */
.services-cta {
    padding: 6rem 0;
}

.cta-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-box p {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* =========================
   Responsive Tweaks
========================= */
@media (max-width: 768px) {
    .service-detail {
        text-align: center;
    }

    .detail-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: 3.5rem 1.6rem;
        border-radius: 22px;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 3.5rem 1.6rem;
        border-radius: 22px;
    }
}
/* =========================
   SERVICES RESPONSIVE HARDENING
========================= */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-image {
    min-height: 380px !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 32px));
  }

  .service-card {
    padding: 1.4rem;
  }

  .service-card-image {
    min-height: 320px !important;
    background-size: cover, 100% 220px !important;
  }

  .service-card-image .card-content {
    padding: 1.2rem;
    padding-top: 2.2rem;
  }

  .service-card-image .flag-icon {
    width: 52px;
    left: 1rem;
    top: -16px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 6.2rem 0 4.2rem;
  }

  .hero-card h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .hero-card p {
    font-size: 0.95rem;
  }

  .service-card-image {
    min-height: 280px !important;
  }
}