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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Enhanced Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-logo h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #2c3e50;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Enhanced Hero Section */
.hero {
  padding: 140px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0.9;
  z-index: -1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  font-weight: 400;
}

.student-info {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-size: 1rem;
}

.hero-visual {
  height: 600px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#ai-visualization {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Enhanced Overview Section */
.overview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 120px 0;
  position: relative;
}

.overview h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
  color: #2c3e50;
  font-weight: 700;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.overview-card {
  background: white;
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.overview-card:hover::before {
  left: 100%;
}

.overview-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.overview-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.overview-card p {
  color: #6c757d;
  line-height: 1.7;
  font-size: 1rem;
}

/* Enhanced Introduction Section */
.introduction {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 120px 0;
  color: white;
  position: relative;
}

.introduction::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.introduction h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
  font-weight: 700;
  position: relative;
}

.intro-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}

.intro-text p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.key-areas {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 20px;
  margin-top: 40px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.key-areas h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 600;
}

.key-areas ul {
  list-style: none;
}

.key-areas li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 1rem;
}

.key-areas li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00e676;
  font-weight: bold;
  font-size: 1.2rem;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Enhanced Navigation Section */
.navigation-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 120px 0;
}

.navigation-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
  color: #2c3e50;
  font-weight: 700;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.nav-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 48px 40px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.nav-card:hover::before {
  left: 100%;
}

.nav-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.nav-card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.nav-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 1rem;
}

.nav-arrow {
  font-size: 1.8rem;
  font-weight: bold;
  position: absolute;
  bottom: 24px;
  right: 40px;
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-arrow {
  transform: translateX(8px);
}

/* Enhanced Charts and Visualizations */
.chart-container {
  background: white;
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-container:hover::before {
  opacity: 1;
}

.chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
}

.chart-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: #2c3e50;
  text-align: center;
  font-weight: 600;
  position: relative;
}

.chart-container canvas,
.chart-container > div {
  max-height: 300px !important;
  height: 300px !important;
  position: relative;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.lightbox-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 10001;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(244, 67, 54, 0.9);
  color: white;
  transform: scale(1.1);
}

.lightbox-body {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#lightbox-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
  font-weight: 700;
}

#lightbox-chart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-chart canvas,
#lightbox-chart > div {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* Page-specific styles */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 140px 0 100px;
  color: white;
  text-align: center;
  position: relative;
}

.page-header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.page-header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  position: relative;
}

.content-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 120px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #2c3e50;
  text-align: center;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.content-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border-left: 5px solid #667eea;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: left 0.6s ease;
}

.content-card:hover::before {
  left: 100%;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
}

.content-card h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

.content-card p {
  color: #6c757d;
  line-height: 1.7;
  font-size: 1rem;
}

.content-card ul,
.content-card ol {
  color: #6c757d;
  line-height: 1.7;
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 8px;
}

/* Calculator Specific Styles */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.calculator-card,
.results-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-card h2,
.results-card h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.calculator-description {
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.input-group input,
.input-group select {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group small {
  color: #6c757d;
  font-size: 0.85rem;
}

.calculate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.results-content {
  min-height: 300px;
}

.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #6c757d;
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
}

.result-item.primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 20px;
  border-radius: 12px;
  border: none;
  margin-bottom: 16px;
}

.result-item.primary .result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.result-label {
  font-weight: 500;
  color: #2c3e50;
}

.result-value {
  font-weight: 600;
  color: #667eea;
  font-size: 1.1rem;
}

.adjustments {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.adjustments h4 {
  color: #2c3e50;
  margin-bottom: 12px;
  font-size: 1rem;
}

.adjustment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.adjustment-item .discount {
  color: #28a745;
  font-weight: 600;
}

.adjustment-item .increase {
  color: #dc3545;
  font-weight: 600;
}

.adjustment-item .decrease {
  color: #28a745;
  font-weight: 600;
}

.adjustment-item .normal {
  color: #6c757d;
}

.model-accuracy {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.results-chart {
  margin-top: 30px;
  height: 300px;
}

.model-info-section,
.comparison-section {
  margin-top: 80px;
}

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

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    gap: 20px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .intro-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .intro-stats {
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
  }

  .stat-item {
    flex: 1;
    margin: 0 10px;
    padding: 30px 20px;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .overview h2,
  .section-title {
    font-size: 2.2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .lightbox-content {
    width: 98%;
    height: 95vh;
    margin: 1% auto;
  }

  .lightbox-body {
    padding: 20px;
  }

  #lightbox-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .nav-container {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-content,
  .intro-content {
    padding: 0 16px;
  }

  .intro-stats {
    flex-direction: column;
    gap: 20px;
  }

  .chart-container {
    padding: 20px;
  }

  .content-card {
    padding: 30px 24px;
  }

  .calculator-card,
  .results-card {
    padding: 30px 24px;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced hover effects */
.chart-container:hover .chart-title {
  color: #667eea;
}

.chart-container::after {
  content: "📊 Kattalashtirish uchun bosing";
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(102, 126, 234, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.chart-container:hover::after {
  opacity: 1;
}

/* Loading animation */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #667eea;
  font-size: 1.1rem;
}

.chart-loading::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
