:root {
    --radius: 0.625rem;
    --background: 240 20% 4%;
    --foreground: 215 20% 90%;
    --card: 220 18% 6%;
    --card-foreground: 215 20% 90%;
    --popover: 220 18% 6%;
    --popover-foreground: 215 20% 90%;
    --primary: 39 95% 59%;
    --primary-foreground: 240 20% 4%;
    --secondary: 220 15% 12%;
    --secondary-foreground: 215 20% 90%;
    --muted: 220 15% 12%;
    --muted-foreground: 215 16% 47%;
    --accent: 190 100% 50%;
    --accent-foreground: 240 20% 4%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 12% 18%;
    --input: 220 12% 18%;
    --ring: 39 95% 59%;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Glow effects */
.glow-orange {
    box-shadow: 0 0 20px rgba(249, 178, 51, 0.3),
                0 0 40px rgba(249, 178, 51, 0.2),
                0 0 60px rgba(249, 178, 51, 0.1);
}
.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3),
                0 0 40px rgba(0, 212, 255, 0.2),
                0 0 60px rgba(0, 212, 255, 0.1);
}
.text-glow-orange {
    text-shadow: 0 0 10px rgba(249, 178, 51, 0.5),
                 0 0 20px rgba(249, 178, 51, 0.3),
                 0 0 30px rgba(249, 178, 51, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f9b233 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass {
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 45, 53, 0.5);
}

/* Code block styling */
.code-block {
    background: linear-gradient(135deg, #0f1117 0%, #1a1d24 100%);
    border: 1px solid #2a2d35;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f9b233, #ff8c00, #00d4ff);
}

/* Grid background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(249, 178, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 178, 51, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Noise texture */
.noise-bg {
    position: relative;
}
.noise-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(249, 178, 51, 0.1);
    border-color: #f9b233;
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-shine:hover::before {
    left: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #f9b233;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: reveal 0.6s ease-out forwards;
}

/* Matrix rain canvas */
#matrix-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    z-index: 0;
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Process step active state */
.process-step.active {
    border-color: hsl(var(--primary));
    background: rgba(249, 178, 51, 0.05);
}

/* Testimonial transitions */
.testimonial-slide {
    transition: all 0.5s ease;
}

/* Service card hover */
.service-card {
    transition: all 0.5s ease;
}
.service-card:hover {
    border-color: rgba(249, 178, 51, 0.5);
}

/* Portfolio card */
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-overlay {
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

/* Navigation scroll state */
nav.scrolled {
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 45, 53, 0.5);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Progress bar for expertise section */
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f9b233 0%, #ff8c00 50%, #f9b233 100%);
    background-size: 200% 100%;
    animation: progress-glow 2s ease-in-out infinite;
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(249, 178, 51, 0.5);
}

@keyframes progress-glow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(249, 178, 51, 0.5);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 20px rgba(249, 178, 51, 0.8);
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.5rem!important;
        line-height: 1;
    }
}

.text-\[\#25d366\] {
    /* --tw-text-opacity: 1; */
    color: #7360f2!important;
}
.bg-\[\#25d366\]\/10 {
    background-color: rgb(115 96 242 / 0.1)!important;
}
.border-\[\#25d366\]\/30 {
    border-color: rgb(115 96 242 / 30%)!important;
}



/* ==================== LIGHT THEME ==================== */

html.light {
    --background: 0 0% 98%;
    --foreground: 220 15% 15%;
    --card: 0 0% 100%;
    --card-foreground: 220 15% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 220 15% 15%;
    --primary: 39 95% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 10% 96%;
    --secondary-foreground: 220 15% 15%;
    --muted: 220 10% 96%;
    --muted-foreground: 220 10% 45%;
    --accent: 39 95% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 13% 88%;
    --input: 220 13% 88%;
    --ring: 39 95% 50%;
}

