/* ===== VARIABLES ===== */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --gray: #888888;
    --light-gray: #cccccc;
    --white: #f5f5f5;
    --pure-white: #ffffff;
    --accent: #ff6a00;
    --accent-hover: #ff8c33;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== LIGHT MODE ===== */
body.light {
    --black: #ffffff;
    --dark: #f5f5f5;
    --dark-2: #eeeeee;
    --dark-3: #dddddd;
    --gray: #666666;
    --light-gray: #444444;
    --white: #111111;
    --pure-white: #0a0a0a;
}

body.light::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 70% 50% at 5% 15%, rgba(255, 106, 0, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 95% 55%, rgba(255, 140, 50, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 40% 85%, rgba(255, 80, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 9999;
    transition: none;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

/* ===== PARTICLE CANVAS ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

html, body {
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.nav, .hero, .section, .horizontal-wrap, .footer {
    position: relative;
    z-index: 2;
}

.nav {
    z-index: 1000;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gray);
    transition: color 0.3s;
}

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

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 480px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.nav-drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-drop-item:hover {
    background: rgba(255, 106, 0, 0.06);
}

.nav-drop-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-drop-item:hover svg {
    opacity: 1;
}

.nav-drop-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white) !important;
}

.nav-drop-cta {
    animation: glowPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 106, 0, 0.02));
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}

.nav-drop-cta:hover {
    border-color: rgba(255, 106, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.04));
}

.nav-drop-cta-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-drop-cta-content svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.nav-drop-cta-content strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.nav-drop-cta-content span {
    font-size: 0.75rem;
    color: var(--gray);
}

.nav-drop-cta-arrow {
    width: 18px;
    height: 18px;
    color: var(--accent);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.nav-drop-cta:hover .nav-drop-cta-arrow {
    opacity: 1;
    transform: translateX(3px);
}

body.light .nav-dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body.light .nav-drop-item:hover {
    background: rgba(255, 106, 0, 0.05);
}

body.light .nav-drop-item span {
    color: #111 !important;
}

body.light .nav-drop-cta {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.06), rgba(255, 106, 0, 0.02));
    border-color: rgba(255, 106, 0, 0.12);
}

.nav-radar {
    color: var(--accent) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.4), 0 0 30px rgba(255, 106, 0, 0.2);
    animation: navRadarGlow 2s ease-in-out infinite;
}

@keyframes navRadarGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 106, 0, 0.4), 0 0 30px rgba(255, 106, 0, 0.2); }
    50% { text-shadow: 0 0 15px rgba(255, 106, 0, 0.6), 0 0 40px rgba(255, 106, 0, 0.3); }
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--black) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: background 0.3s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

/* Theme color fade during wipe */
body.theme-switching .nav,
body.theme-switching .section,
body.theme-switching .section-dark,
body.theme-switching .footer,
body.theme-switching .hero,
body.theme-switching h1,
body.theme-switching h2,
body.theme-switching h3,
body.theme-switching p,
body.theme-switching span,
body.theme-switching a {
    transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

/* Theme wipe transition */
.theme-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-wipe * {
    transition: none !important;
    animation: none !important;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.3s;
}

.theme-toggle {
    animation: glowPulse 2s ease-in-out infinite;
}

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

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--white);
    transition: color 0.3s;
}

.theme-toggle .icon-moon { display: none; }

body.light .theme-toggle .icon-sun { display: none; }
body.light .theme-toggle .icon-moon { display: block; }

body.light .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
}

/* Particle toggle */
.particle-toggle {
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s, opacity 0.4s, box-shadow 0.4s;
    opacity: 0.6;
}

.particle-toggle:hover {
    opacity: 1;
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.15);
}

.particle-toggle .toggle-dots {
    display: flex;
    gap: 4px;
    position: relative;
}

.particle-toggle .toggle-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transition: opacity 0.4s, transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 0 4px rgba(255, 106, 0, 0.3);
}

.particle-toggle .toggle-dot:nth-child(1) { animation: dotFloat1 2.5s ease-in-out infinite; }
.particle-toggle .toggle-dot:nth-child(2) { animation: dotFloat2 2s ease-in-out infinite; }
.particle-toggle .toggle-dot:nth-child(3) { animation: dotFloat3 2.8s ease-in-out infinite; }

