@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
/* Primary */
@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@200..700&display=swap');
/* Secondary (for emphasis) */
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@100..900&display=swap');

:root {
    --c-deep: #1C0770;
    --c-blue: #261CC1;
    --c-sky: #3A9AFF;
    --c-yellow: #F1FF5E;
    --c-dark-bg: #0a0520;
    --c-card: #120940;
    --c-card2: #1a0f55;
    --c-text: #f0eeff;
    --c-muted: #9b92cc;
    --c-border: rgba(58, 154, 255, 0.2);
    --c-border2: rgba(241, 255, 94, 0.25);
}

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

body {
    font-family: 'Stack Sans Notch', sans-serif;
    background: var(--c-dark-bg);
    color: var(--c-text);
    min-height: 100vh;
    overflow-x: hidden;
}

p {
    font-family: "Google Sans", sans-serif;
}

.emphasis {
    font-family: "Bitcount Grid Double", system-ui;
    font-weight: normal;
    color: var(--c-yellow);
    padding: 10px;
}

[dir="rtl"] {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
    background: rgba(10, 5, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--c-border);
}

.nav-logo {
    width: 44px;
    height: 44px;
    border: 0.5px solid var(--c-border2);
    border-radius: 10px;
    background: var(--c-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--c-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: var(--c-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    font-size: 13px;
    color: var(--c-muted);
    background: none;
    border: 0.5px solid var(--c-border);
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--c-text);
    border-color: rgba(58, 154, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 1px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    translate: 0 7px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    translate: 0 -7px;
}

.btn-primary {
    font-size: 14px;
    font-weight: 600;
    background: var(--c-yellow);
    color: var(--c-deep);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ── PAGES ── */
.page {
    display: none;
    padding-top: 64px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ── HOME ── */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(38, 28, 193, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(58, 154, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--c-sky);
    text-transform: uppercase;
    border: 0.5px solid rgba(58, 154, 255, 0.35);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 1.75rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.12;
    max-width: 800px;
    position: relative;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--c-yellow);
}

.hero p {
    font-size: 1.1rem;
    color: var(--c-muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-cta {
    font-size: 1rem;
    font-weight: 700;
    background: var(--c-yellow);
    color: var(--c-deep);
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    position: relative;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(241, 255, 94, 0.25);
}

/* Services strip on home */
.home-services {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--c-sky);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ── ANIMATED SERVICES ── */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 0.5px solid var(--c-border);
  }

  .service-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-right: 0.5px solid var(--c-border);
    transition: flex 0.6s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0;
    background: var(--c-card);
    flex: 1;
  }
  .service-card:last-child { border-right: none; }

  /* animated bg orb */
  .service-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,154,255,0.18) 0%, transparent 70%);
    top: -60px; left: 50%; transform: translateX(-50%);
    transition: all 0.6s ease;
    pointer-events: none;
  }
  .service-card:hover::before {
    width: 340px; height: 340px;
    top: -80px;
    background: radial-gradient(circle, rgba(38,28,193,0.45) 0%, rgba(58,154,255,0.12) 50%, transparent 70%);
  }

  /* scan line animation */
  .service-card::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 1px;
    background: rgba(58,154,255,0.5);
    top: -2px;
    animation: scan 3s ease-in-out infinite;
    animation-delay: var(--scan-delay, 0s);
    pointer-events: none;
  }
  @keyframes scan {
    0%   { top: -2px; opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.3; }
    100% { top: 102%; opacity: 0; }
  }

  /* idle icon block (always visible) */
  .card-idle {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    transition: opacity 0.35s, transform 0.4s;
    pointer-events: none;
  }

  .service-card:hover .card-idle {
    opacity: 0;
    transform: translateY(-16px);
  }

  .card-big-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(58,154,255,0.4));
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
  }

  .card-idle-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    color: var(--c-muted); text-transform: uppercase;
    text-align: center; padding: 0 12px; line-height: 1.4;
  }

  /* idle vertical label */
  .card-idle-vert {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    display: flex; justify-content: center;
    opacity: 1; transition: opacity 0.3s;
    pointer-events: none;
  }
  .card-idle-vert span {
    font-size: 10px; letter-spacing: 0.14em;
    color: rgba(155,146,204,0.5); text-transform: uppercase;
    writing-mode: horizontal-tb;
  }
  .service-card:hover .card-idle-vert { opacity: 0; }

  /* hover content */
  .card-hover {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
    pointer-events: none;
    background:
      linear-gradient(to top, rgba(10,5,32,0.98) 0%, rgba(18,9,64,0.7) 55%, transparent 100%);
  }
  .service-card:hover .card-hover {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
  }

  .card-hover-icon {
    font-size: 26px; margin-bottom: 0.75rem;
    display: block;
  }
  .card-hover h3 {
    font-size: 15px; font-weight: 700;
    margin-bottom: 0.6rem; line-height: 1.3;
    color: var(--c-text);
  }
  .card-hover p {
    font-size: 12px; color: var(--c-muted);
    line-height: 1.6; margin-bottom: 1.1rem;
  }
  .card-learn-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    background: var(--c-yellow); color: var(--c-deep);
    border: none; border-radius: 6px;
    padding: 7px 14px; cursor: pointer;
    font-family: inherit;
    transform: translateY(6px);
    opacity: 0;
    transition: transform 0.35s 0.25s, opacity 0.35s 0.25s, background 0.2s;
    align-self: flex-start;
  }
  .service-card:hover .card-learn-btn {
    transform: translateY(0); opacity: 1;
  }
  .card-learn-btn:hover { background: #e8f542; }

  /* top accent bar */
  .card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--c-blue), var(--c-sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .service-card:hover .card-accent { transform: scaleX(1); }

  /* corner dots */
  .card-corner {
    position: absolute; top: 12px; right: 12px;
    display: flex; gap: 4px; align-items: center;
    opacity: 0; transition: opacity 0.3s 0.2s;
  }
  .service-card:hover .card-corner { opacity: 1; }
  .card-corner span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--c-sky); opacity: 0.6;
    animation: pulse-dot 1.8s ease-in-out infinite;
  }
  .card-corner span:nth-child(2) { animation-delay: 0.3s; background: var(--c-yellow); }
  .card-corner span:nth-child(3) { animation-delay: 0.6s; }
  @keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.4); opacity: 1; }
  }

