:root {
    /* Light Mode (Preview) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --heading-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1400px;
}

body.dark-theme {
    /* Dark Mode (Revert ready) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141416;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --heading-gradient: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: default;
}

.logo-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 700;
}

.logo-text sup {
    font-size: 0.55em;
    vertical-align: super;
    letter-spacing: 0;
    line-height: 0;
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.18em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

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

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #041421;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

body.dark-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
}

body.dark-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn-current {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn-current:hover {
    background: var(--glass-border);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
    padding: 5px;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.flag {
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.76) 0%, rgba(10, 10, 10, 0.76) 100%), url('realistic_board_only_1782496539193.png') no-repeat center;
    background-size: cover;
    background-position: center;
}

.hero-background {
    display: none;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-content .subtitle {
        font-size: 1.15rem !important;
    }
}

.hero-content .subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 850px;
    white-space: normal;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections General */
section {
    padding: 90px 0;
    scroll-margin-top: 100px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.problem-list {
    list-style: none;
    margin: 30px 0;
}

.problem-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.problem-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.problem-text .highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.abstract-grid {
    position: relative;
    height: 400px;
    background: url('hero_abstract_strategy_1776454304449.png') no-repeat center;
    background-size: contain;
    border-radius: 20px;
}

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

.service-card {
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2em;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-focus {
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.service-focus li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Process Section — Interactive Chess Timeline */
.process-section {
    background-color: #0a0a0a;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 40px 0 0 0;
    scroll-margin-top: 80px;
}

.process-section > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 20px;
}

.process-tagline {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 15px;
    font-weight: 600;
}


/* Detail panel */
.tl-detail {
    margin-top: 36px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.tl-detail.tl-detail-open {
    max-height: 220px; /* slightly increased to accommodate longer text */
    opacity: 1;
}

.tl-detail-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 40px;
    border-radius: 16px;
    position: relative;
}

.tl-detail-piece {
    font-size: 3.2rem;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
}

.tl-detail-piece.piece-animate {
    animation: piece-arrive 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes piece-arrive {
    0%   { transform: translateY(-18px) scale(0.75); opacity: 0; }
    100% { transform: translateY(0)     scale(1);    opacity: 1; }
}

.tl-detail-text {
    flex: 1;
}

.tl-detail-text.text-animate .tl-detail-num,
.tl-detail-text.text-animate .tl-detail-title {
    animation: text-reveal-slide-left 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tl-detail-text.text-animate .tl-detail-desc {
    animation: text-reveal-slide-left 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.08s;
}

@keyframes text-reveal-slide-left {
    0% {
        opacity: 0;
        transform: translateX(18px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.tl-detail-num {
    display: inline-block;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-right: 12px;
    font-weight: 600;
}

.tl-detail-title {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tl-detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Descriptions: kept in DOM for i18n/SEO but visually hidden */
.tl-step-desc {
    display: none;
}

/* Active / clicked piece lift */
@keyframes piece-lift {
    0%   { transform: scale(1)    translateY(0);   }
    40%  { transform: scale(1.35) translateY(-14px); }
    100% { transform: scale(1.15) translateY(0);   }
}

.tl-step.tl-clicked .tl-piece {
    color: var(--accent);
    animation: piece-lift 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* Timeline wrapper */
.methodology-timeline {
    position: relative;
    padding: 100px 0 40px;
}

/* Horizontal track line */
.tl-track {
    position: absolute;
    top: 60px; /* vertically centred on the larger nodes */
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
    z-index: 0;
}

.tl-track-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), rgba(0, 212, 255, 0.4));
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 212, 255, 0.2);
    border-radius: 3px;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-timeline.tl-active .tl-track-fill {
    width: 100%;
}

/* Step row */
.tl-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Individual step */
.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.tl-step.tl-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tl-step:hover {
    transform: translateY(-6px) scale(1.03);
}

/* Node circle */
.tl-node {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-secondary), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 32px;
    will-change: transform;
}

.tl-step.tl-reveal .tl-node {
    border-color: var(--accent);
    box-shadow: 0 0 28px var(--accent-glow), 0 0 60px rgba(0, 212, 255, 0.1);
}

.tl-step:hover .tl-node {
    border-color: var(--accent);
    box-shadow: 0 0 36px var(--accent-glow), 0 0 80px rgba(0, 212, 255, 0.2);
    transform: scale(1.08);
}

.tl-step.tl-clicked .tl-node {
    border-color: var(--accent);
    box-shadow: 0 0 48px var(--accent-glow), 0 0 100px rgba(0, 212, 255, 0.3);
    transform: scale(1.12);
}

/* Chess piece */
.tl-piece {
    font-size: 2.8rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-step.tl-reveal .tl-piece {
    color: var(--text-primary);
    animation: piece-float 3s ease-in-out infinite;
}

.tl-step:hover .tl-piece {
    color: var(--accent);
    transform: scale(1.2) translateY(-4px);
}

.tl-step.tl-clicked .tl-piece {
    color: var(--accent);
    animation: piece-lift 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes piece-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* Step label */
.tl-label {
    text-align: center;
    max-width: 180px;
    padding: 0 10px;
}

.tl-num {
    display: none;
}

.tl-step.tl-reveal .tl-num {
    opacity: 1;
}

.tl-label h4 {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.tl-step:hover .tl-label h4 {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.tl-label p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Final step — CHECKMATE */
.tl-step-final .tl-node {
    width: 136px;
    height: 136px;
    background: linear-gradient(145deg, var(--bg-secondary), rgba(0, 212, 255, 0.08));
}

.tl-checkmate-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease 0.6s;
    box-shadow: 0 0 16px var(--accent-glow);
}

.tl-step-final.tl-reveal .tl-checkmate-badge {
    opacity: 1;
    animation: badge-pulse 2s ease-in-out infinite;
}

.tl-step-final.tl-reveal .tl-node {
    animation: checkmate-pulse 2.2s ease-in-out infinite;
}

@keyframes checkmate-pulse {
    0%, 100% {
        box-shadow: 0 0 28px var(--accent-glow), 0 0 60px rgba(0, 212, 255, 0.2);
        border-color: var(--accent);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 120px rgba(0, 212, 255, 0.35);
        border-color: rgba(0, 212, 255, 0.9);
    }
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-glow); }
    50%       { box-shadow: 0 0 24px var(--accent-glow), 0 0 40px rgba(0, 212, 255, 0.3); }
}

/* Staggered float delays — each piece bobs at a unique rhythm */
.tl-step:nth-child(1).tl-reveal .tl-piece { animation-delay: 0s;    }
.tl-step:nth-child(2).tl-reveal .tl-piece { animation-delay: 0.5s;  }
.tl-step:nth-child(3).tl-reveal .tl-piece { animation-delay: 1s;    }
.tl-step:nth-child(4).tl-reveal .tl-piece { animation-delay: 1.5s;  }
.tl-step:nth-child(5).tl-reveal .tl-piece { animation-delay: 0.25s; }

/* Glow ring pulse on hover */
.tl-node::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
}

.tl-step:hover .tl-node::after {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1);    }
    50%       { opacity: 1;   transform: scale(1.05); }
}

/* Responsive — collapse to vertical on mobile */
@media (max-width: 768px) {
    .tl-track { display: none; }
    .tl-steps {
        flex-direction: column;
        gap: 40px;
    }
    .tl-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        max-width: 100%;
    }
    .tl-node { margin-bottom: 0; flex-shrink: 0; width: 90px; height: 90px; }
    .tl-label { text-align: left; max-width: none; }
}

.process-footer {
    margin-top: 60px;
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
}

/* Use Cases */
.cases-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    padding: 30px;
    border-left: 2px solid var(--glass-border);
}

.case-item:hover {
    border-left-color: var(--accent);
}

.case-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.case-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.about-highlights {
    list-style: none;
    margin: 30px 0;
}

.about-highlights li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-highlights li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
    top: 5px;
}

.portrait-box,
.portrait-img {
    width: 100%;
    max-width: 440px;
    height: 560px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid var(--glass-border);
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.placeholder-tag {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px dashed var(--glass-border);
    padding: 15px 25px;
    border-radius: 8px;
}

/* Contact Section */
.contact-card {
    text-align: center;
    padding: 80px;
    border-radius: 40px;
}

.contact-card h2 {
    margin-bottom: 20px;
}

.contact-card h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.85rem;
}

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

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-color: transparent;
}

