/* ================================================
   BAYURA TECH - CUSTOM STYLES
   Modern, Animated Landing Page
   ================================================ */

/* ================================================
   FONTS & BASE STYLES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

/* CSS Variables for Theme Colors */
:root {
    /* Dark Mode (Default) */
    --bg-primary: #030712;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: rgba(31, 41, 55, 0.5);
    --card-bg: rgba(17, 24, 39, 0.5);
    --nav-bg: rgba(3, 7, 18, 0.8);
}

/* Light Mode */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #334155;
    --border-color: rgba(229, 231, 235, 0.8);
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode specific adjustments */
body.light-mode {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

body.light-mode .bg-gray-950 {
    background-color: var(--bg-primary) !important;
}

body.light-mode .bg-gray-900\/50 {
    background-color: var(--bg-secondary) !important;
}

body.light-mode .text-gray-100,
body.light-mode .text-gray-200,
body.light-mode .text-gray-300,
body.light-mode .text-white {
    color: var(--text-primary) !important;
}

body.light-mode .text-gray-400,
body.light-mode .text-gray-500 {
    color: var(--text-secondary) !important;
}

body.light-mode .text-gray-600 {
    color: var(--text-tertiary) !important;
}

body.light-mode .border-gray-800,
body.light-mode .border-gray-700 {
    border-color: var(--border-color) !important;
}

/* ================================================
   SMOOTH SCROLLING
   ================================================ */
html {
    scroll-behavior: smooth;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #105750 0%, #0d8377 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 87, 80, 0.4);
    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.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 87, 80, 0.6);
}

/* Ensure button text stays white in light mode */
body.light-mode .btn-primary,
body.light-mode .btn-primary span {
    color: white !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(16, 87, 80, 0.1);
    color: #14b8a6;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #105750;
}

.btn-secondary:hover {
    background: rgba(16, 87, 80, 0.2);
    transform: translateY(-2px);
    border-color: #0d8377;
}

/* ================================================
   FLOATING SHAPES - HERO BACKGROUND
   ================================================ */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #105750, #0d8377);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    filter: blur(60px);
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0d8377, #14b8a6);
    top: 40%;
    right: 10%;
    animation-delay: 2s;
    filter: blur(80px);
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #14b8a6, #105750);
    bottom: 10%;
    left: 15%;
    animation-delay: 4s;
    filter: blur(70px);
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #105750, #14b8a6);
    top: 60%;
    right: 5%;
    animation-delay: 6s;
    filter: blur(90px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ================================================
   GRADIENT BLOBS
   ================================================ */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: blob 15s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 87, 80, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 131, 119, 0.4) 0%, transparent 70%);
    bottom: -15%;
    right: -15%;
    animation-delay: 3s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.4;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.2;
    }
}

/* ================================================
   HERO CONTENT ANIMATION
   ================================================ */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Hero interactive animations */
.hero-title {
    transition: transform 0.3s ease-out;
}

.hero-gradient-text {
    background-size: 200% auto;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    transition: transform 0.3s ease-out;
    transition-delay: 0.1s;
}

.hero-buttons {
    transition: transform 0.3s ease-out;
    transition-delay: 0.2s;
}

