/* ZYD Digital j.d.o.o. - Visual Design System and Stylesheet */

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --bg-darker: #dae2ed;
    --bg-dark: #cdd7e5;
    --text-light: #0f172a;
    --text-muted: #475569;
    --card-bg: rgba(248, 250, 252, 0.88);
    --card-border: rgba(148, 163, 184, 0.35);
    --card-border-hover: rgba(138, 63, 252, 0.55);
    --glass-bg: rgba(218, 226, 236, 0.88);
    --glass-border: rgba(148, 163, 184, 0.3);
    --primary-cyan: #00f2fe;
    --primary-violet: #8a3ffc;
    --primary-emerald: #00ff87;
    --primary-pink: #ff007f;
    --transition-speed: 0.3s;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
}

/* Light Theme Overrides */
body.dark-theme {
    --bg-dark: #060713;
    --bg-darker: #020308;
    --text-light: #f5f6fa;
    --text-muted: #8e95a5;
    --card-bg: rgba(13, 17, 34, 0.65);
    --card-border: rgba(0, 242, 254, 0.15);
    --card-border-hover: rgba(138, 63, 252, 0.5);
    --glass-bg: rgba(6, 7, 19, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, var(--bg-dark) 0%, var(--bg-darker) 100%);
    pointer-events: all;
    transition: background 0.4s ease;
}

/* --- Navigation Header --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease, background-color 0.4s ease;
}

.glass-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--glass-bg);
}

body.dark-theme .glass-header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(4, 5, 12, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right-side {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Text Logo Styles */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.zyd-nav-shield {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
}

.logo-area:hover .zyd-nav-shield {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 16px rgba(0, 255, 135, 0.8));
}

.zyd-logo {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-violet) 50%, var(--primary-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.zyd-logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 255, 135, 0.8)) hue-rotate(45deg);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-violet));
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    transition: color var(--transition-speed) ease, text-shadow 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.lang-btn.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

body:not(.dark-theme) .lang-btn.active {
    color: var(--primary-violet);
    text-shadow: 0 0 8px rgba(138, 63, 252, 0.4);
}