/* Background Overlay */
body::before {
    display: none;
}

/* Highlight Card Styling */
.service-card.highlight-card {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.12);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

body.dark-theme .service-card.highlight-card {
    background: linear-gradient(180deg, rgba(20, 20, 22, 1) 0%, rgba(10, 10, 10, 0.8) 100%);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.05);
}

.service-card.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}



/* Chess Scroll Transitions */
.chess-move {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Starting States */
.chess-pawn {
    transform: translateY(40px);
}

.chess-rook-left {
    transform: translateX(-120px);
}

.chess-rook-right {
    transform: translateX(120px);
}

.chess-bishop {
    transform: translate(-60px, -60px);
}

/* End State / Transition Trigger */
.chess-move.aos-animate {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Knight L-Move (CSS Animation) */
@keyframes knight-l-move {
    0% { opacity: 0; transform: translate(-100px, -40px); }
    50% { opacity: 0.5; transform: translate(0, -40px); }
    100% { opacity: 1; transform: translate(0, 0); }
}

.chess-knight-l.aos-animate {
    transition: none !important;
    animation: knight-l-move 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Legacy AOS Support */
[data-aos] {
    opacity: 0;
    transition: var(--transition);
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    section { padding: 80px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; margin-bottom: 35px; }
    .problem-grid { grid-template-columns: 1fr; gap: 40px; }
    .cases-carousel { grid-template-columns: 1fr; gap: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-card { padding: 50px 24px; border-radius: 24px; }
    .portrait-box,
    .portrait-img { height: 480px; max-width: 100%; object-position: top center; margin: 0 auto; }
    .navbar { width: 100%; padding: 15px 20px; }
    .contact-actions { flex-direction: column; }
    .cookie-banner { width: calc(100% - 30px); bottom: 15px; padding: 20px; }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-ctas { flex-direction: column; width: 100%; gap: 12px; }
    .hero-ctas .btn { width: 100%; text-align: center; }
    .custom-cursor { display: none !important; }
    .footer-bottom { flex-direction: column; gap: 15px; align-items: center; text-align: center; }
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 30px);
    width: calc(100% - 60px);
    max-width: 650px;
    padding: 25px 30px;
    border-radius: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cookie-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-actions .btn-secondary {
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-actions .btn-secondary:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   Hybrid Layout: Dark Hero, Light About Me, Dark Services/Process/Contact
   ========================================================================== */

/* 1. Hero Section (Dark) */
.hero-section {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.76) 0%, rgba(10, 10, 10, 0.76) 100%), url('realistic_board_only_1782496539193.png') no-repeat center;
    background-size: cover;
    color: #f5f5f7;
}

/* 2. About Me Section (Light) */
.about-section {
    background-color: #f8fafc;
    color: #0f172a;
}

.about-section h2 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section p,
.about-highlights li {
    color: #475569;
}

/* 3. Services Section (Dark Mode) */
.services-section {
    background-color: #0a0a0a;
    color: #f5f5f7;
}

.services-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-section .service-card {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.services-section .service-card h3 {
    color: #ffffff;
}

.services-section .service-card p,
.services-section .service-focus li {
    color: #a1a1a6;
}

.services-section .service-icon {
    color: #00d4ff;
}

.services-section .service-card.highlight-card {
    background: linear-gradient(180deg, #18181c 0%, #101012 100%);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.15);
}

/* 4. Process / Methodology Section (Dark Mode) */
.process-section {
    background-color: #0a0a0a;
    color: #f5f5f7;
}

.process-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-section .process-tagline,
.process-section .process-footer {
    color: #a1a1a6;
}

.process-section .tl-node {
    background: #141416;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.process-section .tl-piece {
    color: #a1a1a6;
}

.process-section .tl-step.tl-reveal .tl-piece {
    color: #ffffff;
}

.process-section .tl-label h4,
.process-section .tl-detail-title {
    color: #ffffff;
}

.process-section .tl-step-desc,
.process-section .tl-detail-desc {
    color: #a1a1a6;
}

.process-section .case-item {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.process-section .case-item h4 {
    color: #ffffff;
}

.process-section .case-item p {
    color: #a1a1a6;
}

/* 5. Contact Section, Footer, and Legal Pages (Dark Mode) */
.contact-section,
.footer,
.legal-page {
    background-color: #0a0a0a;
    color: #f5f5f7;
}

.contact-card,
.legal-card {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.contact-card h2 {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-p {
    color: #a1a1a6;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a {
    color: #f5f5f7;
}

.nav-links a:hover {
    color: #00d4ff;
}

.lang-btn-current {
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-menu {
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

.cookie-banner {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content h4 {
    color: #ffffff;
}

.cookie-content p {
    color: #a1a1a6;
}

/* Full-Width Banner Section & Transition Bars */
.cta-banner-section,
.transition-banner-section {
    padding: 0 !important;
    background-color: #0a0a0a;
}

.cta-banner-bar {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.16) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.25);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    padding: 36px 0;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.08);
}

.transition-banner-bar {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.16) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.25);
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    padding: 40px 0;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.08);
}

.cta-banner-content,
.transition-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.transition-banner-content .transition-text {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 850px;
}

.reflection-text {
    max-width: 850px;
}

.reflection-p1 {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.reflection-p2 {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
}

.transition-banner-content .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.cta-text h2::after {
    display: none;
}

.cta-text p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 0;
}

.cta-banner-content .contact-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 900px) {
    .cta-banner-bar {
        padding: 40px 0;
    }
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .cta-text h2 {
        font-size: 1.8rem;
    }
    .cta-banner-content .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-banner-content .contact-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact Modal Styling */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.contact-modal-card {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 580px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s ease, padding 0.4s ease;
}

.contact-modal-card.is-success,
.contact-modal-overlay.is-success .contact-modal-card {
    max-width: 440px;
    padding: 36px 30px;
    text-align: center;
}

.form-success-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    gap: 16px;
    text-align: center;
}

.success-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}

.success-text {
    font-size: 1.1rem;
    color: #00d4ff;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.contact-modal-overlay.show .contact-modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #a1a1a6;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #00d4ff;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9rem;
    color: #a1a1a6;
}

.modal-header a {
    color: #00d4ff;
    text-decoration: none;
}

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

@media (max-width: 600px) {
    .modal-form .form-row { grid-template-columns: 1fr; }
    .contact-modal-card { padding: 30px 20px; }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #f5f5f7;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-select option {
    background-color: #141416;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #00d4ff;
}

.logo-tagline {
    display: block;
    font-size: 0.68rem;
    color: #00d4ff;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.about-motto {
    margin-top: 0;
    margin-bottom: 30px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.about-block {
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
}

.about-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.methodology-transition-box {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #a1a1a6;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #00d4ff;
}

.checkbox-label a {
    color: #00d4ff;
    text-decoration: underline;
}

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

.form-success-msg {
    text-align: center;
    padding: 30px 0;
    color: #00d4ff;
}

/* Brand Badge Styling */
.brand-badge-wrapper {
    margin-bottom: 24px;
}

.brand-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    color: #00d4ff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Reality Check Section Styling (LIGHT MODE TEST) */
.reality-check-section {
    background-color: #ffffff;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 40px 0 0 0;
    scroll-margin-top: 80px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.reality-check-section > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 20px;
}

.reality-header {
    max-width: 100%;
    margin: 0 0 36px 0;
    text-align: left;
}

.reality-header h2 {
    font-size: 2.3rem;
    line-height: 1.25;
    color: #0f172a !important;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 12px;
    font-weight: 700;
}

.process-section h2,
.services-section h2,
.cta-banner-section h2 {
    font-size: 2.3rem;
    line-height: 1.25;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 12px;
    font-weight: 700;
}

.reality-sub {
    font-size: 1.15rem;
    color: #0284c7;
    font-weight: 500;
    margin-bottom: 14px;
}

.reality-intro-text {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    margin-top: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.solutions-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a1a1a6;
    margin-top: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* Diagnostic Grid */
.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.diag-card {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.diag-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

.diag-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.diag-q {
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.5;
}

.reality-check-section .transition-banner-bar {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-top: 1px solid rgba(2, 132, 199, 0.25);
    border-bottom: 1px solid rgba(2, 132, 199, 0.25);
}

.reality-check-section .transition-banner-content .transition-text {
    color: #0f172a;
}

/* Consequences Section */
.consequences-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 45px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.conseq-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
}

.consequences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.conseq-item h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.conseq-item p {
    font-size: 0.9rem;
    color: #a1a1a6;
    line-height: 1.5;
}

/* Transition Box */
.reality-transition-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.transition-text {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 900px) {
    .diagnostic-grid { grid-template-columns: 1fr; }
    .consequences-grid { grid-template-columns: 1fr 1fr; }
    .reality-header h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .consequences-grid { grid-template-columns: 1fr; }
    .consequences-wrapper { padding: 25px 20px; }
    .reality-transition-box { padding: 30px 20px; }
}
