/* ==========================================================================
   ITnoza - Main CSS
   ========================================================================== */

/* Import all modules */
@import url('./modules/variables.css');
@import url('./modules/reset.css');
@import url('./modules/testimonials.css');
@import url('./modules/welcome-modal.css');

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

body.loaded {
    animation: fadeInBody var(--transition-slow) ease-in;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--sp-md) var(--sp-xl);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-dark);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(75, 255, 204, 0.1);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(75, 255, 204, 0.08);
    padding: var(--sp-md) 0;
    z-index: var(--z-sticky);
    animation: slideDown var(--transition-slow) ease-out;
    transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    padding: var(--sp-sm) 0;
    background: rgba(6, 12, 16, 0.95);
    border-bottom-color: rgba(75, 255, 204, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: 2px;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 201;
    text-decoration: none;
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: var(--sp-xl);
    list-style: none;
}

.nav-link {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    position: relative;
    padding: var(--sp-sm) var(--sp-xs);
    transition: color var(--transition-base);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: var(--fw-medium);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: transform var(--transition-base);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(75, 255, 204, 0.4);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(0.7);
}

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

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 201;
    padding: 10px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
    background: none;
    border: none;
    -webkit-appearance: none;
}

.hamburger:hover {
    background: rgba(75, 255, 204, 0.08);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.25s ease,
                width 0.35s cubic-bezier(0.77, 0, 0.18, 1);
    transform-origin: center;
}

.hamburger span:nth-child(3) {
    width: 16px;
    margin-left: auto;
}

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

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

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

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu - slide-in panel from right */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(300px, 80vw);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(6, 12, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 5.5rem var(--sp-lg) var(--sp-xl);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(75, 255, 204, 0.15);
        z-index: 200;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.13s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.18s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.23s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.28s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.33s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.38s; }

    .nav-link {
        display: block;
        width: 100%;
        font-size: var(--fs-base);
        padding: var(--sp-md) var(--sp-sm);
        color: var(--color-text-muted);
        border-bottom: 1px solid rgba(75, 255, 204, 0.06);
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.25s ease, padding-left 0.25s ease, background 0.25s ease;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        color: var(--color-text);
        background: rgba(75, 255, 204, 0.04);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: var(--color-primary);
        padding-left: var(--sp-md);
        background: rgba(75, 255, 204, 0.06);
        border-left: 2px solid var(--color-primary);
        border-bottom-color: rgba(75, 255, 204, 0.1);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #060c10 0%, #0A0E27 30%, #071a1f 60%, #0A0E27 80%, #060c10 100%);
    contain: layout style;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.hero::before {
    top: -40%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(75, 255, 204, 0.10) 0%, transparent 55%);
    animation: heroOrb1 10s ease-in-out infinite;
}

.hero::after {
    bottom: -30%;
    left: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.08) 0%, transparent 55%);
    animation: heroOrb2 12s ease-in-out infinite;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.05); }
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp var(--transition-slow) ease-out;
}

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

.hero-title {
    margin-bottom: var(--sp-lg);
}

.hero-subtitle {
    display: block;
    font-size: var(--fs-2xl);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-md);
}

.hero-main {
    display: block;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: var(--fw-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 40px rgba(75, 255, 204, 0.3);
}

.hero-description {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--sp-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-xl);
}

.hero-socials {
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    margin-bottom: var(--sp-3xl);
}

.hero-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    background: rgba(75, 255, 204, 0.04);
    border: 1px solid rgba(75, 255, 204, 0.12);
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.hero-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.hero-social-link i,
.hero-social-link img {
    position: relative;
    z-index: 1;
}

.hero-social-link:hover {
    color: var(--color-dark);
    border-color: var(--color-primary);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 20px rgba(75, 255, 204, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-social-link:hover::before {
    opacity: 1;
}

.hero-social-link--img img {
    border-radius: 50%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.hero-social-link--img:hover img {
    filter: brightness(0) saturate(100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 60px;
    }
}

@media (max-width: 640px) {
    .scroll-indicator {
        bottom: 80px;
    }

    .scroll-arrow {
        width: 24px;
        height: 40px;
    }
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
    padding: var(--sp-3xl) 0;
}

section:nth-child(even) {
    background: rgba(10, 14, 39, 0.5);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--fw-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--sp-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2xl);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: var(--sp-3xl) 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(75, 255, 204, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(0, 200, 150, 0.03) 0%, transparent 100%),
        linear-gradient(180deg, #060c10 0%, #0a1420 40%, #081a22 70%, #060c10 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(75, 255, 204, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: aboutOrb1 14s ease-in-out infinite;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.05) 0%, transparent 55%);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: aboutOrb2 18s ease-in-out infinite;
}

@keyframes aboutOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.08); }
}

