/* =================================================================
   LMS Marketing Website - Global Styles
   Design by: Shafaq (CEO & Designer)
   Development by: Faseeh (Developer & Marketing Manager)
================================================================= */

/* ============= CSS Variables ============= */
:root {
  --primary-red: #e63946;
  --primary-red-dark: #d62828;
  --primary-red-light: #f15a5a;
  --primary-gradient: linear-gradient(135deg,#6d28d9 0%,#e11d48 100%);
  --accent-blue: #4f46e5;
  --accent-cyan: #06b6d4;
  --glass-bg: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.12);
  
  --secondary-grey: #374151;
  --secondary-grey-light: #6b7280;
  --secondary-grey-lighter: #9ca3af;
  
  --accent-green: #25d366;
  --accent-green-dark: #1fb855;
  
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* ============= Global Reset ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* ============= Typography ============= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============= Container ============= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

/* ============= Navigation ============= */
.navbar {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(6, 7, 14, 0.06);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--secondary-grey);
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--accent-blue);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary-grey);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: linear-gradient(90deg,var(--accent-blue),var(--primary-red));
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s cubic-bezier(.2,.9,.2,1);
  border-radius: 8px;
}

.navbar-menu a:hover::before,
.navbar-menu a.active::before {
  opacity: 1;
  transform: translateY(0);
}

/* ============= Buttons ============= */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-transform: capitalize;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--bg-white);
  box-shadow: 0 8px 20px rgba(109,40,217,0.18);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 32px rgba(109,40,217,0.18);
}

.btn:active { transform: translateY(-1px) scale(.995); }

/* ripple */
.btn[data-ripple] { position: relative; overflow: hidden; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple 0.6s linear; background: rgba(255,255,255,0.35); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.btn-secondary {
  background: var(--secondary-grey);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background: var(--text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: var(--bg-white);
}

.btn-whatsapp {
  background: var(--accent-green);
  color: var(--bg-white);
}

.btn-whatsapp:hover {
  background: var(--accent-green-dark);
}

/* ============= Cards ============= */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(16,24,40,0.06);
  transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s cubic-bezier(.2,.9,.2,1);
  border: 1px solid rgba(16,24,40,0.03);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 50px rgba(16,24,40,0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
  color: var(--bg-white);
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============= Sections ============= */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary-red);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Hero styles */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.95) contrast(1.02) brightness(.68);
  transform: scale(1.05);
}
.hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(109,40,217,0.45), rgba(225,29,72,0.25));
  mix-blend-mode: multiply;
}
.hero .hero-content { position: relative; z-index: 2; }
.hero .subtle-shapes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.shape { position: absolute; border-radius: 50%; opacity: .18; filter: blur(30px); }
.shape.s1 { width:420px;height:420px; left:-10%; top:5%; background: #6d28d9; }
.shape.s2 { width:340px;height:340px; right:-6%; bottom:-6%; background: #e11d48; }

/* Floating labels (form) */
.form-field { position: relative; }
.form-field input, .form-field textarea { padding: 1.25rem .9rem .5rem .9rem; }
.form-field label {
  position: absolute; left: 14px; top: 14px; font-size: .95rem; color: var(--secondary-grey-light);
  pointer-events: none; transition: transform .22s ease, font-size .22s ease, color .22s ease;
}
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field.filled label { transform: translateY(-1.85rem) scale(.92); color: var(--accent-blue); font-size: .82rem; }

/* scroll reveal helpers */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s cubic-bezier(.2,.9,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* subtle section switch */
section { transition: opacity .45s ease, transform .45s ease; }

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ============= Footer ============= */
.footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--secondary-grey-lighter);
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-grey);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--secondary-grey-lighter);
}

.footer-credits {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-credits strong {
  color: var(--primary-red);
}

/* ============= Utility Classes ============= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding: 3rem 0; }
.py-10 { padding: 5rem 0; }

/* ============= Grid System ============= */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============= Responsive Design ============= */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============= Animations ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============= Loading States ============= */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
