/* ===================================
   CODING BOOTCAMP FOR SENIORS - MAIN CSS
   Modern, Accessible, Bootstrap 5 Based
   =================================== */

:root {
  /* Primary Color Palette - High Contrast Pastels */
  --primary-blue: #3a6dcd;
  --primary-green: #8feb39;
  --primary-purple: #b129ff;
  --primary-orange: #fe5f3c;
  --primary-teal: #5cf0dc;
  
  /* Light & Dark Variations */
  --light-blue: #bedae7;
  --light-green: #eff2eb;
  --light-purple: #f3e9f3;
  --light-orange: #fbf6ed;
  --light-teal: #d9f8fa;
  
  --dark-blue: #1b6fba;
  --dark-green: #2b7533;
  --dark-purple: #57148e;
  --dark-orange: #e05a02;
  --dark-teal: #00815e;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6b7885;
  --dark-gray: #252a32;
  --black: #0f1213;
  
  /* Typography */
  --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family-primary);
  line-height: var(--line-height-base);
  color: var(--dark-gray);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-blue);
}

h1 { font-size: 2.60rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.89rem; }
h4 { font-size: 1.53rem; }
h5 { font-size: 1.35rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
}

.lead {
  font-size: 1.16rem;
  font-weight: 300;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.navbar {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  box-shadow: var(--shadow-md);
  padding: var(--spacing-sm) 0;
}

.navbar-brand {
  font-size: 1.64rem !important;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 var(--spacing-xs);
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--light-teal) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-green);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-teal) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: url('../BAL_images/hero-bg.webp') no-repeat center;
  background-size: cover;
  opacity: 0.1;
  transform: rotate(15deg);
}

.hero-content h1 {
  padding-top: 100px !important;
}

.hero-content {
  padding-top: 50px !important;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.64rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.57rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}

.hero-description {
  font-size: 1.24rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   SECTION STYLES
   =================================== */

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-size: 2.59rem;
  color: var(--dark-blue);
}

.section-subtitle {
  text-align: center;
  color: var(--primary-purple);
  font-size: 1.36rem;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.section-description {
  text-align: center;
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.19rem;
}

/* ===================================
   CARDS & ITEMS
   =================================== */

.custom-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.custom-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.custom-card .card-body {
  padding: var(--spacing-md);
}

.custom-card .card-title {
  font-size: 1.40rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-sm);
}

.custom-card .card-text {
  color: var(--medium-gray);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--light-blue) 100%);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.service-name {
  font-size: 1.61rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-sm);
}

.service-price {
  font-size: 1.83rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-md);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.service-features li {
  padding: var(--spacing-xs) 0;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--light-gray);
}

.service-features li:last-child {
  border-bottom: none;
}

/* ===================================
   TEAM SECTION
   =================================== */

.team-section {
  background: var(--light-green);
}

.team-member {
  text-align: center;
  padding: var(--spacing-md);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.team-member-name {
  font-size: 1.37rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-xs);
}

.team-member-role {
  color: var(--primary-purple);
  font-weight: 500;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.reviews-section {
  background: linear-gradient(135deg, var(--light-purple) 0%, var(--light-orange) 100%);
}

.review-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.review-text {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1rem;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
  background: var(--light-gray);
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  color: var(--white);
  padding: var(--spacing-md);
  margin: 0;
  font-size: 1.17rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.53rem;
}

.faq-question.active::after {
  content: '−';
}

.faq-answer {
  padding: var(--spacing-md);
  color: var(--dark-gray);
  line-height: 1.7;
  display: none;
}

.faq-answer.show {
  display: block;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-section {
  background: linear-gradient(135deg, var(--light-teal) 0%, var(--light-blue) 100%);
}

.contact-form {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-control {
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(77, 144, 225, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--dark-blue), var(--dark-teal));
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: linear-gradient(135deg, var(--dark-gray), var(--black));
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h5 {
  color: var(--primary-green);
  margin-bottom: var(--spacing-md);
}

.footer p, .footer small {
  color: var(--light-gray);
  line-height: 1.6;
}

.footer a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--light-teal);
}

/* ===================================
   GALLERY SECTION
   =================================== */

.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===================================
   PROCESS SECTION
   =================================== */

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.64rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   UTILITIES
   =================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.60rem;
  }
  
  .hero-subtitle {
    font-size: 1.32rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: var(--spacing-md);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.19rem;
  }
  
  .section-title {
    font-size: 1.78rem;
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
}



/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