@keyframes aboutOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.05); }
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    margin-top: var(--sp-2xl);
    align-items: center;
}

/* ── About Image ────────────────────────────────────── */

.about-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-lg);
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-primary);
    padding: 2px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
    box-shadow: 0 8px 32px rgba(75, 255, 204, 0.1);
}

.image-wrapper:hover {
    transform: rotate(-2deg) scale(1.03);
    box-shadow: 0 12px 40px rgba(75, 255, 204, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius-xl) - 2px);
    transition: filter 0.4s ease;
}

.image-wrapper:hover .profile-image {
    filter: brightness(1.08) contrast(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(75, 255, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--color-primary);
    border-radius: calc(var(--radius-xl) - 2px);
}

.profile-name {
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin: 0;
}

.profile-title {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-normal);
    color: var(--color-text-muted);
    margin-top: var(--sp-xs);
    letter-spacing: 0.5px;
}

/* ── About Text ─────────────────────────────────────── */

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.about-description {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--color-text);
    padding: var(--sp-lg);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.5) 0%, rgba(12, 22, 38, 0.6) 100%);
    border: 1px solid rgba(75, 255, 204, 0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.about-description:hover {
    border-color: rgba(75, 255, 204, 0.2);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(75, 255, 204, 0.06), inset 0 0 16px rgba(75, 255, 204, 0.02);
}

.about-description:first-of-type {
    font-weight: var(--fw-medium);
}

.about-description .about-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(75, 255, 204, 0.06);
    border: 1px solid rgba(75, 255, 204, 0.1);
    color: var(--color-primary);
    font-size: var(--fs-lg);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.about-description:hover .about-icon {
    background: rgba(75, 255, 204, 0.12);
    box-shadow: 0 0 12px rgba(75, 255, 204, 0.15);
}

.about-description a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(75, 255, 204, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.about-description a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.about-description p {
    margin: 0;
}

/* ── About Stats ────────────────────────────────────── */

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
    margin-top: var(--sp-xl);
}

.stat-item {
    text-align: center;
    padding: var(--sp-xl) var(--sp-md);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.5) 0%, rgba(12, 22, 38, 0.6) 100%);
    border: 1px solid rgba(75, 255, 204, 0.06);
    border-radius: var(--radius-lg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 255, 204, 0.25);
    box-shadow: 0 8px 28px rgba(75, 255, 204, 0.1);
}

.stat-item:hover::before {
    opacity: 0.04;
}

.stat-number {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--fw-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
}

.stat-label {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: var(--sp-xs);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Services/Skills Grid
   ========================================================================== */

.service-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: left var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--sp-lg);
    display: block;
}

.service-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: var(--sp-md);
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    justify-content: center;
}

.service-tag {
    display: inline-block;
    padding: var(--sp-sm) var(--sp-md);
    background: rgba(75, 255, 204, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
}

.service-card:hover .service-tag {
    background: rgba(75, 255, 204, 0.2);
    border-color: var(--color-primary);
}

.services-grid,
.tech-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-xl);
}

/* ── Portfolio — empty / error state ──────────────────── */
.portfolio-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-3xl) var(--sp-md);
    color: var(--color-text-muted);
    min-height: 300px;
}
.portfolio-empty i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--sp-lg);
    opacity: 0.6;
}
.portfolio-empty p {
    font-size: var(--fs-lg);
    margin: 0;
}

/* ── Portfolio section background ────────────────────── */
.portfolio {
    background: linear-gradient(110deg, var(--color-dark) 0%, #0d2a28 50%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}
.portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(75,255,204,0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(0,200,150,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.portfolio .container { position: relative; z-index: 2; }

/* ── Projects grid (1 column — horizontal cards) ─────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
}

/* ── Project card (horizontal: image left, content right) */
.project-card {
    background: rgba(10, 14, 39, 0.85);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    gap: var(--sp-md);
    align-items: center;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1),
                border-color .3s ease,
                box-shadow .3s ease;
    will-change: transform;
}
.project-card:has(.project-link):hover {
    border-color: var(--color-primary);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 50px -10px rgba(75,255,204,0.2);
}

/* 3D reflection overlay */
.card-reflection {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: inherit;
    z-index: 5;
}

/* ── Project image (left side) ───────────────────────── */
.project-image {
    height: 320px;
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d3a2f 0%, #0a2a4a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin: var(--sp-md);
    margin-right: 0;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.project-card:has(.project-link):hover .project-image img {
    transform: scale(1.1);
}
.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(75,255,204,0.15);
}

/* Overlay with link button */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,12,16,0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    opacity: 0;
    transition: opacity .35s ease;
    border-radius: var(--radius-xl);
}
.project-card:has(.project-link):hover .project-overlay {
    opacity: 1;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm) var(--sp-lg);
    background: var(--color-primary);
    color: var(--color-dark);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    font-family: var(--font-primary);
    border: 2px solid transparent;
    transition: all .25s ease;
}
.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(75,255,204,0.4);
    background: var(--gradient-primary);
    border-color: #fff;
}

