/* ==================== Fonts ==================== */
/* Volte-G Medium - For headings and addresses */
@font-face {
    font-family: 'Volte';
    src: url('https://static.zeroservices.eu/fonts/Volte-G-Medium.eot');
    src: url('https://static.zeroservices.eu/fonts/Volte-G-Medium.eot?#iefix') format('embedded-opentype'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Medium.woff2') format('woff2'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Medium.woff') format('woff'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Medium.ttf') format('truetype'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Medium.svg#Volte-G-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Volte-G Semibold - For headings and emphasis */
@font-face {
    font-family: 'Volte';
    src: url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.eot');
    src: url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.eot?#iefix') format('embedded-opentype'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.woff2') format('woff2'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.woff') format('woff'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.ttf') format('truetype'),
         url('https://static.zeroservices.eu/fonts/Volte-G-Semibold.svg#Volte-G-Semibold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Volte Rounded-G Medium - For body text */
@font-face {
    font-family: 'Volte Rounded';
    src: url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.eot');
    src: url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.eot?#iefix') format('embedded-opentype'),
         url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.woff2') format('woff2'),
         url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.woff') format('woff'),
         url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.ttf') format('truetype'),
         url('https://static.zeroservices.eu/fonts/VolteRounded-G-Medium.svg#VolteRounded-G-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ==================== CSS Reset ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== CSS Variables ==================== */
:root {
    color-scheme: dark;

    /* ===== Brand Colors (Hex - Public API) ===== */
    --color-primary-hex: #009FE3;
    --color-secondary-hex: #343a43;
    --color-accent-hex: #06b6d4;
    --color-white-hex: #FFFFFF;
    --color-black-hex: #000000;

    /* ===== RGB Values (Internal - for transparency) ===== */
    --color-primary: 0 159 227;      /* #009FE3 */
    --color-secondary: 52 58 67;     /* #343a43 */
    --color-accent: 6 182 212;       /* #06b6d4 */
    --color-white: 255 255 255;      /* #FFFFFF */
    --color-black: 0 0 0;            /* #000000 */

    /* ===== Theme Colors ===== */
    --color-text: rgb(var(--color-white));
    --color-text-muted: rgb(var(--color-white) / 0.6);
    --color-bg-dark: #0a0c12;
    --color-bg-dark-rgb: 10 12 18;
    --color-bg-secondary: #1a1d29;
    --color-bg-secondary-rgb: 26 29 41;
    --color-bg-header: #0f111a;
    --color-border: #2a2e3f;
    --color-border-accent: var(--color-primary-hex);
    --color-shadow-base: rgba(0, 0, 0, 0.5);
    --color-shadow-strong: rgba(0, 0, 0, 0.8);

    /* ===== Gradients ===== */
    --gradient-primary: linear-gradient(135deg, rgb(var(--color-primary) / 0.1), rgb(var(--color-accent) / 0.1));
    --gradient-primary-hover: linear-gradient(135deg, rgb(var(--color-primary) / 0.2), rgb(var(--color-accent) / 0.2));
    --gradient-hero-overlay: linear-gradient(180deg, rgb(51 55 66 / 0.3) 0%, rgb(51 55 66 / 0.8) 100%);
    --gradient-portfolio-header: linear-gradient(135deg, rgb(var(--color-primary) / 0.1) 0%, rgb(var(--color-accent) / 0.05) 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Responsive spacing */
    --section-padding: clamp(2rem, 6vw + 1rem, 6rem);
    --container-padding: clamp(1rem, 3vw + 0.5rem, 2rem);

    /* Typography */
    --font-family-base: 'Volte Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --font-family-heading: 'Volte', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;

    /* Font sizes */
    --font-size-base: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    --font-size-sm: clamp(0.875rem, 0.4vw + 0.775rem, 1rem);
    --font-size-lg: clamp(1.125rem, 0.75vw + 0.95rem, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.5vw + 1.15rem, 2.25rem);
    --font-size-2xl: clamp(2rem, 2.5vw + 1.35rem, 3rem);
    --font-size-3xl: clamp(2.25rem, 3.5vw + 1.5rem, 4rem);

    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Layout */
    --container-max-width: 1400px;
    --content-max-width: 800px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 8px 8px 30px var(--color-shadow-base);
    --shadow-lg: 12px 12px 47px 25px var(--color-shadow-base);
}

/* Light theme (commented out - dark mode default) */

/* Theme override */
[data-theme="light"] {
    color-scheme: light;
    --color-text: rgb(var(--color-black));
    --color-text-muted: rgb(var(--color-black) / 0.6);
    --color-bg-dark: var(--color-white-hex);
    --color-bg-secondary: #f8fafc;
    --color-bg-header: var(--color-white-hex);
    --color-border: #e2e8f0;
    --color-shadow-base: rgba(0, 0, 0, 0.1);
    --color-shadow-strong: rgb(var(--color-black) / 0.3);
}

[data-theme="dark"] {
    color-scheme: dark;
    --color-text: rgb(var(--color-white));
    --color-text-muted: rgb(var(--color-white) / 0.6);
    --color-bg-dark: #0a0c12;
    --color-bg-dark-rgb: 10 12 18;
    --color-bg-secondary: #1a1d29;
    --color-bg-secondary-rgb: 26 29 41;
    --color-bg-header: #0f111a;
    --color-border: #2a2e3f;
    --color-shadow-base: rgba(0, 0, 0, 0.5);
    --color-shadow-strong: rgba(0, 0, 0, 0.8);
}

/* ==================== Base Styles ==================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    background: var(--color-bg-dark);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h2 {
    margin-top: var(--space-xl);
    clear: both;
}

address {
    font-family: var(--font-family-heading);
    font-style: normal;
    font-weight: 500;
}

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

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

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ==================== Accessibility - Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== Utility Classes ==================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Animation Classes ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Header ==================== */
.header {
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.header__logo {
    height: 32px;
    width: auto;
}

.header .btn {
    display: none;
}

.nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-header);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
    width: 100%;
    list-style: none;
}

.nav__link {
    font-size: var(--font-size-xl);
    transition: color var(--transition-base);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-primary-hex);
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__lang-separator {
    color: var(--color-text-light);
    opacity: 0.5;
}

.nav__link--active {
    font-family: var(--font-family-heading);
    color: var(--color-primary-hex);
    font-weight: 600;
}

.btn {
    font-family: var(--font-family-heading);
    padding: clamp(0.5rem, 0.8vw, 0.8rem) clamp(1rem, 2vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgb(var(--color-primary) / 0.2);
}

.btn--primary {
    background: var(--color-primary-hex);
    color: var(--color-white-hex);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-primary-hex);
    color: var(--color-white-hex);
    box-shadow: 0 4px 16px rgb(var(--color-primary) / 0.35);
    transform: translateY(-2px);
}

.btn--large {
    padding: clamp(0.8rem, 1.5vw, 1.5rem) clamp(2rem, 4vw, 4rem);
    font-size: var(--font-size-lg);
    min-width: 320px;
    flex: 1;
    max-width: 400px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgb(var(--color-white) / 0.1);
}

.lang-link {
    color: rgb(var(--color-white) / 0.7);
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-family: var(--font-family-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-link:hover {
    color: rgb(var(--color-white));
    background-color: rgb(var(--color-white) / 0.1);
}

.lang-link.active {
    color: var(--color-primary-hex);
}

.lang-separator {
    color: rgb(var(--color-white) / 0.3);
    font-size: var(--font-size-lg);
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    padding: var(--space-3xl) var(--container-padding);
    text-align: center;
    margin-top: 0;
    border-bottom: 1px solid var(--color-border-accent);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #333742;
}

.hero__background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero-overlay);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-xl);
    text-shadow: 0 4px 20px rgb(var(--color-black) / 0.9);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--font-size-base);
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
    text-shadow: 0 2px 12px rgb(var(--color-black) / 0.9);
}

.hero__container .btn {
    margin-top: var(--space-lg);
}

.hero__tagline {
    font-family: var(--font-family-heading);
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-shadow: 2px 2px 8px var(--color-shadow-strong);
    z-index: 10;
    padding: var(--space-xs) var(--space-sm);
    background: none;
    color: var(--color-text);
    opacity: 1;
}

/* ==================== Visual Breaker ==================== */
.section-breaker {
    height: 2px;
    background: var(--color-border-accent);
    margin: 0;
}

/* ==================== Stats Section ==================== */
.stats {
    padding: var(--section-padding) 0;
}

.stats .section__title {
    margin-bottom: var(--space-2xl);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    text-align: center;
    margin-top: var(--space-xl);
}

.stat__number {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    color: var(--color-primary-hex);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.stat__label {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

/* ==================== Section Common ==================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--alt {
    background: var(--color-bg-secondary);
}

.section--border {
    border-bottom: 1px solid var(--color-border-accent);
}

.section__title {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3xl);
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.section__title::after {
    content: '';
    display: block;
    width: clamp(60px, 8vw, 120px);
    height: 3px;
    background: var(--color-primary-hex);
    margin: var(--space-md) auto 0;
}

.section__subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: rgb(var(--color-white) / 0.8);
    margin-top: calc(-1 * var(--space-2xl));
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-normal);
}

.section__subsection {
    font-family: var(--font-family-heading);
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-tight);
}

/* ==================== Services Grid ==================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.service-card {
    background: rgb(var(--color-bg-dark-rgb) / 0.6);
    border: 2px solid rgb(var(--color-primary) / 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-hex);
    box-shadow: 0 12px 40px rgb(var(--color-primary) / 0.25);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: var(--color-primary-hex);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: var(--gradient-primary-hover);
    transform: scale(1.1) rotate(5deg);
}

.service-card__icon svg {
    width: 48px;
    height: 48px;
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
}

.service-card__description {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-normal);
    color: rgb(var(--color-white) / 0.8);
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__list li {
    padding: var(--space-sm) 0;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    position: relative;
    padding-left: var(--space-lg);
    line-height: var(--line-height-normal);
    color: rgb(var(--color-white) / 0.9);
}

.service-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary-hex);
    font-family: var(--font-family-heading);
    font-weight: 600;
}

/* ==================== Portfolio Carousel ==================== */
.portfolio-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.portfolio-carousel__track {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.portfolio-card {
    background: rgb(var(--color-bg-dark-rgb) / 0.6);
    border: 2px solid rgb(var(--color-primary) / 0.2);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: 600px;
    flex-direction: column;
}

.portfolio-card.active {
    display: flex;
    opacity: 1;
}

.portfolio-card__header {
    background: var(--gradient-portfolio-header);
    padding: var(--space-md) var(--space-xl);
    border-bottom: 2px solid rgb(var(--color-primary) / 0.2);
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

.portfolio-card__subtitle {
    color: rgb(var(--color-white) / 0.7);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.portfolio-card__body {
    padding: var(--space-md) var(--space-xl) var(--space-lg);
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(10, 12, 18, 0.85) 0%, rgba(26, 29, 41, 0.85) 100%);
    background-size: cover;
    background-position: center;
}

.portfolio__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.spec-item {
    text-align: center;
    padding: var(--space-sm) 0;
}

.spec-item__value {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: 0.25rem;
    display: block;
}

.spec-item__label {
    font-size: var(--font-size-sm);
    color: rgb(var(--color-white) / 0.7);
    line-height: 1.3;
}

.tech-stack {
    margin-top: 0;
    flex-shrink: 0;
}

.tech-stack__label {
    font-size: var(--font-size-sm);
    color: rgb(var(--color-white) / 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.5rem;
}

.tech-tag {
    background: rgb(var(--color-black) / 0.3);
    color: var(--color-primary-hex);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-size: clamp(0.75rem, 0.5vw + 0.65rem, 0.875rem);
    border: 1px solid rgb(var(--color-primary) / 0.3);
}

.carousel__nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(var(--color-primary) / 0.1);
    border: 2px solid var(--color-primary-hex);
    color: var(--color-primary-hex);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel__nav:hover {
    background: var(--color-primary-hex);
    color: var(--color-bg-dark);
    transform: scale(1.1);
}

.carousel__nav:active {
    transform: scale(0.95);
}

.carousel__indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(var(--color-primary) / 0.2);
    border: 2px solid var(--color-primary-hex);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel__dot:hover {
    background: rgb(var(--color-primary) / 0.4);
    transform: scale(1.2);
}

.carousel__dot.active {
    background: var(--color-primary-hex);
    transform: scale(1.3);
}

/* ==================== Why Zero Cards ==================== */
.why-zero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-xl);
}

.why-zero-card {
    background: rgb(var(--color-bg-secondary-rgb) / 0.4);
    border-left: 4px solid var(--color-secondary-hex);
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-base);
}

.why-zero-card:hover {
    transform: translateX(5px);
}

.why-zero-card__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary-hex);
    margin-bottom: var(--space-md);
    min-height: 2.6em;
    line-height: var(--line-height-tight);
}

.why-zero-card__text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    opacity: 0.95;
}

/* ==================== About Cards ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    text-align: center;
    transition: transform var(--transition-base);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
}

.about-card__icon svg {
    width: 100%;
    height: 100%;
}

.about-card__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card__subtitle {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card__divider {
    width: 50%;
    height: 3px;
    background: var(--color-secondary-hex);
    margin: var(--space-md) auto;
}

.about-card__text {
    font-size: var(--font-size-base);
    line-height: 1.5;
    flex-grow: 1;
}

/* ==================== Network Map ==================== */
.network-map {
    max-width: 1200px;
    margin: var(--space-3xl) auto;
    text-align: center;
}

.network-map img {
    width: 100%;
    border-radius: var(--border-radius-md);
}

.network-locations {
    text-align: center;
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin: var(--space-xl) 0;
    line-height: 1.8;
}

/* ==================== Contact Section ==================== */
.contact {
    text-align: center;
}

.contact__title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    text-shadow: 5px 5px 10px rgb(var(--color-black) / 0.3);
}

.contact__text {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-3xl);
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.contact__buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.contact__buttons .btn {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--color-bg-header);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-lg) 0;
    color: var(--color-text-muted);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer__title {
    font-family: var(--font-family-heading);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__column--right {
    text-align: left;
}

.footer__column--right .social-links {
    justify-content: flex-start;
}

.footer__logo {
    width: min(200px, 80%);
    margin-bottom: var(--space-md);
}

.footer__text {
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary-hex);
    flex-shrink: 0;
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgb(var(--color-primary) / 0.1);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
    border: 1px solid rgb(var(--color-primary) / 0.3);
}

.social-link:hover,
.social-link:focus {
    background: var(--color-primary-hex);
    border-color: var(--color-primary-hex);
    transform: translateY(-2px);
}

.social-link:hover svg,
.social-link:focus svg {
    color: var(--color-black-hex);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary-hex);
    transition: color var(--transition-base);
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__link {
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

.footer__link:hover,
.footer__link:focus {
    color: var(--color-primary-hex);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__privacy {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    opacity: 0.8;
}

/* ==================== Responsive Design ==================== */

/* 481px and up */
@media (min-width: 481px) {
    .hero__tagline {
        font-size: var(--font-size-base);
        padding: var(--space-sm) var(--space-md);
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* 769px and up */
@media (min-width: 769px) {
    .header {
        padding: var(--space-md) 0;
    }

    .header__logo {
        height: 40px;
    }

    .hero {
        min-height: 100vh;
        padding: var(--space-3xl) 0;
    }

    .hero__background {
        opacity: 0.5;
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-lg);
        max-width: var(--content-max-width);
    }

    .hero__tagline {
        bottom: var(--space-lg);
        right: var(--space-lg);
        font-size: var(--font-size-lg);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .why-zero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-zero-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    }

    .about-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .portfolio__specs {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__column--right {
        text-align: left;
    }

    .footer__column--right .social-links {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card__title {
        min-height: 3.6em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card__description {
        min-height: 6em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 1025px and up */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }

    .header .btn {
        display: inline-block;
    }

    .header__container {
        gap: var(--space-lg);
    }

    .header__logo {
        height: clamp(40px, 4vw, 48px);
    }

    .nav {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: var(--space-xl);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: row;
        text-align: left;
        gap: clamp(1rem, 2.5vw, 2.5rem);
    }

    .nav__link {
        font-size: var(--font-size-base);
        padding: 0;
        white-space: nowrap;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary-hex);
        transition: width var(--transition-base);
    }

    .nav__link:hover::after,
    .nav__link:focus::after {
        width: 100%;
    }

    .language-switcher {
        margin-top: 0;
        margin-right: var(--space-md);
        padding-top: 0;
        border-top: none;
    }

    .lang-link {
        font-size: var(--font-size-sm);
        width: 2em;
        height: 2em;
    }

    .lang-separator {
        font-size: var(--font-size-sm);
    }

    .about-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    }

    .about-card {
        grid-column: span 2;
    }

    .about-card:nth-child(4) {
        grid-column: 2 / 4;
    }

    .about-card:nth-child(5) {
        grid-column: 4 / 6;
        max-width: none;
        margin: 0;
    }

    .why-zero-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-zero-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-3xl);
    }

    .footer__column:nth-child(2) {
        text-align: center;
    }

    .footer__column--right {
        text-align: right;
    }

    .footer__column--right .social-links {
        justify-content: flex-end;
    }
}

/* Mobile overrides */
@media (max-width: 480px) {
    .hero__tagline {
        bottom: var(--space-sm);
        right: var(--space-sm);
        font-size: var(--font-size-sm);
        padding: var(--space-xs) var(--space-sm);
    }

    /* Mobile carousel navigation - overlay on the carousel */
    .portfolio-carousel {
        display: block;
        position: relative;
    }

    .portfolio-carousel__track {
        position: relative;
    }

    .carousel__nav {
        position: absolute;
        width: 40px;
        height: 40px;
        top: 45%;
        background: rgb(var(--color-primary) / 0.15);
        backdrop-filter: blur(8px);
        z-index: 20;
        margin: 0;
        transform: none;
    }

    .carousel__nav:hover {
        transform: none;
        background: rgb(var(--color-primary) / 0.25);
    }

    .carousel__nav:active {
        transform: none;
        background: rgb(var(--color-primary) / 0.3);
    }

    .carousel__nav--prev {
        left: 8px;
    }

    .carousel__nav--next {
        right: 8px;
    }

    .carousel__nav svg {
        width: 20px;
        height: 20px;
    }

    /* Compact portfolio cards for mobile */
    .portfolio-card {
        min-height: 380px;
        height: auto;
        transition: min-height 0.3s ease;
    }

    .portfolio-card__header {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
        min-height: auto;
        flex: 0 0 auto;
    }

    .portfolio-card__title {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
        line-height: 1.25;
    }

    .portfolio-card__subtitle {
        display: none;
        transition: all 0.3s ease;
    }

    .portfolio-card__subtitle.visible {
        display: block;
        margin-top: 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Add "Read more" hint after title */
    .portfolio-card__header::after {
        content: 'Read more →';
        display: block;
        font-size: 0.8rem;
        color: var(--color-primary-hex);
        margin-top: 0.5rem;
        font-weight: 500;
        opacity: 0.9;
    }

    .portfolio-card__header.expanded::after {
        content: 'Collapse ↑';
    }

    .portfolio-card__body {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    .portfolio__specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    .spec-item {
        padding: 0.75rem 0.5rem;
        background: rgb(var(--color-bg-dark-rgb) / 0.3);
        border-radius: 8px;
        text-align: center;
    }

    .spec-item__value {
        font-size: 1.75rem;
        margin-bottom: 0.375rem;
        font-weight: 600;
    }

    .spec-item__label {
        font-size: 0.8rem;
        line-height: 1.3;
        opacity: 0.8;
    }

    .tech-stack {
        margin-top: auto;
    }

    .tech-tags {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.375rem 0.625rem;
    }
}

/* Tablet/larger mobile overrides */
@media (min-width: 481px) and (max-width: 768px) {
    /* Slightly compact portfolio for tablets */
    .portfolio-card {
        height: 600px;
    }

    .portfolio-card__header {
        flex: 0 0 40%;
        padding: var(--space-md) var(--space-lg);
    }

    .portfolio-card__title {
        font-size: var(--font-size-lg);
        margin-bottom: 0.5rem;
    }

    .portfolio-card__subtitle {
        font-size: var(--font-size-sm);
        line-height: 1.4;
    }

    .portfolio-card__body {
        flex: 1 1 60%;
        padding: var(--space-md) var(--space-lg);
    }

    .portfolio__specs {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .spec-item__value {
        font-size: var(--font-size-lg);
    }

    .tech-stack {
        margin-top: 0;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

    .about-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .contact__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact__buttons .btn {
        max-width: 100%;
        width: 100%;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .nav,
    .footer {
        display: none;
    }
}
