/* Base Variables and Resets */
:root {
  /* Primary Colors */
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-light: #3a8eff;
  
  /* Secondary Colors */
  --secondary-color: #fd7e14;
  --secondary-dark: #e06c00;
  --secondary-light: #ff9843;
  
  /* Accent Colors */
  --accent-color: #6f42c1;
  --accent-dark: #5e35a1;
  --accent-light: #8458d4;
  
  /* Neutral Colors */
  --dark: #212529;
  --gray-dark: #343a40;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --light: #f8f9fa;
  --white: #ffffff;
  
  /* Additional Colors */
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  
  /* Typography */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* Spacing */
  --section-spacing: 6rem;
  --element-spacing: 2rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-2xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

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

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

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

section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Utilities */
.text-center {
  text-align: center;
}

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

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

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

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

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

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

.rounded {
  border-radius: var(--border-radius);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-transform: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: var(--white);
}

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

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Form Elements */
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

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

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid var(--gray);
  appearance: none;
  color-adjust: exact;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

header.scrolled {
  box-shadow: var(--shadow);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

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

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

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: var(--light);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-content {
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767.98px) {
  .hero-section {
    height: auto;
    padding: 6rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}

/* Process Section - Timeline */
.timeline-container {
  padding: 2rem 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

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

.timeline-item::after {
  content: '';
  clear: both;
  display: table;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
}

.timeline-dot {
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12.5px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  top: 2rem;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: auto;
  right: -12.5px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -12.5px;
  right: auto;
}

@media (max-width: 767.98px) {
  .timeline::after {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    padding-left: 80px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    float: right;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 18px;
    right: auto;
  }
}

/* Projects Slider */
.projects-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.custom-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-container {
  display: flex;
  transition: transform var(--transition-normal);
  min-height: 500px;
}

.slider-item {
  flex: 0 0 100%;
  padding: 0 1rem;
}

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

.slider-prev,
.slider-next {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

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

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.card-text {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  height: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portfolio-content {
  padding: 2rem;
  color: var(--white);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.portfolio-content p {
  color: #fff;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-wrapper {
  display: flex;
  transition: transform var(--transition-normal);
}

.testimonial-item {
  flex: 0 0 100%;
  padding: 0 1rem;
}

.testimonial-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  position: absolute;
  top: -1.5rem;
  left: 0;
  opacity: 0.3;
}

.testimonial-controls {
  margin-top: 2rem;
}

/* Innovation Cards */
.innovation-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.innovation-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.innovation-icon img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

/* Research Cards */
.research-card {
  height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.research-image {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.research-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* Contact Section */
.contact-info {
  height: 100%;
}

.contact-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.contact-map img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.contact-form {
  height: 100%;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 0 2rem;
}

footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

footer p,
footer li {
  color: rgba(255, 255, 255, 0.7);
}

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

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

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Animations */
.animated-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.animated-element.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: var(--white);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-content p {
  margin: 0;
  color: var(--white);
}

.cookie-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cookie-btn:hover {
  background-color: var(--primary-dark);
}

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

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

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

/* Privacy & Terms Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.page-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Media Queries */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-btn {
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .card-image img {
    height: 200px;
  }
  
  .portfolio-item img {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
  }
}