/* Dake's Coaching Institute - Custom CSS Theme (RESPONSIVE FIXED) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* === ROOT VARIABLES === */
:root {
  --primary-red: #C62026;
  --dark-gray: #1A1A1A;
  --light-gray: #666666;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.display-2 { font-weight: 900 !important; }
.display-3 { font-weight: 900 !important; }
.display-4 { font-weight: 900 !important; }
.display-5 { font-weight: 800 !important; }

.btn {
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

/* === NAVBAR === */
.navbar {
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--primary-red) !important;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

.navbar-brand svg {
  filter: drop-shadow(0 2px 4px rgba(198,32,38,0.3));
}

.nav-link {
  font-weight: 600 !important;
  color: var(--dark-gray) !important;
  margin: 0 8px;
  position: relative;
  padding: 8px 0 !important;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-red);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* === HERO SECTION === */
#home {
  background: linear-gradient(135deg, var(--primary-red) 0%, #a61920 50%, rgba(198,32,38,0.9) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: auto;
}

#home h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* === PERFECT RESPONSIVE IMAGES === */
.hero-img, .about-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  transition: var(--transition);
  object-fit: cover;
}

.hero-img:hover, .about-img:hover {
  transform: translateY(-8px) scale(1.02);
}

/* === SERVICES SECTION MODERN === */
#services {
  background: #f8fafc;
}

#services .card {
  border: none !important;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Gradient Glow Border */
#services .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #C62026, #ff6b6b);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Hover Effect */
#services .card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* Icon Box */
#services svg {
  filter: drop-shadow(0 10px 25px rgba(198,32,38,0.25));
  transition: 0.4s ease;
}

/* Icon hover animation */
#services .card:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* Heading */
#services h3 {
  letter-spacing: 0.5px;
}

/* Description */
#services p {
  font-size: 1.2rem;
  color: #555;
}



/* List Items */
#services .list-unstyled li {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 500;
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

/* Custom check icon */
#services .list-unstyled li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #C62026;
  font-weight: bold;
}

/* Button (optional add) */
.service-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C62026, #ff6b6b);
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.service-btn:hover {
  opacity: 0.85;
}



/* VIDEO SECTION  */

.video-section {
  padding: 80px 0;
  background: #0f172a;
  color: white;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
}

/* Slider */
.video-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;


    /* IMPORTANT FOR DESKTOP */
  cursor: grab;
  user-select: none;

}




/* Hide scrollbar */
.video-slider::-webkit-scrollbar {
  display: none;
}

/* Card */
.video-card {
  flex: 0 0 auto;
  min-width: 280px;
  height: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);

  scroll-snap-align: center;
  transition: 0.4s ease;
}

/* Hover effect */
.video-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Video */
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  bottom: 0;
  width: 100%;
  padding: 20px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);

}

/* Play button */
.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: white;
  margin-top: 10px;
  transition: 0.3s;
  pointer-events: auto;
  z-index: 10;
}

.play-btn:hover {
  background: #ff3b3b;
  transform: scale(1.1);
}



/* === ABOUT SECTION (PERFECT RESPONSIVE) === */
#about {
  background: linear-gradient(135deg, var(--off-white) 0%, #f1f3f4 100%);
  padding: 80px 0;
}

#about h2 {
  background: linear-gradient(135deg, var(--primary-red), #a61920);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

#about h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.stats-grid {
  padding: 40px 0;
}

.stats-grid .h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}

/* premium counter  */

.counter {
  transition: all 0.3s ease;
}

/* Glow + bounce when finished */
.counter.counter-done {
  animation: pop 0.6s ease;
  text-shadow: 0 0 15px rgba(198,32,38,0.4);
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* RESPONSIVE PERFECTION */
@media (max-width: 991px) {
  #about {
    padding: 60px 0;
  }
  
  .stats-grid {
    padding: 30px 0;
    order: 2; /* Stats below image on tablet */
  }
  
  .about-image-wrapper {
    order: 1;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  #about {
    padding: 50px 0;
  }
  
  .about-img {
    max-width: 320px !important;
    width: 90vw !important;
    margin: 0 auto;
  }
  
  .stats-grid {
    padding: 20px 0;
  }
  
  .stats-grid .col-md-4 {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .about-img {
    max-width: 280px !important;
    width: 85vw !important;
  }
}

/* === CONTACT FORM === */
#contact {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #1f1f1f 100%);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,32,38,0.3), transparent);
}

#inquiryForm {
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

#inquiryForm .form-label {
  font-weight: 600;
  letter-spacing: 0.5px;
}

#inquiryForm .form-control,
#inquiryForm .form-select {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(198,32,38,0.1) !important;
  padding: 16px 20px;
  font-weight: 500;
  transition: var(--transition);
}

#inquiryForm .form-control:focus,
#inquiryForm .form-select:focus {
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 0.25rem rgba(198,32,38,0.15) !important;
  background: var(--white) !important;
  transform: translateY(-1px);
}


.bg-dark{
  padding-top: 20px ;
}

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #0f0f0f 100%);
}

footer .navbar-brand {
  font-size: 1.5rem !important;
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-red) !important;
  transform: translateX(4px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 1;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.8s ease-out;
}

[data-animate] {
    opacity: 0;
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* === UTILITIES === */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-red), #a61920);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a61920;
}

/* ============================================ */
/* === PERFECT RESPONSIVE BREAKPOINTS === */
/* ============================================ */

/* Large Desktop */
@media (min-width: 1200px) {
  .hero-img, .about-img {
    max-width: 500px;
  }
}

/* Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
  .hero-img, .about-img {
    max-width: 450px;
  }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-img, .about-img {
    max-width: 400px;
  }
  
  #home {
    min-height: 90vh;
    padding: 80px 0;
  }
}

/* ============================================ */
/* === MOBILE RESPONSIVE (PERFECT) === */
/* ============================================ */

@media (max-width: 767px) {
  /* Hero Section - Stack vertically, image on top */
  #home {
    text-align: center;
    padding: 60px 20px;
    min-height: 90vh;
  }

  #home .row {
    flex-direction: column-reverse;
  }

  #home .col-lg-6 {
    width: 100%;
    padding: 0 15px;
  }

  .hero-img {
    max-width: 320px;
    margin: 0 auto 30px auto;
    width: 90vw;
  }

  /* About Section */
  #about .row {
    flex-direction: column;
    text-align: center;
  }

  .about-image-wrapper {
    margin-bottom: 30px;
  }

  .about-img {
    max-width: 320px;
    margin: 0 auto;
    width: 90vw;
  }

  /* Typography adjustments */
  .display-3 {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }

  #home .lead {
    font-size: 1.1rem;
  }

  /* Buttons */
  .btn-lg {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.5rem !important;
  }

  /* Services */
  #services .card {
    margin-bottom: 2rem;
  }



  /* Form */
  #inquiryForm {
    padding: 2rem 1.5rem !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-img, .about-img {
    max-width: 280px;
    width: 85vw;
  }

  .display-3 {
    font-size: 2.2rem !important;
  }

  #home {
    padding: 50px 15px;
  }

  #home h1 br {
    display: none;
  }

#services .list-unstyled li {
  font-size: 1.3rem;

}

}




/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero-img, .about-img {
    max-width: 260px;
    width: 80vw;
  }

  .display-3 {
    font-size: 2rem !important;
  }
}