/* =================================
   CUSTOM STYLES FOR RAVENOFDOOM PORTFOLIO
   ================================= */

/* Base Styles */
html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
}

.font-vt323 {
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* Testimonials Carousel Styles */
.testimonials-carousel-container {
    position: relative;
}

.testimonials-track-container {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 auto;
}

/* Responsive Testimonial Slides */
@media (min-width: 768px) {
    .testimonial-slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        width: 33.333333%;
    }
}

/* Carousel Navigation Buttons */
.testimonials-carousel-container button {
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonials-carousel-container button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Carousel Indicators */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(156, 163, 175, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: #60a5fa;
    transform: scale(1.1);
}

/* Section Background Styles */
.section-bg-image {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Adaptive Overlays for Different Modes */
.bg-overlay-light {
    background: rgba(255, 255, 255, 0.85);
}

.dark .bg-overlay-light {
    background: rgba(17, 24, 39, 0.88);
}

.bg-overlay-gradient-light {
    background: linear-gradient(to bottom right, 
        rgba(239, 246, 255, 0.3), 
        rgba(245, 243, 255, 0.3));
}

.dark .bg-overlay-gradient-light {
    background: linear-gradient(to bottom right, 
        rgba(30, 58, 138, 0.4), 
        rgba(88, 28, 135, 0.4));
}

/* Skills Section Background Images - Mode Specific */
.skills-bg-section {
    position: relative;
}

.skills-background {
    background-image: url('/img-optimized/coding3-w1200.webp');
}

.dark .skills-background {
    background-image: url('/img-optimized/coding5-w1200.webp');
}

/* Portfolio Section Background Images - Mode Specific */
.portfolio-bg-section {
    position: relative;
}

.portfolio-background {
    background-image: url('/img-optimized/coding1-w1200.webp');
}

.dark .portfolio-background {
    background-image: url('/img-optimized/coding4-w1200.webp');
}

/* Skills Section Text Styling */
.skills-title {
    /* Light Mode: White with subtle gradient */
    color: white;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent;
    background-clip: text; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .skills-title {
    /* Dark Mode: Much lighter gradient towards white */
    background: linear-gradient(135deg, #f8fafc, #e2e8f0, #ffffff);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent;
    background-clip: text; */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.skills-subtitle {
    /* Light Mode: White for visibility on background image */
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.dark .skills-subtitle {
    /* Dark Mode: Light gray with better contrast */
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Text Readability Enhancements */
.text-enhanced-contrast {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .text-enhanced-contrast {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Styles */
nav {
    transition: all 0.3s ease;
    animation: navbar-float 6s ease-in-out infinite;
}

/* Floating Animation for Navbar */
@keyframes navbar-float {
    0%, 100% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, -2px) scale(1.005);
    }
}

/* Enhanced Glass Effect for Navigation */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* Navbar Hover Effect */
nav:hover {
    transform: translate(-50%, -3px) scale(1.01);
    backdrop-filter: blur(30px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.dark nav:hover {
    backdrop-filter: blur(30px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* Navbar Scrolled State - maintains glass effect */
.navbar-scrolled {
    /* Enhanced glass effect when scrolling */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) !important;
}

.dark .navbar-scrolled {
    background: rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(30px) !important;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.dark .nav-link::after {
    background-color: #3b82f6;
}

.nav-link:hover::after,
.nav-link.text-primary-500::after {
    width: 100%;
}

/* Hero Section with Video Background */
#home {
    background: transparent;
}

#home video {
    filter: contrast(1.1) brightness(0.6);
}

.dark #home video {
    filter: contrast(1.1) brightness(0.6);
}

/* Code Background Pattern */
.code-bg {
    background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
                linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.dark .code-bg {
    background: linear-gradient(45deg, #2a2a2a 25%, transparent 25%), 
                linear-gradient(-45deg, #2a2a2a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #2a2a2a 75%), 
                linear-gradient(-45deg, transparent 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Typewriter Effect */
.typewriter {
    border-right: 2px solid #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

.animate-blink-cursor {
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% {
        border-right-color: #3b82f6;
    }
    51%, 100% {
        border-right-color: transparent;
    }
}

/* Skill Cards */
.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.skill-card:hover::before {
    animation: shine 0.6s ease-in-out;
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.skill-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Website Gallery Cards */
.website-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.website-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.website-card img {
    transition: transform 0.5s ease;
}

.website-card:hover img {
    transform: scale(1.1);
}

.website-card .website-btn {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.website-card:hover .website-btn {
    transform: translateY(0);
    opacity: 1;
}
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.project-card .project-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
}

/* Contact Form */
#contact-form input:focus,
#contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

#contact-form label {
    transition: all 0.3s ease;
}

#contact-form input:focus + label,
#contact-form textarea:focus + label {
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #111827, #000000);
}

/* Back to Top Button */
#back-to-top {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-strong {
    backdrop-filter: blur(20px);
}

.perspective-1000 {
    perspective: 1000px;
}

.transform-style-preserve-3d {
    transform-style: preserve-3d;
}

/* Magnetic Effect Styles */
.magnetic-active {
    transition: transform 0.2s ease !important;
    z-index: 10;
}

/* Enhanced Gallery Section */
#gallery {
    position: relative;
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0.3;
}
.dark .skill-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.dark .project-card {
    background: rgba(17, 24, 39, 0.9);
}

.dark #contact-form input,
.dark #contact-form textarea {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(55, 65, 81, 0.5);
}

.dark #contact-form input:focus,
.dark #contact-form textarea:focus {
    border-color: #3b82f6;
    background: rgba(17, 24, 39, 0.9);
}

/* Responsive Design */
/* Responsive Design Optimizations */
@media (max-width: 1024px) {
    .gradient-text {
        font-size: 3rem;
    }
    
    .website-card, .project-card {
        transform: none !important;
    }
    
    .website-card:hover, .project-card:hover {
        transform: translateY(-4px) !important;
    }
}

@media (max-width: 768px) {
    .typewriter {
        font-size: 1.125rem;
        white-space: normal;
        border-right: none;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .skill-card i {
        font-size: 2.5rem;
    }
    
    .project-card:hover, .website-card:hover {
        transform: translateY(-2px) !important;
    }
    
    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
    
    /* Mobile Navigation Improvements */
    .nav-link::after {
        display: none;
    }
    
    /* Floating Navbar Mobile Adjustments */
    nav {
        top: 8px;
        width: 96%;
        animation: none; /* Disable floating animation on mobile */
    }
    
    nav:hover {
        transform: translate(-50%, 0) scale(1); /* Reset hover effect on mobile */
    }
    
    /* Mobile Gallery */
    .gallery-container {
        margin: 0 -1rem;
    }
    
    #website-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* Mobile Carousel */
    .carousel-container {
        height: 400px;
    }
    
    #carousel-prev, #carousel-next {
        padding: 0.75rem;
    }
}

@media (max-width: 640px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .skill-card {
        padding: 0.75rem;
    }
    
    .skill-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Contact Form */
    #contact-form input,
    #contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Hero Section */
    #home {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #home h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #home .typewriter {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Gallery Carousel Styles */
.carousel-container {
    height: 500px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.dark .carousel-container {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.carousel-track {
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* Gallery View Toggle */
.gallery-view-toggle button.active {
    background: #3b82f6;
    color: white;
}

/* Lightbox Styles */
#lightbox-modal {
    backdrop-filter: blur(8px);
    animation: lightbox-fade-in 0.3s ease;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox-modal .lightbox-content {
    animation: lightbox-scale-in 0.3s ease;
}

@keyframes lightbox-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Contact Section Particles */
#contact-particles {
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

/* Enhanced Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .website-card:active {
        transform: scale(0.98);
    }
    
    .skill-card:active {
        transform: scale(0.95);
    }
    
    button:active {
        transform: scale(0.95);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .skill-card,
    .project-card {
        border: 2px solid;
    }
    
    .gradient-text {
        background: none;
        color: #3b82f6;
        -webkit-text-fill-color: unset;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-float,
    .animate-bounce,
    .animate-pulse-glow {
        animation: none !important;
    }
}

/* Focus Styles for Accessibility */
.keyboard-nav *:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* Selection Styles */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* Pulse Aura Effect for H1 - Enhanced */
.pulse-aura {
    position: relative;
    display: inline-block;
}

.pulse-aura::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(139, 92, 246, 0.6), 
        rgba(16, 185, 129, 0.6),
        rgba(59, 130, 246, 0.6)
    );
    border-radius: 20px;
    filter: blur(20px);
    animation: pulse-aura-animation 2s ease-in-out infinite;
    z-index: -1;
}

.pulse-aura::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.4), 
        rgba(139, 92, 246, 0.4), 
        rgba(16, 185, 129, 0.4),
        rgba(59, 130, 246, 0.4)
    );
    border-radius: 30px;
    filter: blur(30px);
    animation: pulse-aura-animation 2s ease-in-out infinite reverse;
    z-index: -2;
}

@keyframes pulse-aura-animation {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Hero Code Background Animation - Enhanced */
.code-bg {
    position: relative;
    overflow: hidden;
    background: rgba(59, 130, 246, 0.02);
}

.code-bg::before {
    content: 'function createMagic() {\n  const dreams = [];\n  while (coding) {\n    dreams.push(innovation);\n    if (dreams.length > passion) {\n      return breakthrough;\n    }\n  }\n}\n\nconst developer = {\n  name: "RavenOfDoom",\n  skills: ["JavaScript", "React", "Node.js", "AI"],\n  passion: "Creating amazing experiences"\n};\n\nclass Portfolio {\n  constructor() {\n    this.projects = [];\n    this.creativity = Infinity;\n  }\n  \n  async buildFuture() {\n    const vision = await this.imagine();\n    return this.code(vision);\n  }\n}\n\n// Neural network simulation\nclass NeuralNetwork {\n  constructor(layers) {\n    this.layers = layers;\n    this.weights = this.initializeWeights();\n  }\n  \n  predict(input) {\n    return this.feedForward(input);\n  }\n}\n\nconst ai = new NeuralNetwork([784, 128, 64, 10]);\nai.train(creativityDataset);\n\n// Blockchain integration\nconst blockchain = {\n  createBlock: (data) => ({\n    timestamp: Date.now(),\n    data: data,\n    hash: generateHash(data)\n  }),\n  mine: () => "Innovation block mined!"\n};\n\n// Web3 future\nconst web3Future = async () => {\n  const contract = await deployContract();\n  return { contract, future: "Decentralized" };\n};';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(59, 130, 246, 0.25);
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 1;
    animation: code-scroll 20s linear infinite;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.code-bg::after {
    content: '< Html >\n  < body >\n    < div className="innovation" >\n      {creativity.map(idea => \n        < Project key={idea.id} vision={idea} />\n      )}\n    < /div >\n  < /body >\n< /Html >\n\n.hero {\n  background: linear-gradient(\n    45deg,\n    rgba(59, 130, 246, 0.1),\n    rgba(139, 92, 246, 0.1)\n  );\n  animation: float 6s ease-in-out infinite;\n}\n\n@keyframes breakthrough {\n  0% { transform: scale(1); }\n  50% { transform: scale(1.05); }\n  100% { transform: scale(1); }\n}\n\n// Matrix rain effect\n10110101 01001110 11010011 01110100\n01001110 10110101 01110100 11010011\n11010011 01001110 10110101 01110100\n01110100 11010011 01001110 10110101\n10101001 01001110 11010011 01110100\n\n// Recursive innovation\nfunction inspire(creativity) {\n  if (creativity < Infinity) {\n    return inspire(creativity * 2);\n  }\n  return "Limitless possibilities";\n}\n\nsetInterval(() => {\n  const idea = generateNewIdea();\n  if (idea.potential > threshold) {\n    implement(idea);\n  }\n}, 1000);';
    position: absolute;
    top: -30%;
    right: -50%;
    width: 120%;
    height: 120%;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(139, 92, 246, 0.2);
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 2;
    animation: code-scroll-reverse 25s linear infinite;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.35);
}

@keyframes code-scroll {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-30%) translateX(-20%);
    }
}

@keyframes code-scroll-reverse {
    0% {
        transform: translateY(-30%) translateX(-30%);
    }
    100% {
        transform: translateY(0) translateX(-10%);
    }
}

/* Dark theme adjustments for better visibility */
.dark .code-bg {
    background: rgba(59, 130, 246, 0.03);
}

.dark .code-bg::before {
    color: rgba(59, 130, 246, 0.4);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.dark .code-bg::after {
    color: rgba(139, 92, 246, 0.35);
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}

/* Matrix rain effect overlay */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
}

.matrix-rain::before {
    content: '1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\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0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1';
    position: absolute;
    top: -150%;
    left: 5%;
    width: 2%;
    height: 300%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.1;
    color: rgba(16, 185, 129, 0.5);
    white-space: pre;
    animation: matrix-fall-delayed 8s linear infinite;
    animation-delay: 2s;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    letter-spacing: 0;
    opacity: 0;
    animation-fill-mode: forwards;
}

.matrix-rain::after {
    content: '0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n1\n0\n1\n0\n1\n0\n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 15%;
    width: 2%;
    height: 300%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.1;
    color: rgba(16, 185, 129, 0.4);
    white-space: pre;
    animation: matrix-fall-delayed-2 10s linear infinite;
    animation-delay: 3s;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    letter-spacing: 0;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes matrix-fall-1 {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

@keyframes matrix-fall-2 {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

@keyframes matrix-fall-delayed {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

@keyframes matrix-fall-delayed-2 {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

/* Matrix rain effect for HTML elements */
.matrix-column {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.matrix-column-js {
    filter: 
        drop-shadow(0 0 20px rgba(16, 185, 129, 1.0))
        drop-shadow(0 0 35px rgba(16, 185, 129, 0.8));
    text-shadow: 
        0 0 15px rgba(16, 185, 129, 1.2),
        0 0 30px rgba(16, 185, 129, 0.9),
        0 0 45px rgba(16, 185, 129, 0.6);
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Enhanced dark theme matrix */
.dark .matrix-rain::before {
    color: rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.dark .matrix-rain::after {
    color: rgba(16, 185, 129, 0.35);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Responsive adjustments for code background */
@media (max-width: 768px) {
    .code-bg::before {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .code-bg::after {
        font-size: 9px;
        line-height: 1.4;
    }
    
    .matrix-rain::before {
        font-size: 8px;
    }
}

/* =======================================
   WEB DESIGN SECTION BACKGROUND SLIDE ANIMATION
   ======================================= */

.web-design-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img-optimized/coding2-w1200.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    animation: zoom-in-bg-animation 10s ease-in-out infinite;
    /* Gradient overlay to match left element colors */
    background-blend-mode: overlay;
    background-color: rgba(59, 130, 246, 0.3); /* Primary blue overlay */
}

/* Dark mode version with purple-pink gradient overlay */
.dark .web-design-bg-slide {
    opacity: 0.5;
    background-color: rgba(147, 51, 234, 0.3); /* Purple overlay for dark mode */
}

@keyframes zoom-in-bg-animation {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    20% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.5;
    }
    80% {
        transform: scale(1.05);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* =================================
   PROFESSIONAL THEME TOGGLE SWITCH
   ================================= */

.theme-toggle-container {
    user-select: none;
}

.theme-toggle-switch {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle-switch:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.theme-toggle-switch.dark,
.dark .theme-toggle-switch {
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
}

.theme-toggle-slider {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-icon {
    transition: all 0.2s ease;
}

.theme-toggle-switch:active .theme-toggle-slider {
    transform: scale(0.95);
}

/* Enhanced Focus States */
.theme-toggle-switch:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Animation for icon transition */
.theme-toggle-icon i {
    transition: all 0.2s ease;
}

.theme-toggle-switch:hover .theme-toggle-icon i {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .theme-toggle-container span {
        display: none !important;
    }
}

/* Transitioning state for extra smooth animation */
.theme-toggle-switch.transitioning {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px) scale(1.02);
}

/* Improved slider positioning for dark mode */
.dark .theme-toggle-slider {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Subtle gradient overlay for enhanced visual appeal */
.theme-toggle-switch::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}