/* ====== GLOBAL STYLES ====== */
:root {
  --primary-color: #1e3a8a;       /* Strong royal blue */
  --secondary-color: #1f2737;     /* Deep neutral slate (good for backgrounds) */
  --accent-color: #609ffd;        /* Light vibrant blue for highlights */
  --text-light: #ffffff;          /* For light text on dark backgrounds */
  --text-dark: #111827;           /* Dark slate for body text on light backgrounds */
  --shadow: rgba(7, 4, 4, 0.08);  /* Softer shadow for a cleaner UI */
  --radius: 12px;
  --transition: 0.3s ease;
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: #f9f9f9;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3, h4 {
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--accent-color);
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-align: center;
}

.section-description {
  color: var(--secondary-color);
  max-width: 600px;
  margin-bottom: 2rem;
}

.title-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.view-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-more:hover {
  color: var(--accent-color);
}

/* ====== BUTTONS ====== */
.cta-button {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--primary {
  background-color: var(--primary-color);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-light);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  padding: 30px;
  background: rgba(203, 234, 213, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  color: var(--text-light);
  padding: 0 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== CLIENTS SECTION ====== */
.section--clients {
  background-color: #fff;
  padding: 60px 0;
}

.clients-slider {
  padding: 20px 0;
}

.clients-slider .glide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  padding: 0 30px;
}

.clients-slider img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  filter: grayscale(100%) contrast(0.5);
  opacity: 0.7;
  transition: var(--transition);
}

.clients-slider img:hover {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}

/* ====== SERVICES SECTION ====== */
.section--services {
  background-color: #f5f7fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-link {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* ====== VIDEO SECTION ====== */
.section--video {
  background-color: #fff;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

.video-content {
  flex: 1;
  min-width: 300px;
}

.video-content p {
  margin-bottom: 30px;
  max-width: 500px;
}

.video-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(28, 39, 47, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: var(--transition);
  z-index: 2;
}

.play-button:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
  margin-left: 5px;
}

.video-iframe {
  width: 100%;
  height: 360px;
  display: none;
  border: none;
}

/* ====== PORTFOLIO SECTION ====== */
.section--portfolio {
  background-color: #f5f7fa;
}

.section-header {
  margin-bottom: 40px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--secondary-color);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 39, 47, 0.8);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-buttons {
  display: flex;
  gap: 15px;
}

.portfolio-btn {
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.portfolio-btn:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: scale(1.1);
}

.portfolio-content {
  padding: 25px;
}

.portfolio-content h3 {
  margin-bottom: 10px;
}

.portfolio-content p {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.tech-stack {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-style: italic;
}

/* ====== TESTIMONIALS SECTION ====== */
.section--testimonials {
  background-color: #fff;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 0 20px;
}

.testimonial-content {
  margin-bottom: 30px;
}

.rating {
  color: #ffc107;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--secondary-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author span {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.glide__arrows {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.glide__arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.glide__arrow:hover {
  background: var(--accent-color);
  color: var(--text-dark);
}

/* ====== CTA SECTION ====== */
.section--cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ====== BLOG SECTION ====== */
.section--blog {
  background-color: #f5f7fa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  line-height: 1;
}

.blog-date .day {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.blog-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.blog-content {
  padding: 25px;
}

.blog-category {
  display: inline-block;
  padding: 5px 10px;
  background: var(--accent-color);
  color: var(--text-dark);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.blog-content h3 {
  margin-bottom: 15px;
}

.blog-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--accent-color);
}

.blog-content p {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 30px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }
  
  .title-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .video-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .video-wrapper {
    order: -1;
  }
  
  .testimonial-card {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .portfolio-filters {
    justify-content: center;
  }
  
  .glide__arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}