/* Global theme variables */
:root {
  --cyan: #00d9ff;
  --pink: #ff6b9d;
  --orange: #ffa500;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1a;
  --card-bg: #252542;
  --text-light: #ffffff;
  --text-muted: #b0b0c0;
  --gradient-accent: linear-gradient(135deg, #00d9ff, #ff6b9d);
  --gradient-warm: linear-gradient(135deg, #ff6b9d, #ffa500);
}

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

html {
  scroll-behavior: smooth;
}

/* The English text in HTML serves as:
   1. Fallback content if JavaScript fails
   2. Initial content before i18n loads (very brief)
   3. SEO-friendly content for search engines
   
   The i18n script will replace this text immediately when it loads.
   This is standard practice for client-side i18n implementations. */

body {
  font-family: "Inter", sans-serif;
  background: var(--darker-bg);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.nav-logo-photo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    var(--gradient-warm) border-box;
}

.nav-logo-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-light);
}

.nav-logo-text span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

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

/* Language Switcher - Custom Dropdown */
.language-switcher-container {
  margin-left: 1rem;
  position: relative;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-light);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  min-width: 130px;
}

.dropdown-toggle:hover {
  border-color: rgba(0, 217, 255, 0.5);
  color: var(--cyan);
  background: rgba(0, 217, 255, 0.05);
}

.dropdown-toggle:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.dropdown-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.1);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
}

.dropdown-text {
  flex: 1;
  text-align: left;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  list-style: none;
  padding: 8px;
  margin: 0;
  min-width: 160px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-light);
  font-size: 0.9rem;
  outline: none;
}

.dropdown-option:focus {
  background: rgba(0, 217, 255, 0.15);
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.dropdown-option:hover {
  background: rgba(0, 217, 255, 0.15);
  color: var(--cyan);
  transform: translateX(4px);
}

.dropdown-option[aria-selected="true"] {
  background: rgba(0, 217, 255, 0.2);
  color: var(--cyan);
}

.dropdown-option .flag-icon {
  font-size: 1.3rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 107, 157, 0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-2%, 2%) rotate(1deg);
  }
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--dark-bg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-container {
  position: relative;
}

.hero-photo-bg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  background: var(--gradient-warm);
  border-radius: 30px;
  transform: rotate(5deg);
}

.hero-photo {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 30px;
  object-fit: cover;
  border: 4px solid var(--dark-bg);
  z-index: 1;
}

.floating-badge {
  position: absolute;
  background: var(--card-bg);
  padding: 12px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: bob 3s ease-in-out infinite;
}

.floating-badge:nth-child(2) {
  animation-delay: -1s;
}
.floating-badge:nth-child(3) {
  animation-delay: -2s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.badge-1 {
  top: 20px;
  right: -30px;
}
.badge-2 {
  bottom: 80px;
  left: -40px;
}
.badge-3 {
  bottom: -10px;
  right: 20px;
}

.badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-icon.cyan {
  background: rgba(0, 217, 255, 0.2);
  color: var(--cyan);
}
.badge-icon.pink {
  background: rgba(255, 107, 157, 0.2);
  color: var(--pink);
}
.badge-icon.orange {
  background: rgba(255, 165, 0, 0.2);
  color: var(--orange);
}

/* Section Styling */
section {
  padding: 100px 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header h2 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.accent-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* About Section */
.about {
  background: var(--dark-bg);
  padding-top: 50px;
  padding-bottom: 50px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);

  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Services Section */
.services {
  background: var(--darker-bg);
  padding-top: 50px;
  padding-bottom: 50px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon.cyan {
  background: rgba(0, 217, 255, 0.15);
}
.service-icon.pink {
  background: rgba(255, 107, 157, 0.15);
}
.service-icon.orange {
  background: rgba(255, 165, 0, 0.15);
}

.service-card h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Credentials Section */
.credentials {
  background: var(--dark-bg);
  padding-top: 50px;
  padding-bottom: 50px;
}

.credentials-content {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--pink), var(--orange));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 25px 30px;
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 35px;
  width: 16px;
  height: 16px;
  background: var(--dark-bg);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.timeline-date {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.timeline-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0;
}

.timeline-company {
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Skills Grid */
.skills-section {
  margin-top: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.skill-tag {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-tag:hover {
  transform: translateY(-5px);
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Contact Section */
.contact {
  background: var(--darker-bg);
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(0, 217, 255, 0.1) 0%,
    transparent 70%
  );
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--text-light);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--darker-bg);
  padding: 40px 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-family: "Rajdhani", sans-serif;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-photo {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .language-switcher-container {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .custom-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    right: 0;
    left: 0;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