/* Floating particles */
.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #105750, #14b8a6);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 87, 80, 0.5);
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle-3 {
    top: 40%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle-4 {
    top: 70%;
    left: 60%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.particle-5 {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 16s;
}

.particle-6 {
    top: 15%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 13s;
}

.particle-7 {
    top: 80%;
    left: 30%;
    animation-delay: 2.5s;
    animation-duration: 17s;
}

.particle-8 {
    top: 50%;
    left: 70%;
    animation-delay: 4.5s;
    animation-duration: 14s;
}

.particle-9 {
    top: 25%;
    left: 40%;
    animation-delay: 1.5s;
    animation-duration: 15s;
}

.particle-10 {
    top: 65%;
    left: 85%;
    animation-delay: 3.5s;
    animation-duration: 16s;
}

.particle-11 {
    top: 45%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle-12 {
    top: 55%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 13s;
}

.particle-13 {
    top: 10%;
    left: 75%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle-14 {
    top: 75%;
    left: 45%;
    animation-delay: 5.5s;
    animation-duration: 14s;
}

.particle-15 {
    top: 35%;
    left: 65%;
    animation-delay: 0.5s;
    animation-duration: 17s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -30px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 40px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 20px) scale(1.2);
        opacity: 0.7;
    }
}

/* ================================================
   SCROLL INDICATOR
   ================================================ */
.scroll-indicator {
    animation: fadeIn 2s ease-out 1s forwards;
    opacity: 0;
}

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

/* ================================================
   SERVICE CARDS
   ================================================ */
.service-card {
    background: linear-gradient(135deg, rgba(16, 87, 80, 0.05) 0%, rgba(13, 131, 119, 0.05) 100%);
    border: 1px solid rgba(16, 87, 80, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 87, 80, 0.1) 0%, rgba(13, 131, 119, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 87, 80, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(16, 87, 80, 0.5);
    box-shadow: 0 20px 40px rgba(16, 87, 80, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16, 87, 80, 0.1) 0%, rgba(13, 131, 119, 0.1) 100%);
    border-radius: 1rem;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #14b8a6;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.service-icon-wrapper svg {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .service-icon-wrapper {
    border-radius: 1.5rem;
    border-color: #105750;
    background: linear-gradient(135deg, rgba(16, 87, 80, 0.2) 0%, rgba(13, 131, 119, 0.2) 100%);
    box-shadow: 0 10px 30px rgba(16, 87, 80, 0.4);
}

.service-card:hover .service-icon-wrapper svg {
    transform: scale(1.05);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #14b8a6;
}

.service-card p {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* Staggered animation for service cards */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

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

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* ================================================
   FEATURE CARDS (Why Us Section)
   ================================================ */
.why-feature-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(16, 87, 80, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.why-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #105750, #14b8a6);
    transition: height 0.4s ease;
}

.why-feature-card:hover {
    transform: translateX(10px);
    border-color: rgba(16, 87, 80, 0.5);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 10px 30px rgba(16, 87, 80, 0.2);
}

.why-feature-card:hover::before {
    height: 100%;
}

/* Why Us Icon - Always White */
.why-feature-card svg,
body.light-mode .why-feature-card svg,
body.dark-mode .why-feature-card svg {
    color: white !important;
    stroke: currentColor !important;
    fill: none !important;
}

/* Why Us Icon Container Background - Always Gradient */
.why-feature-card .bg-gradient-to-br,
body.light-mode .why-feature-card .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #105750, #14b8a6) !important;
}

/* Visual Container */
.why-visual-wrapper {
    position: relative;
}

.why-visual-container {
    position: sticky;
    top: 100px;
}

/* Stat Badges */
.stat-badge {
    background: rgba(16, 87, 80, 0.1);
    border: 1px solid rgba(16, 87, 80, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(16, 87, 80, 0.2);
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-5px);
}

/* Float Animation for Icon */
@keyframes animate-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: animate-float 3s ease-in-out infinite;
}

/* Legacy feature-card for backward compatibility */
.feature-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(16, 87, 80, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateX(10px);
    border-color: rgba(16, 87, 80, 0.5);
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 10px 30px rgba(16, 87, 80, 0.2);
}

/* ================================================
   PORTFOLIO CARDS
   ================================================ */
.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.portfolio-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(16, 87, 80, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(16, 87, 80, 0.5);
    box-shadow: 0 25px 50px rgba(16, 87, 80, 0.3);
}

.portfolio-image {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 16rem; /* 256px - h-64 equivalent */
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 87, 80, 0.2) 0%, rgba(13, 131, 119, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 1;
}

/* Responsive adjustments for portfolio images */
@media (max-width: 768px) {
    .portfolio-image {
        height: 12rem; /* Smaller on mobile */
    }
}

@media (min-width: 1024px) {
    .portfolio-image {
        height: 18rem; /* Larger on desktop */
    }
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form {
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    animation: fadeInUp 0.8s ease-out;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ================================================
   FADE-IN ANIMATION (Scroll-triggered)
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   GLOW EFFECTS
   ================================================ */
.glow-primary {
    box-shadow: 0 0 20px rgba(16, 87, 80, 0.5),
                0 0 40px rgba(16, 87, 80, 0.3),
                0 0 60px rgba(16, 87, 80, 0.1);
}

/* ================================================
   PARALLAX ELEMENTS
   ================================================ */
.parallax-element {
    transition: transform 0.5s ease-out;
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(3, 7, 18, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #105750, #14b8a6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ================================================
   SOCIAL MEDIA ICONS
   ================================================ */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(16, 87, 80, 0.1);
    color: #9ca3af;
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 87, 80, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #105750, #14b8a6);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 87, 80, 0.3);
    border-color: transparent;
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Light mode social icons */
body.light-mode .social-icon {
    background: rgba(16, 87, 80, 0.05);
    color: #6b7280;
    border-color: rgba(16, 87, 80, 0.15);
}

body.light-mode .social-icon:hover {
    background: linear-gradient(135deg, #105750, #14b8a6);
    color: white;
    border-color: transparent;
}

/* ================================================
   SECTION DIVIDERS
   ================================================ */
section {
    position: relative;
}

/* ================================================
   LOADING ANIMATIONS
   ================================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 768px) {
    .floating-shape {
        display: none;
    }

    .gradient-blob {
        width: 300px !important;
        height: 300px !important;
    }

    .service-card,
    .feature-card,
    .portfolio-card {
        margin-bottom: 1rem;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================================
   SELECTION STYLES
   ================================================ */
::selection {
    background: rgba(16, 87, 80, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(16, 87, 80, 0.4);
    color: white;
}

/* ================================================
   CUSTOM SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #105750, #0d8377);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0d8377, #14b8a6);
}

/* ================================================
   LIGHT MODE SPECIFIC STYLES
   ================================================ */

/* Navigation */
body.light-mode nav {
    background: var(--nav-bg) !important;
    border-bottom-color: var(--border-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cards */
body.light-mode .service-card {
    background: #ffffff !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.light-mode .service-card::before,
body.light-mode .service-card::after {
    display: none !important;
}

body.light-mode .service-card:hover {
    background: #ffffff !important;
    border-color: #105750 !important;
    box-shadow: 0 0 0 3px rgba(16, 87, 80, 0.1),
                0 10px 30px rgba(16, 87, 80, 0.2),
                0 0 20px rgba(16, 87, 80, 0.3);
}

body.light-mode .why-feature-card,
body.light-mode .feature-card,
body.light-mode .portfolio-card {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-mode .why-feature-card:hover,
body.light-mode .feature-card:hover,
body.light-mode .portfolio-card:hover {
    box-shadow: 0 10px 30px rgba(16, 87, 80, 0.15);
}

/* Form inputs */
body.light-mode input,
body.light-mode textarea {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: var(--text-primary) !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #105750 !important;
    box-shadow: 0 0 0 3px rgba(16, 87, 80, 0.1);
}

/* Floating shapes - lighter in light mode */
body.light-mode .floating-shape {
    opacity: 0.05;
}

body.light-mode .gradient-blob {
    opacity: 0.15;
}

/* Theme toggle button */
.theme-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .theme-toggle-btn {
    background: rgba(16, 87, 80, 0.1) !important;
    border-color: rgba(16, 87, 80, 0.2) !important;
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(16, 87, 80, 0.2) !important;
}

/* Icon visibility */
.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.light-mode .theme-toggle-btn .sun-icon {
    display: block !important;
}

body.light-mode .theme-toggle-btn .moon-icon {
    display: none !important;
}

/* Selection color in light mode */
body.light-mode ::selection {
    background: rgba(16, 87, 80, 0.2);
    color: var(--text-primary);
}

body.light-mode ::-moz-selection {
    background: rgba(16, 87, 80, 0.2);
    color: var(--text-primary);
}

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

body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #105750, #0d8377);
}

/* Nav links in light mode */
body.light-mode .nav-link {
    color: var(--text-secondary) !important;
}

body.light-mode .nav-link:hover {
    color: #105750 !important;
}

/* Status badges in portfolio */
body.light-mode .portfolio-card span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Footer in light mode */
body.light-mode footer {
    background: var(--bg-primary) !important;
    border-top-color: var(--border-color) !important;
}

/* Enhanced text visibility for light mode */
body.light-mode p,
body.light-mode li,
body.light-mode span {
    color: var(--text-secondary);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--text-primary);
}

/* Specific overrides for common text patterns */
body.light-mode .service-card p,
body.light-mode .feature-card p,
body.light-mode .why-feature-card p,
body.light-mode .portfolio-card p {
    color: var(--text-secondary) !important;
}

body.light-mode .service-card h3,
body.light-mode .feature-card h3,
body.light-mode .why-feature-card h3,
body.light-mode .portfolio-card h3 {
    color: var(--text-primary) !important;
}

/* Strong elements visibility */
body.light-mode strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Section descriptions and subtitles */
body.light-mode section p {
    color: var(--text-secondary) !important;
}

body.light-mode section h2 {
    color: var(--text-primary) !important;
}

/* Contact section background in light mode */
body.light-mode #contact {
    background-color: #f3f4f6 !important;
}

/* Contact form labels and inputs in light mode */
body.light-mode #contact label {
    color: #0f172a !important;
}

body.light-mode #contact input,
body.light-mode #contact textarea {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #0f172a !important;
}

body.light-mode #contact input::placeholder,
body.light-mode #contact textarea::placeholder {
    color: #6b7280 !important;
}

/* List items */
body.light-mode ul li,
body.light-mode ol li {
    color: var(--text-secondary) !important;
}

/* Placeholder text visibility */
body.light-mode .text-gray-500 {
    color: var(--text-tertiary) !important;
}

/* ================================================
   LANGUAGE SWITCHER
   ================================================ */
.language-switcher {
    position: relative;
}

#language-toggle {
    cursor: pointer;
    user-select: none;
}

#language-dropdown {
    animation: fadeInDown 0.3s ease-out;
    min-width: 140px;
}

#language-dropdown.hidden {
    display: none;
}

.language-option {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: rgba(16, 87, 80, 0.1);
}

.language-option.active {
    background-color: rgba(16, 87, 80, 0.2);
    color: #14b8a6;
}

/* Light Mode Language Switcher */
body.light-mode #language-toggle {
    background-color: rgba(243, 244, 246, 0.8);
    border-color: rgba(229, 231, 235, 0.8);
    color: #0f172a;
}

body.light-mode #language-toggle:hover {
    background-color: rgba(229, 231, 235, 0.8);
}

body.light-mode #language-dropdown {
    background-color: #ffffff;
    border-color: rgba(229, 231, 235, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.light-mode .language-option {
    color: #0f172a;
}

body.light-mode .language-option:hover {
    background-color: rgba(16, 87, 80, 0.05);
}

body.light-mode .language-option.active {
    background-color: rgba(16, 87, 80, 0.1);
    color: #105750;
}

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