/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Glory', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

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

.nav-logo h2 {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #fbbf24;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #fbbf24;
  color: #1f2937;
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #1f2937;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: #f9fafb;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #6b7280;
  line-height: 1.7;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Courses Section */
.courses {
  background: #f9fafb;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.course-content {
  padding: 1.5rem;
}

.course-content h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.course-content p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.course-meta {
  display: flex;
  gap: 1rem;
}

.duration, .level {
  background: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #374151;
}

/* Technology Section */
.technology-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.tech-text h3 {
  font-size: 1.8rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.tech-text p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.tech-features {
  list-style: none;
}

.tech-features li {
  padding: 0.5rem 0;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.tech-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Contact Section */
.contact {
  background: #f9fafb;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #2563eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-item:hover::before {
  transform: scaleX(1);
}

.contact-item h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item h3::before {
  content: '✉️';
  font-size: 1.1rem;
}

.contact-item p {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

/* Contact form */
.contact-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  color: #111827;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group.checkbox label {
  font-weight: 500;
  color: #374151;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.form-actions {
  margin-top: 0.5rem;
}

/* Contact form validation states */
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(20%);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: min(520px, 92vw);
  padding: 2rem;
  animation: modalIn 0.25s ease;
}

.modal-body h3 {
  font-size: 1.6rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-body p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover { color: #111827; }

@keyframes modalIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  background: #111827;
  color: #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 1rem 1.25rem;
  display: none;
  gap: 1rem;
}

.cookie-banner.active { display: grid; }

@media (min-width: 720px) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; }
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-text a { color: #93c5fd; text-decoration: underline; }
.cookie-text a:hover { color: #bfdbfe; }

.cookie-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }

.btn-cookie {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #374151;
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
}

.btn-cookie:hover { background: #4b5563; }

.btn-cookie-primary { background: #2563eb; color: #fff; }
.btn-cookie-primary:hover { background: #1d4ed8; }

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

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

/* Make first footer section 50% wider on larger screens */
@media (min-width: 900px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #fbbf24;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fbbf24;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

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

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

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

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content,
  .technology-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }

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

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    background: none;
    color: black;
  }
}

/* Policy pages shared styles */
.policy-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-content h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
}

.policy-content h2 {
  font-size: 1.8rem;
  color: #2563eb;
  margin: 2rem 0 1rem;
}

.policy-content h3 {
  font-size: 1.3rem;
  color: #374151;
  margin: 1.5rem 0 0.5rem;
}

.policy-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #6b7280;
}

.policy-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.last-updated {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-style: italic;
  color: #6b7280;
}

/* Privacy page highlight */
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

/* Terms page highlights */
.important-notice {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.terms .highlight-box { /* optional: ensure same spacing if needed */ }

/* Shared: brand link in header without inline style */
.nav-logo a {
  text-decoration: none;
  color: inherit;
}