@keyframes dotFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(1px, -3px); }
}
@keyframes dotFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-1px, 2px); }
}
@keyframes dotFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2px, -1px); }
}

.particle-toggle:hover .toggle-dot {
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
}

.particle-toggle.off .toggle-dot {
    opacity: 0.15;
    animation: none;
    transform: none;
    box-shadow: none;
}

.particle-toggle.off {
    opacity: 0.3;
}

.particle-toggle.off:hover {
    opacity: 0.6;
    box-shadow: none;
}

.particle-toggle .toggle-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 500;
}

body.light .particle-toggle {
    border-color: rgba(0, 0, 0, 0.08);
}

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

.lang-toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.lang-toggle a {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 5px 10px;
    color: var(--gray);
    transition: color 0.3s, background 0.3s;
}

.lang-toggle a:hover {
    color: var(--white);
}

.lang-toggle a.active {
    background: var(--accent);
    color: #fff;
}

body.light .lang-toggle {
    border-color: rgba(0, 0, 0, 0.12);
}

body.light .lang-toggle a:hover {
    color: #111;
}

body.light .lang-toggle a.active {
    color: #fff;
}

body.light .nav-cta {
    color: #ffffff !important;
}

body.light .service-card {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .service-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
}

body.light .portfolio-placeholder {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .video-wrapper {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .form-group input,
body.light .form-group select,
body.light .form-group textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder {
    color: #999999;
}

body.light .form-group select option {
    background: #ffffff;
    color: #111111;
}

body.light .footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light .about-box {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .about-stats {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 106, 0, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-rotate {
    position: relative;
    min-height: 2.5em;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-rotate {
        min-height: 3em;
    }

    .hero-dots {
        display: none !important;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-scroll {
        bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-rotate {
        min-height: 3.5em;
    }
}

.hero-rotate-text {
    position: absolute;
    top: 0;
    left: 50%;
    width: max-content;
    max-width: 100vw;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-rotate-text.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.4s, transform 0.3s, box-shadow 0.4s;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
    transform: scale(1.2);
}

body.light .hero-dot {
    background: rgba(0, 0, 0, 0.15);
}

body.light .hero-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

body.light .hero-dot.active {
    background: var(--accent);
}

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

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.5;
    transition: opacity 0.5s;
    cursor: pointer;
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-line {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-line.visible {
    opacity: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-glow {
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 60px rgba(255, 106, 0, 0.1);
    animation: glowPulse 2s ease-in-out infinite;
    position: relative;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.5), 0 0 80px rgba(255, 106, 0, 0.2);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 106, 0, 0.3), 0 0 60px rgba(255, 106, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 106, 0, 0.5), 0 0 80px rgba(255, 106, 0, 0.2); }
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 7rem 2rem;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: var(--dark);
    overflow: clip;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}


/* ===== PARALLAX LAYERS ===== */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 120%;
    top: -10%;
    left: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    overflow: hidden;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
}

.parallax-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 10%;
    left: -10%;
}

.parallax-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--pure-white);
    top: 60%;
    right: -5%;
}

.parallax-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 5%;
    left: 30%;
}

/* ===== SERVICES ICON GRID ===== */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.icon-card {
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s, background 0.4s;
    position: relative;
    overflow: hidden;
    background: var(--dark-2);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255, 106, 0, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.icon-card:hover::before {
    opacity: 1;
}

.icon-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
    background: linear-gradient(145deg, rgba(255, 106, 0, 0.06) 0%, rgba(255, 106, 0, 0.02) 60%);
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.25), 0 0 60px rgba(255, 106, 0, 0.1), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.icon-card svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    padding: 8px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 10px;
    transition: background 0.3s, transform 0.3s;
}

.icon-card:hover svg {
    background: rgba(255, 106, 0, 0.2);
    transform: scale(1.1);
}

.icon-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.icon-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

.icon-card .card-arrow {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s, transform 0.3s;
}

.icon-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

body.light .icon-card {
    border-color: rgba(0, 0, 0, 0.15);
    animation: cardGlowIdleLight 3s ease-in-out infinite;
}

@keyframes cardGlowIdleLight {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 106, 0, 0.03), 0 0 30px rgba(255, 106, 0, 0.015); }
    50% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.05), 0 0 40px rgba(255, 106, 0, 0.03); }
}

