/* ============================================================
   GraphyGlance — Global Design System
   Dual Theme: Light Mode / Dark Mode
   Brand Accent: #5568A9 (Muted Royal Blue)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Custom Properties — Light Mode (Default) ---------- */
:root {
    /* Brand Colors */
    --clr-accent: #5568A9;
    --clr-accent-hover: #4458a0;
    --clr-accent-light: rgba(85, 104, 169, 0.12);
    --clr-accent-glow: rgba(85, 104, 169, 0.35);

    /* Theme Colors — Light */
    --clr-bg-primary: #FFFFFF;
    --clr-bg-secondary: #F7F8FC;
    --clr-bg-tertiary: #EEF0F7;
    --clr-bg-card: #FFFFFF;
    --clr-bg-glass: rgba(255, 255, 255, 0.7);

    --clr-text-primary: #111111;
    --clr-text-secondary: #555555;
    --clr-text-muted: #888888;

    --clr-border: rgba(85, 104, 169, 0.15);
    --clr-border-light: rgba(0, 0, 0, 0.06);

    /* Gradients */
    --grad-accent: linear-gradient(135deg, #5568A9 0%, #7B8EC7 100%);
    --grad-hero: linear-gradient(160deg, #FFFFFF 0%, #F7F8FC 50%, #EEF0F7 100%);
    --grad-card: linear-gradient(145deg, rgba(85, 104, 169, 0.04) 0%, rgba(85, 104, 169, 0.02) 100%);
    --grad-text: linear-gradient(90deg, #5568A9, #7B8EC7, #5568A9);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(85, 104, 169, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);

    /* Logo */
    --logo-filter: none;
    /* black logo for light */

    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    --fs-hero: clamp(2.8rem, 6vw, 5.2rem);
    --fs-h1: clamp(2.2rem, 4.5vw, 3.6rem);
    --fs-h2: clamp(1.8rem, 3.5vw, 2.6rem);
    --fs-h3: clamp(1.3rem, 2.5vw, 1.7rem);
    --fs-h4: clamp(1.05rem, 1.8vw, 1.3rem);
    --fs-body: clamp(0.95rem, 1.1vw, 1.05rem);
    --fs-small: clamp(0.82rem, 0.9vw, 0.92rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --section-padding: clamp(4rem, 8vw, 7rem) 0;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s ease;
    --transition-theme: 0.4s ease;

    /* Layout */
    --container-max: 1240px;
    --container-narrow: 860px;
    --header-height: 76px;

    /* Pricing highlight */
    --clr-price-pop: #5568A9;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --clr-bg-primary: #000000;
    --clr-bg-secondary: #0A0A0F;
    --clr-bg-tertiary: #111118;
    --clr-bg-card: #0E0E16;
    --clr-bg-glass: rgba(14, 14, 22, 0.7);

    --clr-text-primary: #F5F5F5;
    --clr-text-secondary: #AAAAAA;
    --clr-text-muted: #888888;

    --clr-border: rgba(85, 104, 169, 0.2);
    --clr-border-light: rgba(255, 255, 255, 0.06);

    --clr-accent-light: rgba(85, 104, 169, 0.15);
    --clr-accent-glow: rgba(85, 104, 169, 0.45);

    --grad-hero: linear-gradient(160deg, #000000 0%, #070710 50%, #0E0E18 100%);
    --grad-card: linear-gradient(145deg, rgba(85, 104, 169, 0.06) 0%, rgba(85, 104, 169, 0.02) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(85, 104, 169, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);

    --logo-filter: invert(1);
    /* white logo for dark */
}

/* ---------- Theme Transition ---------- */
body,
body *:not(script):not(style) {
    transition: background-color var(--transition-theme),
        color var(--transition-theme),
        border-color var(--transition-theme),
        box-shadow var(--transition-theme);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    color: var(--clr-text-primary);
    background: var(--clr-bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--clr-accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-accent);
    border-radius: 10px;
}

/* ---------- Container ---------- */
.container {
    width: min(92%, var(--container-max));
    margin-inline: auto;
}

.container--narrow {
    width: min(88%, var(--container-narrow));
    margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text-primary);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--clr-accent);
}

.text-muted {
    color: var(--clr-text-secondary);
}

/* ---------- Section ---------- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-mono);
    font-size: var(--fs-small);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.section__label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 2px;
}

.section__title {
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    color: var(--clr-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header .section__subtitle {
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-small);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--clr-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(85, 104, 169, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 8px 30px rgba(85, 104, 169, 0.4);
    background: var(--clr-accent-hover);
}

.btn--outline {
    background: transparent;
    color: var(--clr-text-primary);
    border: 1.5px solid var(--clr-border);
}

.btn--outline:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--clr-accent);
    padding: 0.5rem 0.8rem;
}

.btn--ghost:hover {
    background: var(--clr-accent-light);
}

.btn--ghost .btn__arrow {
    transition: transform var(--transition-fast);
}

.btn--ghost:hover .btn__arrow {
    transform: translateX(4px);
}

.btn--lg {
    padding: 1rem 2.4rem;
    font-size: var(--fs-body);
}

.btn--sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
}

.btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Cards ---------- */
.card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    color: #fff;
}

.card__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    line-height: 1.7;
}

/* ---------- Glass ---------- */
.glass {
    background: var(--clr-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-border-light);
    border-radius: var(--radius-lg);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border: 1px solid var(--clr-border);
}

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: var(--clr-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border-light);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo__img {
    height: 36px;
    width: auto;
    filter: var(--logo-filter);
    transition: filter var(--transition-theme);
}

.logo__text {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.logo__text span {
    color: var(--clr-accent);
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__list {
    display: flex;
    gap: 0.2rem;
}

.nav__link {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: var(--clr-text-secondary);
}

.nav__link:hover,
.nav__link--active {
    color: var(--clr-text-primary);
    background: var(--clr-accent-light);
}

.nav__link--active {
    color: var(--clr-accent);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow);
}

/* Nav Actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero__badge {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease both;
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--clr-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 540px;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    animation: fadeInUp 0.8s 0.45s ease both;
}

.hero__stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s 0.6s ease both;
}

.hero__stat-value {
    font-family: var(--ff-heading);
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--clr-accent);
}

.hero__stat-label {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    margin-top: 0.15rem;
}

/* Hero Canvas */
.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Glow Orbs */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: rgba(85, 104, 169, 0.1);
    top: -10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.hero__glow--2 {
    width: 350px;
    height: 350px;
    background: rgba(85, 104, 169, 0.07);
    bottom: -10%;
    left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

/* ==========================================================
   FOCUS / SERVICES GRID
   ========================================================== */
.focus__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.focus-card {
    padding: var(--space-xl);
    text-align: center;
}

.focus-card--primary {
    border-color: var(--clr-accent);
    background: var(--grad-card);
}

.focus-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-md);
    border: 1px solid var(--clr-border);
}

.focus-card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
}

.focus-card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-lg);
    text-align: center;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--clr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto var(--space-md);
}

