/* ========================================
   Hi-Skill Institute - Main Stylesheet
   Modern Design System with Professional Colors
   ======================================== */

/* ========== ROOT VARIABLES & DESIGN SYSTEM ========== */
:root {
  /* Primary Colors */
  --primary: #1a3a52;           /* Deep Navy Blue */
  --secondary: #00d4ff;         /* Vibrant Teal */
  --accent: #ff6b35;            /* Warm Orange */
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-bg: #f8f9fb;
  --light-gray: #e8eef5;
  --medium-gray: #a0aec0;
  --dark-gray: #4a5568;
  --text-dark: #1a202c;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a3a52 0%, #00d4ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

h3 {
  font-size: 1.875rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav > a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
}

.main-nav > a:hover {
  color: var(--accent);
  background-color: rgba(255, 107, 53, 0.1);
}

/* ========== DROPDOWN MENU ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

.nav-dropdown > a:hover {
  color: var(--accent);
  background-color: rgba(255, 107, 53, 0.1);
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--accent);
  padding-left: 2rem;
}

.dropdown-menu li:first-child a {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-menu li:last-child a {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========== HEADER CTA BUTTONS ========== */
.header-cta {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--light-bg);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========== MOBILE MENU TOGGLE ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
  flex-shrink: 0;
}

/* ========== PAGE HERO SECTION ========== */
.page-hero {
  background: var(--gradient-primary);
  padding: 4rem var(--spacing-md);
  text-align: center;
  color: var(--white);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background-color: var(--light-bg);
  margin-top: 0;
  width: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========== SLIDER CONTROLS ========== */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.slider-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: var(--accent);
  color: var(--white);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.slider-dot.active {
  background-color: var(--accent);
  width: 30px;
  border-radius: 6px;
}

/* ========== SECTION STYLES ========== */
section {
  padding: 3rem var(--spacing-md);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--medium-gray);
}

/* ========== GRID LAYOUTS ========== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

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

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

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

/* ========== CARD STYLES ========== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border-left: 4px solid var(--accent);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.course-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.course-link:hover {
  gap: 1rem;
}

.testimonial-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--accent);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.stat-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: 4rem var(--spacing-md);
  border-radius: var(--radius-lg);
  margin: 3rem var(--spacing-md);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem var(--spacing-md) 1rem;
  margin-top: 4rem;
}

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

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--accent);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ========== FLOATING ACTION BUTTONS ========== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  background-color: var(--white);
  color: var(--text-dark);
}

.fab-call {
  background: linear-gradient(135deg, #00d4ff 0%, #1a3a52 100%);
  color: var(--white);
}

.fab-call:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.fab-whatsapp {
  background: #25d366;
  color: var(--white);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.fab-scroll-top {
  background: var(--accent);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.fab-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.fab-scroll-top:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 1rem;
  }

  .main-nav > a {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .nav-dropdown > a {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .header-cta {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem var(--spacing-md);
  }

  .logo img {
    height: 50px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > a {
    width: 100%;
    padding: 1rem var(--spacing-md);
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: none;
    background-color: var(--light-bg);
  }

  .nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .dropdown-menu li a {
    padding: 0.75rem var(--spacing-md) 0.75rem 2rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-cta {
    width: 100%;
    gap: 0.5rem;
  }

  .btn {
    flex: 1;
    padding: 0.75rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-slider {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-hero {
    padding: 3rem var(--spacing-md);
    min-height: 250px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

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

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem var(--spacing-sm);
  }

  .logo img {
    height: 40px;
  }

  .main-nav > a,
  .nav-dropdown > a {
    font-size: 0.9rem;
    padding: 0.75rem var(--spacing-md);
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .page-hero {
    padding: 2rem var(--spacing-sm);
    min-height: 200px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .floating-actions {
    bottom: 0.5rem;
    right: 0.5rem;
    gap: 0.5rem;
  }

  .fab {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== UTILITY CLASSES ========== */
.bg-light {
  background-color: var(--light-bg);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.highlight {
  color: var(--accent);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