body.light .icon-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    animation: cardGlowLight 2s ease-in-out infinite;
}

@keyframes cardGlowLight {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.12), 0 0 45px rgba(255, 106, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.06); }
    50% { box-shadow: 0 0 25px rgba(255, 106, 0, 0.2), 0 0 60px rgba(255, 106, 0, 0.1), 0 8px 30px rgba(0, 0, 0, 0.06); }
}

@media (max-width: 968px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .icon-card {
        flex-direction: row;
        align-items: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        text-align: left;
    }
    .icon-card svg {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    .icon-card h3 {
        font-size: 1rem;
        margin: 0;
    }
    .icon-card p {
        display: none;
    }
    .icon-card .card-arrow {
        margin-left: auto;
        margin-top: 0;
        opacity: 0.4;
        transform: none;
    }
    .icon-card:hover .card-arrow {
        opacity: 1;
    }
}

/* ===== SERVICES CAROUSEL ===== */
.carousel-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card {
    min-width: 100%;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: border-color 0.3s;
}

.carousel-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
}

.carousel-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 106, 0, 0.7);
    line-height: 1;
}

.carousel-card svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.7;
}

.carousel-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.carousel-card p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    line-height: 1.7;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s, color 0.3s;
}

.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

body.light .carousel-card {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .carousel-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .carousel-dot {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .carousel-card { padding: 2rem 1.5rem; }
    .carousel-num { font-size: 3rem; }
    .carousel-card h3 { font-size: 1.4rem; }
}

/* ===== SERVICES LIST ===== */
.services-list {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light .services-list {
    border-top-color: rgba(0, 0, 0, 0.08);
}

a.service-row {
    text-decoration: none;
    color: inherit;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light .service-row {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.service-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.06) 0%, transparent 100%);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover::before {
    width: 100%;
}

.service-row:hover {
    padding-left: 2rem;
}

.service-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 28px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.service-row:hover .service-num {
    opacity: 1;
}

.service-row-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.service-row-icon svg {
    width: 100%;
    height: 100%;
}

.service-row:hover .service-row-icon {
    opacity: 1;
}

.service-name {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 1;
    transition: color 0.3s;
    position: relative;
}

.service-row:hover .service-name {
    color: var(--accent);
}

.service-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-name::after {
    width: 100%;
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--gray);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s, color 0.3s;
}

.service-row:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* Floating preview tooltip */
.service-preview {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

body.light .service-preview {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: #555;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-box {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.05) 0%, transparent 70%);
}

.about-logo {
    width: 350px;
    height: 350px;
    object-fit: contain;
}

/* ===== PORTFOLIO ===== */
.portfolio-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.portfolio-card {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.4s;
    display: flex;
    flex-direction: column;
}

.portfolio-card .video-wrapper,
.portfolio-card .portfolio-web-preview {
    flex: 1;
}

.portfolio-card .portfolio-info {
    flex-shrink: 0;
}

.portfolio-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
}

body.light .portfolio-card {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light .portfolio-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
}

.portfolio-card .portfolio-web-preview {
    border: none;
    border-radius: 12px;
}

.portfolio-card .video-wrapper {
    border: none;
}

.portfolio-info {
    text-align: center;
}

.portfolio-next {
    max-width: 100%;
}

@media (max-width: 968px) {
    .portfolio-duo {
        grid-template-columns: 1fr;
    }
}

.portfolio-info {
    padding: 1.25rem 0;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 106, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Portfolio CTA */
.portfolio-next {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.4s, background 0.4s;
}

.portfolio-next {
    animation: glowPulse 2s ease-in-out infinite;
}

.portfolio-next:hover {
    border-color: var(--accent);
    background: rgba(255, 106, 0, 0.03);
}

.portfolio-next-icon {
    flex-shrink: 0;
}

.portfolio-cta-plus {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    position: relative;
    color: var(--gray);
    transition: border-color 0.4s, color 0.4s, transform 0.4s;
}

.portfolio-cta-plus::before,
.portfolio-cta-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.portfolio-cta-plus::before {
    width: 20px;
    height: 1.5px;
}

.portfolio-cta-plus::after {
    width: 1.5px;
    height: 20px;
}

.portfolio-next:hover .portfolio-cta-plus {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.portfolio-next-text {
    flex: 1;
}

.portfolio-next-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.portfolio-next-text p {
    font-size: 0.85rem;
    color: var(--gray);
}

.portfolio-next-arrow {
    width: 24px;
    height: 24px;
    color: var(--gray);
    flex-shrink: 0;
    transition: color 0.4s, transform 0.4s;
}

.portfolio-next:hover .portfolio-next-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

body.light .portfolio-next {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .portfolio-cta-plus {
    border-color: rgba(0, 0, 0, 0.12);
}

/* Web preview card */
.portfolio-web-preview {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.4s;
}

.portfolio-web-preview:hover {
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.08);
}

.web-preview-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #0d1117;
    border-bottom: 1px solid rgba(129, 140, 248, 0.1);
}

.web-preview-dots {
    display: flex;
    gap: 5px;
}

.web-preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.web-preview-dots span:first-child { background: #ff5f57; }
.web-preview-dots span:nth-child(2) { background: #febc2e; }
.web-preview-dots span:nth-child(3) { background: #28c840; }

.web-preview-url {
    font-size: 0.75rem;
    color: #666677;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 1rem;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    font-family: 'Fira Code', monospace;
}

.web-preview-content {
    padding: 3rem 2.5rem;
    text-align: center;
    background: #0a0a0f;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.web-preview-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
}

.web-preview-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f0f0f5;
}

.web-preview-content p {
    font-size: 0.85rem;
    color: #888899;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.web-preview-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.web-preview-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: #818cf8;
}

body.light .portfolio-web-preview {
    border-color: rgba(129, 140, 248, 0.15);
}

body.light .portfolio-web-preview:hover {
    border-color: rgba(129, 140, 248, 0.4);
}

/* Video embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s;
    z-index: 10;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.portfolio-info {
    padding: 1.25rem 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== PARTNER BANNER ===== */
.partner-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.04) 0%, transparent 50%, rgba(255, 106, 0, 0.02) 100%);
    border: 1px solid rgba(255, 106, 0, 0.12);
    border-radius: 20px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    animation: bannerGlow 3s ease-in-out infinite;
}

.partner-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 106, 0, 0.06), 0 0 60px rgba(255, 106, 0, 0.03); }
    50% { box-shadow: 0 0 30px rgba(255, 106, 0, 0.1), 0 0 80px rgba(255, 106, 0, 0.05); }
}