.service-card__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.service-card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-sm);
}

/* ==========================================================
   PRICING CARDS
   ========================================================== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    align-items: start;
}

.pricing-card {
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    transform: scale(1.03);
}

.pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card__name {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.pricing-card__price {
    font-family: var(--ff-heading);
    font-weight: 900;
    font-size: var(--fs-h2);
    color: var(--clr-accent);
    margin-bottom: 0.2rem;
}

.pricing-card__period {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
}

.pricing-card__features {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
}

.pricing-card__feature-icon {
    color: var(--clr-accent);
    flex-shrink: 0;
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

/* ==========================================================
   PROJECTS / PORTFOLIO
   ========================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--clr-border);
    background: transparent;
    color: var(--clr-text-secondary);
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: var(--fs-small);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--clr-bg-tertiary);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    position: relative;
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__image {
    transform: scale(1.05);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__category {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.portfolio-card__title {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: #fff;
}

/* Case Study */
.case-study {
    padding: var(--space-xl);
}

.case-study__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.case-study__stat {
    text-align: center;
    padding: var(--space-sm);
}

.case-study__stat-value {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: var(--fs-h3);
    color: var(--clr-accent);
}

.case-study__stat-label {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
}

/* ==========================================================
   SERVICE DETAIL (Individual Service Pages)
   ========================================================== */
