/* ==========================================================================
   NK PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Tech, High-End SaaS, Glassmorphism, Glowing Accents
   ========================================================================== */

/* 1. Global Reset & Custom Variables */
:root {
    /* Colors */
    --color-bg-primary: #07090e;
    /* Deep dark night */
    --color-bg-secondary: #0c0f16;
    /* Secondary block background */
    --color-bg-tertiary: #131722;
    /* Card background */
    --color-bg-accent: #192030;
    /* Glow states / active boxes */

    --color-text-primary: #f8fafc;
    /* Off-white */
    --color-text-secondary: #94a3b8;
    /* Muted slate text */
    --color-text-muted: #64748b;
    /* Darker slate for subtitles */

    /* Technical Accents */
    --color-cyan: #00f2fe;
    /* Frontend / client-facing */
    --color-blue: #3b82f6;
    /* API / REST routing */
    --color-purple: #8b5cf6;
    /* Logic / auth / microservices */
    --color-emerald: #10b981;
    /* Database / persistence / performance */
    --color-yellow: #f59e0b;
    /* Cloud orchestration / automation */
    --color-red: #ef4444;
    /* Errors / limits */

    /* Gradient Strings */
    --grad-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
    --grad-purple: linear-gradient(135deg, var(--color-purple) 0%, #d946ef 100%);
    --grad-db: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-cyan) 100%);
    --grad-dark-card: linear-gradient(180deg, rgba(23, 27, 34, 0.8) 0%, rgba(12, 15, 22, 0.95) 100%);

    /* Layout */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-glow: 1px solid rgba(0, 242, 254, 0.2);

    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: initial;
    /* Managed by Lenis smooth scroll */
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. Visual Effects & Background Overlays */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

.glow-blob {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    right: -5%;
    background-color: var(--color-cyan);
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    background-color: var(--color-purple);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* 3. Typography & Utility Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.code-font {
    font-family: var(--font-mono);
}

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

.text-cyan {
    color: var(--color-cyan) !important;
}

.text-blue {
    color: var(--color-blue) !important;
}

.text-purple {
    color: var(--color-purple) !important;
}

.text-success {
    color: var(--color-emerald) !important;
}

.text-warning {
    color: var(--color-yellow) !important;
}

.text-red {
    color: var(--color-red) !important;
}

.text-muted {
    color: var(--color-text-secondary) !important;
}

.text-info {
    color: #5aa9ff !important;
}

.text-orange {
    color: #f97316 !important;
}

.text-yellow {
    color: #facc15 !important;
}

.text-teal {
    color: #14b8a6 !important;
}

.text-white {
    color: #ffffff !important;
}

/* Buttons & Interactive Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--color-bg-primary);
    border: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 18px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
}

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

.btn-full {
    width: 100%;
}

/* Common Section Layout */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
    background: rgba(0, 242, 254, 0.03);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-mono {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-emerald);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-cyan);
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* Mobile Menu Slide In overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(15px);
    z-index: 90;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu {
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--color-bg-secondary);
    border-left: var(--border-glass);
    padding: 100px 32px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
}

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

/* 5. Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-cyan);
    margin-bottom: 24px;
}

.hero-tag i {
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-lead {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* Hero Interactive Terminal Widget */
.hero-interactive {
    position: relative;
    min-width: 0;
}

.console-box {
    background: var(--grad-dark-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-card);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.console-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.console-header {
    background: rgba(19, 23, 34, 0.9);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: var(--border-glass);
}

.console-buttons {
    display: flex;
    gap: 6px;
    margin-right: 18px;
}

.console-buttons span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.console-buttons span:nth-child(1) {
    background: var(--color-red);
}

.console-buttons span:nth-child(2) {
    background: var(--color-yellow);
}

.console-buttons span:nth-child(3) {
    background: var(--color-emerald);
}

.console-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    flex-grow: 1;
    text-align: center;
}

.console-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.console-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    min-height: 280px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: auto;
}

.console-line {
    margin-bottom: 4px;
    word-break: break-all;
}

.terminal-prompt {
    color: var(--color-cyan);
    margin-right: 8px;
}

.active-cursor {
    display: flex;
    align-items: center;
}

.active-cursor::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 14px;
    background: var(--color-cyan);
    margin-left: 4px;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.scroll-indicator a:hover {
    color: var(--color-cyan);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* 6. Statistics Section */
.stats-section {
    background: var(--color-bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--color-bg-tertiary);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-cyan);
    opacity: 0.8;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin-left: 2px;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
    margin: 8px 0 6px 0;
}

.stat-desc {
    color: var(--color-text-secondary);
    font-size: 0.65rem;
    line-height: 1.4;
}