body.light .partner-banner {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.03) 0%, transparent 50%, rgba(255, 106, 0, 0.015) 100%);
    border-color: rgba(255, 106, 0, 0.1);
}

body.light .partner-banner::before {
    background: radial-gradient(circle, rgba(255, 106, 0, 0.04) 0%, transparent 70%);
}

.partner-banner-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.partner-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 550px;
}

.partner-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.partner-icon-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.partner-icon-item:hover {
    border-color: rgba(255, 106, 0, 0.3);
}

.partner-icon-item svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.partner-icon-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.02em;
}

/* Partner Flip Cards */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.flip-card {
    perspective: 800px;
    height: 180px;
    cursor: pointer;
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: none;
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.flip-front {
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
    transition: border-color 0.3s;
}

.flip-card:hover .flip-front {
    border-color: rgba(255, 106, 0, 0.3);
}

.flip-front svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
    opacity: 0.7;
}

.flip-front h3 {
    font-size: 1rem;
    font-weight: 600;
}

.flip-back {
    background: var(--dark);
    border: 1px solid rgba(255, 106, 0, 0.2);
    transform: rotateY(180deg);
}

.flip-back p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
}

body.light .flip-front {
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .flip-grid {
        display: none;
    }

    .flip-card {
        height: 120px;
    }

    .flip-front, .flip-back {
        padding: 1rem;
        border-radius: 10px;
    }

    .flip-front svg {
        width: 24px;
        height: 24px;
    }

    .flip-front h3 {
        font-size: 0.8rem;
    }

    .flip-back p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .flip-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .flip-card {
        height: 100px;
    }
}

