:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --accent: #00d4aa;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --hero-overlay: rgba(13, 20, 40, 0.75);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --card-bg: #1a1d26;
  --text: #e9ecef;
  --text-muted: #adb5bd;
  --border: #2d3142;
  --hero-overlay: rgba(0, 0, 0, 0.82);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  transition: background-color 0.4s, color 0.3s, border-color 0.3s;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.navbar-custom {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: var(--primary) !important;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0 0.4rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Theme Toggle */
.theme-toggle {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.theme-toggle::after {
  content: '\263E';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card-bg);
  top: 2px;
  left: 2px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="dark"] .theme-toggle::after {
  left: 26px;
  content: '\2600';
}

/* Language Dropdown */
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dropdown-item {
  color: var(--text);
  font-size: 0.85rem;
}

.dropdown-item:hover {
  background: var(--primary);
  color: white;
}

/* Hero Carousel */
.hero-section {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-btn {
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: var(--accent);
  color: #000;
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.35);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 35px;
  border-radius: 6px;
}

.hero-thumbs {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.1);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats Bar */
.stats-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.section-badge {
  display: inline-block;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Projects */
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: #000;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-body {
  padding: 1.5rem;
}

.project-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta i {
  color: var(--primary);
  margin-right: 0.3rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stars {
  color: #ffc107;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

/* Voting */
.vote-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.vote-card:hover {
  border-color: var(--primary);
}

.vote-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.vote-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.8rem 0;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
}

.vote-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.vote-btn:hover,
.vote-btn.voted {
  background: var(--primary);
  color: white;
}

/* Contact */
.contact-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background: var(--bg);
  color: var(--text);
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-info-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.footer-brand span {
  color: var(--accent);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.8rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Countries Marquee */
.countries-marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.country-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

.btn-close {
  filter: invert(1);
}

[data-theme="light"] .btn-close {
  filter: none;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-thumbs {
    display: none;
  }

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

  .stat-number {
    font-size: 1.6rem;
  }
}