/* Root Variables */
:root {
  --primary-color: #2e3dff;
  --primary-dark: #1a28b8;
  --secondary-color: #ff3e6c;
  --secondary-dark: #d92554;
  --accent-color: #ffc107;
  --accent-dark: #e0a800;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #6366f1);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff8fa3);
  --gradient-accent: linear-gradient(135deg, var(--accent-color), #ffdd57);
  --glassmorphism-bg: rgba(255, 255, 255, 0.15);
  --glassmorphism-border: rgba(255, 255, 255, 0.2);
  --glassmorphism-shadow: rgba(31, 38, 135, 0.37);
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: #f0f2f5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Glassmorphism Styles */
.glassmorphism-card {
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glassmorphism-border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  overflow: hidden;
}

.glassmorphism-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
}

.glassmorphism-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

/* Button Styles */
.btn {
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(46, 61, 255, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(46, 61, 255, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gradient-secondary);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 62, 108, 0.3);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary-dark);
  box-shadow: 0 6px 20px rgba(255, 62, 108, 0.4);
  transform: translateY(-2px);
}

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

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

.hover-effect {
  transition: all 0.3s ease;
}

.hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.navbar {
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.nav-link {
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.timeline-container {
  position: relative;
  padding: 2rem;
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  height: 100%;
  width: 3px;
  background: var(--primary-color);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(46, 61, 255, 0.2);
  z-index: 1;
}

.timeline-content {
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.timeline-content p {
  color: var(--text-muted);
  margin: 0;
}

.image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.image-container img {
  transition: transform 0.6s ease;
  margin: 0 auto;
}

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

/* Team Section */
.team-section {
  padding: 80px 0;
}

.team-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card .card-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.team-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-card .card-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.team-card .card-subtitle {
  color: var(--text-muted);
  font-weight: 600;
}

.team-card .card-text {
  margin-top: 1rem;
  color: var(--text-dark);
  flex-grow: 1;
}

.social-links {
  margin-top: auto;
}

.social-link {
  color: var(--primary-color);
  margin: 0 0.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Portfolio Section */
.portfolio-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.custom-slider {
  position: relative;
  margin: 2rem 0;
}

.slider-container {
  overflow: hidden;
  padding: 1rem 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  flex: 0 0 100%;
  padding: 0 15px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .slider-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .slider-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.prev-btn, .next-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Resources Section */
.resources-section {
  padding: 80px 0;
}

.resource-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
}

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

.resource-card .card-text {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border: none;
}

.accordion-button {
  background-color: transparent;
  box-shadow: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--primary-color);
  padding: 1.5rem;
}

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

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

.accordion-button::after {
  background-size: 1.5rem;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
}

/* Media Section */
.media-section {
  padding: 80px 0;
}

.media-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-card .card-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  text-align: center;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.media-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.media-card p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Press Section */
.press-section {
  padding: 80px 0;
}

.list-group-item {
  border: none;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: rgba(46, 61, 255, 0.05);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.form-control {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 61, 255, 0.25);
  border-color: var(--primary-color);
}

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

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

/* Footer Section */
.footer-section {
  padding: 60px 0 30px;
  background-color: var(--dark-color);
}

.footer-section h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section p, .footer-section address {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Additional Page Styles */
.page-content {
  padding: 100px 0;
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--light-color);
}

.success-content {
  max-width: 600px;
  padding: 3rem;
}

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

.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Cookie Consent */
#cookieConsent {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 9999;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

#acceptCookies {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#acceptCookies:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .glassmorphism-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: auto;
    padding: 150px 0 80px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-dot {
    width: 20px;
    height: 20px;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
}