/*
Theme Name: LevaTech
Theme URI: https://levatech.dev
Author: LevaTech
Description: A sharp, modern one-page WordPress theme for LevaTech — digital products that matter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: developer-studio
*/

/* ============================================
   GOLI FONT FAMILY
   ============================================ */

@font-face {
    font-family: 'Goli';
    src: url('assets/fonts/Goli-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goli';
    src: url('assets/fonts/Goli-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goli';
    src: url('assets/fonts/Goli-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goli';
    src: url('assets/fonts/Goli-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goli';
    src: url('assets/fonts/Goli-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   RESET & VARIABLES
   ============================================ */

:root {
    /* ===== LIGHT THEME (default) ===== */
    /* Brand colors: Primary #000000 / #FFFFFF */
    /* Secondary: #FFD700 (Gold), #9FE2BF (Mint), #38AFFF (Blue) */
    --color-bg: #FAFAFA;
    --color-bg-elevated: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-bg-card-hover: #F5F5F5;
    --color-text: #000000;
    --color-text-secondary: #5A5A66;
    --color-text-muted: #8A8A96;
    --color-accent: #38AFFF;
    --color-accent-dim: rgba(56, 175, 255, 0.08);
    --color-accent-glow: rgba(56, 175, 255, 0.1);
    --color-secondary-gold: #FFD700;
    --color-secondary-mint: #9FE2BF;
    --color-border: #E4E4E8;
    --color-border-light: #EDEDF0;
    --color-white: #000000;
    --color-header-bg: rgba(250, 250, 250, 0.88);
    --color-dot-grid: #D0D0D5;
    --color-code-bg: #F4F4F6;
    --color-mobile-bg: #FAFAFA;

    /* Typography — Goli */
    --font-display: 'Goli', 'Helvetica Neue', sans-serif;
    --font-body: 'Goli', 'Helvetica Neue', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;
    --space-2xl: 12rem;

    /* Layout */
    --container-width: 1280px;
    --container-narrow: 720px;
    --header-height: 72px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease);
    --transition-base: 0.4s var(--ease);
    --transition-slow: 0.8s var(--ease);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --color-bg: #0A0A0B;
    --color-bg-elevated: #111113;
    --color-bg-card: #161618;
    --color-bg-card-hover: #1C1C1F;
    --color-text: #E8E8EC;
    --color-text-secondary: #8A8A96;
    --color-text-muted: #55555F;
    --color-accent: #38AFFF;
    --color-accent-dim: rgba(56, 175, 255, 0.1);
    --color-accent-glow: rgba(56, 175, 255, 0.15);
    --color-secondary-gold: #FFD700;
    --color-secondary-mint: #9FE2BF;
    --color-border: #222228;
    --color-border-light: #1A1A1F;
    --color-white: #FFFFFF;
    --color-header-bg: rgba(10, 10, 11, 0.85);
    --color-dot-grid: #222228;
    --color-code-bg: #161618;
    --color-mobile-bg: #0A0A0B;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle dot grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, var(--color-dot-grid) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
}

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

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

ul, ol {
    list-style: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 500; }

p {
    max-width: 60ch;
}

.label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header .label {
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Section divider line */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, var(--container-width));
    height: 1px;
    background: var(--color-border);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--color-header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo svg {
    height: 32px;
    width: auto;
}

/* Show/hide logo variants based on theme */
.site-logo .logo-light { display: block; }
.site-logo .logo-dark { display: none; }
[data-theme="dark"] .site-logo .logo-light { display: none; }
[data-theme="dark"] .site-logo .logo-dark { display: block; }

.site-logo__icon {
    display: none; /* replaced by SVG logo */
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-white);
}

.nav-cta {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 1.4rem;
    background: var(--color-accent);
    color: var(--color-bg) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
    background: var(--color-white) !important;
    color: var(--color-bg) !important;
    transform: translateY(-1px);
}

/* Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px 10px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Gradient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.1s forwards;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.25s forwards;
}

.hero__title .accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 55ch;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.4s forwards;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.55s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 175, 255, 0.2);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Hero stats strip */
.hero__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.7s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

/* ============================================
   ABOUT
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-content p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.about-content p strong {
    color: var(--color-white);
    font-weight: 600;
}

.about-visual {
    position: relative;
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow: hidden;
}

/* Terminal-style code window */
.code-window {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2;
}

.code-window__bar {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.code-window__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.code-window__dot--red { background: #FF5F57; }
.code-window__dot--yellow { background: #FEBC2E; }
.code-window__dot--green { background: #28C840; }

.code-window code {
    display: block;
    color: var(--color-text-muted);
}

.code-window .keyword { color: #C678DD; }
.code-window .function { color: #61AFEF; }
.code-window .string { color: var(--color-accent); }
.code-window .comment { color: var(--color-text-muted); opacity: 0.6; }

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.service-card:hover .service-card__icon {
    background: var(--color-accent);
    color: var(--color-bg);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: all var(--transition-base);
}

.service-card h3 {
    margin-bottom: var(--space-xs);
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: var(--space-sm);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: 100px;
}

/* ============================================
   PROCESS / HOW WE WORK
   ============================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    counter-reset: process;
}

.process-step {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    position: relative;
    counter-increment: process;
}

.process-step__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.process-step:hover .process-step__number {
    color: var(--color-accent);
}

.process-step h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.process-step p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    margin: 0 auto;
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -10%;
    width: 20%;
    height: 1px;
    background: var(--color-border);
}

/* ============================================
   PORTFOLIO / WORK
   ============================================ */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.work-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.work-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.work-card__content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-card__category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.work-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.3rem;
}

.work-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.work-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

/* ============================================
   TECH STACK
   ============================================ */

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-width: 110px;
}

.stack-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.stack-item__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.stack-item__name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

/* ============================================
   TEAM
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    max-width: 700px;
    margin: 0 auto;
}

.team-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.team-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-sm);
    border: 2px solid var(--color-border);
}

/* Placeholder avatar with initials */
.team-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.team-card__role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-sm);
}

.team-card p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

.team-card__links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.team-card__links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.team-card__links a:hover {
    color: var(--color-accent);
}

/* ============================================
   TESTIMONIAL / SOCIAL PROOF
   ============================================ */

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-card cite {
    font-style: normal;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.testimonial-card cite strong {
    color: var(--color-white);
    display: block;
    font-weight: 600;
}

/* ============================================
   CONTACT / CTA
   ============================================ */

.cta-section {
    text-align: center;
    padding: var(--space-2xl) 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: var(--space-sm);
}

.cta-section > .container > p,
.cta-section .reveal > p {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    margin: 0 auto var(--space-lg);
    max-width: 50ch;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

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

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    width: 52px;
    height: 28px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-accent);
}

.theme-toggle__track {
    width: 100%;
    height: 100%;
    position: relative;
}

.theme-toggle__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-accent);
    position: absolute;
    top: 50%;
    left: 1px;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

[data-theme="dark"] .theme-toggle__thumb {
    left: calc(100% - 19px);
}

/* Sun icon (light mode) */
.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.theme-toggle__sun {
    left: 7px;
    opacity: 0;
}

.theme-toggle__moon {
    right: 6px;
    opacity: 1;
}

[data-theme="dark"] .theme-toggle__sun {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle__moon {
    opacity: 0;
}

/* Smooth transitions on all themed elements */
.site-header,
.service-card,
.work-card,
.team-card,
.stack-item,
.about-visual,
.testimonial-card,
.form-group input,
.form-group textarea,
.form-group select,
.hero__badge {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4.5rem;
        --space-2xl: 7rem;
    }

    .menu-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transition: right var(--transition-base);
        z-index: 999;
    }

    .nav-menu.open { right: 0; }

    .nav-menu a {
        font-size: 1.5rem;
        font-family: var(--font-display);
        font-weight: 600;
        color: var(--color-text);
    }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 400px; }
    .form-row { grid-template-columns: 1fr; }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .process-step:not(:last-child)::after { display: none; }
}
