/**
 * Premium Business Portfolio Theme
 * Apple-inspired simplicity + SaaS enterprise aesthetic
 */

:root {
    /* Warm slate dark — easier on the eyes than pure black */
    --bg-void: #0e1318;
    --bg-base: #121820;
    --bg-elevated: #1a222d;
    --bg-surface: #232d3b;
    --bg-surface-hover: #2c3849;
    --border-subtle: rgba(226, 232, 240, 0.08);
    --border-strong: rgba(226, 232, 240, 0.14);

    --text-primary: #e8edf2;
    --text-secondary: #9aa8b8;
    --text-muted: #6d7d8f;

    /* Professional steel & sage accents */
    --accent-blue: #6b9fc9;
    --accent-cyan: #5fa896;
    --accent-purple: #8494b8;
    --accent-gradient: linear-gradient(135deg, #6b9fc9 0%, #5fa896 100%);

    --accent-blue-rgb: 107, 159, 201;
    --accent-cyan-rgb: 95, 168, 150;
    --accent-purple-rgb: 132, 148, 184;

    --glow-blue: rgba(107, 159, 201, 0.2);
    --glow-cyan: rgba(95, 168, 150, 0.15);
    --glow-violet: rgba(132, 148, 184, 0.12);
    --spotlight: rgba(107, 159, 201, 0.07);

    --navbar-scrolled-bg: rgba(18, 24, 32, 0.9);
    --btn-glow-bg: linear-gradient(135deg, #5a8fb8 0%, #4f9485 100%);
    --btn-glow-shadow: 0 4px 20px rgba(90, 143, 184, 0.28);
    --btn-glow-shadow-hover: 0 8px 28px rgba(90, 143, 184, 0.38);
    --ice: var(--text-primary);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);

    --navbar-height: 4.5rem;
    --container: 72rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 32px rgba(107, 159, 201, 0.12);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.25s var(--ease-out);
}

.light-mode {
    color-scheme: light;
    --bg-void: #e8ebef;
    --bg-base: #f0f3f6;
    --bg-elevated: #ffffff;
    --bg-surface: #e4e9ef;
    --bg-surface-hover: #d8dfe8;
    --border-subtle: rgba(26, 35, 50, 0.08);
    --border-strong: rgba(26, 35, 50, 0.14);

    --text-primary: #1a2332;
    --text-secondary: #4a5a6e;
    --text-muted: #6b7a8f;

    --accent-blue: #3d6f94;
    --accent-cyan: #3d8574;
    --accent-purple: #5c6b8f;
    --accent-gradient: linear-gradient(135deg, #3d6f94 0%, #3d8574 100%);

    --accent-blue-rgb: 61, 111, 148;
    --accent-cyan-rgb: 61, 133, 116;
    --accent-purple-rgb: 92, 107, 143;

    --glow-blue: rgba(61, 111, 148, 0.14);
    --glow-cyan: rgba(61, 133, 116, 0.12);
    --glow-violet: rgba(92, 107, 143, 0.1);
    --spotlight: rgba(61, 111, 148, 0.05);

    --navbar-scrolled-bg: rgba(240, 243, 246, 0.94);
    --btn-glow-bg: linear-gradient(135deg, #3d6f94 0%, #3d8574 100%);
    --btn-glow-shadow: 0 4px 16px rgba(61, 111, 148, 0.22);
    --btn-glow-shadow-hover: 0 6px 22px rgba(61, 111, 148, 0.3);

    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.07);
    --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.09);
    --shadow-glow: 0 0 24px rgba(61, 111, 148, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
    font-size: 16px;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-blue-rgb), 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(var(--accent-purple-rgb), 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-blue);
    color: #fff;
    border-radius: var(--radius-sm);
    z-index: 10001;
    font-weight: 600;
}
.skip-to-content:focus { top: 1rem; }

/* Typography */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-cyan);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 36rem;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3rem;
}
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1001;
    background: transparent;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.1s linear;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--navbar-height);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: var(--navbar-scrolled-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-logo .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

.navbar-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.navbar-link:hover,
.navbar-link.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--accent-blue);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
    border-color: var(--accent-blue);
    background: var(--bg-surface-hover);
    color: var(--accent-cyan);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
