/* =========================================
   Base & Reset
========================================= */
:root {
  --primary-color: #5A36CA; /* Vibrant Indigo/Violet */
  --accent-color: #F25222; /* Bright Orange-Red */
  --light-bg: #E1D1C1; /* Muted Beige / Sand */
  --dark-text: #111D33; /* Deep Navy Blue */
  --gray-text: #6c757d;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.text-center {
  text-align: center;
}
.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* =========================================
   Buttons
========================================= */
.btn-primary,
.btn-hero {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-hero:hover {
  background-color: #D94518;
  transform: translateY(-2px);
}

/* =========================================
   Header & Hero (Video Background)
========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; /* Can be blended/animated later if needed */
  transition: opacity 2s ease-in-out;
}

/* Grey overlay requested by client */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 29, 51, 0.75); /* Deep Navy Blue overlay */
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.nav-logo {
  max-width: 210px;
  height: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Language Selector Styles */
.lang-selector {
  position: relative;
  cursor: pointer;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.current-lang:hover {
  color: var(--accent-color);
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  list-style: none;
  border-radius: 4px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 20;
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  color: var(--dark-text);
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.lang-dropdown li:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Services / GIC Method
========================================= */
.services-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents cutting the spheres */
  background-color: white; /* Maintains card consistency */
  padding: 1rem; /* Adds a bit of breathing room around the sphere */
  transition: transform 0.5s ease;
}

.service-card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-content .subtitle {
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content ul {
  margin-top: 1.5rem;
  list-style-position: inside;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.card-content ul li {
  margin-bottom: 0.5rem;
}

/* =========================================
   About Section
========================================= */
.about-section {
  padding: 6rem 0;
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text > p {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 3rem;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.pillar {
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.pillar h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* =========================================
   Team Section
========================================= */
.team-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-image-wrapper {
  height: 450px; /* increased from 350px so the cards are taller */
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* keeps faces/heads in view */
  transition: transform 0.5s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-content {
  padding: 2rem;
}

.team-name {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-role {
  color: var(--accent-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background-color: #0077b5;
  color: white;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.15);
}

.linkedin-btn:hover {
  background-color: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 119, 181, 0.25);
  color: white;
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  fill: currentColor;
  display: block;
}

/* =========================================
   Testimonials
========================================= */
.testimonials-section {
  padding: 6rem 0;
  background-color: #0047A5; /* Deep blue from the 'C' sphere */
  color: white;
}

.testimonials-section .section-title {
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial .author {
  color: var(--accent-color);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* =========================================
   Contact
========================================= */
.contact-section {
  padding: 8rem 0;
  background: linear-gradient(rgba(17, 29, 51, 0.85), rgba(17, 29, 51, 0.85)), url('media/contact-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.contact-section .section-title {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-desc {
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  font-size: 1.1rem;
}

.info-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.info-item a:hover {
  color: white;
}

.contact-btn-large {
  font-size: 1.1rem;
  padding: 1rem 3rem;
  display: inline-block;
}

/* =========================================
   Footer
========================================= */
footer {
  background-color: #F5D1AD;
  color: var(--dark-text);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  opacity: 1; /* removed 0.8 opacity to make it more visible */
}

.footer-logo {
  max-width: 180px;
  margin: 0 auto 1rem auto;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile in this basic setup */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 3rem auto 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}