.service-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.service-detail__visual {
    border-radius: var(--radius-xl);
    aspect-ratio: 4/3;
    background: var(--clr-bg-tertiary);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.service-detail__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin: var(--space-md) 0 var(--space-lg);
}

.service-detail__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
}

.service-detail__feature-icon {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Service Sub-items grid */
.service-items__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.service-item {
    padding: var(--space-lg);
    text-align: center;
}

.service-item__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
    border: 1px solid var(--clr-border);
}

.service-item__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.service-item__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
}

/* ==========================================================
   APP & SOFTWARE PAGE
   ========================================================== */
.apps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.app-card {
    padding: var(--space-lg);
}

.app-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--clr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.app-card__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.app-card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
}

/* ==========================================================
   AI IMAGE GENERATION TOOL
   ========================================================== */
.ai-tool {
    max-width: 700px;
    margin-inline: auto;
}

.ai-tool__panel {
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
}

.ai-tool__output {
    min-height: 300px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: var(--clr-bg-tertiary);
}

.ai-tool__output img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.ai-tool__placeholder {
    text-align: center;
    color: var(--clr-text-muted);
}

.ai-tool__placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.ai-tool__loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--clr-accent);
}

.ai-tool__loader.active {
    display: flex;
}

.ai-tool__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--clr-border);
    border-top-color: var(--clr-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--clr-bg-tertiary);
    border: 1px solid var(--clr-border);
    position: relative;
}

.about__image-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: var(--clr-bg-glass);
    backdrop-filter: blur(16px);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--fs-small);
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: var(--fs-small);
}

.about__feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Vision Mission */
.vm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.vm-card {
    padding: var(--space-xl);
}

.vm-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--clr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
}

.vm-card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
}

.vm-card__text {
    color: var(--clr-text-secondary);
    line-height: 1.8;
}

/* Values */
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto var(--space-md);
}

.value-card__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.value-card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq__list {
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: var(--clr-bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.active {
    border-color: var(--clr-accent);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-body);
    color: var(--clr-text-primary);
}

.faq-item__question:hover {
    color: var(--clr-accent);
}

.faq-item__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--clr-accent);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--clr-text-secondary);
    line-height: 1.8;
    font-size: var(--fs-small);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
}

.contact__info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
}

.contact-info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.contact-info-card__label {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    margin-bottom: 0.15rem;
}

.contact-info-card__value {
    font-weight: 600;
    font-size: var(--fs-small);
}

.contact-form {
    padding: var(--space-xl);
}

.form__group {
    margin-bottom: var(--space-md);
}

.form__label {
    display: block;
    font-weight: 500;
    font-size: var(--fs-small);
    margin-bottom: 0.35rem;
    color: var(--clr-text-secondary);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--clr-bg-tertiary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text-primary);
    font-size: var(--fs-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-light);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* ==========================================================
   TERMS
   ========================================================== */
.terms-content {
    max-width: 800px;
    margin-inline: auto;
}

.terms-section {
    margin-bottom: var(--space-lg);
}

.terms-section__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
}

.terms-content p {
    color: var(--clr-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.terms-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.terms-content li {
    color: var(--clr-text-secondary);
    line-height: 1.8;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.terms-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: 700;
}

/* Contact Info Grid */
.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.contact-info-card {
    text-align: center;
    padding: var(--space-lg);
}

.contact-info-card__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-xs);
}

.contact-info-card__text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
}

/* Contact Social Links */
.contact__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--clr-border);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--clr-text-secondary);
    transition: all var(--transition-fast);
}

.contact__social-link:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.contact__form-card {
    padding: var(--space-xl);
}

/* Footer links text styling for non-anchor items */
.footer__links li {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
    text-align: center;
}