html.light body {
    background-color: #f8f9fa !important;
    color: #1f2937 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(249, 178, 51, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 178, 51, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 212, 255, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Noise texture for light theme */
html.light .noise-bg::before {
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Grid background for light theme */
html.light .grid-bg {
    background-image: 
        linear-gradient(rgba(249, 178, 51, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 178, 51, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glass effect for light theme */
html.light .glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.85) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Code block for light theme */
html.light .code-block {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html.light .code-block::before {
    background: linear-gradient(90deg, #f9b233, #ff8c00, #00d4ff);
    height: 3px;
}

/* Text colors */
html.light .text-white {
    color: #111827 !important;
}

html.light .text-gray-400 {
    color: #4b5563 !important;
}

html.light .text-gray-500 {
    color: #6b7280 !important;
}

html.light .text-slate-400 {
    color: #475569 !important;
}

html.light .text-slate-500 {
    color: #64748b !important;
}

/* Background colors */
html.light .bg-\[\#0a0a0f\] {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

html.light .bg-\[\#0f1117\] {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
}

html.light .bg-gray-800 {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

html.light .bg-gray-700 {
    background: linear-gradient(145deg, #e5e7eb 0%, #d1d5db 100%) !important;
}

/* Borders */
html.light .border-gray-800 {
    border-color: #e5e7eb !important;
        
}
html.light  .space-y-3 .border-gray-800, html.light .grid .border-gray-800{
background: #e5e7eb;
}

html.light .border-gray-700 {
    border-color: #d1d5db !important;
}

/* Cards with enhanced depth */
html.light .service-card,
html.light .portfolio-card,
html.light .card-hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

html.light .service-card:hover,
html.light .portfolio-card:hover,
html.light .card-hover:hover {
    border-color: rgba(249, 178, 51, 0.5) !important;
    box-shadow: 
        0 10px 25px -5px rgba(249, 178, 51, 0.15),
        0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

/* Process steps */
html.light .process-step {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html.light .process-step.active {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #f9b233 !important;
    box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.1) !important;
}

/* Form inputs */
html.light input,
html.light textarea {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

html.light input:focus,
html.light textarea:focus {
    border-color: #f9b233 !important;
    box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.15) !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
    color: #9ca3af !important;
}

/* Navigation */
html.light nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light .mobile-menu {
    background: rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: blur(20px);
}

/* Filter buttons */
html.light .filter-btn:not(.active) {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html.light .filter-btn:not(.active):hover {
    background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%) !important;
    border-color: #d1d5db !important;
}

/* Footer */
html.light footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-color: #e2e8f0 !important;
}

/* Progress bars */
html.light .progress-bar {
    background: linear-gradient(90deg, #f9b233 0%, #ff8c00 50%, #f9b233 100%) !important;
    background-size: 200% 100% !important;
    box-shadow: 0 0 10px rgba(249, 178, 51, 0.3) !important;
}

/* Gradient text enhancement */
html.light .gradient-text {
    background: linear-gradient(135deg, #ea580c 0%, #f9b233 50%, #ea580c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 1px 2px rgba(249, 178, 51, 0.2));
}

/* Glow effects for light theme */
html.light .glow-orange {
    box-shadow: 
        0 0 20px rgba(249, 178, 51, 0.25),
        0 0 40px rgba(249, 178, 51, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Button shine */
html.light .btn-shine::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Section separators */
html.light section {
    position: relative;
}

html.light section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 178, 51, 0.2), transparent);
}

/* Stats cards enhancement */
html.light .code-block .rounded-xl {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Timeline for light theme */
html.light #timeline-container .code-block {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
}

/* Advantages cards */
html.light #advantages-grid .group,
html.light #directions-grid .group {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Technology cards */
html.light #tech-grid .card-hover,
html.light #tech-grid-index .card-hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

/* CTA section */
html.light .glass.rounded-3xl {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Ensure all text is readable */
html.light p, 
html.light span:not(.gradient-text):not(.text-\[\#f9b233\]):not(.text-\[\#00d4ff\]),
html.light li {
    color: #374151 !important;
}

html.light h1, 
html.light h2, 
html.light h3, 
html.light h4 {
    color: #111827 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Portfolio card fix */
html.light .portfolio-card .relative span:not(.gradient-text):not(.text-\[\#f9b233\]):not(.text-\[\#00d4ff\]) {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border: 1px solid #e5e7eb !important;
}

/* Smooth transitions */
html.light * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==================== LIGHT THEME FIXES ==================== */

/* Hero section gradient fix for light theme */
html.light .bg-gradient-to-t.from-\[\#0a0a0f\] {
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent) !important;
}

html.light .bg-gradient-to-b.from-transparent.via-\[\#0a0a0f\]\/50.to-\[\#0a0a0f\] {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), #ffffff) !important;
}

/* About section - cards with stats */
html.light #about .code-block {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

html.light #about .code-block .rounded-xl.bg-\[\#0a0a0f\]\/50 {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}

html.light #about .code-block .text-gray-500 {
    color: #6b7280 !important;
}

/* Feature cards in about section */
html.light #about .group.rounded-2xl {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light #about .group.rounded-2xl:hover {
    border-color: #f9b233 !important;
    box-shadow: 0 4px 12px rgba(249, 178, 51, 0.1) !important;
}

html.light #about .group .text-gray-400 {
    color: #4b5563 !important;
}

/* Contact section cards */
html.light #contact .rounded-xl.border.border-gray-800 {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light #contact .rounded-xl.border.border-gray-800:hover {
    border-color: #f9b233 !important;
}

html.light #contact .text-gray-500 {
    color: #6b7280 !important;
}

html.light #contact .text-white {
    color: #111827 !important;
}

/* Contact form code-block */
html.light #contact .code-block {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Form inputs placeholders */
html.light input::placeholder,
html.light textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Matrix canvas opacity for light theme */
html.light #matrix-canvas {
    opacity: 0.05 !important;
}

/* Hero section specific text colors */
html.light h1 .text-white,
html.light h1 .gradient-text {
    color: #111827 !important;
}

html.light h1 .gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Stats in hero section */
html.light .text-2xl.font-bold.text-white {
    color: #111827 !important;
}

/* Process section cards */
html.light #process .code-block {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

html.light #process-details .bg-\[\#0a0a0f\]\/50 {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}

/* Portfolio cards */
html.light .portfolio-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light .portfolio-card h3 {
    color: #111827 !important;
}

/* Services cards */
html.light .service-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light .service-card h3 {
    color: #111827 !important;
}

/* Technology cards */
html.light .card-hover.glass {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

/* Footer links */
html.light footer a.text-gray-400:hover {
    color: #f9b233 !important;
}

/* Buttons hover states */
html.light button:hover:not(.bg-\[\#f9b233\]):not(.filter-btn.active) {
    color: #f9b233 !important;
}

/* Mobile menu button in light theme */
html.light #mobile-menu-btn {
    background-color: #e5e7eb !important;
    color: #374151 !important;
}

/* Ensure all text is readable */
html.light p, 
html.light span:not(.gradient-text):not(.text-\[\#f9b233\]):not(.text-\[\#00d4ff\]),
html.light li {
    color: #374151 !important;
}
html.light .portfolio-card  .relative span:not(.gradient-text):not(.text-\[\#f9b233\]):not(.text-\[\#00d4ff\]){
        background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}

html.light h1, 
html.light h2, 
html.light h3, 
html.light h4 {
    color: #111827 !important;
}
.comment-end {
    letter-spacing: 0.5px;
}

/* ==================== LIGHT THEME FIXES FOR FILTERS ==================== */

/* Filter buttons in light theme */
html.light .filter-btn {
    background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%) !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light .filter-btn:hover {
    background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-color: #f9b233 !important;
    color: #111827 !important;
}

html.light .filter-btn.active {
    background: linear-gradient(145deg, #f9b233 0%, #ff8c00 100%) !important;
    border-color: #f9b233 !important;
    color: #0a0a0f !important;
    box-shadow: 0 4px 6px -1px rgba(249, 178, 51, 0.3) !important;
}

/* Sticky filter section in light theme */
html.light .sticky.top-20 {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Color indicators in filter buttons */
html.light .filter-btn .w-2.h-2.rounded-full {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Active filter glow effect */
html.light .filter-btn.active.glow-orange {
    box-shadow: 0 0 20px rgba(249, 178, 51, 0.4),
                0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}


/* ==================== STICKY FILTERS FIX ==================== */

/* Ensure sticky works in light theme */
html.light .sticky.top-20 {
    position: sticky !important;
    top: 5rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    z-index: 30 !important;
}

/* Parent sections must not have overflow:hidden for sticky to work */
html.light section {
    overflow: visible !important;
}

/* Specific fix for portfolio page sticky section */
html.light section.py-8.sticky {
    position: sticky !important;
    top: 5rem !important;
}

/* Dark theme sticky for comparison */
.sticky.top-20 {
    position: sticky;
    top: 5rem;
}


/* ==================== AGGRESSIVE STICKY FIX ==================== */

/* Force sticky on filters section */
#filters-section {
    position: -webkit-sticky !important;
    position: sticky !important;
    will-change: position;
}

/* Light theme specific */
html.light #filters-section {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Ensure parent doesn't break sticky */
.sticky-filters-wrapper {
    position: relative;
    z-index: 30;
}

/* Remove any overflow that might break sticky */
main, article, section {
    overflow: visible !important;
}

/* Specific for portfolio page */
body:has(#filters-section) {
    overflow-x: hidden;
}

/* Ensure navbar doesn't overlap */
#navbar {
    z-index: 50;
}

#filters-section {
    z-index: 40;
}
/* ==================== CONTACT PAGE LIGHT THEME FIXES ==================== */

/* Contact form code-block - белый фон */
html.light #contact .code-block,
html.light .code-block:has(#contact-form) {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.03) !important;
}

/* Input поля в контактной форме */
html.light #contact-form input,
html.light #contact-form textarea,
html.light #contact-form select {
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

html.light #contact-form input:focus,
html.light #contact-form textarea:focus,
html.light #contact-form select:focus {
    background: #ffffff !important;
    border-color: #f9b233 !important;
    box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.15) !important;
}

/* Placeholder цвет */
html.light #contact-form input::placeholder,
html.light #contact-form textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Label полей */
html.light #contact-form label,
html.light #contact-form .peer-focus\:text-\[\#f9b233\] {
    color: #374151 !important;
    background: #ffffff !important;
}

/* FAQ аккордеон */
html.light .faq-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html.light .faq-toggle {
    background: #ffffff !important;
    color: #111827 !important;
}

html.light .faq-toggle:hover {
    background: #f9fafb !important;
}

html.light .faq-content {
    background: #ffffff !important;
}

html.light .faq-content p {
    color: #4b5563 !important;
}

/* Контактные карточки (телефон, email, адрес) */
html.light #contact .group.flex.items-center.gap-4.p-4.rounded-xl {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html.light #contact .group.flex.items-center.gap-4.p-4.rounded-xl:hover {
    border-color: #f9b233 !important;
    box-shadow: 0 4px 12px rgba(249, 178, 51, 0.1) !important;
}

/* Тексты в контактных карточках */
html.light #contact .group .text-white {
    color: #111827 !important;
}

html.light #contact .group .text-gray-500 {
    color: #6b7280 !important;
}

/* Мессенджеры кнопки (Telegram, Viber) */
html.light #contact a[href*="telegram"],
html.light #contact a[href*="viber"] {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

/* Заголовок формы */
html.light #contact h3.text-xl.font-bold.text-white {
    color: #111827 !important;
}

/* Успешное сообщение */
html.light #success-message {
    background: #ffffff !important;
}

html.light #success-message h4 {
    color: #111827 !important;
}

/* Select dropdown стрелка */
html.light #contact-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
}

/* Карта overlay */
html.light section:has(iframe) .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent) !important;
}