/* 7. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--grad-dark-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: var(--shadow-glow);
}

.service-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 1.25rem;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-header-icon {
    background: var(--color-cyan);
    color: var(--color-bg-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Different color icon blocks for structural layers styling */
.service-card:nth-child(2) .service-header-icon {
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--color-blue);
    background: rgba(59, 130, 246, 0.05);
}

.service-card:nth-child(2):hover .service-header-icon {
    background: var(--color-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.service-card:nth-child(3) .service-header-icon {
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--color-yellow);
    background: rgba(245, 158, 11, 0.05);
}

.service-card:nth-child(3):hover .service-header-icon {
    background: var(--color-yellow);
    color: var(--color-bg-primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.service-card:nth-child(4) .service-header-icon {
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    background: rgba(139, 92, 246, 0.05);
}

.service-card:nth-child(4):hover .service-header-icon {
    background: var(--color-purple);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.service-card:nth-child(5) .service-header-icon {
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--color-red);
    background: rgba(239, 68, 68, 0.05);
}

.service-card:nth-child(5):hover .service-header-icon {
    background: var(--color-red);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.service-card:nth-child(7) .service-header-icon {
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.05);
}

.service-card:nth-child(7):hover .service-header-icon {
    background: var(--color-emerald);
    color: var(--color-bg-primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-description {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: var(--border-glass);
    padding-top: 16px;
}

.service-bullets li {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-bullets li i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Service color bullet tweaks matching layer tags */
.service-card:nth-child(1) .service-bullets li i {
    color: var(--color-cyan);
}

.service-card:nth-child(2) .service-bullets li i {
    color: var(--color-blue);
}

.service-card:nth-child(3) .service-bullets li i {
    color: var(--color-yellow);
}

.service-card:nth-child(4) .service-bullets li i {
    color: var(--color-purple);
}

.service-card:nth-child(5) .service-bullets li i {
    color: var(--color-red);
}

.service-card:nth-child(6) .service-bullets li i {
    color: var(--color-cyan);
}

.service-card:nth-child(7) .service-bullets li i {
    color: var(--color-emerald);
}

.service-card:nth-child(8) .service-bullets li i {
    color: var(--color-blue);
}

/* 8. Architecture Showcase Section */
.architecture-section {
    background: var(--color-bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    overflow: hidden;
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.arch-diagram-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.arch-svg {
    max-width: 440px;
    width: 100%;
    height: auto;
}

.layer-rect {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.arch-layer-node {
    cursor: pointer;
}

/* Interactive hover styling on SVG layer boxes */
.arch-layer-node:hover .layer-rect {
    stroke-width: 2;
    fill-opacity: 0.95;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.08));
}

.arch-layer-node.active .layer-rect {
    stroke-width: 1.5;
    fill-opacity: 1;
}

.arch-layer-node.active .rect-ui {
    stroke: var(--color-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
}

.arch-layer-node.active .rect-api {
    stroke: var(--color-purple);
    fill: var(--color-purple);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.arch-layer-node.active .rect-logic {
    stroke: var(--color-red);
    fill: var(--color-red);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.arch-layer-node.active .rect-db {
    stroke: var(--color-emerald);
    fill: var(--color-emerald);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.arch-layer-node.active .rect-cloud {
    stroke: var(--color-yellow);
    fill: var(--color-yellow);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.layer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    fill: #ffffff;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.arch-layer-node.active .layer-title {
    fill: #ffffff;
}

.dot-connector {
    fill: var(--color-bg-primary);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    transition: var(--transition-fast);
}

.arch-layer-node.active .dot-connector {
    stroke: #ffffff;
    fill: #ffffff;
}

.flow-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
    stroke-dasharray: 6, 6;
    animation: flow-motion 30s linear infinite;
}

@keyframes flow-motion {
    to {
        stroke-dashoffset: -1000;
    }
}

.arch-details-card {
    background: var(--color-bg-tertiary);
    border: var(--border-glass-glow);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.arch-details-header {
    border-bottom: var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.arch-step-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-cyan);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 6px;
}

.arch-layer-name {
    font-size: 1.6rem;
    font-weight: 800;
}

.arch-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.arch-tech-list h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: #ffffff;
}

.arch-tech-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 28px;
}

.arch-tech-list li {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-tech-list li::before {
    content: '→';
    color: var(--color-cyan);
}

.arch-security-note {
    display: flex;
    gap: 12px;
    background: rgba(0, 242, 254, 0.03);
    border: var(--border-glass-glow);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-primary);
}

.arch-security-note i {
    font-size: 1.1rem;
    color: var(--color-cyan);
    margin-top: 2px;
}

/* 9. Technology Stack Section */
.tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    background: var(--grad-dark-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    align-items: center;
    transition: var(--transition-smooth);
}

.tech-row:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.005);
}

.tech-row-header {
    display: flex;
    flex-direction: column;
}

.tech-row-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tech-row-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.layer-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.ui-badge {
    background: rgba(0, 242, 254, 0.15);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.api-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.db-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cloud-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.automation-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tech-row-desc {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tech-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.tech-items-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tech-item {
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    cursor: default;
    /* Tilt utility integration */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tech-item:hover {
    background: var(--color-bg-accent);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1.4rem;
}

.tech-item span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 10. Interactive Sandbox Section */
.sandbox-section {
    background: var(--color-bg-primary);
    border-bottom: var(--border-glass);
}

.sandbox-container {
    background: var(--color-bg-secondary);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.sandbox-tabs {
    --color-text-secondary: #94a3b8;
    --color-cyan: #00f2fe;
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;
    background: rgba(19, 23, 34, 0.8);
    border-bottom: var(--border-glass);
}

.sandbox-tab-btn {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.sandbox-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.01);
}

.sandbox-tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.02);
}

.sandbox-content-wrapper {
    padding: 40px;
}

.sandbox-tab-content {
    display: none;
}

.sandbox-tab-content.active {
    display: block;
}

.tab-explanation {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Database Visualizer Grid */
.db-tables-grid {
    display: grid;
    grid-template-columns: 1fr 0.4fr 1fr;
    gap: 20px;
    position: relative;
    min-height: 280px;
}

/* 4 table blocks placed strategically around visual lines container */
.db-tables-grid #table-users {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.db-tables-grid #table-courses {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-top: 20px;
}

.db-tables-grid .db-svg-lines-container {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
}

.db-tables-grid #table-enrollments {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
}

.db-tables-grid #table-payments {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    margin-top: 20px;
}

.db-table-box {
    background: var(--color-bg-tertiary);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.db-table-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.db-table-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: var(--border-glass);
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-table-header i {
    color: var(--color-emerald);
}

.db-table-rows {
    padding: 8px 0;
}

.db-row {
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 2px solid transparent;
    transition: var(--transition-fast);
}

.db-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.db-row span.type {
    color: var(--color-text-secondary);
    font-size: 0.65rem;
}

.db-row.pk {
    border-left-color: var(--color-yellow);
}

.db-row.pk span:first-child::after {
    content: ' 🔑';
}

.db-row.fk {
    border-left-color: var(--color-cyan);
    cursor: pointer;
}

/* Highlight style when database visual relationships are hovered */
.db-row.fk:hover {
    color: var(--color-cyan);
}

.db-row.highlighted {
    background: rgba(0, 242, 254, 0.05);
    color: var(--color-cyan);
}

/* Database relationship line styling */
.db-svg-lines-container svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.rel-path {
    fill: none;
    stroke: rgba(16, 185, 129, 0.25);
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: var(--transition-fast);
}

.rel-path-subtle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.rel-path.active {
    stroke: var(--color-cyan);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px var(--color-cyan));
}

/* API Playground Grid */
.api-playground-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
}

.api-request-panel,
.api-response-panel {
    background: var(--color-bg-tertiary);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.api-request-panel h4,
.api-response-panel h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-endpoint-selector {
    display: flex;
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.api-method-badge {
    background: var(--color-blue);
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding: 0 16px;
    user-select: none;
}

.api-endpoint-selector select {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 12px;
    cursor: pointer;
    outline: none;
}

.api-endpoint-selector select option {
    background: var(--color-bg-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    padding: 12px;
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-fast);
}

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

.response-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.response-panel-header h4 {
    margin-bottom: 0;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-primary);
    border: var(--border-glass);
    padding: 4px 12px;
    border-radius: 20px;
}

#api-status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.bg-neutral {
    background-color: var(--color-text-muted);
}

.bg-success {
    background-color: var(--color-emerald);
    box-shadow: 0 0 6px var(--color-emerald);
}

.bg-loading {
    background-color: var(--color-yellow);
    box-shadow: 0 0 6px var(--color-yellow);
    animation: blink-cursor 1s infinite;
}

#api-console-logs {
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: auto;
}

/* 11. Project Showcase Section */
.projects-slider-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.project-card-slide {
    height: auto;
}

.project-case-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    background: var(--grad-dark-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.project-main-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-cyan);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.project-main-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.project-brief {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.project-tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--color-bg-accent);
    border: var(--border-glass);
    color: var(--color-text-primary);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: var(--border-glass);
    padding-top: 24px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1.1;
}

.metric-lbl {
    color: var(--color-text-secondary);
    font-size: 0.65rem;
    margin-top: 4px;
    line-height: 1.3;
}

.project-architecture-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: var(--border-glass);
    padding-left: 40px;
}

.arch-detail-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-detail-group p {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Slider Controls styling override */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
}

.slider-nav-btn {
    position: static !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: var(--border-glass);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary) !important;
    transition: var(--transition-fast);
}

