/* ===== LANGUAGE SWITCHER STYLES ===== */
.language-switcher {
    position: fixed;
    top: 100px;
    left: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.lang-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Light mode language switcher */
body.light-mode .lang-btn {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .lang-btn:hover {
    border-color: rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-mode .lang-btn.active {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ===== SOUND CONTROL STYLES ===== */
.sound-control-container {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.2rem;
}

.sound-control-container:hover {
    transform: scale(1.15);
}

.sound-icon {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
}

.sound-control-container:hover .sound-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

.sound-control-container.muted .sound-icon {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.sound-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.45rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1.2px;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.3);
}

/* Light mode sound control */
body.light-mode .sound-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.4);
    color: #000000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

body.light-mode .sound-control-container:hover .sound-icon {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.light-mode .sound-control-container.muted .sound-icon {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

body.light-mode .sound-label {
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* ===== LIGHT SWITCH STYLES ===== */
.light-switch-container {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-switch-container:hover {
    transform: scale(1.1);
}

.chain-holder {
    width: 40px;
    height: 8px;
    background: linear-gradient(135deg, #444, #222);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.chain.pulled {
    transform: translateY(15px);
}

.chain-link {
    width: 4px;
    height: 8px;
    background: linear-gradient(135deg, #999, #666);
    border-radius: 2px;
    margin: 1px 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.light-bulb {
    margin-top: 10px;
    font-size: 2rem;
    color: #666;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

body.light-mode .light-bulb {
    color: #ffc107;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8)) drop-shadow(0 0 40px rgba(255, 193, 7, 0.5));
    animation: bulb-glow 2s ease-in-out infinite;
}

@keyframes bulb-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.7)) drop-shadow(0 0 40px rgba(255, 193, 7, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.9)) drop-shadow(0 0 60px rgba(255, 193, 7, 0.6));
    }
}

/* ===== LIGHT MODE THEME - EYE COMFORTABLE COLORS ===== */
body.light-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #1a1a1a;
    position: relative;
}

/* Animated floating shapes container for light mode */
body.light-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Large circles */
        radial-gradient(circle 4px at 10% 20%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 3px at 85% 15%, rgba(0, 0, 0, 0.5), transparent),
        radial-gradient(circle 5px at 45% 35%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 3px at 70% 60%, rgba(0, 0, 0, 0.5), transparent),
        radial-gradient(circle 4px at 20% 75%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 3px at 90% 80%, rgba(0, 0, 0, 0.5), transparent),
        /* Medium circles */
        radial-gradient(circle 2px at 30% 10%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 2px at 55% 25%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 2px at 15% 45%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 2px at 80% 40%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 2px at 40% 70%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 2px at 65% 85%, rgba(0, 0, 0, 0.6), transparent),
        /* Small dots */
        radial-gradient(circle 1px at 5% 30%, rgba(0, 0, 0, 0.8), transparent),
        radial-gradient(circle 1px at 25% 50%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 1px at 50% 5%, rgba(0, 0, 0, 0.8), transparent),
        radial-gradient(circle 1px at 75% 30%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 1px at 35% 90%, rgba(0, 0, 0, 0.8), transparent),
        radial-gradient(circle 1px at 95% 50%, rgba(0, 0, 0, 0.7), transparent);
    background-repeat: no-repeat;
    animation: float-up-light 40s linear infinite;
}

/* Second layer - stars moving in different direction */
body.light-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Large diamonds/stars */
        radial-gradient(circle 3px at 60% 10%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 4px at 15% 25%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 3px at 40% 40%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 4px at 85% 55%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 3px at 25% 65%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 4px at 70% 75%, rgba(0, 0, 0, 0.7), transparent),
        /* Medium shapes */
        radial-gradient(circle 2px at 50% 15%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 2px at 10% 50%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 2px at 80% 20%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 2px at 35% 55%, rgba(0, 0, 0, 0.6), transparent),
        radial-gradient(circle 2px at 65% 70%, rgba(0, 0, 0, 0.7), transparent),
        /* Small accents */
        radial-gradient(circle 1px at 20% 8%, rgba(0, 0, 0, 0.8), transparent),
        radial-gradient(circle 1px at 55% 35%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 1px at 90% 45%, rgba(0, 0, 0, 0.8), transparent),
        radial-gradient(circle 1px at 45% 80%, rgba(0, 0, 0, 0.7), transparent),
        radial-gradient(circle 1px at 75% 90%, rgba(0, 0, 0, 0.8), transparent);
    background-repeat: no-repeat;
    animation: float-diagonal-light 50s linear infinite reverse;
}

@keyframes float-up-light {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(30px);
        opacity: 1;
    }
}

@keyframes float-diagonal-light {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translate(-50px, 80px) rotate(360deg);
        opacity: 0.8;
    }
}

/* Light mode: Background and overlays */
body.light-mode .video-background {
    opacity: 0.15;
}

body.light-mode .video-overlay {
    background: rgba(248, 249, 250, 0.95);
}

body.light-mode #particles-js {
    opacity: 0.2;
}