/* ── SERVICES PAGE ── */
.services-page {
    padding: 5rem 2.5rem 4rem;
    max-width: 980px;
    margin: 0 auto;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0;
    border-bottom: 0.5px solid var(--c-border);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail:nth-child(even) .svc-img {
    order: -1;
}

.svc-img {
    background: var(--c-card);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-size: 13px;
}

.svc-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

.svc-content .svc-icon {
    width: 52px;
    height: 52px;
    /* background: rgba(38, 28, 193, 0.5);
    border: 0.5px solid rgba(58, 154, 255, 0.3); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.25rem;
}

.svc-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.svc-content p {
    font-size: 1rem;
    color: var(--c-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.btn-outline {
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--c-yellow);
    border: 0.5px solid var(--c-border2);
    border-radius: 8px;
    padding: 9px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(241, 255, 94, 0.08);
}

/* ── CONTACT PAGE ── */
.contact-page {
    padding: 5rem 2.5rem 4rem;
    max-width: 980px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--c-card);
    border: 0.5px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--c-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group select option {
    background: var(--c-card);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(58, 154, 255, 0.6);
}

.submit-btn {
    font-size: 15px;
    font-weight: 700;
    background: var(--c-yellow);
    color: var(--c-deep);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
    transition: all 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--c-sky);
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--c-card);
    border: 0.5px solid var(--c-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-text {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.55;
}

.info-text a {
    color: var(--c-sky);
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--c-card);
    border: 0.5px solid var(--c-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
    color: var(--c-muted);
}

.social-btn:hover {
    border-color: rgba(58, 154, 255, 0.5);
    color: var(--c-sky);
}

/* ── ABOUT PAGE ── */
.about-page {
    padding: 5rem 2.5rem 4rem;
    max-width: 700px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-page .about-card {
    background: var(--c-card);
    /* border: 0.5px dashed rgba(58, 154, 255, 0.3); */
    border-radius: 16px;
    padding: 4rem 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--c-muted);
    font-size: 1rem;
    line-height: 1.7;
    width: 100%;
}

.about-page .about-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    /* margin-top: 1rem; */
    color: var(--c-text);
}

/* ── FOOTER ── */
footer {
    background: rgba(10, 5, 32, 0.95);
    border-top: 0.5px solid var(--c-border);
    padding: 3rem 2.5rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo-box {
    width: 44px;
    height: 44px;
    border: 0.5px solid var(--c-border2);
    border-radius: 10px;
    background: var(--c-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--c-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-brand .slogan {
    font-size: 14px;
    color: var(--c-yellow);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 13px;
    color: var(--c-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--c-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--c-sky);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 0.5px solid var(--c-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--c-muted);
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border: 0.5px solid var(--c-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-socials a:hover {
    color: var(--c-sky);
    border-color: rgba(58, 154, 255, 0.5);
}

/* RTL tweaks */
[dir="rtl"] .service-detail:nth-child(even) .svc-img {
    order: unset;
}

[dir="rtl"] .service-detail:nth-child(odd) .svc-img {
    order: 1;
}

/* Success message */
.form-success {
    display: none;
    background: rgba(58, 154, 255, 0.1);
    border: 0.5px solid rgba(58, 154, 255, 0.4);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    color: var(--c-sky);
    font-size: 14px;
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN - MOBILE & TABLET                             */
/* ════════════════════════════════════════════════════════════════ */

/* Tablet screens (640px - 1024px) */
@media (max-width: 1024px) {
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail:nth-child(even) .svc-img {
        order: 1;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        text-align: left;
    }
}

/* Small screens (480px - 640px) */
@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 5, 32, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        border-bottom: 0.5px solid var(--c-border);
        padding: 0;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 1.5rem;
        border-bottom: 0.5px solid rgba(58, 154, 255, 0.1);
        border-radius: 0;
    }

    .hamburger {
        display: flex;
    }

    .lang-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .btn-primary {
        font-size: 13px;
        padding: 7px 16px;
        border-radius: 6px;
    }

    .hero {
        min-height: calc(70vh - 64px);
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-cta {
        font-size: 0.95rem;
        padding: 12px 28px;
        border-radius: 8px;
    }

    .home-services {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .service-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .service-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0.75rem;
        font-size: 18px;
    }

    .service-card h3 {
        font-size: 14px;
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .service-card .card-arrow {
        font-size: 11px;
        margin-top: 0.75rem;
    }

    /* Services Page */
    .services-page {
        padding: 3rem 1.5rem;
    }

    .service-detail {
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .svc-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .svc-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .svc-content .svc-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 1rem;
    }

    .btn-outline {
        font-size: 13px;
        padding: 8px 18px;
    }

    /* Contact Page */
    .contact-page {
        padding: 3rem 1.5rem;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-form {
        gap: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 11px 24px;
        width: 100%;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-info h3 {
        font-size: 0.95rem;
    }

    .info-item {
        gap: 10px;
    }

    .info-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .info-text {
        font-size: 13px;
    }

    .social-row {
        gap: 8px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
    }

    /* About Page */
    .about-page {
        padding: 2rem 1.5rem;
    }

    .about-page .about-card {
        padding: 2.5rem 1.5rem;
    }

    .about-page .about-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-inner {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand .logo-box {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    .footer-brand .slogan {
        font-size: 13px;
        margin-bottom: 0.4rem;
    }

    .footer-brand p {
        font-size: 12px;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 0.75rem;
    }

    .footer-col a {
        font-size: 13px;
        margin-bottom: 0.4rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 12px;
    }

    .footer-socials {
        gap: 6px;
    }

    .footer-socials a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .form-success {
        padding: 1rem 1.25rem;
        font-size: 13px;
    }
}

/* Extra small screens (< 480px) */
@media (max-width: 480px) {
    :root {
        --c-deep: #1C0770;
        --c-blue: #261CC1;
        --c-sky: #3A9AFF;
        --c-yellow: #F1FF5E;
        --c-dark-bg: #0a0520;
        --c-card: #120940;
        --c-card2: #1a0f55;
        --c-text: #f0eeff;
        --c-muted: #9b92cc;
        --c-border: rgba(58, 154, 255, 0.2);
        --c-border2: rgba(241, 255, 94, 0.25);
    }

    nav {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
        font-size: 9px;
    }

    .nav-links {
        top: 60px;
    }

    .nav-right {
        gap: 6px;
    }

    .hamburger {
        display: flex;
    }

    .lang-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-primary {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 6px;
    }

    .hero {
        min-height: calc(70vh - 64px);
        padding: 1.5rem 1rem;
    }

    .hero::before {
        background:
            radial-gradient(ellipse 80% 60% at 50% 0%, rgba(38, 28, 193, 0.25) 0%, transparent 70%),
            radial-gradient(ellipse 50% 50% at 80% 60%, rgba(58, 154, 255, 0.1) 0%, transparent 60%);
    }

    .hero-label {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 1rem;
        letter-spacing: 0.1em;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        font-size: 0.9rem;
        padding: 11px 24px;
        border-radius: 8px;
    }

    .home-services {
        padding: 2.5rem 1rem;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 2.2vw, 1.6rem);
        margin-bottom: 1.5rem;
    }

    /* Tweaks to make the services in the home page responsive */
    /* .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    } */
    .services-grid {
        display: flex;
        flex-direction: column;
        height: 150vh;
    }
    /* Show animations without hover */
    .card-corner { 
        opacity: 1;
    }
    .card-accent {
        transform: scaleX(1);
    }
    /* Show without hover */
    .card-idle {
        display: none;
    }
    .card-hover {
        opacity: 1; transform: translateY(0);
        pointer-events: auto;
    }
    .card-learn-btn {
        transform: translateY(0); opacity: 1;
    }

    /* Untouched */
    .service-card {
        padding: 1.125rem 1rem;
        border-radius: 10px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.625rem;
        font-size: 16px;
    }

    .service-card h3 {
        font-size: 13px;
        margin-bottom: 0.35rem;
    }

    .service-card p {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .service-card .card-arrow {
        font-size: 10px;
        margin-top: 0.625rem;
    }

    /* Services Page */
    .services-page {
        padding: 2.5rem 1rem;
    }

    .service-detail {
        grid-template-columns: 1fr;
        padding: 1.75rem 0;
        gap: 1.25rem;
    }

    .svc-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.65rem;
    }

    .svc-content p {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 0.85rem;
    }

    .svc-content .svc-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 0.85rem;
        border-radius: 10px;
    }

    .btn-outline {
        font-size: 12px;
        padding: 7px 16px;
        border-radius: 6px;
    }

    .svc-img {
        border-radius: 12px;
        min-height: 220px;
        font-size: 12px;
    }

    /* Contact Page */
    .contact-page {
        padding: 2.5rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        gap: 12px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 12px;
        font-size: 16px;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 90px;
    }

    .submit-btn {
        font-size: 13px;
        padding: 10px 20px;
        width: 100%;
        border-radius: 6px;
        margin-top: 2px;
    }

    .contact-info {
        gap: 1.25rem;
    }

    .contact-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .info-item {
        gap: 10px;
        align-items: flex-start;
    }

    .info-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .info-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .social-row {
        gap: 6px;
        margin-top: 0.4rem;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        border-radius: 6px;
        font-size: 16px;
    }

    /* About Page */
    .about-page {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .about-page .about-card {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .about-page .about-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.65rem;
    }

    .about-page .about-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Footer */
    footer {
        padding: 1.75rem 1rem 0.75rem;
    }

    .footer-inner {
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    .footer-brand .logo-box {
        width: 36px;
        height: 36px;
        font-size: 9px;
        margin-bottom: 0.75rem;
    }

    .footer-brand .slogan {
        font-size: 12px;
        margin-bottom: 0.3rem;
    }

    .footer-brand p {
        font-size: 11px;
        line-height: 1.5;
    }

    .footer-col h4 {
        font-size: 11px;
        margin-bottom: 0.65rem;
        letter-spacing: 0.08em;
    }

    .footer-col a {
        font-size: 12px;
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 11px;
        gap: 0.75rem;
    }

    .footer-socials {
        gap: 5px;
    }

    .footer-socials a {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 5px;
    }

    .form-success {
        padding: 0.9rem 1rem;
        font-size: 12px;
        border-radius: 8px;
    }
}