.light-mode .theme-toggle {
    background: var(--bg-elevated);
    color: var(--accent-blue);
    border-color: var(--border-strong);
}
.light-mode .theme-toggle:hover {
    background: var(--bg-surface);
    color: var(--accent-cyan);
}
.theme-icon-light { display: none; }
.light-mode .theme-icon-dark { display: none; }
.light-mode .theme-icon-light { display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    font-family: inherit;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}
.light-mode .btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: 1px solid transparent;
}
.light-mode .btn-primary:hover {
    background: var(--accent-cyan);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #fff;
}
.btn-accent:hover { box-shadow: var(--shadow-glow); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Main layout */
#main-content {
    padding-top: var(--navbar-height);
}

.section {
    padding: 5rem 0;
    position: relative;
}
.section-alt {
    background: var(--bg-elevated);
    border-block: 1px solid var(--border-subtle);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: var(--glass-bg, rgba(35, 45, 59, 0.75));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, var(--border-subtle));
}
.light-mode .card-glass {
    background: var(--glass-bg);
}

/* Hero */
.hero-premium {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 36rem; }

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-subline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    min-height: 1.5rem;
    margin-bottom: 2rem;
}
.hero-tagline .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}
.trust-item {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.trust-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.hero-visual {
    position: relative;
}
.hero-dashboard {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s var(--ease-out);
}
.hero-dashboard:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}
.dashboard-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}
.dashboard-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.dashboard-bar span:first-child { background: #ef4444; }
.dashboard-bar span:nth-child(2) { background: #eab308; }
.dashboard-bar span:nth-child(3) { background: #22c55e; }
.dashboard-metric {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.metric-box {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-subtle);
}
.metric-box .value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}
.metric-box .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.dashboard-chart {
    height: 80px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}
.dashboard-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 35 L30 28 L60 32 L90 15 L120 22 L150 8 L180 18 L200 5' fill='none' stroke='%236b9fc9' stroke-width='2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* About preview */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}
.about-photo {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: grid;
    place-items: center;
    color: var(--text-muted);
}
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.highlight-pill {
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}
.highlight-pill strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.skill-card .skill-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.skill-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    display: grid;
    place-items: center;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* Case studies */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.case-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.case-mockup {
    height: 180px;
    background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
    border-bottom: 1px solid var(--border-subtle);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.case-mockup-inner {
    width: 85%;
    height: 70%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
}
.case-mockup-bar {
    height: 6px;
    width: 40%;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}
.case-mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.case-mockup-lines span {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
}
.case-mockup-lines span:nth-child(1) { width: 90%; }
.case-mockup-lines span:nth-child(2) { width: 70%; }
.case-mockup-lines span:nth-child(3) { width: 50%; }

.case-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}
.case-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.case-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}
.case-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}
.case-metric {
    text-align: left;
}
.case-metric .val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--accent-blue);
}
.case-metric .lbl {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.case-tech span {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.service-card .service-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.service-features {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.service-features li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--border-strong);
    line-height: 1;
}
.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { font-size: 0.75rem; color: var(--text-muted); }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.blog-card .blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.blog-card:hover h3 { color: var(--accent-cyan); }
.blog-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.blog-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

/* Contact CTA */
.contact-cta {
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}
.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 60%);
    pointer-events: none;
}
.contact-cta .section-heading { margin-bottom: 0.75rem; }
.contact-cta .section-lead { margin: 0 auto 2rem; }
.contact-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

/* Footer */
.footer-premium {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: block;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Reveal animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 10000;
    display: grid;
    place-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; }
.preloader-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.progress-bar {
    width: 200px;
    height: 2px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 0.5rem;
}
.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.2s;
}
.progress-text { font-size: 0.75rem; color: var(--text-muted); }

/* Inner pages compatibility */
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.page-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
    .hero-dashboard { transform: none; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-cta { display: none; }
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-base);
        flex-direction: column;
        padding: 2rem;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform var(--transition);
        border-top: 1px solid var(--border-subtle);
    }
    .navbar-menu.active { transform: translateX(0); }
    .navbar-toggle { display: flex; }
    .navbar-link { padding: 1rem; font-size: 1rem; }
    .section { padding: 3.5rem 0; }
    .contact-cta { padding: 2.5rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, .reveal-on-scroll { animation: none !important; transition: none !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}

@keyframes blink {
    50% { opacity: 0; }
}