/* Light mode: Navigation */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-brand {
    color: #000000;
    font-weight: 800;
}

body.light-mode .nav-brand i {
    color: #000000;
}

body.light-mode .nav-menu a {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .nav-menu a:hover {
    color: #000000;
    font-weight: 700;
}

body.light-mode .nav-menu a::after {
    background: #000000;
}

body.light-mode .hamburger span {
    background: #000000;
}

/* Light mode: Text colors - Darker and Bolder */
body.light-mode .glitch {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

body.light-mode .hero-tagline {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .inline-stat {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .inline-stat span {
    font-weight: 700;
}

body.light-mode .inline-stat i {
    color: #000000;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25));
}

body.light-mode .section-title {
    background: linear-gradient(135deg, #000000, #2d3436);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

body.light-mode .title-icon {
    color: #000000;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

body.light-mode .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(45, 52, 54, 0.3), rgba(99, 110, 114, 0.3), transparent);
    box-shadow: 0 0 10px rgba(45, 52, 54, 0.15);
}

/* Light mode: Buttons */
body.light-mode .role-badge {
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid #2d3436;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

body.light-mode .role-badge:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.light-mode .btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #000000;
    font-weight: 800;
}

body.light-mode .btn-primary:hover {
    background: #2d3436;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

body.light-mode .btn-secondary {
    background: transparent;
    color: #2d3436;
    border: 2px solid #2d3436;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-color: #000000;
}

/* Light mode: Mouse scroll indicator */
body.light-mode .mouse {
    border: 3px solid #000000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

body.light-mode .mouse::before {
    background-color: #000000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Light mode: Cards - Soft white backgrounds */
body.light-mode .about-card,
body.light-mode .stat-box,
body.light-mode .expertise-card,
body.light-mode .skill-group,
body.light-mode .testimonial-card,
body.light-mode .contact-info,
body.light-mode .contact-form-section {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

body.light-mode .about-card p,
body.light-mode .lead-text {
    color: #1a1a1a;
    font-weight: 500;
}

body.light-mode .role-description,
body.light-mode .company-type,
body.light-mode .stat-detail,
body.light-mode .achievement-item,
body.light-mode .testimonial-quote p,
body.light-mode .contact-info p,
body.light-mode .feature-item p {
    color: #2d3436;
    font-weight: 500;
}

body.light-mode .about-card strong,
body.light-mode .company-info h4,
body.light-mode .stat-label,
body.light-mode .card-header h3,
body.light-mode .skill-group h3,
body.light-mode .author-name,
body.light-mode .contact-info h3,
body.light-mode .contact-method h4,
body.light-mode .feature-item h4,
body.light-mode .form-group label {
    color: #000000;
    font-weight: 700;
}

body.light-mode .author-title {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .highlight {
    color: #000000;
    font-weight: 800;
    text-shadow: none;
}

body.light-mode .stat-value {
    background: linear-gradient(135deg, #000000, #2d3436);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

body.light-mode .stat-icon {
    color: #000000;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

/* Light mode: Philosophy box */
body.light-mode .philosophy-box {
    background: rgba(99, 110, 114, 0.1);
    border: 2px solid rgba(99, 110, 114, 0.3);
    box-shadow: 0 0 20px rgba(45, 52, 54, 0.05);
}

body.light-mode .philosophy-box h3 {
    color: #000000;
    font-weight: 800;
}

body.light-mode .quote-icon {
    color: rgba(0, 0, 0, 0.2);
}

body.light-mode .philosophy-text {
    color: #2d3436;
    font-weight: 600;
}

/* Light mode: Profile image */
body.light-mode .profile-image-wrapper {
    border: 3px solid #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .profile-image-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: #2d3436;
}

/* Light mode: Expertise section */
body.light-mode .card-header {
    background: linear-gradient(135deg, rgba(99, 110, 114, 0.08), rgba(45, 52, 54, 0.05));
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .expertise-icon {
    background: linear-gradient(135deg, #000000, #2d3436);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.light-mode .expertise-badge {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #2d3436;
    font-weight: 700;
}

body.light-mode .tech-stack span {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    font-weight: 600;
}

body.light-mode .tech-stack span:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: #000000;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .achievement-item i {
    color: #000000;
}

/* Light mode: Skills section */
body.light-mode .skill-item,
body.light-mode .language-item {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(99, 110, 114, 0.15);
}

body.light-mode .skill-item:hover,
body.light-mode .language-item:hover {
    border-color: #636e72;
    box-shadow: 0 4px 20px rgba(45, 52, 54, 0.1);
}

body.light-mode .skill-item span,
body.light-mode .lang-name {
    color: #1a1a1a;
    font-weight: 700;
}

body.light-mode .lang-level {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .skill-level {
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode .skill-bar {
    background: linear-gradient(90deg, #000000, #2d3436);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

body.light-mode .flag.lang-code {
    color: #000000;
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid #000000;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    font-weight: 900;
}

/* Light mode: Testimonials */
body.light-mode .author-avatar {
    background: linear-gradient(135deg, #000000, #2d3436);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

body.light-mode .testimonial-quote i {
    color: rgba(0, 0, 0, 0.2);
}

body.light-mode .testimonial-author {
    border-top: 1px solid rgba(99, 110, 114, 0.2);
}

/* Light mode: Contact section */
body.light-mode .contact-method {
    background: rgba(248, 249, 250, 0.7);
    border: 1px solid rgba(99, 110, 114, 0.15);
}

body.light-mode .contact-method:hover {
    border-color: #636e72;
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.1);
}

body.light-mode .contact-method i {
    color: #000000;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

body.light-mode .contact-method a {
    color: #1a1a1a;
    font-weight: 600;
}

body.light-mode .contact-method a:hover {
    color: #000000;
    font-weight: 700;
}

body.light-mode .feature-item i {
    color: #000000;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

body.light-mode .contact-methods {
    border-bottom: 1px solid rgba(99, 110, 114, 0.2);
}

/* Light mode: Form inputs - Comfortable for typing */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    font-weight: 500;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
    color: #636e72;
    font-weight: 400;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    font-weight: 600;
}

/* Light mode: Footer */
body.light-mode .footer {
    background: linear-gradient(180deg, #e8ecf1 0%, #dfe6e9 100%);
    border-image: linear-gradient(90deg, transparent, rgba(45, 52, 54, 0.2), rgba(99, 110, 114, 0.2), transparent) 1;
}

body.light-mode .footer-brand h3 {
    color: #000000;
    font-weight: 800;
}

body.light-mode .footer-tagline {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .footer-links a {
    color: #2d3436;
    font-weight: 600;
}

body.light-mode .footer-links a:hover {
    color: #000000;
    font-weight: 700;
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(99, 110, 114, 0.2);
}

body.light-mode .footer-bottom p {
    color: #1a1a1a;
    font-weight: 600;
}

/* Light mode: Scrollbar */
body.light-mode::-webkit-scrollbar-track {
    background: #f5f7fa;
}

body.light-mode::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #636e72, #b2bec3);
    box-shadow: 0 0 8px rgba(45, 52, 54, 0.15);
}

body.light-mode::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2d3436, #636e72);
    box-shadow: 0 0 12px rgba(45, 52, 54, 0.25);
}

/* Light mode: Cursor */
body.light-mode .cursor-dot {
    background: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

body.light-mode .cursor-outline {
    border: 2px solid #000000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

body.light-mode a:hover ~ .cursor-dot,
body.light-mode button:hover ~ .cursor-dot {
    background: #2d3436;
}

body.light-mode a:hover ~ .cursor-outline,
body.light-mode button:hover ~ .cursor-outline {
    border-color: #2d3436;
}

/* Light mode: Section decorators */
body.light-mode section::before,
body.light-mode section::after {
    border-color: rgba(99, 110, 114, 0.1);
}

/* Light mode: Stat box gradient effect */
body.light-mode .stat-box::before {
    background: linear-gradient(45deg, #000000, #2d3436, #636e72, #000000);
}

body.light-mode .expertise-card:hover,
body.light-mode .testimonial-card:hover,
body.light-mode .stat-box:hover {
    border-color: rgba(99, 110, 114, 0.3);
    box-shadow: 0 8px 35px rgba(45, 52, 54, 0.12);
}

/* Smooth transition for theme switching */
body,
.navbar,
.about-card,
.stat-box,
.expertise-card,
.skill-group,
.testimonial-card,
.contact-info,
.contact-form-section,
.form-group input,
.form-group textarea,
.footer,
.light-bulb {
    transition: all 0.5s ease;
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* Keep numbers LTR in Arabic */
html[lang="ar"] .contact-method a,
html[lang="ar"] .stat-value,
html[lang="ar"] .inline-stat span {
    direction: ltr;
    unicode-bidi: embed;
}

html[lang="ar"] .nav-menu {
    flex-direction: row-reverse;
}

html[lang="ar"] .hero-cta {
    flex-direction: row-reverse;
}

html[lang="ar"] .inline-stat {
    flex-direction: row-reverse;
}

html[lang="ar"] .contact-method {
    text-align: right;
}

html[lang="ar"] .form-group label {
    text-align: right;
}

html[lang="ar"] .achievement-item {
    text-align: right;
}

html[lang="ar"] .tech-stack {
    flex-direction: row-reverse;
}

html[lang="ar"] .hero-roles {
    flex-direction: row-reverse;
}

/* Mobile adjustments - Touch-friendly layout */
@media (max-width: 768px) {
    /* Language Switcher - Horizontal row at top for better mobile UX */
    .language-switcher {
        top: 20px;
        left: 20px;
        right: 20px;
        flex-direction: row;
        justify-content: center;
        gap: 0.4rem;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-btn {
        width: 35px;
        height: 35px;
    }

    .lang-btn img {
        width: 24px;
        height: 24px;
    }

    /* Sound Control - Bottom left with larger touch target */
    .sound-control-container {
        top: auto;
        bottom: 25px;
        left: 25px;
        gap: 0.3rem;
    }

    .sound-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .sound-label {
        font-size: 0.55rem;
    }

    /* Light Switch - Top right, compact */
    .light-switch-container {
        top: 80px;
        right: 20px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .chain-holder {
        width: 40px;
        height: 8px;
    }

    .chain-link {
        width: 4px;
        height: 8px;
    }

    .light-bulb {
        font-size: 2rem;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    /* Make language switcher even more compact on small phones */
    .language-switcher {
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 6px;
        gap: 0.3rem;
    }

    .lang-btn {
        width: 32px;
        height: 32px;
    }

    .lang-btn img {
        width: 22px;
        height: 22px;
    }

    /* Sound control stays large and accessible */
    .sound-control-container {
        bottom: 20px;
        left: 20px;
    }

    .sound-icon {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .sound-label {
        font-size: 0.5rem;
    }

    /* Light switch slightly more compact */
    .light-switch-container {
        top: 70px;
        right: 15px;
        padding: 8px;
    }

    .light-bulb {
        font-size: 1.8rem;
    }
}
