:root {
  /* --primary-color: #0066ff; */
  --primary-color: #DB3332;
  /* --primary-dark: #0052cc; */
  --primary-dark: #a72626;
  --primary-light: #3385ff;
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-color: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
  --shadow: 0 2px 10px rgba(0,0,0,0.5);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.7);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  /* transition: opacity 0.3s ease; */
}

/* .logo:hover {
  opacity: 0.8;
} */

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Main Content */
main {
  margin-top: 80px;
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

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

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* background: url("../assets/i/hero-background.png") center/cover no-repeat; */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 990px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Technology Section */
.tech-subsection {
  margin: 2rem 0;
}

.tech-subsection h3 {
  color: var(--primary-color);
}

.tech-subsection ul {
  margin-left: 2rem;
}

/* Case Studies Carousel */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.case-study-card {
  min-width: 100%;
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
}

.case-study-image {
  width: 40%;
  height: 300px;
  background-color: var(--border-color);
  border-radius: 8px;
  flex-shrink: 0;
}

.case-study-content {
  flex: 1;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Logo Scroll */
.logo-scroll {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
  overflow: hidden;
}

.logo-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 4rem;
}

.logo-item {
  height: 60px;
  min-width: 150px;
  background-color: var(--border-color);
  border-radius: 8px;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Testimonials */
.testimonials-container {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.testimonials {
  position: relative;
}

.testimonial {
  position: absolute;
  width: 100%;
  padding: 3rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: justify;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-info {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.copyright {
  width: 1200px;
  display: flex;
  justify-content: end;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .case-study-card {
    flex-direction: column;
  }

  .case-study-image {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}