/* ── Project content (right side) ────────────────────── */
.project-content {
    padding: var(--sp-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.project-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-sm);
    color: #ffffff;
    transition: all .3s ease;
}
.project-card:has(.project-link):hover .project-title {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.project-description {
    color: var(--color-text-muted);
    margin-bottom: var(--sp-lg);
    line-height: 1.7;
    font-size: var(--fs-sm);
}

/* Tech tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}
.project-tag {
    background: rgba(75,255,204,0.08);
    color: var(--color-primary);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-primary);
    transition: all .25s ease;
}
.project-tag:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Bottom links (visible only on mobile) */
.project-links {
    display: none;
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm) var(--sp-lg);
    background: var(--gradient-primary);
    color: var(--color-dark);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    font-family: var(--font-primary);
    border: 2px solid transparent;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(75,255,204,0.2);
    position: relative;
    overflow: hidden;
}
.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left .4s ease;
}
.project-btn:hover::before { left: 100%; }
.project-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(75,255,204,0.35);
}

/* ── Portfolio responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .project-image {
        height: 260px;
        width: 260px;
        min-width: 260px;
    }
    .project-title { font-size: var(--fs-xl); }
}
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        align-items: stretch;
    }
    .project-image {
        width: 100% !important;
        height: 220px;
        min-width: unset !important;
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .project-content {
        padding: var(--sp-lg);
    }
    .project-links {
        display: flex;
    }
    .project-overlay { display: none; }
    .project-title { font-size: var(--fs-lg); }
    .project-description { font-size: var(--fs-xs); margin-bottom: var(--sp-md); }
    .project-tag { font-size: 0.65rem; padding: 0.15rem var(--sp-sm); }
    .card-reflection { display: none; }
}
@media (max-width: 480px) {
    .project-image { height: 180px; }
    .project-content { padding: var(--sp-md); }
    .project-btn { width: 100%; justify-content: center; }
    .portfolio-grid { gap: var(--sp-md); }
}

@media (prefers-reduced-motion: reduce) {
    .project-card { transition: none; }
    .project-card * { transition: none !important; }
}

/* ── Service & Tech cards (shared base) ──────────────── */
.service-card,
.tech-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: left var(--transition-base);
}

.service-card:hover,
.tech-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.service-card:hover::before,
.tech-card:hover::before {
    left: 100%;
}

.service-card h3,
.tech-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-md);
    color: var(--color-primary);
}

.service-card p,
.tech-card p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.tech-card {
    text-align: center;
}

.tech-card i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--sp-md);
    display: block;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: var(--sp-md);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid rgba(75, 255, 204, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--color-primary);
    border-color: rgba(75, 255, 204, 0.4);
}

.lang-btn.active {
    color: var(--color-dark);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.lang-divider {
    color: rgba(75, 255, 204, 0.2);
    font-size: var(--fs-xs);
    user-select: none;
}

@media (max-width: 768px) {
    .nav-lang-switcher {
        margin-left: 0;
        margin-top: auto;
        padding: var(--sp-lg) var(--sp-sm);
        justify-content: center;
        border-top: 1px solid rgba(75, 255, 204, 0.08);
    }

    .lang-btn {
        padding: 8px 20px;
        font-size: var(--fs-sm);
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

#kontakt,
#contact {
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(75, 255, 204, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(0, 200, 150, 0.05) 0%, transparent 100%),
        linear-gradient(175deg, #060c10 0%, #08121e 20%, #0a1628 45%, #081a22 65%, #060c10 100%);
    position: relative;
    overflow: hidden;
}

@keyframes gradient-shift-contact {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#kontakt::before,
#contact::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(75, 255, 204, 0.07) 0%, transparent 65%);
    border-radius: 50%;
    will-change: transform;
    filter: blur(80px);
    animation: float-orb-1 12s ease-in-out infinite;
    pointer-events: none;
}

#kontakt::after,
#contact::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    will-change: transform;
    filter: blur(100px);
    animation: float-orb-2 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb-1 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(50px) translateY(-50px); }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-40px) translateY(40px); }
}

