:root {
  --primary-color: #ffc107;
  --primary-dark: #e6a500;
  --secondary-color: #1a1a1a;
  --secondary-light: #303030;
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --bg-light: #f5f7fa;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-heavy: 0 4px 20px rgba(0,0,0,0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  padding-bottom: 1rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,193,7,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26,26,26,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), #ff9800);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-description {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 90%;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-primary {
  background: linear-gradient(45deg, var(--primary-color), #ff9800);
  color: var(--text-dark);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(255,193,7,0.3);
}

.cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,193,7,0.4);
  text-decoration: none;
  color: var(--text-dark);
}

.cta-secondary {
  background: transparent;
  color: var(--secondary-color);
  padding: 0.8rem 2rem;
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.4s ease;
}

.cta-secondary:hover {
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26,26,26,0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: slideInRight 0.8s ease-out;
  width: 100%;
}

.schedule-demo {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  max-width: 950px;
  width: 100%;
  position: relative;
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transition: all 0.6s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.schedule-demo:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) scale(1.02);
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.schedule-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
  position: relative;
}

.schedule-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.schedule-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.85rem;
}

.schedule-table th {
  background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
  color: white;
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
}

.schedule-table th:first-child {
  border-radius: 8px 0 0 0;
  width: 15%;
}

.schedule-table th:last-child {
  border-radius: 0 8px 0 0;
}

.schedule-table th:not(:first-child) {
  width: 17%;
}

.schedule-table td {
  padding: 0.7rem 0.3rem;
  text-align: center;
  border: 1px solid #f0f0f0;
  font-size: 0.75rem;
  line-height: 1.3;
  transition: all 0.3s ease;
  vertical-align: top;
}

.schedule-table tr:hover td {
  background: linear-gradient(45deg, #f8f9ff, #e3f2fd);
}

.time-slot {
  font-weight: 700;
  color: var(--secondary-color);
  background: linear-gradient(45deg, #fff9e6, #ffeaa7) !important;
  text-align: center;
  vertical-align: middle;
  border-radius: 6px;
  position: relative;
  display: table-cell;
  height: 80px;
}

.schedule-table td:first-child {
  text-align: center !important;
  vertical-align: middle !important;
  font-weight: 700;
  font-size: 0.95rem;
  display: table-cell;
}

.schedule-table th:first-child {
  text-align: center !important;
  vertical-align: middle !important;
}

.time-slot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 50%;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
}

.subject-name {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.subject-room {
  font-size: 0.65rem;
  color: #666;
  background: rgba(74, 144, 226, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  display: inline-block;
}

.empty-slot {
  color: #ccc;
  font-style: italic;
  opacity: 0.7;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-content h1::after {
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .cta-buttons {
    justify-content: center;
    gap: 1rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .schedule-demo {
    max-width: 100%;
    transform: none;
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .schedule-table {
    font-size: 0.8rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.6rem 0.3rem;
    font-size: 0.75rem;
  }

  .subject-name {
    font-size: 0.7rem;
  }

  .subject-room {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 2.5rem 1rem;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .hero-content h1::after {
    width: 70px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .cta-primary,
  .cta-secondary {
    max-width: 280px;
    font-size: 1rem;
  }

  .schedule-demo {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.6rem 0.2rem;
    font-size: 0.7rem;
  }

  .subject-name {
    font-size: 0.65rem;
  }

  .subject-room {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }
}