/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables for Theme Colors */
:root {
  /* Light theme colors */
  --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  --bg-radial-1: rgba(59, 130, 246, 0.1);
  --bg-radial-2: rgba(59, 130, 246, 0.08);
  --bg-radial-3: rgba(59, 130, 246, 0.05);
  --text-primary: #1a1a1a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-light: #64748b;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-bg-alt: rgba(255, 255, 255, 0.9);
  --border-color: rgba(59, 130, 246, 0.2);
  --border-color-hover: rgba(59, 130, 246, 0.4);
  --accent-bg: rgba(59, 130, 246, 0.08);
  --accent-bg-hover: rgba(59, 130, 246, 0.12);
  --scrollbar-track: #e2e8f0;
}

[data-theme="dark"] {
  /* Dark theme colors */
  --bg-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --bg-radial-1: rgba(59, 130, 246, 0.15);
  --bg-radial-2: rgba(59, 130, 246, 0.12);
  --bg-radial-3: rgba(59, 130, 246, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.8);
  --card-bg-alt: rgba(30, 41, 59, 0.9);
  --border-color: rgba(59, 130, 246, 0.3);
  --border-color-hover: rgba(59, 130, 246, 0.5);
  --accent-bg: rgba(59, 130, 246, 0.15);
  --accent-bg-hover: rgba(59, 130, 246, 0.2);
  --scrollbar-track: #334155;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  /* padding-top: 80px; */
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      var(--bg-radial-1) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, var(--bg-radial-2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--bg-radial-3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  transition: background 0.3s ease;
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #3b82f6;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #e2e8f0;
}

.nav-link:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-theme-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.4s;
}

.mobile-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.mobile-theme-toggle .sun-icon,
.mobile-theme-toggle .moon-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-text::after {
  content: " Mode";
}

.mobile-theme-toggle .theme-toggle-text::before {
  content: "Dark";
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-text::before {
  content: "Light";
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #3b82f6;
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-link:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-nav-link:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-nav-link:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-nav-link:hover {
  color: #e2e8f0;
  transform: translateY(-5px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

/* Content Sections */
.content-section {
  padding: 20px 0;
  position: relative;
}

.section-card {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 50px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.section-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 var(--border-color-hover);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  letter-spacing: -0.01em;
}

.article-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: -0.01em;
  position: relative;
}

.article-subtitle::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.section-text:last-child {
  margin-bottom: 0;
}

/* Feature Lists */
.feature-list {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--accent-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.feature-item:hover {
  transform: translateY(-2px);
  background: var(--accent-bg-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.feature-text strong {
  color: #3b82f6;
  font-weight: 600;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.column-card {
  background: var(--card-bg-alt);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.column-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 var(--border-color-hover);
}

.column-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(29, 78, 216, 0.05)
  );
  border: 2px solid var(--border-color-hover);
  border-radius: 20px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #3b82f6);
  border-radius: 22px;
  z-index: -1;
}

.highlight-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  border-radius: 20px;
  z-index: -1;
}

.highlight-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 15px;
  text-align: center;
}

.highlight-text {
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  transition: color 0.3s ease;
}

/* Footer Styles */
.footer {
  background: #3b82f6;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 40px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.footer-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-nav-link:hover {
  color: #e2e8f0;
}

.footer-right {
  display: flex;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* body {
    padding-top: 70px;
  } */

  .nav-container {
    height: 70px;
  }

  .logo-img {
    height: 35px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .article-subtitle {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
  }

  .section-card {
    padding: 30px 20px;
  }

  .column-card {
    padding: 30px 20px;
  }

  .highlight-box {
    padding: 25px 20px;
  }

  .feature-item {
    padding: 18px;
  }

  .footer-nav {
    gap: 30px;
  }

  .social-links {
    gap: 15px;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-card {
    padding: 25px 18px;
  }

  .column-card {
    padding: 25px 18px;
  }

  .highlight-box {
    padding: 20px 15px;
  }

  .footer-logo-img {
    height: 40px;
  }

  .footer-nav {
    gap: 20px;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* Contact Us Section Styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(59, 130, 246, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.contact-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.contact-card:hover .contact-icon svg {
  transform: scale(1.1);
}

.contact-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.contact-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-title {
  color: #3b82f6;
}

.contact-card:hover .contact-description {
  color: var(--text-secondary);
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .contact-icon svg {
    width: 28px;
    height: 28px;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .contact-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .contact-icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-title {
    font-size: 1.1rem;
  }

  .contact-description {
    font-size: 0.85rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1d4ed8, #3b82f6);
}
