/* CSS Variables */
:root {
  /* Colors - Neutral Scheme */
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --secondary-color: #95a5a6;
  --secondary-dark: #7f8c8d;
  --secondary-light: #bdc3c7;
  --accent-color: #e67e22;
  --accent-dark: #d35400;
  --accent-light: #f39c12;
  --success-color: #27ae60;
  --warning-color: #f1c40f;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  
  /* Neutral Grays */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #000000;
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-muted: #95a5a6;
  --text-light: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  --bg-light: #ecf0f1;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-secondary: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
  --gradient-accent: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
  --gradient-overlay: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8));
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 20px;
  --card-padding: 30px;
  --element-spacing: 20px;
  
  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* 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);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
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: 1.5rem;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* Buttons - Global Styles */
.btn {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
  z-index: -1;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
}

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

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

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

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

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

button, input[type="submit"] {
  font-family: var(--font-secondary);
  font-weight: 500;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

/* Header */
.header-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

.navbar {
  padding: 15px 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

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

.navbar-nav .nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color);
  background-color: var(--gray-100);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 120px 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-light) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 2rem;
}

/* Section Base Styles */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styles */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: var(--card-padding);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h4,
.card-content h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Portfolio Section */
.portfolio-section {
  background: var(--bg-secondary);
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Methodology Section */
.methodology-step {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.methodology-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  color: var(--text-light);
  border-radius: 50%;
  line-height: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Process Section */
.process-section {
  background: var(--bg-secondary);
}

.process-list {
  margin-top: 2rem;
}

.process-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.process-item:last-child {
  border-bottom: none;
}

.process-item h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Resources Section */
.resource-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--card-padding);
  text-align: center;
  height: 100%;
  transition: var(--transition-normal);
}

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

.resource-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.resource-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--card-padding);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  color: var(--gray-200);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-text p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.testimonial-author strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Awards Section */
.award-item {
  padding: 2rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.award-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.award-icon {
  font-size: 3rem;
  display: block;
}

.award-item h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.award-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Events Calendar Section */
.event-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--card-padding);
  height: 100%;
  position: relative;
  transition: var(--transition-normal);
}

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

.event-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-accent);
  color: var(--text-light);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  min-width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-right: 80px;
}

.event-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.event-details {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* News Section */
.news-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.news-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.news-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* FAQ Section */
.accordion {
  --bs-accordion-border-color: var(--gray-300);
  --bs-accordion-border-radius: var(--border-radius-md);
}

.accordion-item {
  border: 1px solid var(--gray-300);
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 500;
  padding: 1.5rem;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--gray-100);
  color: var(--accent-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e67e22'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

/* Contact Section */
.contact-form-wrapper {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: var(--bg-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.contact-info {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.contact-info h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Footer */
.footer-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-subtitle {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--gray-400);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.footer-contact p {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--text-light);
}

.footer-divider {
  border-color: var(--gray-600);
  margin: 2rem 0 1rem;
}

.copyright {
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  border-bottom: none;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
  font-family: var(--font-primary);
  font-weight: 600;
}

.btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1rem 2rem 2rem;
}

/* Utility Classes */
.bg-light {
  background-color: var(--bg-light) !important;
}

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

.text-white {
  color: var(--text-light) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Page-specific Styles */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.success-content {
  text-align: center;
  padding: 3rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

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

.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 200px);
}

.page-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  section {
    padding: 60px 0;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .methodology-step {
    padding: 1.5rem 1rem;
  }
  
  .event-card h5 {
    padding-right: 70px;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .success-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .event-date {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .event-card h5 {
    padding-right: 0;
  }
}

/* Performance Optimizations */
.card,
.btn,
.form-control,
.accordion-item {
  will-change: transform;
}

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header-section,
  .footer-section,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 18pt;
  }
}