.lang-btn:hover {
    color: var(--text-light);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

body:not(.dark-theme) .lang-divider {
    color: rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

body:not(.dark-theme) .theme-toggle-btn {
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    color: var(--text-light);
}

.theme-toggle-btn:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    color: var(--primary-cyan);
}

body:not(.dark-theme) .theme-toggle-btn:hover {
    border-color: var(--primary-violet);
    box-shadow: 0 0 10px rgba(138, 63, 252, 0.15);
    color: var(--primary-violet);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Sun/Moon Toggle Visibility */
body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body:not(.dark-theme) .sun-icon { display: none; }
body:not(.dark-theme) .moon-icon { display: block; }

/* Buttons */
.btn-primary-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 50px;
    min-width: 125px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-violet) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(138, 63, 252, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary-neon:hover {
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.7);
    transform: translateY(-2px) scale(1.05);
}

.btn-primary-neon::after {
    display: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2.5px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Drawer Nav */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(4, 5, 12, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99;
    border-left: 1px solid var(--glass-border);
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

body:not(.dark-theme) .mobile-drawer {
    background: rgba(240, 243, 248, 0.98);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 40px;
}

.drawer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.drawer-link:hover {
    color: var(--primary-cyan);
}

.drawer-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 10px 0;
    padding: 15px 30px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    width: 80%;
    justify-content: center;
}

.btn-drawer-neon {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-violet) 100%);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(138, 63, 252, 0.5);
    text-align: center;
    width: 80%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.hero-logo-container {
    margin-bottom: 25px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-shield-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.zyd-hero-shield {
    width: clamp(120px, 18vw, 175px);
    height: clamp(120px, 18vw, 175px);
    filter: drop-shadow(0 0 35px rgba(0, 242, 254, 0.7));
    animation: floatShield 4s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo-container:hover .zyd-hero-shield {
    transform: scale(1.12) rotate(5deg);
    filter: drop-shadow(0 0 45px rgba(138, 63, 252, 0.9));
}

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

.zyd-logo-large {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(3.5rem, 15vw, 7.5rem);
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-violet) 35%, var(--primary-pink) 70%, var(--primary-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.45));
    display: inline-block;
    transition: transform 0.1s ease;
    cursor: pointer;
    user-select: none;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

body:not(.dark-theme) .hero-subtitle {
    color: var(--primary-violet);
    text-shadow: 0 0 10px rgba(138, 63, 252, 0.3);
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 45px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Section Container & Grid */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Navbar Action Buttons Group (WhatsApp & Pošalji Upit) */
.nav-action-group {
    display: flex;
    align-items: center;
    gap: 7px; /* ~2mm distance between buttons */
}

.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: #25d366;
    color: #ffffff;
    min-width: 125px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-whatsapp-btn:hover {
    background: #20ba5a;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
    transform: translateY(-2px) scale(1.05);
}

.nav-whatsapp-btn .wa-nav-icon {
    fill: currentColor;
    flex-shrink: 0;
}

/* Hero Button Variants - Uniform Heights & Sizes */
.btn-glow-cyan {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #0072ff 100%);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-glow-cyan:hover {
    box-shadow: 0 0 35px var(--primary-cyan);
    transform: translateY(-4px) scale(1.02);
}

.btn-outline-violet {
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--primary-violet);
    box-shadow: 0 0 10px rgba(138, 63, 252, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline-violet:hover {
    background: rgba(138, 63, 252, 0.15);
    box-shadow: 0 0 25px var(--primary-violet);
    transform: translateY(-4px);
}

.btn-outline-cyan {
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline-cyan:hover {
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
    color: var(--primary-cyan);
    transform: translateY(-4px) scale(1.02);
}

.btn-outline-cyan .phone-btn-icon {
    color: var(--primary-cyan);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-outline-cyan:hover .phone-btn-icon {
    transform: scale(1.15) rotate(-10deg);
}

body:not(.dark-theme) .btn-outline-cyan {
    border-color: #0072ff;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.15);
}

body:not(.dark-theme) .btn-outline-cyan:hover {
    background: rgba(0, 114, 255, 0.1);
    color: #0072ff;
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-down-indicator .mouse {
    width: 25px;
    height: 42px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.scroll-down-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Section Layouts --- */
section {
    padding: 120px 20px;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.accent-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

body:not(.dark-theme) .accent-title {
    color: var(--primary-violet);
    text-shadow: 0 0 8px rgba(138, 63, 252, 0.25);
}

.section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-subtitle-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.header-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-violet));
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* --- Services Styles --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0 35px 35px 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 40px rgba(138, 63, 252, 0.25);
}

body:not(.dark-theme) .service-card:hover {
    box-shadow: 0 15px 40px rgba(138, 63, 252, 0.12);
}

.service-card-banner {
    width: calc(100% + 70px);
    margin-left: -35px;
    margin-right: -35px;
    margin-top: 0;
    margin-bottom: 25px;
    height: 195px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.07);
}

.service-card-banner .card-top-badge {
    position: absolute;
    top: 14px;
    left: 18px;
    margin-bottom: 0;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f8fafc;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 242, 254, 0.45);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.service-card-banner .consulting-badge {
    border-color: rgba(0, 255, 135, 0.45);
    color: #f8fafc;
}

body:not(.dark-theme) .service-card-banner {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

body:not(.dark-theme) .service-card-banner .card-top-badge {
    background: rgba(255, 255, 255, 0.94);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .service-card-banner .consulting-badge {
    color: #047857;
    border: 1px solid rgba(4, 120, 87, 0.35);
}

.service-card .service-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.35;
    min-height: 138px;
    display: flex;
    align-items: flex-start;
}

.service-card .service-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 190px;
}

.card-top-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.consulting-badge {
    color: var(--primary-emerald);
    background: rgba(0, 255, 135, 0.08);
    border-color: rgba(0, 255, 135, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.15);
}

body:not(.dark-theme) .card-top-badge {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.08);
    border: 1px solid rgba(3, 105, 161, 0.25);
    box-shadow: none;
    font-weight: 700;
}

body:not(.dark-theme) .consulting-badge {
    color: #047857;
    background: rgba(4, 120, 87, 0.08);
    border: 1px solid rgba(4, 120, 87, 0.25);
    box-shadow: none;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.service-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

body:not(.dark-theme) .service-tag {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #1e293b;
    font-weight: 600;
}

.service-card:hover .service-tag {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

body:not(.dark-theme) .service-card:hover .service-tag {
    border-color: rgba(138, 63, 252, 0.3);
    box-shadow: 0 0 8px rgba(138, 63, 252, 0.1);
}

.service-card.featured-service {
    background: radial-gradient(circle at 0% 0%, rgba(0, 242, 254, 0.08) 0%, var(--card-bg) 70%);
    border-color: rgba(0, 242, 254, 0.35);
}

.service-card.featured-consulting {
    background: radial-gradient(circle at 100% 0%, rgba(0, 255, 135, 0.08) 0%, var(--card-bg) 70%);
    border-color: rgba(0, 255, 135, 0.35);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, rgba(0, 242, 254, 0.12) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* --- Portfolio Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, border-color 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 45px rgba(0, 242, 254, 0.2);
}

body:not(.dark-theme) .portfolio-card:hover {
    box-shadow: 0 20px 45px rgba(138, 63, 252, 0.15);
}

.card-image-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark-theme) .card-image-wrapper {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 19, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
}

body:not(.dark-theme) .project-overlay {
    background: rgba(240, 243, 248, 0.7);
}

.view-project-btn {
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body:not(.dark-theme) .view-project-btn {
    background: var(--bg-darker);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.portfolio-card:hover .view-project-btn {
    transform: translateY(0);
}

.portfolio-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    min-height: 68px;
    align-items: flex-start;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.tag-saas { background: rgba(0, 242, 254, 0.15); color: var(--primary-cyan); }
body:not(.dark-theme) .tag-saas { background: rgba(0, 242, 254, 0.1); color: #0087a3; }
.tag-fleet { background: rgba(138, 63, 252, 0.15); color: #b98fff; }
body:not(.dark-theme) .tag-fleet { background: rgba(138, 63, 252, 0.08); color: var(--primary-violet); }
.tag-game { background: rgba(0, 255, 135, 0.15); color: var(--primary-emerald); }
body:not(.dark-theme) .tag-game { background: rgba(0, 255, 135, 0.1); color: #00994d; }
.tag-sports { background: rgba(255, 0, 127, 0.15); color: var(--primary-pink); }
body:not(.dark-theme) .tag-sports { background: rgba(255, 0, 127, 0.08); color: #c4005c; }
.tag-fit { background: rgba(255, 170, 0, 0.15); color: #ffaa00; }
body:not(.dark-theme) .tag-fit { background: rgba(255, 170, 0, 0.1); color: #cc7a00; }
.tag-invoice { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
body:not(.dark-theme) .tag-invoice { background: rgba(245, 158, 11, 0.12); color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.tag-tech { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
body:not(.dark-theme) .tag-tech { background: rgba(0,0,0,0.04); color: var(--text-light); border: 1px solid rgba(0,0,0,0.08); }

.portfolio-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    min-height: 48px;
    display: flex;
    align-items: flex-start;
}

.portfolio-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 110px;
}

/* --- About Section --- */
.about-section {
    background: radial-gradient(circle at 10% 30%, rgba(138, 63, 252, 0.08) 0%, transparent 60%);
}

body:not(.dark-theme) .about-section {
    background: radial-gradient(circle at 10% 30%, rgba(138, 63, 252, 0.04) 0%, transparent 60%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.founder-name {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.founder-name .mag {
    font-weight: 300;
    color: var(--primary-cyan);
}

body:not(.dark-theme) .founder-name .mag {
    color: var(--primary-violet);
}

.founder-role {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.founder-bio {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0.95;
}

/* Timeline */
.experience-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease;
}

body:not(.dark-theme) .experience-timeline {
    border-left-color: rgba(0, 0, 0, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -130px;
    top: 2px;
    width: 90px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-align: right;
    transition: color 0.4s ease;
}

body:not(.dark-theme) .timeline-badge {
    color: var(--primary-violet);
}

.timeline-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-info .location {
    font-size: 0.9rem;
    color: var(--primary-violet);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-info .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-darker);
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: all 0.4s ease;
}

body:not(.dark-theme) .timeline-item::after {
    background-color: #f0f3f8;
    border-color: var(--primary-violet);
    box-shadow: 0 0 10px rgba(138, 63, 252, 0.3);
}

/* Stats Card */
.about-stats-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-inner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138,63,252,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stats-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    text-align: center;
}

.stat-number-box {
    text-align: center;
    margin-bottom: 40px;
}

.stat-num {
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4));
    font-family: var(--font-mono);
}

body:not(.dark-theme) .stat-num {
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(138, 63, 252, 0.25));
}

.stat-lbl {
    display: block;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.stat-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-feature {
    display: flex;
    gap: 15px;
}

.stat-feature .icon {
    font-size: 1.3rem;
    color: var(--primary-emerald);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}

body:not(.dark-theme) .stat-feature .icon {
    color: #00aa55;
    text-shadow: none;
}

.stat-feature strong {
    font-size: 1rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.stat-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Interactive Inquiry Section (Upit) --- */
.inquiry-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: stretch;
}

.glowing-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(4, 5, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

body:not(.dark-theme) .form-group input[type="text"],
body:not(.dark-theme) .form-group input[type="email"],
body:not(.dark-theme) .form-group select,
body:not(.dark-theme) .form-group textarea {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    background: rgba(4, 5, 12, 0.85);
}

body:not(.dark-theme) .form-group input[type="text"]:focus,
body:not(.dark-theme) .form-group input[type="email"]:focus,
body:not(.dark-theme) .form-group select:focus,
body:not(.dark-theme) .form-group textarea:focus {
    border-color: var(--primary-violet);
    box-shadow: 0 0 15px rgba(138, 63, 252, 0.25);
    background: #fff;
}

.form-group select option {
    background-color: var(--bg-darker);
    color: var(--text-light);
}

/* Range input customization */
.range-container {
    padding: 10px 0;
}

.form-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    outline: none;
    transition: background 0.4s ease;
}

body:not(.dark-theme) .form-group input[type="range"] {
    background: rgba(0, 0, 0, 0.08);
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: transform 0.1s ease;
}

body:not(.dark-theme) .form-group input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 0 10px rgba(138, 63, 252, 0.3);
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 10px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
    transition: color 0.3s ease;
}

.custom-checkbox:hover {
    color: var(--text-light);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .checkmark {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-cyan);
}

body:not(.dark-theme) .custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-violet);
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    border-color: transparent;
    box-shadow: 0 0 8px var(--primary-cyan);
}

body:not(.dark-theme) .custom-checkbox input:checked ~ .checkmark {
    box-shadow: 0 0 8px rgba(138, 63, 252, 0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit button neon */
.btn-submit-neon {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .btn-submit-neon {
    border-color: var(--primary-violet);
}

.btn-submit-neon span {
    position: relative;
    z-index: 2;
}

.btn-glow-layer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

body:not(.dark-theme) .btn-glow-layer {
    background: linear-gradient(90deg, transparent, rgba(138, 63, 252, 0.2), transparent);
}

.btn-submit-neon:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
    background: var(--primary-cyan);
    color: #000;
}

body:not(.dark-theme) .btn-submit-neon:hover {
    box-shadow: 0 0 25px rgba(138, 63, 252, 0.4);
    background: var(--primary-violet);
    color: #fff;
}

.btn-submit-neon:hover .btn-glow-layer {
    left: 100%;
}

/* Sidebar calculator */
.calculator-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 45px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.calc-inner-glow {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.calc-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
    text-align: center;
}

.calc-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: border-bottom-color 0.4s ease;
}

body:not(.dark-theme) .calc-stat {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.calc-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.calc-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.calc-price-box {
    background: rgba(4, 5, 12, 0.5);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    transition: all 0.4s ease;
}

body:not(.dark-theme) .calc-price-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(138, 63, 252, 0.2);
}

.calc-price-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.calc-price {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transition: color 0.4s ease;
}

body:not(.dark-theme) .calc-price {
    color: var(--primary-violet);
    text-shadow: 0 0 10px rgba(138, 63, 252, 0.2);
}

.calc-footnote {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.tech-stack-indicator {
    margin-top: 20px;
}

.tech-stack-indicator span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-icons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.4s ease;
}

body:not(.dark-theme) .tech-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Success Modal Overlay and custom animation styling */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 12, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}

body:not(.dark-theme) .success-overlay {
    background: rgba(240, 243, 248, 0.98);
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 255, 135, 0.1);
    border: 2px solid var(--primary-emerald);
    color: var(--primary-emerald);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
}

body:not(.dark-theme) .success-icon {
    background: rgba(0, 170, 85, 0.06);
    border-color: #00aa55;
    color: #00aa55;
    box-shadow: none;
}

.success-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-overlay p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
}

body:not(.dark-theme) .contact-card:hover {
    box-shadow: 0 15px 35px rgba(138, 63, 252, 0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
    color: var(--primary-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.4s ease;
}

body:not(.dark-theme) .contact-icon {
    color: var(--primary-violet);
}

.contact-icon svg {
    width: 36px;
    height: 36px;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-value a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

body:not(.dark-theme) .contact-value a:hover {
    color: var(--primary-violet);
}

.contact-value-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-value-sub a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value-sub a:hover {
    color: var(--primary-violet);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 50px 20px;
    background-color: var(--bg-darker);
    position: relative;
    z-index: 10;
    transition: background-color 0.4s ease, border-top-color 0.4s ease;
}

body:not(.dark-theme) footer {
    background-color: #cdd7e5;
    border-top-color: rgba(148, 163, 184, 0.4);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zyd-footer-shield {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4));
    transition: transform 0.3s ease;
}

.footer-logo-wrapper:hover .zyd-footer-shield {
    transform: scale(1.1) rotate(-5deg);
}

.chatbot-btn-shield {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.chatbot-avatar-shield {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.zyd-logo-small {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

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

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

body:not(.dark-theme) .footer-links a:hover {
    color: var(--primary-violet);
}

/* --- Dynamic Modals (Project Portals) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 5, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body:not(.dark-theme) .modal-backdrop {
    background-color: rgba(240, 243, 248, 0.75);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 85vh;
    background: rgba(13, 17, 34, 0.92);
    border: 1px solid var(--card-border-hover);
    border-radius: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 1001;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(138, 63, 252, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, border-color 0.4s ease;
}

.project-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-modal-btn span {
    word-break: break-all;
    overflow-wrap: anywhere;
}

body:not(.dark-theme) .modal-wrapper {
    background: rgba(240, 243, 248, 0.96);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(138, 63, 252, 0.15);
}

.modal.open .modal-wrapper {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

/* Modal Internal Layout */
.modal-body-content {
    padding: 50px;
}

.modal-header-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.modal-header-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.modal-tag-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-img-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark-theme) .modal-img-container {
    border-color: rgba(0, 0, 0, 0.08);
}

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

.modal-details-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

.modal-rich-text h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 25px 0 12px;
    color: var(--primary-cyan);
    transition: color 0.4s ease;
}

body:not(.dark-theme) .modal-rich-text h3 {
    color: var(--primary-violet);
}

.modal-rich-text h3:first-child {
    margin-top: 0;
}

.modal-rich-text p {
    color: var(--text-light);
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-rich-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-rich-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.modal-rich-text li::before {
    content: '\2022';
    color: var(--primary-cyan);
    font-size: 1.5rem;
    position: absolute;
    left: 8px;
    top: -4px;
}

body:not(.dark-theme) .modal-rich-text li::before {
    color: var(--primary-violet);
}

.modal-sidebar-card {
    background: rgba(4, 5, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

body:not(.dark-theme) .modal-sidebar-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

.modal-sidebar-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 10px;
    transition: border-color 0.4s ease;
}

body:not(.dark-theme) .modal-sidebar-card h4 {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.modal-info-item {
    margin-bottom: 15px;
}

.modal-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.modal-info-item span {
    font-size: 1rem;
    font-weight: 600;
}

/* Formula display styling */
.math-formula {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--primary-cyan);
    padding: 15px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 15px 0;
    overflow-x: auto;
    color: var(--primary-cyan);
    transition: all 0.4s ease;
}

body:not(.dark-theme) .math-formula {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: var(--primary-violet);
    color: var(--primary-violet);
}

/* --- Reveal & Animation classes --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 22px; }
    100% { opacity: 1; top: 8px; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .zyd-logo-large { font-size: 6rem; }
    .hero-tagline { font-size: 1.5rem; }
    .about-grid, .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-stats-card { max-width: 600px; margin: 0 auto; width: 100%; }
    .timeline-badge {
        position: relative;
        left: 0;
        text-align: left;
        display: block;
        margin-bottom: 5px;
    }
    .experience-timeline {
        padding-left: 20px;
    }
    .timeline-item::after {
        left: -27px;
    }
}

/* --- PC / Desktop 2-Row Layout: 3 Projects in Row 1, 3 Projects in Row 2 --- */
@media (min-width: 992px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    .portfolio-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .nav-action-group { display: none !important; }
    .header-container { padding: 10px 14px; gap: 8px; width: 100%; justify-content: space-between; }
    .header-right-side { display: flex !important; gap: 10px; align-items: center; margin-left: auto; }
    .header-controls { display: flex !important; gap: 8px; align-items: center; margin-left: auto; }
    .mobile-nav-toggle { display: flex !important; margin-left: 4px; }
    .logo-area { gap: 8px; flex-shrink: 0; }
    .zyd-nav-shield { width: 24px; height: 24px; }
    .zyd-logo { font-size: 1.12rem; letter-spacing: 1.2px; }

    /* Prevent glass header from covering Hero Page on mobile */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 50px;
        min-height: auto;
    }
    .scroll-down-indicator { display: none !important; }
    .hero-logo-container { margin-bottom: 16px; }
    .zyd-hero-shield { width: 90px; height: 90px; }
    .zyd-logo-large { font-size: 3.2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.25em; margin-bottom: 14px; }
    .hero-tagline { font-size: 1.1rem; line-height: 1.5; margin-bottom: 25px; max-width: 100%; }
    .hero-actions { gap: 10px; flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    .hero-actions .btn-glow-cyan,
    .hero-actions .btn-outline-cyan,
    .hero-actions .btn-outline-violet {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .section-title { font-size: 2rem; }

    /* --- Mobile Condensed Services Cards (50% compact height for fast scrolling) --- */
    .services-grid {
        gap: 16px;
    }
    .service-card {
        padding: 0 16px 16px 16px;
        border-radius: 16px;
    }
    .service-card-banner {
        height: 110px;
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: 12px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }
    .service-card-banner .card-top-badge {
        top: 10px;
        left: 12px;
        font-size: 0.65rem;
        padding: 4px 10px;
        letter-spacing: 0.8px;
    }
    .service-card .service-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        min-height: auto;
        line-height: 1.3;
    }
    .service-card .service-desc {
        font-size: 0.84rem;
        line-height: 1.45;
        min-height: auto;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .service-tags {
        gap: 5px;
        margin-top: 2px;
    }
    .service-tag {
        font-size: 0.68rem;
        padding: 3px 8px;
        border-radius: 5px;
    }

    /* --- Mobile Condensed Portfolio Cards (50% compact height for fast scrolling) --- */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .portfolio-card {
        border-radius: 18px;
    }
    .card-image-wrapper {
        height: 130px;
    }
    .portfolio-info {
        padding: 14px 16px;
    }
    .project-meta {
        min-height: auto;
        margin-bottom: 8px;
        gap: 6px;
    }
    .tag {
        font-size: 0.68rem;
        padding: 3px 8px;
        border-radius: 5px;
    }
    .portfolio-card-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
        min-height: auto;
    }
    .portfolio-card-desc {
        font-size: 0.84rem;
        line-height: 1.4;
        min-height: auto;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-wrapper {
        width: 94% !important;
        max-height: 90vh !important;
        border-radius: 18px !important;
        overflow-x: hidden !important;
    }
    .modal-body-content {
        padding: 20px 14px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .modal-header-section { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
    .modal-details-grid { grid-template-columns: 1fr; gap: 20px; }
    .modal-header-text h2 {
        font-size: 1.45rem !important;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .project-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        text-align: center;
    }
    .modal-rich-text p,
    .modal-rich-text li,
    .modal-info-item span {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .checkbox-grid { grid-template-columns: 1fr; }

    /* Mobile AI Chatbot Toggle Button & Window Positioning */
    .chatbot-toggle-btn {
        width: 64px !important;
        height: 64px !important;
        filter: drop-shadow(0 8px 22px rgba(0, 242, 254, 0.65));
    }
    .zyd-chatbot {
        bottom: 6px !important;
        right: 6px !important;
    }
    .chatbot-btn-shield {
        width: 40px !important;
        height: 40px !important;
    }
    .chatbot-toggle-btn .close-icon {
        width: 34px !important;
        height: 34px !important;
        padding: 4px !important;
    }
    .chat-badge-pulse {
        width: 12px;
        height: 12px;
        top: 2px;
        right: 2px;
    }
    .chatbot-window {
        position: fixed !important;
        bottom: 76px !important;
        right: 6px !important;
        left: 6px !important;
        width: auto !important;
        max-width: calc(100vw - 12px) !important;
        height: calc(100dvh - 95px) !important;
        max-height: 520px !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
        transform-origin: bottom right;
    }
}

/* --- Cookie Consent Strip (Small, Left Side) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 40px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

body:not(.dark-theme) .cookie-banner {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cookie-banner.hidden {
    transform: translateY(80px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary-cyan);
    flex-shrink: 0;
}

body:not(.dark-theme) .cookie-icon {
    background: rgba(138, 63, 252, 0.12);
    color: var(--primary-violet);
}

.cookie-text {
    flex: 1 1 130px;
}

.cookie-text p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.35;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-cyan);
    text-decoration: underline;
    font-weight: 600;
}

body:not(.dark-theme) .cookie-text a {
    color: var(--primary-violet);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-cookie-accept:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-cookie-subtle {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-cookie-subtle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        padding: 10px 12px;
    }
}

/* --- Legal Subpage Styles --- */
.legal-main {
    padding-top: 130px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}

.legal-header {
    margin-bottom: 45px;
}

.legal-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

body:not(.dark-theme) .legal-section h2 {
    color: var(--primary-violet);
}

.legal-section p, .legal-section ul {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
    transition: color 0.2s ease;
}

.legal-back-btn:hover {
    color: var(--primary-cyan);
}

body:not(.dark-theme) .legal-back-btn:hover {
    color: var(--primary-violet);
}

/* --- ZYD AI Chatbot Widget --- */
.zyd-chatbot {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: var(--font-sans);
}

.chatbot-toggle-btn {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 25px rgba(0, 242, 254, 0.65));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.chatbot-toggle-btn .bot-icon.hidden,
.chatbot-toggle-btn .close-icon.hidden {
    display: none !important;
}

.chatbot-toggle-btn .close-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
    width: 34px;
    height: 34px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid #00f2fe;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
    transition: all 0.2s ease;
}

body:not(.dark-theme) .chatbot-toggle-btn .close-icon {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a !important;
    stroke: #0f172a !important;
    border-color: rgba(3, 105, 161, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chatbot-toggle-btn:hover {
    transform: scale(1.15) rotate(-3deg);
    filter: drop-shadow(0 12px 35px rgba(138, 63, 252, 0.9));
}

.chatbot-btn-shield {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: contrast(1.2) brightness(1.1);
}

.chat-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #00ff88;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: bottom right;
}

body:not(.dark-theme) .chatbot-window {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.chatbot-window.hidden {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    pointer-events: none;
}

.chatbot-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body:not(.dark-theme) .chatbot-header {
    background: rgba(255, 255, 255, 0.4);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.dark-theme) .bot-avatar {
    background: rgba(138, 63, 252, 0.15);
    color: var(--primary-violet);
}

.bot-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.bot-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
}

.bot-close-btn {
    background: transparent;
    border: none;
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.95;
    padding: 4px;
    transition: all 0.2s ease;
}

.bot-close-btn:hover {
    color: var(--primary-cyan) !important;
    opacity: 1;
    transform: scale(1.22);
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}

body:not(.dark-theme) .bot-close-btn {
    color: #0f172a !important;
}

body:not(.dark-theme) .bot-close-btn:hover {
    color: var(--primary-violet) !important;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    border-bottom-left-radius: 4px;
}

body:not(.dark-theme) .chat-msg.bot {
    background: rgba(0, 0, 0, 0.04);
}

.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    color: #ffffff;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-msg a {
    color: var(--primary-cyan);
    text-decoration: underline;
    font-weight: 600;
}

body:not(.dark-theme) .chat-msg a {
    color: var(--primary-violet);
}

.chat-msg.user a {
    color: #ffffff;
}

.chatbot-quick-chips {
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.1);
}

.chatbot-quick-chips::-webkit-scrollbar {
    height: 3px;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-family: var(--font-sans);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chip-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary-cyan);
}

.chatbot-input-area {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 8px;
}

body:not(.dark-theme) .chatbot-input-area {
    background: rgba(255, 255, 255, 0.5);
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 0.88rem;
    outline: none;
    font-family: var(--font-sans);
}

body:not(.dark-theme) .chatbot-input-area input {
    background: rgba(0, 0, 0, 0.03);
}

.chatbot-input-area input:focus {
    border-color: var(--primary-cyan);
}


.chatbot-input-area button {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-input-area button:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chatbot-window {
        position: fixed !important;
        bottom: 76px !important;
        right: 6px !important;
        left: 6px !important;
        width: auto !important;
        max-width: calc(100vw - 12px) !important;
        height: calc(100dvh - 95px) !important;
        max-height: 500px !important;
    }
}

@media (max-width: 1200px) {
    .service-card .service-title,
    .service-card .service-desc,
    .project-meta,
    .portfolio-card-title,
    .portfolio-card-desc {
        min-height: auto;
    }
}
