/* --- GLOBAL & DARK MODE STYLES --- */
:root {
    --bg-dark: #0A0A0A;
    --bg-light: #F4F4F9;
    --text-dark: #111111;
    --text-light: #ffffff;
    --card-dark: rgba(255, 255, 255, 0.03);
    --card-light: #FFFFFF;
    --primary-accent: #007AFF;
    --secondary-accent: #5B2C98;
    --tertiary-accent: #FF9E3D;
}

body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark); 
    color: var(--text-light); 
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* --- LIGHT MODE OVERRIDES --- */
body.light-mode {
    background: var(--bg-light);
    color: var(--text-dark);
}

body.light-mode .cinematic-bg {
    background: radial-gradient(ellipse at center, #E0E0E6 0%, var(--bg-light) 70%);
}

body.light-mode nav {
    background: rgba(244, 244, 249, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
body.light-mode nav.scrolled {
    background: rgba(244, 244, 249, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body.light-mode .nav-links a,
body.light-mode .mobile-menu-button {
    color: var(--text-dark);
}
body.light-mode .hero .tagline {
    color: #444444; 
}

body.light-mode .logo-image {
    background: var(--card-light); 
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .logo-placeholder {
    color: var(--text-dark);
}

body.light-mode .section-title {
    background: linear-gradient(135deg, #0056B3, #3C1E6C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .service-card,
body.light-mode .portfolio-item,
body.light-mode .testimonial-card {
    background: var(--card-light); 
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
body.light-mode .service-card:hover {
    background: #F8F8FF;
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}
body.light-mode .service-card h3,
body.light-mode .portfolio-content h4 {
    color: #0056B3; 
}
body.light-mode .service-card p,
body.light-mode .portfolio-content p,
body.light-mode .testimonial-text {
    color: #444444;
}
body.light-mode .cta-section {
    color: var(--text-dark);
}
body.light-mode footer {
    background: #E0E0E6; 
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
body.light-mode .footer-section h4 {
    color: #0056B3;
}
body.light-mode .footer-section p, body.light-mode .footer-section a {
    color: #444444;
}

/* --- CINEMATIC BACKGROUND --- */
.cinematic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--bg-dark) 70%);
}
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: transform 0.1s linear;
}
.particle {
    position: absolute;
    background: var(--primary-accent);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s infinite ease-in-out;
}
.particle:nth-child(odd) { background: var(--secondary-accent); animation-duration: 12s; }
.particle:nth-child(3n) { background: var(--tertiary-accent); animation-duration: 10s; }
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.3; }
    25% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0.8; }
    50% { transform: translateY(-200px) translateX(-30px) scale(0.8); opacity: 0.5; }
    75% { transform: translateY(-150px) translateX(80px) scale(1.1); opacity: 0.7; }
}
/* Neural Network Lines */
.neural-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}
.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
    animation: pulse-line 4s infinite ease-in-out;
}
@keyframes pulse-line {
    0%, 100% { opacity: 0.1; transform: scaleX(0.5); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 60px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
nav a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

body.light-mode nav a {
  position: relative;
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

nav a:hover {
  color: var(--primary-accent);
}

nav a:hover::after {
  width: 60%;
  box-shadow: 0 0 8px var(--secondary-accent);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 20px 60px;
    border-bottom-color: rgba(0, 122, 255, 0.3);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}
.nav-logo {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}
/* Desktop Menu */
.desktop-menu {
  display: flex;
  align-items: center;
  gap: 45px;
  list-style: none;
  font-family: "Poppins", sans-serif;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Glowing gradient underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

/* Hover effects */
.nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 60%;
  box-shadow: 0 0 8px var(--secondary-accent);
}

/* Optional "active" link state */
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  width: 60%;
}

/* Subtle entrance animation */
.desktop-menu li {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInUp 0.5s forwards;
}
.desktop-menu li:nth-child(1) { animation-delay: 0.1s; }
.desktop-menu li:nth-child(2) { animation-delay: 0.2s; }
.desktop-menu li:nth-child(3) { animation-delay: 0.3s; }
.desktop-menu li:nth-child(4) { animation-delay: 0.4s; }
.desktop-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language icon styling */
.language-switcher-icon {
  font-size: 22px;
  cursor: pointer;
  margin-left: 25px;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.language-switcher-icon:hover {
  opacity: 1;
  color: var(--primary-accent);
  transform: rotate(10deg) scale(1.1);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none; 
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease;
}
/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark); 
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}
#mobile-menu-overlay.active {
    transform: translateX(0);
}
body.light-mode #mobile-menu-overlay {
    background: var(--bg-light); 
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
}
.mobile-nav-links li {
    margin: 30px 0;
}
.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
body.light-mode .mobile-nav-links a {
     color: var(--text-dark);
}
.mobile-nav-links a:hover {
    color: var(--primary-accent);
}


/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: 150px; /* Ensures content is below fixed nav */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s linear; 
}