/* Partner Structure Diagram */
.partner-diagram {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.diagram-nodes {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.diagram-center-row {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.diagram-node {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.diagram-node span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
}

.diagram-satellite:hover {
    border-color: rgba(255, 106, 0, 0.4);
    transform: scale(1.05);
}

.diagram-satellite:hover span {
    color: var(--accent);
}

.diagram-hub {
    border-color: var(--accent);
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 106, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.1);
}

.diagram-hub span {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
}

.diagram-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.diagram-line-h {
    width: 30px;
    height: 1px;
    background: rgba(255, 106, 0, 0.3);
}

.diagram-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    opacity: 0.5;
    padding: 0.5rem 0;
}

.diagram-label-top {
    color: var(--white);
    opacity: 0.3;
}

.diagram-label-bottom {
    color: var(--accent);
    opacity: 0.5;
}

body.light .diagram-node {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .diagram-hub {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .diagram-center-row { flex-wrap: wrap; gap: 0.5rem; }
    .diagram-line-h { display: none; }
    .diagram-nodes { flex-wrap: wrap; }
}

.partner-icon-item {
    cursor: pointer;
}

.partner-icon-item.active {
    border-color: var(--accent);
    background: rgba(255, 106, 0, 0.05);
}

/* Expanded detail panel */
.partner-detail {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.partner-detail.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.5rem;
}

.partner-detail-content {
    background: var(--dark);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    position: relative;
}

.partner-detail-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
    margin: 0;
    padding-right: 2rem;
}

.partner-detail-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.partner-detail-close:hover {
    color: var(--accent);
}

body.light .partner-detail-content {
    border-color: rgba(255, 106, 0, 0.15);
}

/* Hide grid items when detail is open */
.partner-icon-grid.detail-open .partner-icon-item:not(.active) {
    opacity: 0.3;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}

@media (max-width: 968px) {
    .partner-banner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-value {
    font-size: 1rem;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
}

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

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

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.form-group select option {
    background: var(--dark);
}

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

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10000;
    transform: translateY(100%);
    animation: slideUp 0.5s ease forwards 1s;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.cookie-banner.hidden {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    to { transform: translateY(100%); }
}

.cookie-banner p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s, transform 0.2s;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-accept:hover {
    background: var(--accent-hover);
}

.cookie-decline {
    background: transparent;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-decline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

body.light .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light .cookie-decline {
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

body.light .cookie-decline:hover {
    border-color: rgba(0, 0, 0, 0.2);
    color: #111;
}

/* YouTube placeholder */
.yt-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--dark);
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 12px;
}

.yt-placeholder:hover {
    background: rgba(255, 106, 0, 0.05);
}

.yt-placeholder svg {
    color: var(--accent);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.yt-placeholder:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.yt-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
}

.yt-placeholder span {
    font-size: 0.7rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
}

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

/* Base animation state */
.anim {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Fade up */
.anim-fade-up {
    transform: translateY(50px);
}

/* Slide from right */
.anim-slide-right {
    transform: translateX(-60px);
}

/* Slide from left */
.anim-slide-left {
    transform: translateX(60px);
}

/* Scale in */
.anim-scale-in {
    transform: scale(0.9);
}

/* Visible state — all animations resolve to this */
.anim-visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Animated underline */
.title-line {
    position: relative;
    display: inline-block;
}

.title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-line.anim-visible::after {
    width: 60px;
}

/* ===== PAGE LOAD ANIMATION ===== */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-page {
    animation: pageIn 0.6s ease-out;
}

.legal-page {
    animation: pageIn 0.6s ease-out;
}

/* ===== SCROLL REVEAL FOR SUBPAGES ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger delays for cards */
.service-what-item { transition-delay: 0s; }
.service-what-item:nth-child(2) { transition-delay: 0.1s; }
.service-what-item:nth-child(3) { transition-delay: 0.15s; }
.service-what-item:nth-child(4) { transition-delay: 0.2s; }

.pricing-card { transition-delay: 0s; }
.pricing-card:nth-child(2) { transition-delay: 0.1s; }

.no-line::after {
    display: none !important;
}

/* Underline on service card titles */
.service-card h3 {
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover h3::after {
    width: 100%;
}

/* Underline on portfolio title */
.portfolio-info h3 {
    position: relative;
    display: inline-block;
}

.portfolio-info h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* Underline on hero tag */
.hero-tag {
    position: relative;
    display: inline-block;
}

.hero-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    animation: lineGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes lineGrow {
    to { width: 40px; }
}

/* Service card 3D tilt transition */
.service-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero parallax smoothness */
.hero-content {
    will-change: transform, opacity;
}

/* Portfolio glow effect */
.portfolio-placeholder {
    transition: border-color 0.4s;
}

/* Magnetic button smoothness */
.btn-primary {
    transition: transform 0.2s ease-out, background 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .service-name {
        font-size: 1.3rem;
    }

    .service-preview {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    .about-visual {
        position: absolute;
        top: -0.5rem;
        right: 0;
    }

    .about-box {
        width: 50px;
        height: 50px;
        border: 1px solid rgba(255, 106, 0, 0.15);
    }

    .about-logo {
        width: 30px;
        height: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        overflow-y: auto;
        padding: 4rem 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta {
        margin-top: 1rem;
    }

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

    /* Portfolio LetsClarify kleiner */
    .web-preview-content {
        padding: 1.5rem 1.25rem;
    }

    .web-preview-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .web-preview-content h3 {
        font-size: 1.1rem;
    }

    .web-preview-content p {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .web-preview-tags span {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    .nav-buttons {
        display: none;
        position: fixed;
        bottom: 4rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        gap: 1.5rem;
    }

    .nav-links.open ~ .nav-buttons {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: none;
        border-radius: 0;
        border: none;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        z-index: 1002;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .nav-drop-item {
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }

    .nav-drop-item span {
        font-size: 1rem;
    }

    .nav-drop-item svg {
        width: 24px;
        height: 24px;
    }

    .nav-drop-item.touch-hover {
        background: rgba(255, 106, 0, 0.1);
    }

    .nav-drop-cta {
        margin-top: 1rem;
    }

    .nav-drop-cta.touch-hover {
        border-color: rgba(255, 106, 0, 0.4);
        background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.04));
    }

    body.light .nav-dropdown-menu {
        background: #ffffff;
    }

    body.light .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .about-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== NEWSLETTER / INSIDER-RADAR ===== */
.newsletter-section {
    background: #060606;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 106, 0, 0.12);
    border-bottom: 1px solid rgba(255, 106, 0, 0.12);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.newsletter-radar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.08);
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
}

.radar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 2.5s ease-out infinite;
    opacity: 0;
}

.radar-pulse:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes radarPulse {
    0% { width: 56px; height: 56px; opacity: 0.4; }
    100% { width: 120px; height: 120px; opacity: 0; }
}

.newsletter-more-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
}

.newsletter-more-btn svg {
    transition: transform 0.3s;
}

.newsletter-more-btn:hover svg {
    transform: translateX(4px);
}

.newsletter-free-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;
    color: #22c55e;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: 0.25rem;
}

.newsletter-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.newsletter-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.newsletter-desc {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Teaser Cards */
.newsletter-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.newsletter-teaser-card {
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s;
}

.newsletter-teaser-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateY(-4px);
}

.teaser-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 106, 0, 0.08);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.newsletter-teaser-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.newsletter-teaser-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* CTA area */
.newsletter-cta {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-cta-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input-group input:focus {
    border-color: var(--accent);
}

.newsletter-input-group input::placeholder {
    color: var(--gray);
}

.newsletter-input-group button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.newsletter-btn-arrow {
    transition: transform 0.3s;
}

.newsletter-input-group button:hover .newsletter-btn-arrow {
    transform: translateX(4px);
}

.newsletter-privacy {
    margin-top: 1rem;
    text-align: left;
}

.newsletter-privacy-center {
    text-align: center;
    justify-content: center;
}

.newsletter-privacy-center label {
    justify-content: center;
}

.newsletter-privacy label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
}

.newsletter-privacy input[type="checkbox"] {
    accent-color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.newsletter-privacy a {
    color: var(--accent);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

.newsletter-opt-in-hint {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--gray);
    opacity: 0.7;
    text-align: center;
}

@media (max-width: 900px) {
    .newsletter-teasers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .newsletter-teasers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .newsletter-teaser-card {
        padding: 1.25rem;
    }

    .newsletter-header {
        margin-bottom: 2rem;
    }

    .newsletter-teasers {
        margin-bottom: 2rem;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group button {
        justify-content: center;
    }
}
