/* ==========================================================================
   Design System & Theme Properties (Vought Trading PLC)
   ========================================================================== */

:root {
    /* Transitions & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Sizes */
    --nav-height: 80px;
    --container-max-w: 1200px;
}

/* Dark Theme (Default) */
.dark-theme {
    --primary: hsl(214, 100%, 65%);      /* Glowing blue logo accent */
    --primary-dark: hsl(214, 100%, 18%); /* True Vought Logo Navy */
    --primary-glow: hsla(214, 100%, 65%, 0.15);
    --accent: hsl(45, 65%, 53%);        /* Champagne Gold accent */
    --accent-glow: hsla(45, 65%, 53%, 0.15);
    --bg-base: hsl(222, 40%, 6%);        /* Obsidian Midnight space */
    --bg-surface: hsla(222, 30%, 12%, 0.65); /* Slate Frosted glass */
    --bg-surface-solid: hsl(222, 30%, 9%);
    --bg-surface-hover: hsla(222, 30%, 18%, 0.8);
    --border-color: hsla(222, 20%, 20%, 0.4);
    --border-color-glow: hsla(45, 65%, 53%, 0.35); /* Gold glow border */
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(218, 20%, 75%);
    --text-muted: hsl(218, 12%, 50%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--primary-glow);
    --glass-blur: 16px;
}

/* Light Theme Switch */
.light-theme {
    --primary: hsl(214, 90%, 45%);      /* Rich deep logo blue */
    --primary-glow: hsla(214, 90%, 45%, 0.08);
    --accent: hsl(197, 95%, 43%);       /* Teal-cyan accent */
    --accent-glow: hsla(197, 95%, 43%, 0.08);
    --bg-base: hsl(220, 33%, 97%);       /* Minimal white-grey */
    --bg-surface: hsla(0, 0%, 100%, 0.65); /* Glassmorphic clean white */
    --bg-surface-solid: hsl(0, 0%, 99%);
    --bg-surface-hover: hsla(220, 20%, 93%, 0.8);
    --border-color: hsla(220, 20%, 82%, 0.5);
    --border-color-glow: hsla(214, 90%, 45%, 0.25);
    --text-primary: hsl(224, 71%, 4%);
    --text-secondary: hsl(220, 16%, 36%);
    --text-muted: hsl(220, 12%, 52%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(220, 224, 230, 0.4);
    --shadow-lg: 0 20px 30px rgba(220, 224, 230, 0.6);
    --glass-blur: 12px;
}

/* ==========================================================================
   Base Elements & Reset Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Smooth custom scrollbars */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Background Space Effects
   ========================================================================== */

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(120px);
    opacity: 0.4;
    transition: all var(--transition-slow);
}

.glow-sphere-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10vw;
    right: -5vw;
}

.glow-sphere-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -15vw;
    left: -10vw;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* ==========================================================================
   Reusable UI Components & Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-column { flex-direction: column; }

/* Grid Layouts */
.grid {
    display: grid;
    gap: 32px;
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Typography Glows */
.text-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

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

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.8s infinite alternate;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-lg);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: hsl(0, 0%, 100%);
    box-shadow: 0 4px 20px hsla(244, 97%, 66%, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px hsla(244, 97%, 66%, 0.45);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.icon-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: hsla(224, 71%, 4%, 0.7); /* Deep blur fallback */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background var(--transition-normal);
}