.hero-content {
    max-width: 1200px;
    z-index: 10;
    animation: heroFadeIn 2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(80px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dynamic Structure Layer */
.hero-structure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; 
    opacity: 0.1; 
    overflow: hidden;
    transition: transform 0.1s linear; 
}
.hero-structure svg {
    width: 150%; 
    height: 150%;
    position: absolute;
    top: -25%;
    left: -25%;
    transform-origin: center center;
    animation: subtleRotate 120s linear infinite;
    transition: transform 0.1s linear; 
}
#cascade-left, #cascade-right {
     transition: transform 0.1s linear;
}
@keyframes subtleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Logo */
.logo-showcase {
    margin-bottom: 60px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-container {
    width: 280px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 8s ease-in-out infinite;
}
.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent), var(--primary-accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: rotate 6s linear infinite;
}
.logo-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent), var(--primary-accent));
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse-glow 3s ease-in-out infinite alternate;
}
.logo-image {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 122, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 5;
    transition: all 0.4s ease;
}
.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.4);
}
.logo-placeholder {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: 2px;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse-glow {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

/* Hero Typography */
.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4DD0FF 0%, #905CFF 50%, #FFB670 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 122, 255, 0.7), 0 0 40px rgba(91, 44, 152, 0.5); 
    animation: textShimmer 4s ease-in-out infinite;
    transform-origin: center center; 
    transition: transform 0.1s linear; 
}
@keyframes textShimmer {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.2) saturate(1.3); }
}
.hero .tagline {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Premium CTA Button */
.cta-primary {
    display: inline-block;
    padding: 20px 50px;
    background: rgba(0, 122, 255);
    border: 2px solid rgba(0, 122, 255, 0.4);
    border-radius: 60px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    backdrop-filter: blur(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}
.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}
.cta-primary:hover::before {
    left: 100%;
}
.cta-primary:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--primary-accent);
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.5);
    transform: translateY(-3px);
}

/* --- SECTIONS --- */
.section {
    padding: 120px 60px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.about-content p {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}
.service-card {
    background: var(--card-dark); 
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    backdrop-filter: blur(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
}
.service-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent), var(--primary-accent));
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover .service-icon::before {
    opacity: 1;
}
.service-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-accent);
}
.service-card p {
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 80px;
}
.portfolio-item {
    background: var(--card-dark); 
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.portfolio-item:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0, 122, 255, 0.3);
}
.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent), var(--tertiary-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.portfolio-image::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 ease;
}
.portfolio-item:hover .portfolio-image::before {
    left: 100%;
}
.portfolio-content {
    padding: 40px;
}
.portfolio-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-accent);
}
.portfolio-content p {
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 44, 152, 0.2);
    border-radius: 25px;
    padding: 50px 40px;
    backdrop-filter: blur(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--secondary-accent), var(--primary-accent), var(--tertiary-accent), var(--secondary-accent));
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.testimonial-card:hover::before {
    opacity: 1;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(91, 44, 152, 0.3);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
}
.testimonial-author {
    font-weight: 600;
    color: var(--tertiary-accent);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 150px 60px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(91, 44, 152, 0.05));
    border-radius: 40px;
    margin: 80px 60px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23007AFF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}
.cta-section h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}
.cta-section p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 80px 60px 40px;
    border-top: 1px solid rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(30px);
}
.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}
.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-accent);
}
.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.8;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: var(--primary-accent);
}
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 300;
}
body.light-mode .footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #000000;
    font-weight: 300;
}
/* --- MODAL STYLES --- */
#theme-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none; /* Hidden by default */
    place-items: center;
}
#theme-modal-box {
    background: #1e1e3f;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 122, 255, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    color: var(--text-light);
}
#theme-modal-overlay.active #theme-modal-box {
    transform: scale(1);
    opacity: 1;
}
#theme-modal-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #4DD0FF;
}
#theme-modal-box p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}
/* Theme Selection Buttons */
.theme-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.theme-selector button {
    width: 120px;
    height: 100px;
    border-radius: 15px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
    border: 2px solid transparent; 
}
.theme-selector .dark-mode-btn {
    background: #282c34; 
    color: var(--text-light); 
    border-color: #444;
}
.theme-selector .light-mode-btn {
    background: #f0f0f0; 
    color: var(--text-dark); 
    border-color: #ddd;
}
.theme-selector button:hover {
    transform: translateY(-3px);
    border-color: var(--primary-accent);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.4);
}
.theme-selector button span {
    font-size: 3rem;
    margin-bottom: 5px;
}
/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.language-selector button {
    background: var(--primary-accent);
    color: var(--text-light);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 2.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.language-selector button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Light mode modal appearance (modal should look good regardless of theme chosen) */
body.light-mode #theme-modal-box {
    background: var(--card-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
body.light-mode #theme-modal-box h3 {
    color: var(--primary-accent);
}
body.light-mode #theme-modal-box p {
    color: #444444;
}
body.light-mode .theme-selector button {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVENESS (Mobile/Tablet) --- */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .nav-container {
         padding-right: 20px;
    }
}
@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }
    .hero {
        padding-top: 100px; 
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero .tagline {
        font-size: 1.4rem;
    }
    .section {
        padding: 60px 30px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .logo-container {
        width: 180px;
        height: 180px;
    }
    .logo-image {
        width: 100;
        height: 100px;
    }
    .logo-placeholder {
        font-size: 24px;
    }
    .cta-section {
        margin: 40px 30px;
        padding: 80px 30px;
    }
    .cta-section h2 {
        font-size: 2.5rem;
    }
    /* Modal on Mobile */
    #theme-modal-box {
        padding: 30px 20px;
    }
    .language-selector button {
        font-size: 1.8rem;
        padding: 8px 12px;
    }
    .theme-selector {
        gap: 10px;
    }
    .theme-selector button {
        width: 100px;
        height: 80px;
    }
}
/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Popup modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(320px, 90vw);
  padding: 24px 30px;
  border-radius: 16px;
  background: #101319;
  color: #fff;
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.modal.open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Light mode support */
body.light-mode .modal__dialog {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

/* Close button */
.modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.modal__close:hover {
  background: rgba(255,255,255,0.08);
}
body.light-mode .modal__close:hover {
  background: rgba(0,0,0,0.08);
}

/* Text + link */
.modal__number {
  font-size: 1rem;
  margin-top: 10px;
  opacity: 0.8;
}
.phone-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.phone-link:hover {
  color: var(--secondary-accent);
  transform: scale(1.05);
}