.cta-section__inner {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.cta-section__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--clr-accent-light) 0%, transparent 50%);
    animation: rotate 25s linear infinite;
}

.cta-section__title {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-sm);
    position: relative;
}

.cta-section__text {
    color: var(--clr-text-secondary);
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    position: relative;
}

/* ==========================================================
   PAGE HERO (Internal Pages)
   ========================================================== */
.page-hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-xl);
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero__title {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
    color: var(--clr-text-secondary);
    max-width: 580px;
    margin-inline: auto;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    border-top: 1px solid var(--clr-border-light);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-lg);
    background: var(--clr-bg-secondary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand-text {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    line-height: 1.8;
    margin-top: var(--space-sm);
    max-width: 300px;
}

.footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.footer__social-link:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}

.footer__heading {
    font-size: var(--fs-body);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: var(--clr-text-secondary);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--clr-accent);
}

.footer__bottom {
    border-top: 1px solid var(--clr-border-light);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__copyright {
    color: var(--clr-text-muted);
    font-size: var(--fs-small);
}

.footer__legal {
    display: flex;
    gap: var(--space-md);
}

.footer__legal a {
    color: var(--clr-text-muted);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.footer__legal a:hover {
    color: var(--clr-accent);
}

/* ==========================================================
   FLOATING 3D ELEMENTS
   ========================================================== */
.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-el {
    position: absolute;
    opacity: 0.12;
    animation: floatElement var(--duration, 12s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatElement {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(var(--tx1, 20px), var(--ty1, -30px)) rotate(var(--r1, 45deg)) scale(1.04);
    }

    50% {
        transform: translate(var(--tx2, -15px), var(--ty2, -60px)) rotate(var(--r2, 90deg)) scale(0.96);
    }

    75% {
        transform: translate(var(--tx3, 25px), var(--ty3, -20px)) rotate(var(--r3, 135deg)) scale(1.02);
    }

    100% {
        transform: translate(0, 0) rotate(var(--r4, 360deg)) scale(1);
    }
}

.shape-cube {
    width: 36px;
    height: 36px;
    border: 2px solid var(--clr-accent);
    border-radius: 6px;
}

.shape-circle {
    width: 28px;
    height: 28px;
    border: 2px solid var(--clr-accent);
    border-radius: 50%;
    opacity: 0.1;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid var(--clr-accent);
    opacity: 0.08;
}

.shape-ring {
    width: 44px;
    height: 44px;
    border: 2.5px solid var(--clr-accent);
    border-radius: 50%;
}

.shape-dot {
    width: 7px;
    height: 7px;
    background: var(--clr-accent);
    border-radius: 50%;
    opacity: 0.2;
}

.shape-cross {
    width: 20px;
    height: 20px;
    position: relative;
}

.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    background: var(--clr-accent);
}

.shape-cross::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.shape-cross::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -25px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--left {
    opacity: 0;
    transform: translateX(-35px);
}

.reveal--left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal--right {
    opacity: 0;
    transform: translateX(35px);
}

.reveal--right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {

    .about__grid,
    .service-detail__grid,
    .contact__grid,
    .vm__grid,
    .focus__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__stats {
        gap: var(--space-lg);
    }

    .pricing-card--featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: var(--clr-bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
        transition: right var(--transition-base);
        border-left: 1px solid var(--clr-border-light);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--clr-border-light);
        border-radius: 0;
        font-size: 1rem;
    }

    .nav__actions {
        width: 100%;
        margin-top: var(--space-md);
        flex-wrap: wrap;
    }

    .nav__actions .btn {
        flex: 1;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .services__grid,
    .portfolio__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .about__features,
    .service-detail__features,
    .form__row {
        grid-template-columns: 1fr;
    }

    .values__grid,
    .service-items__grid,
    .apps__grid {
        grid-template-columns: 1fr;
    }

    .case-study__stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }

    .card {
        padding: var(--space-md);
    }

    .cta-section__inner {
        padding: var(--space-xl) var(--space-md);
    }
}