/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --background: #ffffff;
  --background-light: #f8fafc;
  --background-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --white: #fff;
  --background-transparent: rgba(255, 255, 255, 0.95);
}

[data-theme='dark'] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --accent-color: #f59e0b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #94a3b8;
  --background: #0f172a;
  --background-light: #1e293b;
  --background-dark: #020617;
  --border-color: #334155;
  --background-transparent: rgba(15, 23, 42, 0.95);
  --white: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--background-transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;

  .navbar.scrolled {
    background-color: var(--background-transparent);
    box-shadow: var(--shadow-md);
  }

  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 65px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #581c87 100%);
}

.hero::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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.highlight {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image i {
  font-size: 6rem;
  color: var(--white);
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--background-light);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--background);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}


.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-image i {
  font-size: 8rem;
  color: var(--white);
}


/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-light);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--background);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 40px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }


  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .service-card {
    padding: 30px;
  }

}

/* 320px width optimization */
@media (max-width: 320px) {
  :root {
    --container-padding: 12px;
  }

  .container,
  .nav-container,
  .hero-container {
    padding: 0 12px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .hero-image i {
    font-size: 4rem;
  }

  .services {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 24px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .about {
    padding: 60px 0;
  }

  .about-content {
    gap: 40px;
  }

  .about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .about-lead {
    font-size: 1rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }


  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .about-image {
    width: 250px;
    height: 250px;
  }

  .about-image i {
    font-size: 5rem;
  }


  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 0.9rem;
  }


  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    height: 35px;
  }

  .footer-brand p {
    font-size: 0.9rem;
  }

  .footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .nav-container {
    height: 60px;
  }

  .logo {
    height: 45px;
    max-width: 100%;
    height: auto;
  }

  .nav-menu {
    top: 60px;
    padding: 30px 0;
  }

  .nav-menu li {
    margin-bottom: 15px;
  }

  .nav-link {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.service-card {
  animation: fadeInUp 0.8s ease-out;
}

.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;
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher-button {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-switcher-button:hover {
  background-color: var(--border-color);
}

.theme-switcher-button i {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.fa-sun {
  display: none;
}

.fa-moon {
  display: block;
}

[data-theme='dark'] .fa-sun {
  display: block;
}

[data-theme='dark'] .fa-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #94a3b8;
    --accent-color: #f59e0b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-light: #1e293b;
    --background-dark: #020617;
    --border-color: #334155;
    --background-transparent: rgba(15, 23, 42, 0.95);
    --white: #e2e8f0;
  }

  :root:not([data-theme]) .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #581c87 100%);
  }

  :root:not([data-theme]) .fa-sun {
    display: block;
  }

  :root:not([data-theme]) .fa-moon {
    display: none;
  }
}