/* Информация на карте */
html.light section:has(iframe) .glass.rounded-2xl {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Кнопка отправки формы */
html.light #submit-btn {
    background: linear-gradient(135deg, #f9b233 0%, #ff8c00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(249, 178, 51, 0.3) !important;
}

html.light #submit-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(249, 178, 51, 0.4) !important;
}

/* Политика конфиденциальности ссылка */
html.light #contact-form a.text-\[\#f9b233\] {
    color: #ea580c !important;
}

/* Анимированные декоративные элементы */
html.light .absolute.rounded-full.border {
    border-color: rgba(249, 178, 51, 0.15) !important;
}

/* Hero section gradient в контактах */
html.light #contact .bg-gradient-to-b.from-transparent {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7), #ffffff) !important;
}
/* ==================== MAP FIX FOR LIGHT THEME ==================== */

/* Убираем инверсию для светлой темы - карта остаётся цветной */
html.light iframe[src*="google.com/maps"],
html.light iframe[src*="yandex"],
html.light section:has(iframe) iframe {
    filter: none !important;
    opacity: 1 !important;
}

/* Альтернативно - лёгкая затемнённость для контраста */
html.light section:has(iframe) iframe {
    filter: grayscale(20%) contrast(1.1) !important;
    opacity: 1 !important;
}

/* Убираем градиент overlay который может мешать */
html.light section:has(iframe) .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 30%, transparent 100%) !important;
}

/* Информационный блок на карте - делаем более заметным */
html.light section:has(iframe) .glass.rounded-2xl {
    background: #ffffff !important;
    border: 2px solid #f9b233 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(249, 178, 51, 0.3) !important;
}

/* Заголовок в блоке на карте */
html.light section:has(iframe) .glass.rounded-2xl h4 {
    color: #111827 !important;
}

/* Текст адреса */
html.light section:has(iframe) .glass.rounded-2xl p {
    color: #4b5563 !important;
}

/* Кнопка маршрута */
html.light section:has(iframe) .glass.rounded-2xl button {
    color: #ea580c !important;
}

html.light section:has(iframe) .glass.rounded-2xl button:hover {
    color: #f9b233 !important;
}
@media (max-width: 600px) {
.left-1\/4 {
    left: 5%!important;
}
.left-1\/2 {
    left: -10%!important;
}
}

@media (max-width: 450px) {
.left-1\/4 {
    left: 0%!important;
}
.w-96 {
    width: 15rem!important;
}
.h-96 {
    height: 15rem!important;
}
}
#mobile-menu{
    z-index: 80;
}