@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist-font@1.0.0/dist/geist-font.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@400;600;700&display=optional');

/* Metric-matched Orbitron fallback to prevent CLS during font load */
@font-face {
    font-family: 'Orbitron Fallback';
    src: local('Arial');
    size-adjust: 112%;
    ascent-override: 100%;
    descent-override: 25%;
    line-gap-override: 0%;
}

/* Base Design System */
:root {
    --font-sans: 'Geist', 'Satoshi', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', 'Orbitron Fallback', sans-serif;
    
    /* Default theme variables - Dark Theme */
    --primary-color: #6C63FF;
    --primary-dark: #5046e6;
    --secondary-color: #00D4FF;
    --bg-primary: #0A0A0A;
    --bg-secondary: #0D0D0D;
    --panel-bg: rgba(17, 17, 17, 0.75);
    --panel-hover: rgba(25, 25, 25, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent-color: #10A37F;
    --text-primary: #F5F5F5;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    --gradient-panel: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    
    /* Shadows & Effects */
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.15);
    --glass-blur: blur(12px);
    
    /* Legacy variables mapping (for un-redesigned components compatibility) */
    --dark-color: var(--text-primary);
    --darker-color: var(--bg-secondary);
    --light-color: var(--bg-primary);
    --lighter-color: var(--panel-bg);
    --text-color: var(--text-primary);
    --text-light: var(--text-primary);
    --text-dark: var(--text-primary);
    --shadow: var(--shadow-premium);
    --glass: var(--panel-bg);
    --glass-border: var(--border-color);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4F4F5;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --panel-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #09090B;
    --text-secondary: #52525B;
    --text-muted: #71717A;
    --gradient-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 244, 245, 0.9) 100%);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.08);
    
    /* Legacy mapping for light mode */
    --dark-color: var(--text-primary);
    --darker-color: var(--bg-secondary);
    --light-color: var(--bg-primary);
    --lighter-color: var(--panel-bg);
    --text-color: var(--text-primary);
    --text-light: #FFFFFF;
    --text-dark: var(--text-primary);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
}

[data-theme="light"] .btn-secondary {
    background-color: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 1.5px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Theme Toggle & Navbar Actions */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin-left: 8px;
}

