/* ======= ROOT VARIABLES ======= */
:root {
  /* Primary color scheme */
  --primary-color: #3a7bd5;
  --primary-dark: #2c5aa0;
  --primary-light: #6fa1e9;
  
  /* Complementary color scheme */
  --complementary-color: #f5863a;
  --complementary-dark: #d66b1c;
  --complementary-light: #ffaa70;
  
  /* Neutral colors */
  --neutral-white: #ffffff;
  --neutral-off-white: #f8f9fa;
  --neutral-light: #e9ecef;
  --neutral-mid: #ced4da;
  --neutral-dark: #495057;
  --neutral-black: #212529;
  
  /* Shadows for neumorphism */
  --shadow-light: 6px 6px 12px rgba(0, 0, 0, 0.1);
  --shadow-dark: -6px -6px 12px rgba(255, 255, 255, 0.8);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-complementary: linear-gradient(135deg, var(--complementary-color) 0%, var(--complementary-light) 100%);
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4));
  
  /* Border radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======= GLOBAL STYLES ======= */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--neutral-dark);
  background-color: var(--neutral-white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  margin-bottom: 1rem;
}

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

.text-center .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ======= BUTTON STYLES ======= */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scale(0);
  transition: all var(--transition-fast);
  border-radius: 50%;
}

.btn:hover::before {
  transform: scale(2);
}

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

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

.btn-outline-light {
  color: var(--neutral-white);
  border-color: var(--neutral-white);
}

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

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

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

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

/* ======= HEADER STYLES ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-fast);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.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%);
}

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

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

/* ======= HERO SECTION ======= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--neutral-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;
  z-index: -2;
}

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

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

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======= ABOUT SECTION ======= */
.about {
  position: relative;
  overflow: hidden;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-slow);
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.progress {
  height: 8px;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

/* ======= PROJECTS SECTION ======= */
.projects {
  position: relative;
}

.project-card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

/* ======= CASE STUDIES SECTION ======= */
.case-studies {
  position: relative;
}

.case-study-image {
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

.case-study-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  margin: auto 1rem;
  opacity: 0.9;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-dark);
  opacity: 1;
}

/* ======= BEHIND SCENES SECTION ======= */
.behind-scenes {
  position: relative;
}

.behind-scenes-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.image-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  height: 200px;
  width: 100%;
}

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

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

/* ======= RESOURCES SECTION ======= */
.resources {
  position: relative;
}

.resource-card {
  height: 100%;
}

.resource-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.resource-card .card {
  transition: all var(--transition-fast);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  height: 100%;
}

.resource-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

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

/* ======= BLOG SECTION ======= */
.blog {
  position: relative;
}

.blog-card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--neutral-dark);
}

.blog-meta .date {
  color: var(--primary-color);
}

.blog-meta .category {
  position: relative;
  padding-left: 15px;
}

.blog-meta .category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--complementary-color);
  transform: translateY(-50%);
}

.blog-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: all var(--transition-fast);
}

.read-more::after {
  content: '→';
  opacity: 0;
  margin-left: -10px;
  transition: all var(--transition-fast);
}

.read-more:hover::after {
  opacity: 1;
  margin-left: 5px;
}

/* ======= MEDIA SECTION ======= */
.media {
  position: relative;
}

.media-item {
  margin-bottom: 1.5rem;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.media-text {
  color: white;
  font-weight: 500;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow);
}

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

.media-item:hover .media-text {
  transform: translateY(0);
  opacity: 1;
}

/* ======= CONTACT SECTION ======= */
.contact {
  position: relative;
}

.contact-info {
  background-color: var(--neutral-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.contact-info h3 {
  color: var(--primary-color);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  color: white;
}

.contact-map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.contact-form {
  background-color: var(--neutral-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.contact-form h3 {
  color: var(--primary-color);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-mid);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(58, 123, 213, 0.25);
}

/* ======= FOOTER STYLES ======= */
.footer {
  background-color: var(--neutral-dark);
  color: var(--neutral-light);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

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

.footer-description {
  opacity: 0.8;
}

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

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

.footer-links a {
  color: var(--neutral-light);
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all var(--transition-fast);
}

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

.footer-links a:hover::before {
  opacity: 1;
}

.social-links ul {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--neutral-light);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  color: white;
}

.footer-bottom {
  color: var(--neutral-mid);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary-light);
}

.footer-bottom a:hover {
  color: white;
}

/* ======= SUCCESS PAGE ======= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-off-white);
}

.success-card {
  max-width: 500px;
  width: 90%;
  padding: 3rem 2rem;
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

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

.success-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* ======= PRIVACY & TERMS PAGES ======= */
.content-page {
  padding-top: 100px;
}

.content-page .container {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.content-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.content-page h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

/* ======= ANIMATION STYLES ======= */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

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

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .case-study-image {
    height: 300px;
    margin-bottom: 1.5rem;
  }
  
  .contact-info, .contact-form {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .case-study-image {
    height: 250px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .image-container {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p.lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .image-container {
    height: 150px;
  }
}

/* Particle animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 4s infinite ease-in-out;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 5s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 25%;
  animation-duration: 7s;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 40%;
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.particle:nth-child(4) {
  top: 30%;
  left: 60%;
  animation-duration: 8s;
  animation-delay: 1.5s;
}

.particle:nth-child(5) {
  top: 70%;
  left: 80%;
  animation-duration: 5s;
  animation-delay: 0.2s;
}