.light-theme .navbar {
    background: hsla(220, 33%, 97%, 0.7);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

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

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

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

/* Theme Icons Display System */
.sun-icon { display: block; }
.moon-icon { display: none; }

.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-drawer {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    padding: 40px 24px;
    display: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-drawer.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.drawer-actions {
    margin-top: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    padding-top: calc(var(--nav-height) + 60px);
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-visual {
    width: 100%;
}

/* Code Console Box */
.console-box {
    background: hsl(223, 47%, 4%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

.console-header {
    background: hsla(223, 47%, 8%, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.dot-red { background-color: hsl(0, 84%, 60%); }
.dot-yellow { background-color: hsl(40, 84%, 60%); }
.dot-green { background-color: hsl(120, 84%, 60%); }

.console-title {
    margin-left: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.console-body {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: hsl(220, 14%, 90%);
}

.terminal-line {
    margin-bottom: 8px;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 700;
}

.terminal-output {
    color: var(--text-secondary);
}

.terminal-json {
    color: hsl(45, 90%, 65%);
}

.indent-1 {
    padding-left: 20px;
}

.blink-cursor {
    animation: blink 1s infinite step-end;
    font-weight: bold;
    color: var(--accent);
}

/* ==========================================================================
   Software Lab Section
   ========================================================================== */

.lab-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 520px;
    overflow: hidden;
}

.lab-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lab-tab-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.lab-tab-btn.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tab-icon {
    flex-shrink: 0;
}

.lab-content {
    padding: 32px;
    background: hsla(223, 47%, 10%, 0.15);
}

.lab-panel {
    display: none;
    height: 100%;
}

.lab-panel.active {
    display: block;
}

.panel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    height: 100%;
}

.panel-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-controls h3 {
    font-size: 1.4rem;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.panel-display {
    min-height: 320px;
    border-radius: var(--radius-md);
    background: hsla(224, 71%, 4%, 0.35);
    border: 1px solid var(--border-color);
    padding: 24px;
}

/* Seal Generator Widget Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.color-picker {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.seal-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 250px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    padding: 12px;
}

#seal-render-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* API sandbox styles */
.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endpoint-selector {
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.endpoint-selector:hover {
    background: var(--bg-surface-hover);
}

.endpoint-selector.active {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text-primary);
}

.terminal-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: hsl(223, 47%, 4%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.terminal-top {
    background: hsla(223, 47%, 8%, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shell-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
}

.shell-url {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-screen {
    flex-grow: 1;
    padding: 16px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: hsl(220, 14%, 90%);
    overflow-y: auto;
}

.term-line {
    margin-bottom: 6px;
}

.cyan-text { color: var(--accent); }
.purple-text { color: hsl(270, 95%, 75%); }
.response-line {
    white-space: pre-wrap;
    color: hsl(120, 75%, 65%);
}

.loading-line {
    color: var(--text-muted);
    font-style: italic;
}

/* Sorting Visualizer style */
.visualizer-arena {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 180px;
    width: 100%;
    background: hsla(223, 47%, 4%, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 12px;
    margin-bottom: 16px;
}

.sort-bar {
    width: 16px;
    background-color: var(--primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.1s ease, background-color 0.1s ease;
}

.sort-bar.active {
    background-color: var(--accent);
}

.sort-bar.sorted {
    background-color: hsl(140, 80%, 50%);
}

.algo-stats-row {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.visualizer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.service-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.service-card h3 {
    font-size: 1.35rem;
}

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

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-card {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar-frame {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--shadow-sm);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-surface-solid);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
}

.member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.member-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

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

.contact-info {
    max-width: 440px;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.detail-item svg {
    color: var(--primary);
}

.contact-card {
    padding: 40px;
}

.interactive-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-solid);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    text-align: center;
    max-width: 400px;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Toasts Notification Styling
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 280px;
    padding: 16px 20px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.success {
    border-left-color: hsl(140, 80%, 45%);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.85; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    100% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 12px 4px rgba(6, 182, 212, 0.25); }
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes toast-slide-in {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.animate-slide-up-delay-more {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal helper states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Responsive Viewport Breakpoints
   ========================================================================== */

@media (max-width: 968px) {
    .navbar {
        height: 70px;
    }
    .mobile-drawer {
        top: 70px;
        height: calc(100vh - 70px);
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .nav-actions {
        margin-left: auto;
        margin-right: 16px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    
    .lab-workspace {
        grid-template-columns: 1fr;
    }
    .lab-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        gap: 12px;
    }
    .lab-tab-btn.active {
        border-left: none;
        border-bottom: 3px solid var(--primary);
        border-radius: 0;
    }
    .panel-layout {
        grid-template-columns: 1fr;
    }
    .seal-preview-box {
        margin: 0 auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        max-width: 100%;
        text-align: center;
    }
    .contact-details {
        align-items: center;
    }
    .footer-links {
        gap: 16px 24px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }
    .visualizer-actions {
        grid-template-columns: 1fr;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ==========================================================================
   Brand Logo Style
   ========================================================================== */
.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-right: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
    transition: transform var(--transition-fast) ease;
}

.logo:hover .brand-logo-img {
    transform: scale(1.05) rotate(2deg);
}

/* ==========================================================================
   Our Works & Products CMS Showcase Styles
   ========================================================================== */
.works-section {
    position: relative;
}

.product-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-fast) ease, border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px -10px var(--primary-glow);
}

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

.product-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}

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

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

.product-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.product-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast) ease;
}

.product-link svg {
    transition: transform var(--transition-fast) ease;
}

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

.product-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Admin Dashboard Layout Styles
   ========================================================================== */
.admin-body {
    background-color: var(--bg-body);
}

.admin-navbar {
    border-bottom: 1px solid var(--border-color);
}

.admin-main {
    padding-top: 120px;
    padding-bottom: 80px;
}

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

.admin-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

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

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
}

.metric-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 4px;
    color: var(--text-primary);
}

.admin-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: start;
}

.admin-form-card {
    padding: 32px;
}

.admin-table-card {
    padding: 32px;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, 
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-surface-solid);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr {
    background: hsla(224, 71%, 4%, 0.15);
    transition: background-color var(--transition-fast) ease;
}

.admin-table tbody tr:hover {
    background: var(--bg-surface);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.tech-badge-sm {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.service-tag-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.message-content-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-content-cell.expanded {
    white-space: normal;
    word-break: break-word;
    color: var(--text-primary);
}

.btn-delete-action {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast) ease;
}

.btn-delete-action:hover {
    color: hsl(0, 85%, 65%);
    background: hsla(0, 85%, 65%, 0.1);
    border-color: hsla(0, 85%, 65%, 0.2);
}

/* Admin Responsive styling overrides */
@media (max-width: 968px) {
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
    .admin-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Admin Security Login Overlay & CMS Section Styling
   ========================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 23, 0.9);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-card {
    width: 90%;
    max-width: 420px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   Admin Portal Premium Layout & Component Overhaul
   ========================================================================== */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
}

/* Sidebar Styling */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, hsl(222, 40%, 4%) 0%, hsl(222, 40%, 2%) 100%);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) ease;
}

.sidebar-btn svg {
    opacity: 0.7;
    transition: all var(--transition-fast) ease;
}

.sidebar-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.sidebar-btn.active {
    color: var(--accent);
    background: hsla(45, 65%, 53%, 0.1);
    border-color: hsla(45, 65%, 53%, 0.2);
    box-shadow: 0 0 15px -3px hsla(45, 65%, 53%, 0.2);
}

.sidebar-btn.active svg {
    opacity: 1;
    color: var(--accent);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-session-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-session-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Main Dashboard Area */
.admin-main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
    background: radial-gradient(circle at 80% 10%, hsla(214, 100%, 18%, 0.15), transparent 50%),
                radial-gradient(circle at 10% 90%, hsla(45, 65%, 53%, 0.05), transparent 50%);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-title-area h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.admin-title-area p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Slide-out Form Drawer System */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal) ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-drawer {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    max-width: 90%;
    height: 100vh;
    background: linear-gradient(180deg, hsl(222, 35%, 10%) 0%, hsl(222, 35%, 7%) 100%);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.drawer-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn var(--transition-normal) ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Table Enhancements */
.admin-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 0 !important; /* Let table and headers touch outer border */
}

.admin-table-card h2, .admin-table-card p {
    padding: 30px 30px 10px 30px;
}

.table-container {
    margin: 10px 20px 20px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-table {
    border-collapse: collapse;
}

.admin-table th {
    background-color: var(--bg-surface-solid);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent);
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tbody tr:hover td {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* Edit and Action buttons styles */
.action-btn-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.btn-edit-action {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast) ease;
}

.btn-edit-action:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.btn-delete-action {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast) ease;
}

.btn-delete-action:hover {
    color: hsl(0, 85%, 65%);
    background: hsla(0, 85%, 65%, 0.1);
    border-color: hsla(0, 85%, 65%, 0.2);
}

.hidden {
    display: none !important;
}

/* Config panel layout */
.admin-config-section {
    max-width: 900px;
}

.config-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.config-section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    color: var(--accent);
}

/* Custom Delete Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 1;
    transition: opacity var(--transition-normal) ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    width: 90%;
    max-width: 440px;
    padding: 30px;
    background: linear-gradient(180deg, hsl(222, 35%, 12%) 0%, hsl(222, 35%, 8%) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.1);
    transform: scale(1);
    transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.95);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transition: all var(--transition-fast) ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), 0 0 10px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Toast Alert Corrections */
.toast.toast-success, .toast.success {
    border-left-color: hsl(140, 80%, 45%);
}

.toast.toast-error, .toast.error {
    border-left-color: hsl(0, 80%, 50%);
}

/* Visibility Toggle Switch Styles */
.visibility-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.switch-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
    cursor: pointer;
}

.switch-label span {
    font-weight: 500;
}

/* Switch Container */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider track */
.switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    border: 1.5px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3.5px;
    background-color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover state track & knob styling */
.switch:hover .toggle-slider {
    border-color: rgba(212, 175, 55, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.switch:hover .toggle-slider:before {
    background-color: #cbd5e1;
    transform: scale(1.08);
}

/* Checked state track styling */
.switch input:checked + .toggle-slider {
    background-color: rgba(212, 175, 55, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Checked state knob styling */
.switch input:checked + .toggle-slider:before {
    transform: translateX(22px) scale(1.04);
    background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Focus outline state */
.switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

/* Product Card Banner Image Styles */
.product-image {
    width: calc(100% + 64px); /* offsets parent card 32px padding */
    height: 180px;
    margin: -32px -32px 24px -32px;
    overflow: hidden;
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
    border-bottom: 1px solid var(--border-color);
}

.product-image img,
.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image video {
    transform: scale(1.05);
}

/* Image Preview in Admin Drawer */
.image-preview-container {
    position: relative;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-upload-trigger {
    cursor: pointer;
    font-weight: 500;
}

/* Card Header Toggle switch layout */
.card-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}
.card-header-toggle h2, .card-header-toggle h3 {
    margin-bottom: 0 !important;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}
.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: 100%;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.partner-logo-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.partner-logo-box:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}
.partner-logo-placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.partner-logo-box:hover .partner-logo-placeholder {
    color: var(--accent);
    text-shadow: var(--neon-glow);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    height: 100%;
}
.testimonial-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.05);
    font-family: serif;
    pointer-events: none;
    user-select: none;
}
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #f59e0b;
    font-size: 1rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testimonial-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}
.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.testimonial-author-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}



