/* ========================================= */
/*  CHIMITDORZHI.TECH — PREMIUM DARK THEME   */
/*  with Light Mode Toggle Support            */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- THEME VARIABLES ---- */
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent: #4f8cff;
    --accent-hover: #6ea1ff;
    --accent-glow: rgba(79, 140, 255, 0.25);
    --gradient-1: #4f8cff;
    --gradient-2: #a855f7;
    --glass-bg: rgba(22, 22, 22, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --skill-track: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
    --bg: #f5f7fa;
    --bg-alt: #edf0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4f9;
    --text: #1a202c;
    --text-secondary: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --gradient-1: #2563eb;
    --gradient-2: #7c3aed;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --skill-track: rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ---- BG EFFECTS ---- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.12;
    transition: opacity 0.5s;
    z-index: 0;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: 30%;
    background: var(--gradient-1);
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -5%;
    background: var(--gradient-2);
}

[data-theme="light"] .gradient-blob {
    opacity: 0.06;
}

/* ---- PARTICLES BG ---- */
#particles-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#particles-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s, background 0.3s;
}

.navbar.scrolled {
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

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

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

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

.nav-cta {
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    position: relative;
    z-index: 2;
    background: transparent;
}

.hero-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.htag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.htag:hover {
    border-color: var(--accent);
    color: var(--text);
}

.htag i {
    color: var(--accent);
}

/* ---- SECTIONS ---- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

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

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

/* ---- ABOUT GRID ---- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-main {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-main h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-main p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
}

.about-stat {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 8px 0 4px;
    color: var(--text);
}

.about-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.about-certs p {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ---- BENTO GRID ---- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
    transition: opacity 0.4s;
    pointer-events: none;
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-lg {
    grid-column: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
}

.bento-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.bento-icon-gold {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.bento-icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.bento-icon-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.bento-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.bento-icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.bento-icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bento-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bento-tags span {
    padding: 5px 12px;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* ---- SERVICES GRID ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
}

.svc-icon-blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.svc-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.svc-icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.svc-icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.svc-icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.svc-icon-gold {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.svc-icon-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.svc-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.svc-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.svc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.svc-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.svc-tags span {
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---- CASES ---- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    opacity: 0;
    transition: opacity 0.4s;
}

.case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.case-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
}

.case-tag-event {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.case-tag-ai {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.case-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tags span {
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ---- CASE LINK CARDS (integrated projects) ---- */
.section-sub-header {
    margin-top: 48px;
    margin-bottom: 32px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

a.case-link {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

a.case-link:hover {
    border-color: var(--accent);
}

.case-tag-studio {
    background: rgba(79, 140, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(79, 140, 255, 0.25);
}

.case-link-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.case-link-url {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

.case-link-footer i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

a.case-link:hover .case-link-footer i {
    color: var(--accent);
    transform: translate(3px, -3px);
}

a.case-link:hover .case-link-url {
    color: var(--accent);
}


/* ---- EVENTS ---- */
.events-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ev-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s;
}

.ev-col:hover {
    border-color: var(--border-hover);
}

.ev-col-wide {
    grid-column: span 2;
}

.ev-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-col h3 i {
    color: var(--accent);
    font-size: 1.3rem;
}

.ev-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ev-col li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ev-col li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ---- SKILLS ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s;
}

.skill-card:hover {
    border-color: var(--border-hover);
}

.skill-card h4 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.skill-card h4 i {
    color: var(--accent);
    font-size: 1.3rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sb {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sb span {
    flex: 0 0 180px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sb-track {
    flex: 1;
    height: 6px;
    background: var(--skill-track);
    border-radius: 100px;
    overflow: hidden;
}

.sb-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- CERTS ---- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cert-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
}

.cert-col h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-col h3 i {
    font-size: 1.5rem;
}

.cert-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-col li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

.cert-col strong {
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.cert-col li span:not(.text-gradient) {
    font-size: 0.85rem;
}

/* ---- FOOTER ---- */
.footer {
    padding: 120px 0 60px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-inner {
    text-align: center;
}

.footer-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 0;
    line-height: 1.1;
}

.footer-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-policy-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-policy-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ---- COOKIE BANNER ---- */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.cookie-banner {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    max-width: 560px;
    width: calc(100% - 32px);
    background: rgba(18, 18, 24, 0.92);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 140, 255, 0.08);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.3), transparent 50%, rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cookie-banner.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.cookie-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.cookie-inner p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-inner a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

.cookie-accept {
    width: 100%;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.3);
}

.cookie-accept:active {
    transform: translateY(0);
}

body.cookie-locked {
    overflow: hidden;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-lg,
    .bento-wide {
        grid-column: span 2;
    }

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

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

    .about-main {
        grid-column: span 2;
        grid-row: span 1;
    }

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

    .sb span {
        flex: 0 0 140px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .bento,
    .services-grid,
    .cases-grid,
    .skills-grid,
    .certs-grid,
    .events-cols,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .bento-lg,
    .bento-wide,
    .ev-col-wide {
        grid-column: span 1;
    }

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

    .about-main,
    .about-certs {
        grid-column: span 1;
        grid-row: span 1;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .sb {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sb span {
        flex: none;
    }

    .sb-track {
        width: 100%;
    }

    .lang-switcher {
        display: flex;
    }

    .footer-cta h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-actions {
        margin-bottom: 32px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    .htag {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .about-card,
    .bento-card,
    .svc-card,
    .case-card,
    .ev-col,
    .skill-card,
    .cert-col {
        padding: 24px;
    }

    .footer {
        padding: 60px 0 40px;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 14px 0;
    }

    .nav-controls {
        gap: 8px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .mobile-menu {
        padding-top: 80px;
    }

    .mobile-menu a {
        font-size: 1.3rem;
    }
}

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

    .hero-tags {
        gap: 8px;
    }

    .htag {
        padding: 7px 12px;
        font-size: 0.73rem;
    }

    .section-heading {
        font-size: 1.7rem;
    }

    .about-stat {
        font-size: 2.2rem;
    }

    .footer-cta h2 {
        font-size: 1.6rem;
    }

    .footer-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-actions .btn {
        width: 100%;
        justify-content: center;
    }
}