#kontakt .container,
#contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--sp-3xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.contact-subtitle {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--sp-md);
    background: linear-gradient(135deg, #ffffff 0%, #4BFFCC 40%, #00E5A0 70%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-lg);
    font-size: var(--fs-sm);
    letter-spacing: 0.3px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    padding: var(--sp-lg);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.5) 0%, rgba(12, 20, 35, 0.6) 100%);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
    border: 1px solid rgba(75, 255, 204, 0.08);
    cursor: pointer;
    text-decoration: none;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(75, 255, 204, 0.06) 0%, rgba(10, 14, 39, 0.8) 100%);
    border-color: rgba(75, 255, 204, 0.3);
    transform: translateX(8px);
    color: var(--color-text);
    box-shadow: 0 4px 24px rgba(75, 255, 204, 0.1), inset 0 0 20px rgba(75, 255, 204, 0.02);
}

.contact-item i {
    color: var(--color-primary);
    font-size: var(--fs-2xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 255, 204, 0.06);
    border: 1px solid rgba(75, 255, 204, 0.1);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.5s ease;
}

.contact-item:hover i {
    background: rgba(75, 255, 204, 0.15);
    color: #fff;
    border-color: rgba(75, 255, 204, 0.3);
    box-shadow: 0 0 16px rgba(75, 255, 204, 0.2);
    transform: rotate(360deg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--sp-lg);
    background: rgba(8, 14, 28, 0.6);
    border: 1px solid rgba(75, 255, 204, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-size: var(--fs-base);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-primary);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(8, 14, 28, 0.95) inset !important;
    -webkit-text-fill-color: var(--color-text) !important;
    caret-color: var(--color-primary);
}

input:invalid,
textarea:invalid {
    box-shadow: none !important;
    outline: none !important;
}

.form-input:focus {
    outline: none;
    border-color: rgba(75, 255, 204, 0.5);
    background: rgba(75, 255, 204, 0.04);
    box-shadow: 0 0 0 3px rgba(75, 255, 204, 0.08), 0 0 20px rgba(75, 255, 204, 0.05);
}

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

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.form-consent {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
}

.form-consent .consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background: rgba(8, 14, 28, 0.6);
    border: 1px solid rgba(75, 255, 204, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.form-consent .consent-checkbox:hover {
    border-color: rgba(75, 255, 204, 0.5);
    box-shadow: 0 0 0 3px rgba(75, 255, 204, 0.08);
}

.form-consent .consent-checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.form-consent .consent-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--color-dark);
    font-weight: bold;
    font-size: 12px;
}

.form-consent .consent-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 255, 204, 0.25);
}

