/* ----------------------------------------------------
   HIIL SHACAB - MODERN CSS DESIGN SYSTEM
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Light Mode */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #6366f1;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.3);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
  --warning: #f59e0b;

  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-alt: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: rgba(203, 213, 225, 0.8);
  --border-focus: #0284c7;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --gradient-hero: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #6366f1 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.7) 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1240px;
  --header-height: 80px;
}

/* Dark Mode Theme Tokens */
[data-theme="dark"] {
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: rgba(56, 189, 248, 0.15);
  --secondary: #818cf8;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.3);

  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-solid: #131b2e;
  --bg-nav: rgba(11, 15, 25, 0.9);
  --bg-alt: #131a2b;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: rgba(255, 255, 255, 0.15);
  --border-focus: #38bdf8;

  --success-bg: rgba(16, 185, 129, 0.18);
  --error-bg: rgba(239, 68, 68, 0.18);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 10px 30px -5px rgba(56, 189, 248, 0.3);

  --gradient-card: linear-gradient(135deg, rgba(20, 29, 47, 0.9) 0%, rgba(13, 19, 33, 0.8) 100%);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------------
   NAVIGATION BAR
   ---------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  height: 72px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-hero);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
  transform: rotate(-4deg);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.05);
}

.logo-text span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher Button */
.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -5px rgba(2, 132, 199, 0.4);
  opacity: 0.96;
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.18;
}

.hero-title .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card-solid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-card img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

/* ----------------------------------------------------
   SECTION STYLES & HEADINGS
   ---------------------------------------------------- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ----------------------------------------------------
   HIGH CONTRAST & PROPER INPUT STYLING
   ---------------------------------------------------- */
.registration-section {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.06) 0%, transparent 70%);
}

.registration-container {
  max-width: 860px;
  margin: 0 auto;
}

.registration-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.2px;
}

.form-label .required-star {
  color: var(--error);
  margin-left: 4px;
}

/* Elevated Input Wrapper with Icon Badge */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.8rem;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.15);
  z-index: 5;
}

.form-input, .form-select {
  width: 100%;
  padding: 1.05rem 1.4rem 1.05rem 3.8rem;
  background: var(--bg-card-solid) !important;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main) !important;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400;
  opacity: 0.8;
}

.form-input:hover {
  border-color: rgba(2, 132, 199, 0.5);
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25) !important;
  color: var(--text-main) !important;
}

.form-input:focus ~ .input-icon,
.form-select:focus ~ .input-icon {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Validation Feedback States - High Contrast & High Visibility */
.form-group.has-error .form-input {
  border-color: var(--error) !important;
  background-color: var(--error-bg) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
}

.form-group.has-error .input-icon {
  background: var(--error) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

.form-group.has-success .form-input {
  border-color: var(--success) !important;
  background-color: var(--success-bg) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

.form-group.has-success .input-icon {
  background: var(--success) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

.error-message {
  font-size: 0.88rem;
  color: #f87171;
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-weight: 700;
  animation: fadeIn 0.2s ease-in-out;
}

.form-group.has-error .error-message {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-submit-btn {
  width: 100%;
  padding: 1.15rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  letter-spacing: 0.3px;
}

/* ----------------------------------------------------
   CONTACT SECTION (FULL SCREEN FIT)
   ---------------------------------------------------- */
.contact-container-single {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.quick-contact-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ----------------------------------------------------
   SUCCESS MODAL & TOAST
   ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.modal-message {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ----------------------------------------------------
   FOOTER (2 COLUMNS SCREEN FIT LAYOUT)
   ---------------------------------------------------- */
.footer {
  background: var(--bg-card-solid);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
  width: 100%;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 1rem;
  max-width: 550px;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN & BREAKPOINTS
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .quick-contact-box {
    padding: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-links.open {
    clip-path: circle(140% at 100% 0%);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .registration-card {
    padding: 2rem 1.5rem;
  }
  .form-input, .form-select {
    padding-left: 3.5rem;
  }
  .quick-contact-box {
    padding: 1.8rem 1.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
