/* ============================================
   BASE (Default Dark — Danizta Blue)
   ============================================ */
:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #2563eb;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(37, 99, 235, 0.35);
    --accent-cyan: #06b6d4;
    --accent-green: #059669;
    --white: #f1f5f9;
    --gradient-1: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-text: linear-gradient(90deg, #06b6d4, #059669);
    --glass: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    /* Palette swatch colors (used in picker UI) */
    --swatch-slack: #4a154b;
    --swatch-github: #24292e;
    --swatch-stripe: #635bff;
}

/* ============================================
   LIGHT MODE (Default palette)
   ============================================ */
html[data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --white: #1e293b;
    --gradient-1: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    --gradient-text: linear-gradient(90deg, #2563eb, #06b6d4);
    --glass: rgba(255, 255, 255, 0.88);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   🟣 VIOLET PALETTE  —  Dark
   ============================================ */
html[data-palette="slack"] {
    --bg-color: #1a0a1e;
    --bg-secondary: #2a1630;
    --bg-card: #3b1f44;
    --text-primary: #f0e6f6;
    --text-secondary: #b39dbd;
    --accent: #4a154b;
    --accent-secondary: #36c5f0;
    --accent-glow: rgba(74, 21, 75, 0.45);
    --white: #f0e6f6;
    --gradient-1: linear-gradient(135deg, #2a1630 0%, #1a0a1e 100%);
    --gradient-text: linear-gradient(90deg, #36c5f0, #ecb22e);
    --glass: rgba(26, 10, 30, 0.82);
    --shadow: 0 10px 30px -10px rgba(74, 21, 75, 0.5);
}

/* 🟣 VIOLET PALETTE  —  Light */
html[data-palette="slack"][data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f4eff6;
    --bg-card: #ffffff;
    --text-primary: #1a0a1e;
    --text-secondary: #6b4f72;
    --accent: #4a154b;
    --accent-secondary: #36c5f0;
    --accent-glow: rgba(74, 21, 75, 0.18);
    --white: #1a0a1e;
    --gradient-1: linear-gradient(135deg, #f4eff6 0%, #ffffff 100%);
    --gradient-text: linear-gradient(90deg, #4a154b, #36c5f0);
    --glass: rgba(255, 255, 255, 0.88);
    --shadow: 0 10px 30px -10px rgba(74, 21, 75, 0.12);
}

/* ============================================
   ⚫ MIDNIGHT PALETTE  —  Dark
   ============================================ */
html[data-palette="github"] {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #0366d6;
    --accent-secondary: #58a6ff;
    --accent-glow: rgba(3, 102, 214, 0.4);
    --white: #e6edf3;
    --gradient-1: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    --gradient-text: linear-gradient(90deg, #58a6ff, #79c0ff);
    --glass: rgba(13, 17, 23, 0.82);
    --shadow: 0 10px 30px -10px rgba(3, 102, 214, 0.35);
}

/* ⚫ MIDNIGHT PALETTE  —  Light */
html[data-palette="github"][data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-card: #ffffff;
    --text-primary: #24292e;
    --text-secondary: #586069;
    --accent: #0366d6;
    --accent-secondary: #58a6ff;
    --accent-glow: rgba(3, 102, 214, 0.15);
    --white: #24292e;
    --gradient-1: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
    --gradient-text: linear-gradient(90deg, #0366d6, #58a6ff);
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px -10px rgba(3, 102, 214, 0.1);
}

/* ============================================
   🔵 ELECTRIC PALETTE  —  Dark
   ============================================ */
html[data-palette="stripe"] {
    --bg-color: #0a0a1a;
    --bg-secondary: #13132b;
    --bg-card: #1e1e3f;
    --text-primary: #f0f0ff;
    --text-secondary: #9090c0;
    --accent: #635bff;
    --accent-secondary: #00d4ff;
    --accent-glow: rgba(99, 91, 255, 0.4);
    --white: #f0f0ff;
    --gradient-1: linear-gradient(135deg, #13132b 0%, #0a0a1a 100%);
    --gradient-text: linear-gradient(90deg, #635bff, #00d4ff);
    --glass: rgba(10, 10, 26, 0.82);
    --shadow: 0 10px 30px -10px rgba(99, 91, 255, 0.45);
}

/* 🔵 ELECTRIC PALETTE  —  Light */
html[data-palette="stripe"][data-theme="light"] {
    --bg-color: #f6f9fc;
    --bg-secondary: #eef2f7;
    --bg-card: #ffffff;
    --text-primary: #0d1117;
    --text-secondary: #4f5b76;
    --accent: #635bff;
    --accent-secondary: #00d4ff;
    --accent-glow: rgba(99, 91, 255, 0.18);
    --white: #0d1117;
    --gradient-1: linear-gradient(135deg, #eef2f7 0%, #f6f9fc 100%);
    --gradient-text: linear-gradient(90deg, #635bff, #00d4ff);
    --glass: rgba(246, 249, 252, 0.9);
    --shadow: 0 10px 30px -10px rgba(99, 91, 255, 0.12);
}

/* Smooth theme transition */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
    transition: background-color 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        fill 0.4s ease,
        stroke 0.4s ease !important;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-secondary);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    margin-left: 1rem;
    transition: var(--transition);
    outline: none;
}

.theme-toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.theme-toggle .toggle-icon {
    font-size: 0.7rem;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.theme-toggle .icon-sun {
    color: #fbbf24;
}

.theme-toggle .icon-moon {
    color: #a5b4fc;
}

.theme-toggle .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .theme-toggle .toggle-slider,
.theme-toggle.light-mode .toggle-slider {
    transform: translateX(24px);
}

/* Mini variant inside palette panel */
.theme-toggle-mini {
    margin-left: 0;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.theme-toggle-mini .toggle-slider {
    width: 18px;
    height: 18px;
}

.theme-toggle-mini.light-mode .toggle-slider {
    transform: translateX(22px);
}

/* Light theme-specific overrides */
[data-theme="light"] .navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .service-card,
[data-theme="light"] .stat-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .image-placeholder {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .image-placeholder::before {
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.06), transparent);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-window {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .chat-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-messages {
    background: rgba(240, 244, 248, 0.6);
}

[data-theme="light"] .bot-message {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cursor-dot {
    background-color: var(--accent);
}

[data-theme="light"] .cursor-outline {
    border-color: var(--accent);
}

[data-theme="light"] .hero-bg-animation {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .mouse {
    border-color: var(--text-secondary);
}

[data-theme="light"] .chatbot-toggle {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* ============================================
   PALETTE PICKER PANEL
   ============================================ */

/* Floating container — sits above chatbot toggle */
.palette-picker-container {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* The panel itself */
.palette-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: none;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
    animation: panelSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom right;
}

.palette-panel.open {
    display: flex;
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Panel section label */
.palette-section-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: -0.3rem;
}

/* Dark / Light Toggle row inside panel */
.palette-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.palette-mode-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Color Swatches */
.palette-swatches {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.palette-swatch-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-align: left;
}

.palette-swatch-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.palette-swatch-btn.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.swatch-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.swatch-dot.default {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.swatch-dot.slack {
    background: linear-gradient(135deg, #4a154b, #36c5f0);
}

.swatch-dot.github {
    background: linear-gradient(135deg, #24292e, #0366d6);
}

.swatch-dot.stripe {
    background: linear-gradient(135deg, #635bff, #00d4ff);
}

.swatch-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.swatch-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.swatch-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Palette picker trigger button */
.palette-picker-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    outline: none;
    position: relative;
}

.palette-picker-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.9);
}

.palette-picker-btn.open::after,
.palette-picker-btn:hover::after {
    opacity: 0.5;
    transform: scale(1);
}

.palette-picker-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Light-theme panel adjustments */
[data-theme="light"] .palette-panel {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .palette-swatch-btn {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .palette-swatch-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .palette-picker-btn {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Divider inside panel */
.palette-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 -0.2rem;
}

[data-theme="light"] .palette-divider {
    background: rgba(0, 0, 0, 0.07);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .palette-picker-container {
        bottom: 5.5rem;
        right: 1rem;
    }

    .palette-panel {
        min-width: 175px;
    }
}

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


body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    background-color: transparent;
    transition: width 0.2s, height 0.2s, background-color 0.2s ease, transform 0.2s ease;
}

.cursor-outline.cursor-hover {
    background-color: var(--accent-glow);
}

body:hover .cursor-outline {
    opacity: 1;
}

/* General Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: none;
}

ul {
    list-style: none;
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2.3rem;
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Inline SVG logo — uses fill="currentColor", so color sets the fill */
.logo-icon {
    display: block;
    height: 44px;
    width: 156px;
    /* matches viewBox aspect ratio 320:90 at 44px height */
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    transition: color 0.4s ease, filter 0.4s ease;
}

.constellation-lines {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.star {
    fill: var(--white);
    filter: drop-shadow(0 0 2px var(--white));
    animation: twinkle 3s infinite ease-in-out alternate;
}

.star:nth-child(2) {
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    animation-delay: 1s;
}

.star:nth-child(4) {
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    animation-delay: 2s;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.logo-text {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(90deg, #e2e8f0, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-secondary {
    color: var(--white);
    margin-left: 1rem;
    border: 1px solid transparent;
}

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

/* Focus and active states (accessibility) */
.btn:focus-visible,
.nav-link:focus-visible,
.theme-toggle:focus-visible,
.palette-picker-btn:focus-visible,
.palette-swatch-btn:focus-visible,
.chatbot-toggle:focus-visible,
.chat-header button:focus-visible,
#send-btn:focus-visible,
#close-chat:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.learn-more:focus-visible,
.contact-details a:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block:active {
    transform: scale(0.98);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: left;
    max-width: 900px;
}

.eyebrow {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Trust strip (below hero) */
.trust-strip {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-strip-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.trust-strip-industries {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: var(--gradient-text);
    border-radius: 2px;
    opacity: 0.85;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.08), transparent);
}

.icon-large {
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
}

.plus {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.5rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.stats-context {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card .icon-box {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.learn-more {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.learn-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Expandable Text Container */
.expandable-text {
    width: 100%;
}

.expandable-text p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-secondary);
}

.text-preview,
.text-full {
    transition: var(--transition);
}

/* Showcase */
.showcase {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.project-image {
    height: 200px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-1 {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #1e293b 0%, #059669 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 2rem;
    color: var(--accent);
}

.project-info {
    padding: 1.5rem;
}

/* Project Info */
.project-info h4 {
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1.25rem;
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-align: justify;
}

.project-info p:last-child {
    margin-bottom: 0;
}

.project-outcome {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-details {
    margin: 2rem 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 1.5rem;
    width: 20px;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-response-time {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-next-step {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-message {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--accent);
}

.form-message.form-message-visible {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.12);
    border-left: 3px solid var(--accent);
}

.form-message:not([hidden]) {
    display: block;
}

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
    background: var(--accent);
    color: var(--bg-color);
}

.btn-block:hover {
    background: var(--accent-glow);
    color: var(--bg-color);
}

/* Testimonial */
.testimonial-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: none;
    padding: 0;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--bg-color);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

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

.footer-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Animations */
.fade-in-up,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.active-reveal {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }

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

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

    .contact-wrapper {
        padding: 2rem;
    }
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* When chat is open, bring it above the palette picker so Send and palette don't conflict */
.chatbot-container:has(.chat-window.active) {
    z-index: 1002;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-toggle:hover {
    transform: translateY(-5px) scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 218, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    overflow: hidden;
    transform-origin: bottom right;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s step-end;
}

.chat-window.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s step-start;
}

.chat-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 218, 0.1);
}

.chat-header h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.chat-header button:hover {
    color: var(--accent);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(15, 23, 42, 0.5);
    /* Slightly darker background for messages area */
}

/* Custom Scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--bg-secondary);
    border-radius: 3px;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.user-message {
    background: var(--accent);
    color: var(--bg-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}

.chat-input-area {
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.chat-validation-message {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.12);
    border-left: 3px solid var(--accent);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-validation-message.chat-validation-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-validation-message:not([hidden]) {
    display: block;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 218, 0.1);
    background: var(--bg-color);
    color: var(--white);
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.chat-input-area input[aria-invalid="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.chat-char-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    transition: var(--transition);
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    transform: scale(1.1) rotate(-10deg);
}

@media (max-width: 480px) {
    .chat-window {
        width: 300px;
        height: 400px;
        right: 0;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Feature Lists in Projects */
.feature-list {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.5;
}

.feature-list li i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    /* Align icon with first line of text */
    flex-shrink: 0;
    /* Prevent icon from shrinking */

    /* Smart Fitness Diagram Animation */
    .diagram-container {
        width: 100%;
        height: 100%;
        position: relative;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        overflow: hidden;
    }

    .diagram-svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .diagram-gear {
        transform-origin: 200px 100px;
        animation: rotateGear 10s linear infinite;
    }

    .diagram-pulse {
        animation: pulseCore 2s ease-in-out infinite;
        transform-origin: 200px 100px;
    }

    .diagram-orbit {
        transform-origin: 200px 100px;
    }

    .orbit-1 {
        animation: orbit 8s linear infinite;
    }

    .orbit-2 {
        animation: orbit 12s linear infinite reverse;
    }

    .orbit-3 {
        animation: orbit 10s linear infinite;
    }

    .node-pop {
        animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        opacity: 0;
        transform-origin: center;
    }

    .node-pop:nth-child(1) {
        animation-delay: 0.2s;
    }

    .node-pop:nth-child(2) {
        animation-delay: 0.4s;
    }

    .node-pop:nth-child(3) {
        animation-delay: 0.6s;
    }

    .node-pop:nth-child(4) {
        animation-delay: 0.8s;
    }

    .line-draw {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: drawLine 2s ease-out forwards 1s;
    }

    @keyframes rotateGear {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    @keyframes pulseCore {

        0%,
        100% {
            transform: scale(1);
            opacity: 0.8;
        }

        50% {
            transform: scale(1.1);
            opacity: 1;
        }
    }

    @keyframes orbit {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    @keyframes popIn {
        from {
            transform: scale(0);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes drawLine {
        to {
            stroke-dashoffset: 0;
        }
    }

    /* Digital Signage Diagram Animation */
    .signage-screen {
        fill: rgba(15, 23, 42, 0.8);
        stroke: #2563eb;
        stroke-width: 3;
        filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
    }

    .signage-content-bar {
        fill: #2563eb;
        opacity: 0.3;
        animation: barPulse 2s ease-in-out infinite alternate;
    }

    .signage-content-bar:nth-child(2) {
        animation-delay: 0.5s;
        width: 60px;
    }

    .signage-content-bar:nth-child(3) {
        animation-delay: 1.0s;
        width: 80px;
    }

    .signage-signal {
        stroke: #06b6d4;
        stroke-width: 2;
        stroke-linecap: round;
        fill: none;
        opacity: 0;
        transform-origin: center;
        animation: signalEmit 2s linear infinite;
    }

    .signage-signal:nth-child(1) {
        animation-delay: 0s;
    }

    .signage-signal:nth-child(2) {
        animation-delay: 0.6s;
    }

    .signage-signal:nth-child(3) {
        animation-delay: 1.2s;
    }

    @keyframes barPulse {
        0% {
            opacity: 0.3;
        }

        100% {
            opacity: 0.8;
        }
    }

    @keyframes signalEmit {
        0% {
            transform: scale(0.5);
            opacity: 1;
        }

        100% {
            transform: scale(1.5);
            opacity: 0;
        }

        /* Interactive Kiosk Animation */
        .kiosk-body {
            fill: #1e293b;
            stroke: #2563eb;
            stroke-width: 2;
        }

        .kiosk-screen {
            fill: #334155;
        }

        .kiosk-btn {
            fill: rgba(37, 99, 235, 0.2);
            stroke: #2563eb;
            stroke-width: 1;
            transition: all 0.3s;
        }

        .hand-touch {
            fill: #e2e8f0;
            animation: touchGesture 3s ease-in-out infinite;
            transform-origin: center;
        }

        .ripple-effect {
            fill: none;
            stroke: #2563eb;
            stroke-width: 2;
            opacity: 0;
            animation: ripple 3s ease-out infinite;
            transform-origin: 200px 100px;
            /* Center of the screen/button */
        }

        @keyframes touchGesture {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            50% {
                transform: translate(-10px, -15px) scale(0.9);
            }

            /* Move to press button */
        }

        @keyframes ripple {
            50% {
                r: 5;
                opacity: 1;
                stroke-width: 2;
            }

            100% {
                r: 40;
                opacity: 0;
                stroke-width: 0;
            }
        }
    }
}

/* ============================================
   REDUCED MOTION (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-animation {
        animation: none;
        opacity: 0.6;
    }

    .star {
        animation: none;
        opacity: 1;
    }

    .scroll-indicator .wheel {
        animation: none;
        opacity: 0.8;
    }

    .palette-panel {
        animation: none;
    }

    .fade-in-up,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transition-duration: 0.01ms;
    }

    .chat-window {
        animation: none;
        transition: none;
    }

    .chat-window.active {
        opacity: 1;
        transform: none;
    }

    .message {
        animation: none;
    }

    .diagram-gear {
        animation: none;
    }

    .diagram-pulse {
        animation: none;
    }

    .diagram-orbit,
    .orbit-1,
    .orbit-2,
    .orbit-3 {
        animation: none;
    }

    .node-pop {
        animation: none;
        opacity: 1;
    }

    .line-draw {
        animation: none;
        stroke-dashoffset: 0;
    }

    .signage-content-bar,
    .signage-signal {
        animation: none;
    }

    .hand-touch {
        animation: none;
    }

    .ripple-effect {
        animation: none;
    }

    .service-card:hover {
        transform: none;
    }

    .chatbot-toggle:hover {
        transform: none;
    }

    /* Restore system cursor; hide custom cursor */
    body {
        cursor: auto !important;
    }

    a,
    button,
    .nav-toggle,
    .theme-toggle,
    .palette-picker-btn,
    .palette-swatch-btn,
    .chatbot-toggle,
    .learn-more {
        cursor: pointer !important;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        cursor: text !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}