/* ===== VARIABLES ===== */
:root {
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Colors - Neutral with retro touch */
  --color-primary: #6c757d;
  --color-primary-dark: #495057;
  --color-primary-light: #adb5bd;
  --color-secondary: #5a6268;
  --color-secondary-dark: #343a40;
  --color-secondary-light: #ced4da;
  --color-accent: #e9ecef;
  --color-accent-dark: #dee2e6;
  --color-accent-light: #f8f9fa;
  
  /* Utility colors */
  --color-text: #212529;
  --color-text-light: #6c757d;
  --color-text-inverse: #fff;
  --color-bg-light: #f8f9fa;
  --color-bg-dark: #343a40;
  --color-bg-accent: #e9ecef;
  --color-border: #dee2e6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
html, body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

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

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: width var(--transition-medium);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.btn-outline-light {
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Cards */
.card {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 250px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-body {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.card-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

/* Stat Widget */
.stats-widget {
  margin-top: auto;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== HEADER ===== */
header {
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  transition: all var(--transition-medium);
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-medium), left var(--transition-medium);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  z-index: -2;
}

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

.hero-section h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Parallax effect */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: var(--spacing-xl) 0;
}

.feature-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  padding: var(--spacing-xl) 0;
}

.portfolio-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.course-info {
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
  padding: var(--spacing-xl) 0;
}

.case-study-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.case-study-card .card-image {
  height: 100%;
}

.case-study-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  padding: var(--spacing-xl) 0;
}

.resource-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
}

/* ===== TEAM SECTION ===== */
.team-section {
  padding: var(--spacing-xl) 0;
}

.team-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  text-align: center;
}

.team-card .card-image {
  height: 300px;
  overflow: hidden;
}

.team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .card-image img {
  transform: scale(1.05);
}

.social-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-right: 1rem;
  transition: color var(--transition-fast);
}

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

/* ===== ACCOLADES SECTION ===== */
.accolades-section {
  padding: var(--spacing-xl) 0;
}

.accolade-card {
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: transform var(--transition-medium);
}

.accolade-card:hover {
  transform: translateY(-10px);
}

.accolade-card .card-image {
  margin-bottom: var(--spacing-sm);
  height: 120px;
}

.accolade-card .card-image img {
  max-height: 100%;
  object-fit: contain;
}

.accolade-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ===== SUSTAINABILITY SECTION ===== */
.sustainability-section {
  padding: var(--spacing-xl) 0;
}

.sustainability-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sustainability-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.sustainability-content {
  padding: var(--spacing-md);
}

.sustainability-content h3 {
  margin-bottom: var(--spacing-sm);
}

/* ===== CLIENTELE SECTION ===== */
.clientele-section {
  padding: var(--spacing-xl) 0;
}

.client-logo {
  padding: var(--spacing-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  filter: grayscale(100%);
  transition: filter var(--transition-medium), transform var(--transition-medium);
}

.client-logo:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}

.client-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding: 0 var(--spacing-md);
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 4rem;
  color: var(--color-primary-light);
  opacity: 0.3;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-light);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--spacing-xl) 0;
}

.accordion-item {
  border: 1px solid var(--color-border);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1.25rem var(--spacing-md);
  background-color: #fff;
  color: var(--color-text);
}

.accordion-button:not(.collapsed) {
  background-color: #fff;
  color: var(--color-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--color-primary-light);
}

.accordion-button::after {
  transition: transform var(--transition-medium);
}

.accordion-body {
  padding: var(--spacing-md);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-info {
  padding: var(--spacing-md);
}

.contact-info ul li {
  margin-bottom: var(--spacing-sm);
}

.contact-form {
  padding: var(--spacing-md);
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  padding: 0.75rem var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.footer h3, .footer h5 {
  margin-bottom: var(--spacing-md);
  color: #fff;
}

.footer p {
  color: var(--color-accent);
}

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

.newsletter-form .input-group {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem var(--spacing-sm);
}

.newsletter-form .btn {
  padding: 0.75rem var(--spacing-sm);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-md);
}

.success-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.page-content h1 {
  margin-bottom: var(--spacing-md);
}

.page-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .feature-card, .portfolio-card, .case-study-card, .team-card {
    margin-bottom: var(--spacing-md);
  }
  
  .testimonial-quote {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
}

/* Apply retro and curved grid styles */
.retro-curved-grid {
  position: relative;
  overflow: hidden;
}

.retro-curved-grid::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  transform: scaleX(1.5);
}

.retro-curved-grid::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: inherit;
  border-radius: 50%;
  transform: scaleX(1.5);
}

/* Apply curved section dividers */
.features-section, .portfolio-section, .case-studies-section, 
.resources-section, .team-section, .accolades-section, 
.sustainability-section, .clientele-section, .faq-section, 
.contact-section {
  position: relative;
}

.bg-light {
  background-color: var(--color-bg-light) !important;
}

/* Apply enhanced animations for interactive elements */
.card, .btn, .team-card, .accolade-card, .client-logo {
  will-change: transform;
}

/* Cookie consent styling */
#cookieConsent {
  border-top: 3px solid var(--color-primary);
}

#cookieConsent p {
  margin-bottom: 0;
}

/* ===== PARALLAX SCROLLING ===== */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Additional curved effects */
.curved-top {
  position: relative;
  margin-top: -50px;
  padding-top: 100px;
}

.curved-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: inherit;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

.curved-bottom {
  position: relative;
  margin-bottom: -50px;
  padding-bottom: 100px;
}

.curved-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: inherit;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

@media (max-width:450px){
    .footer .text-md-end {
      display: flex;
      flex-direction: column;
      margin-top: 16px;
      gap: 10px;
    }
}

[id] {
  scroll-margin-top: 60px;
}