/* =========================================
   GLOBAL VARIABLES
========================================= */
:root {
  --primary: #013c74;
  --accent: #ffd700;
  --bg-light: #f5f7fb;
  --text-dark: #333;
  --text-light: #f2f6fa;
  --shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   GLOBAL SETTINGS
========================================= */
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =========================================
   HERO SECTION (FIXED + BALANCED)
========================================= */
.hero {
  position: relative;
  background: linear-gradient(rgba(46, 91, 136, 0.75), rgba(11, 66, 121, 0.75)),
    url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px; /* reduced from 100px for better balance */
  border-radius: 0;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(229, 233, 236, 0.3);
  z-index: 0;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 25px;
  color: var(--text-light);
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero button {
  background: var(--accent);
  color: var(--primary);
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 8px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.hero button:hover {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  transform: translateY(-2px);
}

/* Ensure smooth transition into main layout */
.hero + .main-container {
  margin-top: 0;
  padding-top: 0;
}

/* =========================================
   FLEX MAIN CONTAINER
========================================= */
.main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 92%;
  margin: 0 auto 60px;
  gap: 25px;
}

/* =========================================
   SIDEBARS (STICKY + MATCHED HEIGHT)
========================================= */
.left-sidebar,
.right-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.left-sidebar {
  height: fit-content;
}
.right-sidebar {
  height: fit-content;
}

/* =========================================
   LEFT SIDEBAR CONTENT — CENTER FIX
========================================= */
.left-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ centers image + text horizontally */
  justify-content: flex-start;
  text-align: center;
}

.left-sidebar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 12px;
  object-fit: cover;
  display: block;
}

/* Name */
.left-sidebar h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Designation or description */
.left-sidebar p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.5;
  max-width: 220px; /* ✅ keeps text aligned under image */
}

/* Social links */
.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  margin: 0 6px;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
}

/* =========================================
   STATS BOX (LEFT SIDEBAR)
========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  background: #f7faff;
  border: 1px solid #d8e3f1;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.stats div {
  text-align: center;
}

.stats i {
  color: var(--primary);
  font-size: 1.6rem;
}

.stats h3 {
  color: var(--primary);
  margin: 5px 0;
  font-size: 1.2rem;
}

.stats p {
  color: #555;
  font-size: 0.85rem;
}

/* =========================================
   RIGHT SIDEBAR CONTENT
========================================= */
.right-sidebar img {
  width: 80%;
  margin: 12px auto;
  border-radius: 5px;
  display: block;
}

.partners {
  background: #ffffff;
  border: 1px solid #d0e3f5;
  border-radius: 10px;
  padding: 15px;
  margin-top: 25px;
  text-align: center;
}

.partners h3 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.partner-logos img {
  width: 90%;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* =========================================
   MAIN CONTENT
========================================= */
.home-main {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.home-main h2 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.home-main p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.about img {
  flex: 1;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-text {
  flex: 2;
}

.about-text h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* =========================================
   SERVICES SECTION — WITH BACKGROUND IMAGES
========================================= */
.services {
  margin-top: 50px;
  text-align: center;
  width: 100%;
}

.services h2 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 1.9rem;
  font-weight: 700;
}

/* Grid Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Base Card Styling */
.card {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.card:hover::before {
  background: rgba(0, 0, 0, 0.65);
}

/* Card Content */
.card h3,
.card p,
.card button {
  position: relative;
  z-index: 2;
  margin: 0;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  max-width: 85%;
  margin: 0 auto 15px;
  line-height: 1.5;
}

/* Button */
.card button {
  background: var(--accent);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.card button:hover {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  transform: translateY(-2px);
}

/* Hover Lift Effect */
.card:hover {
  transform: translateY(-5px);
}

/* =========================================
   CARD BACKGROUND IMAGES
========================================= */

/* You can rename these class names based on your HTML structure */
.card.web-design {
  background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80");
}

.card.marketing {
  background-image: url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1200&q=80");
}

.card.consulting {
  background-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80");
}

.card.training {
  background-image: url("https://images.unsplash.com/photo-1522204501921-26b60f3f4a86?auto=format&fit=crop&w=1200&q=80");
}

.card.research {
  background-image: url("https://images.unsplash.com/photo-1573496529574-be85d6a60704?auto=format&fit=crop&w=1200&q=80");
}

.card.partnership {
  background-image: url("https://images.unsplash.com/photo-1600880292089-90a7e086ee0c?auto=format&fit=crop&w=1200&q=80");
}

/* =========================================
   RESPONSIVE FIXES
========================================= */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .card {
    height: 200px;
  }
}


/* =========================================
   WHY CHOOSE US SECTION — FIXED COLORS + CONTRAST
========================================= */
.why-choose {
  margin-top: 50px;
  background: linear-gradient(90deg, #013c74, #325d8c); /* ✅ Deep rich blue tone for better text contrast */
  color: #f9fbff; /* ✅ Light text on dark bg */
  border-radius: 12px;
  padding: 50px 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.why-choose h2 {
  text-align: center;
  color: var(--accent); /* ✅ Gold accent for heading */
  margin-bottom: 35px;
  font-size: 1.9rem;
  font-weight: 700;
}

/* Grid layout for items */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ✅ Balanced width */
  gap: 25px;
  justify-items: center;
}

/* Card style inside “Why Choose Us” */
.why-card {
  background: rgba(255, 255, 255, 0.08); /* ✅ Subtle glass-like transparency */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  color: #fdfdfd; /* ✅ Brighter text inside */
  transition: all 0.35s ease;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Card text styles */
.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--accent);
}

.why-card p {
  font-size: 0.95rem;
  color: #e8edf3;
  line-height: 1.5;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
  .why-choose {
    padding: 35px 20px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    max-width: 100%;
  }
}