.form-consent .consent-label {
    font-size: var(--fs-sm);
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.form-consent .required {
    color: #FF6B6B;
    font-weight: var(--fw-bold);
}

.contact-form .btn-primary {
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(75, 255, 204, 0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: var(--fs-sm);
}

.contact-form .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
}

.contact-form .btn-primary:hover::after {
    width: 250px;
    height: 250px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(75, 255, 204, 0.25);
}

.form-message {
    padding: var(--sp-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
    font-weight: var(--fw-medium);
    animation: fadeInUp 0.3s ease-out;
}

.form-message.success {
    background: rgba(0, 229, 160, 0.1);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    display: block;
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid var(--color-border);
    padding: var(--sp-2xl) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-lg);
}

.footer p {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.footer a {
    color: var(--color-primary);
}

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

.social-links {
    display: flex;
    gap: var(--sp-lg);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: rgba(75, 255, 204, 0.1);
    box-shadow: var(--shadow-neon);
}

.footer-links {
    display: flex;
    gap: var(--sp-lg);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(75, 255, 204, 0.08);
    color: var(--color-text-muted);
    font-size: var(--fs-lg);
    transition: all var(--transition-base);
}

.footer-link:hover {
    color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-neon);
}

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero::before {
        width: 400px;
        height: 400px;
        opacity: 0.6;
        animation: none;
    }

    .hero::after {
        width: 500px;
        height: 500px;
        opacity: 0.5;
        animation: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .contact-item {
        padding: var(--sp-md) var(--sp-lg);
        font-size: var(--fs-base);
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: var(--fs-lg);
    }

    .contact-items {
        gap: var(--sp-lg);
    }

    #kontakt::before,
    #contact::before {
        width: 350px;
        height: 350px;
        opacity: 0.05;
    }

    #kontakt::after,
    #contact::after {
        width: 400px;
        height: 400px;
        opacity: 0.04;
    }

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

    .about-image {
        order: -1;
    }

    .image-wrapper {
        max-width: 280px;
    }

    .about::before {
        width: 350px;
        height: 350px;
        opacity: 0.04;
        animation: none;
    }

    .about::after {
        width: 300px;
        height: 300px;
        opacity: 0.03;
        animation: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-sm);
    }

    .stat-item {
        padding: var(--sp-md) var(--sp-sm);
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: var(--sp-md);
        max-width: 100%;
    }

    .hero-main {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: var(--fs-xl);
    }

    .hero-description {
        font-size: var(--fs-base);
        padding: 0 var(--sp-sm);
    }

    section {
        padding: var(--sp-2xl) 0;
    }

    .section-subtitle {
        font-size: var(--fs-base);
        padding: 0 var(--sp-sm);
    }

    .contact-subtitle {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--sp-md);
    }

    .hero-buttons {
        gap: var(--sp-md);
        flex-direction: column;
        align-items: center;
        padding: 0 var(--sp-lg);
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-socials {
        gap: var(--sp-sm);
    }

    .hero-social-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .hero-social-link:hover {
        transform: translateY(-3px) scale(1.05);
    }

    .hero-subtitle {
        font-size: var(--fs-lg);
    }

    .hero-description {
        font-size: var(--fs-sm);
    }

    .services-grid,
    .tech-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: var(--sp-sm);
    }

    .footer-link {
        width: 36px;
        height: 36px;
        font-size: var(--fs-base);
    }

    .about-description {
        font-size: var(--fs-sm);
        padding: var(--sp-md);
    }

    .about-description .about-icon {
        width: 34px;
        height: 34px;
        font-size: var(--fs-base);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
    }

    .stat-item {
        padding: var(--sp-md);
    }

    .stat-number {
        font-size: var(--fs-2xl);
    }

    .image-wrapper {
        max-width: 220px;
    }

    .profile-name {
        font-size: var(--fs-lg);
    }

    .contact-form .btn-primary {
        align-self: stretch;
        text-align: center;
    }

    section {
        padding: var(--sp-xl) 0;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 var(--sp-sm);
    }

    .hero-main {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        letter-spacing: 1px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .footer-link {
        width: 32px;
        height: 32px;
        font-size: var(--fs-sm);
    }

    .btn {
        padding: var(--sp-sm) var(--sp-lg);
        font-size: var(--fs-sm);
    }
}

/* ==========================================================================
   Scroll-to-Top Button
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: var(--z-sticky);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(75, 255, 204, 0.12);
    border: 1px solid rgba(75, 255, 204, 0.25);
    color: var(--color-primary);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: opacity 0.35s ease,
                visibility 0.35s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 24px rgba(75, 255, 204, 0.35), 0 8px 28px rgba(0, 0, 0, 0.3);
}

.scroll-top:active {
    transform: translateY(-2px) scale(1);
}

@media (max-width: 640px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Toast Notifications (frontend — spójne z admin)
   ========================================================================== */
#itn-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    max-width: min(400px, calc(100vw - 2rem));
}

.itn-toast {
    --toast-bg: rgba(75,255,204,0.12);
    --toast-border: #4BFFCC;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: var(--toast-bg);
    border: 1px solid var(--toast-border);
    border-radius: var(--radius-lg, 12px);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.35),
        0 0 24px -8px var(--toast-border);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    animation: itnToastIn .4s cubic-bezier(.34,1.56,.64,1) both;
}

.itn-toast__icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 1px;
}
.itn-toast__msg {
    flex: 1;
    color: var(--color-text, #e0e0e0);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}
.itn-toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all .2s ease;
}
.itn-toast__close:hover { color: #fff; background: rgba(255,255,255,0.14); }

.itn-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: itnToastProgress linear forwards;
    animation-duration: 4500ms;
}

.itn-toast--out {
    animation: itnToastOut .35s ease both;
    pointer-events: none;
}

@keyframes itnToastIn {
    0%   { opacity: 0; transform: translateX(60px) scale(.92); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes itnToastOut {
    0%   { opacity: 1; transform: translateX(0) scale(1); max-height: 120px; margin-bottom: 0; }
    60%  { opacity: 0; transform: translateX(80px) scale(.9); }
    100% { opacity: 0; transform: translateX(80px) scale(.9); max-height: 0; padding: 0; margin-bottom: -0.6rem; border-width: 0; }
}
@keyframes itnToastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 520px) {
    #itn-toast-container { left: 0.5rem; right: 0.5rem; max-width: none; }
    .itn-toast { min-width: 0; }
}