.slider-nav-btn::after {
    display: none;
}

.slider-nav-btn:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan) !important;
}

.swiper-pagination {
    position: static !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    background: var(--color-text-muted) !important;
    opacity: 0.4 !important;
    width: 6px !important;
    height: 6px !important;
    transition: var(--transition-fast);
}

.swiper-pagination-bullet-active {
    background: var(--color-cyan) !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 3px !important;
}

/* 12. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    width: 100%;
}

.tech-graphic-container {
    position: relative;
    width: 100%;
    padding: 20px;
}

.widget-box {
    --color-bg-primary: #07090e;
    --color-bg-secondary: #0c0f16;
    --color-bg-tertiary: #131722;
    --color-bg-accent: #192030;

    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    --color-cyan: #00f2fe;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-emerald: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;

    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-glow: 1px solid rgba(0, 242, 254, 0.2);
    --grad-dark-card: linear-gradient(180deg, rgba(23, 27, 34, 0.8) 0%, rgba(12, 15, 22, 0.95) 100%);

    background: var(--grad-dark-card);
    border: var(--border-glass-glow);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--color-text-primary);
}

.widget-header {
    background: rgba(19, 23, 34, 0.9);
    border-bottom: var(--border-glass);
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-body {
    padding: 24px;
}

.widget-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 0;
}

.widget-row:last-child {
    border-bottom: none;
}

.widget-row .key {
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.widget-row .val {
    color: var(--color-text-secondary);
    font-size: 0.72rem;
}

.quote-card-overlay {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    width: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.quote-card-overlay i {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.quote-card-overlay p {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    font-style: italic;
}

.about-info {
    display: flex;
    flex-direction: column;
}

.about-text {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.principle-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.principle-card i {
    font-size: 1.15rem;
    margin-top: 4px;
}

.principle-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.principle-card p {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* 13. Contact Section */
.contact-card {
    --color-bg-primary: #07090e;
    --color-bg-secondary: #0c0f16;
    --color-bg-tertiary: #131722;
    --color-bg-accent: #192030;

    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    --color-cyan: #00f2fe;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-emerald: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;

    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-glow: 1px solid rgba(0, 242, 254, 0.2);
    --grad-dark-card: linear-gradient(180deg, rgba(23, 27, 34, 0.8) 0%, rgba(12, 15, 22, 0.95) 100%);

    background: var(--grad-dark-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: var(--color-text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}

.contact-info-panel {
    background: rgba(19, 23, 34, 0.8);
    border-right: var(--border-glass);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info-panel p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-details-list a {
    transition: var(--transition-fast);
}

.contact-details-list a:hover {
    color: var(--color-cyan);
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.1rem;
    margin-top: 4px;
}

.detail-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.detail-item p {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.contact-status-board {
    border-top: var(--border-glass);
    padding-top: 24px;
}

.status-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.status-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.status-cell {
    display: flex;
    flex-direction: column;
}

.status-lbl {
    font-size: 0.6rem;
    color: var(--color-text-secondary);
}

.status-val {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.contact-form-panel {
    padding: 48px;
}

.contact-form-panel h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

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

/* Form controls styling inside card */
.contact-form-panel .form-group input,
.contact-form-panel .form-group select,
.contact-form-panel .form-group textarea {
    width: 100%;
    background: var(--color-bg-primary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    padding: 14px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.contact-form-panel .form-group input:focus,
.contact-form-panel .form-group select:focus,
.contact-form-panel .form-group textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.contact-form-panel .form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

.contact-form-panel .form-group select option {
    background: var(--color-bg-secondary);
}

/* 14. Footer */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: var(--border-glass);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-mono {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-group h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-primary);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group ul a {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

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

.footer-monitor-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-metric {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
}

.footer-metric .metric-lbl {
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: inherit;
    margin-top: 0;
}

.footer-metric .metric-val {
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.footer-bottom {
    border-top: var(--border-glass);
    padding-top: 30px;
    text-align: center;
}

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

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

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   15. Responsive Sizing & Breakpoints
   ========================================================================== */

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tech-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tech-items-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sandbox-container {
        border-radius: var(--border-radius-md);
    }

    .project-case-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .project-architecture-details {
        border-left: none;
        border-top: var(--border-glass);
        padding-left: 0;
        padding-top: 32px;
    }

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

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

    .contact-info-panel {
        border-right: none;
        border-bottom: var(--border-glass);
        padding: 32px;
    }

    .contact-form-panel {
        padding: 32px;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-interactive {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

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

    .tech-items-grid,
    .tech-items-grid.grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .db-tables-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .db-tables-grid #table-users,
    .db-tables-grid #table-courses,
    .db-tables-grid #table-enrollments,
    .db-tables-grid #table-payments {
        grid-column: 1 !important;
        grid-row: auto !important;
        margin-top: 0 !important;
    }

    .db-svg-lines-container {
        display: none;
    }

    .api-playground-grid {
        grid-template-columns: 1fr;
    }


}

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

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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

    .project-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .tech-items-grid,
    .tech-items-grid.grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   16. Custom Toast Notification
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(12, 15, 22, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 16px 24px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 380px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-icon.success {
    color: var(--color-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.toast-icon.error {
    color: var(--color-red);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.toast-message {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

/* ==========================================================================
   17. Light Theme Settings & Overrides
   ========================================================================== */
body.light-theme {
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-bg-tertiary: #ffffff;
    --color-bg-accent: #e2e8f0;

    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;

    --color-cyan: #0284c7;
    --color-blue: #1d4ed8;
    --color-purple: #6d28d9;
    --color-emerald: #047857;
    --color-yellow: #b45309;
    --color-red: #b91c1c;

    --grad-primary: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    --grad-purple: linear-gradient(135deg, #6d28d9 0%, #be185d 100%);
    --grad-db: linear-gradient(135deg, #047857 0%, #0284c7 100%);
    --grad-dark-card: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);

    --border-glass: 1px solid rgba(15, 23, 42, 0.08);
    --border-glass-glow: 1px solid rgba(2, 132, 199, 0.15);

    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.06);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Light Theme Overrides */
body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .logo-mono {
    color: #0f172a;
}

body.light-theme .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

body.light-theme .glow-blob {
    opacity: 0.05;
}

body.light-theme .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
}

/* Ensure the code terminals remain dark mode for high readability */
.console-box,
#api-console-logs {
    --color-bg-primary: #07090e;
    --color-bg-secondary: #0c0f16;
    --color-bg-tertiary: #131722;
    --color-bg-accent: #192030;

    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    --color-cyan: #00f2fe;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-emerald: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;

    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-glow: 1px solid rgba(0, 242, 254, 0.2);

    color: var(--color-text-primary);
}

body.light-theme .console-box,
body.light-theme #api-console-logs {
    background: #0c0f16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .console-header {
    background: rgba(19, 23, 34, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .console-badge {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--color-red) !important;
}

body.light-theme .console-line.text-white {
    color: #ffffff !important;
}

/* Keep Contact Card Dark as a high contrast design highlight block */
body.light-theme .contact-card {
    background: linear-gradient(180deg, rgba(23, 27, 34, 0.95) 0%, rgba(12, 15, 22, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .contact-info-panel {
    background: rgba(19, 23, 34, 0.8) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* About widget remain dark mode */
body.light-theme .widget-box {
    background: linear-gradient(180deg, rgba(23, 27, 34, 0.95) 0%, rgba(12, 15, 22, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .widget-header {
    background: rgba(19, 23, 34, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.light-theme .db-table-header {
    color: var(--color-text-primary);
    background: rgba(15, 23, 42, 0.02);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

body.light-theme .theme-toggle-btn {
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--color-text-secondary);
}

body.light-theme .theme-toggle-btn:hover {
    color: var(--color-blue);
    border-color: var(--color-blue);
    background: rgba(29, 78, 216, 0.05);
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.10);
}

/* Architecture SVG Light Theme Adjustments */
body.light-theme .arch-layer-node:not(.active) .layer-title {
    fill: var(--color-text-secondary);
}

body.light-theme .flow-line {
    stroke: rgba(15, 23, 42, 0.15);
}

body.light-theme .dot-connector {
    stroke: rgba(15, 23, 42, 0.25);
}

body.light-theme .arch-layer-node:not(.active) .dot-connector {
    stroke: rgba(15, 23, 42, 0.25);
}

/* Database Visualizer Light Theme Adjustments */
body.light-theme .db-table-box:hover {
    border-color: rgba(15, 23, 42, 0.15);
}

body.light-theme .db-row:hover {
    background: rgba(15, 23, 42, 0.02);
}

body.light-theme .rel-path-subtle {
    stroke: rgba(15, 23, 42, 0.08);
}