.theme-toggle,
.navbar .theme-toggle,
.nav-actions .theme-toggle {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 1000;
    flex-shrink: 0 !important;
    vertical-align: middle;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/* Fallback if a page has body > .theme-toggle before JS moves it into .navbar */
body > .theme-toggle {
    position: fixed !important;
    top: 24px !important;
    right: calc(5% + 20px) !important;
    box-shadow: var(--shadow-premium);
}

@media (min-width: 1333px) {
    body > .theme-toggle {
        right: calc(50% - 600px + 20px) !important;
    }
}

.navbar.scrolled .theme-toggle,
body > .theme-toggle.scrolled {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
}

body > .theme-toggle.scrolled {
    top: 15px !important;
}

.theme-toggle i {
    font-size: 1rem !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-primary);
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle i.fa-moon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.theme-toggle i.fa-sun {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle i.fa-moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .theme-toggle i.fa-sun {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background-color: var(--panel-hover);
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1240px;
    padding: 12px 24px;
    z-index: 999;
    background-color: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: top 0.3s ease, padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 9px 20px;
    border-color: var(--border-hover);
    background-color: rgba(10, 10, 10, 0.88);
}

[data-theme="light"] .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    flex-wrap: nowrap;
}

.nav-links a {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 15px;
    cursor: pointer;
    z-index: 1001;
}

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

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

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

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

/* Options Bar */
.top-options {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 998;
    transition: var(--transition);
}

.options-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.option-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    background-color: var(--panel-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.option-btn:hover {
    color: var(--text-primary);
    background-color: var(--panel-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
/* Hero Section */
.hero {
    position: relative;
    block-size: auto;
    min-block-size: 100vh;
    min-block-size: 100dvh;
    display: flex;
    align-items: safe center;
    padding-block: 120px 60px;
    overflow: clip;
}

.video-background {
    display: none !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(22, 33, 62, 0.8), rgba(108, 99, 255, 0.5));
    z-index: -1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.9rem, 1.25rem + 3.4vw, 4rem);
    line-height: 1.18;
    text-wrap: balance;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
    text-wrap: pretty;
    margin-bottom: 40px;
    color: var(--text-secondary);
    opacity: 0.9;
}

.consultation-hero .btn-secondary,
.branding-hero .btn-secondary,
.content-hero .btn-secondary {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.consultation-hero .btn-secondary:hover,
.branding-hero .btn-secondary:hover,
.content-hero .btn-secondary:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.cta-buttons .btn {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 10px;
}

.scroll-down {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.scroll-down span {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--text-light);
    animation: bounce 1.5s infinite ease-in-out;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--lighter-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.3) 0%, transparent 70%);
    z-index: 1;
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--light-color);
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.member {
    background-color: var(--lighter-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 300px;
    text-align: center;
    padding-bottom: 20px;
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member:hover .member-image img {
    transform: scale(1.05);
}

.social-links {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background: linear-gradient(to top, rgba(108, 99, 255, 0.9), transparent);
    transition: var(--transition);
}

.member:hover .social-links {
    bottom: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--text-light);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

.member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.member p {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--lighter-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.service-card:hover .service-icon {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.service-card:hover .read-more {
    color: var(--text-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.8rem;
    transition: var(--transition);
}

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

.service-card p {
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: var(--light-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(108, 99, 255, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: var(--text-light);
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0.9;
}

.portfolio-overlay .view-project {
    align-self: flex-start;
    padding: 8px 20px;
    background-color: var(--text-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .view-project {
    transform: translateY(0);
}

.portfolio-overlay .view-project:hover {
    background-color: var(--darker-color);
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--lighter-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.client-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.client-info p {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0;
    font-style: normal;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-prev, .slider-next {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 100px 0 0;
    background-color: var(--light-color);
}

.contact-content {
    container: contact-card / inline-size;
    display: flex;
    gap: clamp(24px, 4vw, 50px);
    margin-bottom: 50px;
}

.contact-info {
    flex: 1 1 280px;
    min-inline-size: 0;
    min-width: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.info-icon {
    flex: 0 0 54px;
    inline-size: 54px;
    block-size: 54px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.info-text {
    flex: 1 1 0%;
    min-inline-size: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-text h3 {
    font-size: clamp(1.1rem, 2.5cqi, 1.3rem);
    margin-bottom: 6px;
    color: var(--text-primary);
}

.info-text p,
.info-text a {
    font-size: clamp(0.92rem, 2cqi, 1rem);
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0;
}

.info-text a:hover {
    color: var(--primary-color);
}

.social-media {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: balance;
    gap: 12px;
    margin-top: 32px;
}

.social-media a {
    flex: 0 0 42px;
    inline-size: 42px;
    block-size: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition);
}

.social-media a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

.contact-form {
    flex: 1 1 300px;
    min-inline-size: 0;
    min-width: 0;
    background-color: var(--lighter-color);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    height: 400px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
    color: var(--text-primary);
}

.footer-about .logo span {
    color: var(--secondary-color);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light-color);
    color: var(--text-color);
}

.footer-newsletter button {
    padding: 0 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legal-links a {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: var(--transition);
}

.legal-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        block-size: auto !important;
        height: auto !important;
        min-block-size: 100svh;
        align-items: flex-start;
        padding-top: 112px !important;
        padding-bottom: 48px !important;
    }
    
    .hero-title {
        font-size: clamp(1.85rem, 6.2vw, 2.35rem);
        line-height: 1.22;
        margin-top: 8px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.8vw, 1.15rem);
        margin-bottom: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 36px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding: 28px 20px !important;
        gap: 32px;
        border-radius: 18px;
    }

    .contact-form {
        padding: 22px 16px;
    }

    .info-item {
        gap: 14px;
        margin-bottom: 22px;
    }

    .info-icon {
        flex: 0 0 46px;
        inline-size: 46px;
        block-size: 46px;
        font-size: 1.15rem;
    }

    .social-media {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 24px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 106px !important;
        padding-bottom: 40px !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6.8vw, 2.1rem);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .footer-newsletter button {
        border-radius: 5px;
        padding: 12px;
    }
}
.form-success, .form-error {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-success i, .form-error i {
    margin-right: 10px;
    font-size: 1.2em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* AI Assistant Styles */
.ai-assistant-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-assistant-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.ai-assistant-btn i {
    font-size: 24px;
}

.ai-assistant {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

.ai-assistant.active {
    display: flex;
}

.ai-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header h3 {
    margin: 0;
    font-size: 18px;
}

.ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
}

.user-message {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #222;
}

.ai-message a {
    color: #6C63FF;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: break-word;
    word-break: normal;
    transition: color 0.2s;
}

.ai-message a:hover {
    color: #00D4FF;
}

.ai-message ul,
.ai-message ol {
    margin: 6px 0 6px 16px;
    padding: 0;
}

.ai-message li {
    margin-bottom: 4px;
}

.ai-message strong { font-weight: 700; }
.ai-message em { font-style: italic; }

.ai-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
}

.ai-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.ai-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
    }

.ai-input button:hover {
    background: var(--secondary-color);
}

.typing-indicator {
    display: inline-block;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #666;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    animation: typing 1s infinite ease-in-out;
    }

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
    }

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    }

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

@media (max-width: 768px) {
    .ai-assistant {
        width: 300px;
        right: 15px;
        bottom: 150px;
    }
        
.ai-assistant-btn {
    right: 15px;
    bottom: 80px;
    }
}
/* Add to base.css for new pages */
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
    color: var(--text-color);
    appearance: none;
    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='currentColor' 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 15px center;
    background-size: 1em;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

/* Pricing card animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card,
.model-card,
.consultation-type {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ==========================================
   FUTURISTIC DARK PREMIUM REDESIGN MODULES
   ========================================== */

/* Three.js Background & Particles Wrapper */
#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.hero {
    position: relative;
    overflow: clip;
    background-color: var(--bg-primary);
    display: flex;
    align-items: safe center;
    justify-content: center;
    block-size: auto;
    height: auto;
    min-block-size: 100vh;
    min-block-size: 100dvh;
    padding-block: 120px 60px;
}

/* Ambient Radial Glows */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

.ambient-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* Glassmorphism Cards & Bento System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.bento-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: var(--shadow-premium);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--panel-hover);
    box-shadow: var(--shadow-glow);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bento-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bento-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.bento-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.bento-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.bento-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.bento-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bento-card-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.bento-card:hover .bento-card-link i {
    transform: translateX(4px);
}

/* Bento Grid Spans */
.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

/* Developer Workspace Terminal Widget */
.terminal-widget {
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-mono);
    color: #F8F8F2;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    margin-top: 30px;
    text-align: left;
}

.terminal-header {
    background: rgba(25, 25, 25, 0.9);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-btn.close { background: #FF5F56; }
.terminal-btn.minimize { background: #FFBD2E; }
.terminal-btn.maximize { background: #27C93F; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.terminal-prompt {
    color: var(--secondary-color);
    margin-right: 8px;
    user-select: none;
}

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

.terminal-success {
    color: var(--accent-color);
}

/* Services section design update */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-premium);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--panel-hover);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #FFF;
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* Portfolio Hover Overlay and Cards updates */
.portfolio-item {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.portfolio-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.95) 100%);
    padding: 24px;
    opacity: 1; /* Always visible text on modern overlays */
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(0);
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transform: translateY(0);
    margin-bottom: 12px;
}

.portfolio-overlay .view-project {
    transform: translateY(0);
    padding: 6px 16px;
    font-size: 0.8rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 6px;
    font-weight: 500;
}

.portfolio-overlay .view-project:hover {
    background: var(--gradient-primary);
    color: #FFF;
}

/* Contact & Input Sleek styling */
.contact-content {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(22px, 5vw, 50px);
    box-shadow: var(--shadow-premium);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

/* Footer modern overhaul */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-content {
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 50px;
}

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

/* AI Assistant Chat UI Redesign */
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 14px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    z-index: 1000;
    contain: layout style;
}

.ai-assistant-btn i {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.ai-assistant-btn:hover {
    background: var(--gradient-primary);
    color: #FFF;
    transform: translateY(-3px) scale(1.05);
}

.ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    z-index: 1000;
}

.ai-header {
    background: rgba(10, 10, 10, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}

.ai-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-messages {
    background: transparent;
    padding: 20px;
}

.message {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.ai-message {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.ai-message a {
    color: #00D4FF;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: break-word;
    word-break: normal;
    transition: color 0.2s;
}

.ai-message a:hover {
    color: #6C63FF;
    text-decoration: none;
}

.ai-message ul,
.ai-message ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}

.ai-message li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.ai-message strong { font-weight: 700; color: var(--text-primary); }
.ai-message em { font-style: italic; opacity: 0.85; }
.ai-message code {
    background: rgba(108, 99, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.88em;
}

.user-message {
    background: var(--primary-color);
    color: #FFF;
    border-color: transparent;
}

.ai-input {
    background: rgba(10, 10, 10, 0.2);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

.ai-input input {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.ai-input button {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.ai-input button:hover {
    background: var(--gradient-primary);
    color: #FFF;
}

/* Animations Trigger */
.reveal-on-scroll {
    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);
}

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

/* Bento/Responsive Media Queries */
@media (max-width: 1024px) {
    .navbar,
    .navbar.scrolled {
        width: 94% !important;
        padding: 10px 20px !important;
        top: 10px !important;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        width: 100%;
        background-color: var(--panel-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        opacity: 0;
        pointer-events: none;
        box-shadow: var(--shadow-premium);
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) scale(1);
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .col-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .navbar .theme-toggle,
    .navbar.scrolled .theme-toggle {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    body > .theme-toggle,
    body > .theme-toggle.scrolled {
        position: fixed !important;
        top: 16px !important;
        right: 62px !important;
        left: auto !important;
        bottom: auto !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    
    .ai-assistant {
        width: 90vw;
        right: 5vw;
        bottom: 95px;
        height: 70vh;
    }
}

/* Dashboard Widget Simulator */
.dashboard-widget {
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

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

.db-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 1.5s infinite ease-in-out;
}

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

.db-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.db-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.db-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.db-palette {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: text;
}

.db-palette i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.db-palette-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    margin-left: 10px;
}

.db-palette-key {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.db-monitor {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
}

.monitor-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.monitor-log {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.log-time {
    color: var(--text-muted);
}

.log-code {
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
}

.code-200 {
    color: var(--accent-color);
    background: rgba(16, 163, 127, 0.1);
}

.code-201 {
    color: var(--secondary-color);
    background: rgba(0, 212, 255, 0.1);
}

/* Global dropdown select option visibility fix */
select option {
    background-color: #121214 !important;
    color: #FFFFFF !important;
}