/* =====================================================
   9UNIVERSE INFRACON — ABOUT US PAGE STYLES (MODIFIED)
   Vibrant Modern Theme (Red + Blue) - UPDATED 2025
===================================================== */

/* ========= BASE VARIABLES (Synchronized) ========= */
:root {
  /* Theme Color Ratio: 60% Primary (Blue), 30% Secondary (Soft/White), 10% Accent (Red) */
  --brand-red: #e63946;    /* ACCENT (10%) */
  --brand-blue: #142854;   /* PRIMARY DARK (60%) */
  --brand-blue-2: #0f2a57; /* Added for consistency with index.css */
  --accent-grad: linear-gradient(135deg, var(--brand-blue), #1e3a8a 45%, var(--brand-red));
  --white: #ffffff;
  --bg-soft: #fbfcff;      /* Synchronized light background */
  --panel-grad: linear-gradient(180deg, rgba(20, 40, 84, .03), rgba(230, 57, 70, .02));
  --glass: rgba(255, 255, 255, .96); 
  --glass-2: rgba(255, 255, 255, .9);
  --muted: #6b7280;        /* Consistent text color */
  --text-dark: #0f172a;    /* Consistent dark text color */
  --card-bg: rgba(255, 255, 255, .98);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 8px 28px rgba(20, 40, 84, .08); 
  --shadow-2: 0 14px 40px rgba(20, 40, 84, .12); 
  --transition: 0.35s ease;
  --font-main: 'Poppins', sans-serif;
  --max-width: 1400px;
}

/* =======================================
   DARK THEME VARIABLES AND STYLES (UNIVERSALIZED)
   ======================================= */
body.dark-theme {
  --bg-soft: #1c1c1c; 
  --panel-grad: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  --glass: rgba(28, 28, 28, .96);
  --glass-2: rgba(28, 28, 28, .9);
  --white: #fff;
  --muted: #a0a0a0;
  --text-dark: #f0f0f0; 
  --card-bg: #2d2d2d; 
  --shadow-1: 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .6);
  background: #121212; 
  transition: background-color 0.5s ease;
  color: var(--text-dark);
}

body.dark-theme img {
    filter: contrast(1.1);
}

body.dark-theme header {
  background: var(--card-bg);
  box-shadow: var(--shadow-2);
}

body.dark-theme nav ul li a {
  color: var(--text-dark);
}

body.dark-theme .header-actions button {
    color: var(--text-dark) !important; 
}

body.dark-theme nav ul.show {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}

body.dark-theme .hamburger span {
  background: var(--text-dark); 
}

/* --- FIX: Ensure dark elements are visible (by turning them light) --- */

/* Apply dark theme variables to general sections (using background-color variables) */
body.dark-theme .about-overview,
body.dark-theme .csr,
body.dark-theme .vision-mission,
body.dark-theme .why-choose-us,
body.dark-theme .milestones-section { 
  background: var(--bg-soft) !important;
}

body.dark-theme .core-values {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(28, 28, 28, 0.05)) !important;
}

/* Card and component backgrounds */
body.dark-theme .stat,
body.dark-theme .vm-card,
body.dark-theme .value-card,
body.dark-theme .team-card,
body.dark-theme .timeline-content,
body.dark-theme .choose-item {
  background: var(--card-bg) !important;
  box-shadow: var(--shadow-1) !important;
}

/* Text and icons that were originally dark/blue */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme p,
body.dark-theme a,
body.dark-theme li,
body.dark-theme .faq-q,
body.dark-theme h2,
body.dark-theme .about-overview h2,
body.dark-theme .stat span,
body.dark-theme .vm-card i,
body.dark-theme .vm-card h3,
body.dark-theme .value-card i,
body.dark-theme .team-card h4,
body.dark-theme .team-card blockquote,
body.dark-theme .choose-item i,
body.dark-theme .choose-item h4 {
    color: var(--text-dark) !important; 
}

/* Milestones Timeline Fixes for Dark Theme (using variables) */
body.dark-theme .milestones-timeline::after {
    background-color: var(--muted); 
}
body.dark-theme .timeline-content {
    border-left-color: var(--brand-red) !important;
}

/* Timeline Arrow Fixes */
body.dark-theme .timeline-item:nth-child(odd) .timeline-content::after {
    border-color: transparent transparent transparent var(--card-bg) !important;
}
body.dark-theme .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--card-bg) transparent transparent !important;
}
@media screen and (max-width: 768px) {
    body.dark-theme .timeline-item:nth-child(odd) .timeline-content,
    body.dark-theme .timeline-item:nth-child(even) .timeline-content {
        border-top-color: var(--brand-red) !important;
    }
}


/* Ensure gradient title is visible */
body.dark-theme .section-title h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* Footer Dark Theme Styling (Using index.css style) */
body.dark-theme .footer {
  background: linear-gradient(135deg, #0e1e3b, var(--brand-blue)) !important; 
  color: var(--white);
}

body.dark-theme .footer-section h3 {
    color: var(--white) !important; 
}

body.dark-theme .leadership::before {
    background: linear-gradient(90deg, var(--brand-red), var(--muted)); 
}

body.dark-theme .logo-track img {
    filter: grayscale(0.6) brightness(0.9) contrast(1.1); /* Darken client logos */
}


/* =======================================
   END DARK THEME STYLES
   ======================================= */


/* ========= GLOBAL STYLES ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--white); 
  color: var(--text-dark); 
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTION TITLE — SOLID COLOR */
.section-title {
  text-align: center;
  padding: 1.25rem 0 .35rem
}

.section-title h2 {
  display: inline-block;
  background: none !important;
  -webkit-background-clip: unset !important;
  color: var(--brand-blue) !important;
  font-size: var(--h2);
  font-weight: 800;
  margin: 0;
  padding: 0 .25rem;
  letter-spacing: -.4px;
}


/* ========= HEADER & FLOATING SOCIAL MEDIA (EXISTING) ========= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.18);
}

.logo img {
  height: 52px;
}

nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

nav ul li a {
  color: var(--brand-blue); 
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--brand-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px; 
}

#theme-toggle-btn {
  color: var(--brand-blue); 
}

#theme-toggle-btn:hover {
  color: var(--brand-red) !important; 
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--brand-blue); 
  border-radius: 3px;
}

@media(max-width:920px) {
    .hamburger { display: flex; }
    nav ul {
        position: fixed;
        top: 72px;
        right: 12px;
        background: linear-gradient(180deg, var(--white), var(--bg-soft));
        flex-direction: column;
        color: var(--text-dark);
        padding: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-2);
        display: none;
        width: 220px;
    }
    nav ul.show { display: flex; }
}

/* ======================================
  comapny logo meaning 
  ==============================*/
  /* ======================================
   COMPANY LOGO MEANING — 9UNIVERSE STORY
====================================== */
/* ================================================
   9UNIVERSE PHILOSOPHY SECTION (EARTH WATERMARK)
================================================ */
.logo-meaning {
  position: relative;
  padding: 6rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(25, 40, 70, 0.04), rgba(230, 57, 70, 0.04));
  overflow: hidden;
}

.logo-meaning .container {
  position: relative;
  z-index: 2;
}

/* --- Watermark Earth --- */
.logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.12;
  animation: floatEarth 30s linear infinite;
}

.logo-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.2));
  animation: rotateEarth 60s linear infinite;
}

@keyframes rotateEarth {
  from { transform: rotate(0deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1.05); }
}

@keyframes floatEarth {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -48%) scale(1.02); }
}

/* --- Animated Logo --- */
.animated-logo {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 5px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  position: relative;
  z-index: 1;
}

.animated-logo span {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Paragraphs & Grid --- */
.logo-explanation p {
  max-width: 900px;
  margin: 1rem auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  z-index: 2;
  position: relative;
}

.logo-mean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  position: relative;
  z-index: 2;
}

.meaning-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: var(--transition);
  border-top: 4px solid var(--brand-blue);
}

.meaning-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-red);
}

/* --- Card Icon --- */
.card-icon {
  font-size: 1.3rem;
  color: var(--brand-red);
  background: rgba(230, 57, 70, 0.08);
  padding: 8px;
  border-radius: 50%;
  margin-right: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.meaning-card:hover .card-icon {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}

/* --- Card Headings & Text --- */
.meaning-card h3 {
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.meaning-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.tagline {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--brand-red);
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
}

/* --- Dark Theme Adjustments --- */
body.dark-theme .logo-meaning {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(230, 57, 70, 0.05));
}

body.dark-theme .logo-watermark img {
  opacity: 0.2;
  filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

body.dark-theme .animated-logo {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

body.dark-theme .meaning-card {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: var(--brand-red);
}


/* =============================
   Floating Social Media Bar — Refined v2
============================= */
.social-float {
  position: fixed;
  top: 45%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

.social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ad000e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 50px 50px 0;
  padding: 0.6rem;
  width: 44px;
  height: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.35s ease;
}

/* hide text initially */
.social-float a span {
  display: none;
  margin-right: 0.6rem;
  white-space: nowrap;
}

/* Hover: expand + reveal label */
.social-float a:hover {
  width: 140px;
  justify-content: space-between;
  background: var(--brand-red);
  padding-left: 0.9rem;
}

.social-float a:hover span {
  display: inline;
}

/* Icons */
.social-float i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

/* Individual Brand Colors on Hover */
.social-float a.linkedin:hover { background: #0077b5; }
.social-float a.facebook:hover { background: #3b5998; }
.social-float a.whatsapp:hover { background: #25D366; }
.social-float a.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Mobile (optional hide) */
@media (max-width: 600px) {
  .social-float {
    display: none;
  }
}

/* =============================
   Floating Call Button (NEW ADDITION)
============================= */
.float-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c73a; /* Green for call to action */
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: pulse 2s infinite;
    transition: background-color 0.3s ease;
}

.float-call-btn:hover {
    background: #00992e;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 199, 58, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 199, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 199, 58, 0); }
}

/* Hide on larger screens if social bar is active, but keep visible on small screens */
@media (min-width: 601px) {
    .float-call-btn {
        display: none;
    }
}
@media (max-width: 600px) {
    .float-call-btn {
        bottom: 20px;
        right: 20px;
    }
}


/* ========= HERO SECTION (Existing) ========= */
.hero-about {
  position: relative;
  background: url("Images/index_banner.webp") center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 72px;
}

.hero-about .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 84, 0.65), rgba(230, 57, 70, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ========= ABOUT OVERVIEW (Existing) ========= */
.about-overview {
  background: var(--bg-soft); 
  padding: 4rem 1rem;
}

.about-overview h2 {
  color: var(--brand-blue);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1rem;
}

.about-overview p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted); 
  text-align: center;
  font-size: 1.05rem;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  background: var(--card-bg); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-1); 
  text-align: center;
  padding: 1.2rem 2rem;
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-6px);
}

.stat h3 {
  color: var(--brand-red);
  font-size: 2rem;
  font-weight: 700;
}

.stat span {
  color: var(--brand-blue); 
  font-weight: 500;
}

/* ========= MILESTONES SECTION (NEW) ========= */
.milestones-section {
    padding: 4rem 1rem;
    background: var(--white);
}

.milestones-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.milestones-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--brand-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    height: 40px;
    width: 40px;
    background-color: var(--brand-red);
    position: absolute;
    border-radius: 50%;
    z-index: 10;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: var(--shadow-1);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    border-left: 5px solid var(--brand-blue);
}

.timeline-content h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 20px;
    right: -10px;
    border: medium solid var(--brand-blue);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--brand-blue);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 20px;
    left: -10px;
    border: medium solid var(--brand-blue);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--brand-blue) transparent transparent;
}

/* Mobile Layout for Milestones */
@media screen and (max-width: 768px) {
    .milestones-timeline::after {
        left: 20px; 
    }
    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 15px;
        left: 0; 
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-icon {
        left: 0;
        margin-left: 0;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
        margin-left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: 10px;
        right: auto;
        border-color: transparent transparent var(--brand-blue) var(--brand-blue);
        border-width: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        border-left: 0;
        border-top: 5px solid var(--brand-blue);
    }
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 0;
        border-top: 5px solid var(--brand-blue);
    }
}
/* ========= END MILESTONES SECTION ========= */


/* ========= WHY CHOOSE US SECTION (NEW) ========= */
.why-choose-us {
    padding: 4rem 1rem;
    background: var(--bg-soft);
    text-align: center;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.choose-item {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    border-bottom: 4px solid var(--brand-red);
}

.choose-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
    border-color: var(--brand-blue);
}

.choose-item i {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.choose-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.choose-item p {
    color: var(--muted);
}
/* ========= END WHY CHOOSE US SECTION ========= */


/* ========= VISION & MISSION (Existing) ========= */
.vision-mission {
  padding: 4rem 1rem;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.vm-card {
  background: var(--card-bg); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-1); 
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.vm-card i {
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 1rem;
}

.vm-card h3 {
  color: var(--brand-blue); 
  margin-bottom: 0.6rem;
}

.vm-card:hover {
  transform: translateY(-6px);
}

/* ========= CORE VALUES (Existing) ========= */
.core-values {
  background: linear-gradient(135deg, rgba(20, 40, 84, 0.05), rgba(230, 57, 70, 0.05));
  padding: 4rem 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--card-bg); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-1); 
  text-align: center;
  padding: 1.8rem 1.2rem;
  transition: var(--transition);
}

.value-card i {
  font-size: 2rem;
  color: var(--brand-blue); 
  margin-bottom: 1rem;
}

.value-card h4 {
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.value-card:hover {
  transform: translateY(-6px);
}

/* ========= LEADERSHIP TEAM (Existing) ========= */
.leadership {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.04), rgba(20, 40, 84, 0.04));
  position: relative;
}

.leadership::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
}

.leadership .section-title h2 {
  color: var(--brand-blue);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 1px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--card-bg); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-1); 
  width: 350px;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.team-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  opacity: 0;
  transition: 0.4s ease;
}

.team-card:hover::after {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-red);
  margin-bottom: 1rem;
  transition: var(--transition);
  display: block;
  margin-left: auto;
  margin-right: auto; 
}

.team-card:hover img {
  border-color: var(--brand-blue);
  transform: scale(1.05);
}

.team-card h4 {
  color: var(--brand-blue); 
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.team-card .designation {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.team-card .bio {
  font-size: 0.93rem;
  color: var(--muted); 
  line-height: 1.6;
  text-align: justify; 
  margin-bottom: 1rem;
}

.team-card blockquote {
  font-style: italic;
  color: var(--brand-blue); 
  font-size: 0.9rem;
  margin: 0.8rem auto 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--brand-red);
  max-width: 90%;
}

.team-card .social-icons {
  display: flex;
  justify-content: center; 
  gap: 1rem;
}

.team-card .social-icons a {
  color: var(--brand-red);
  font-size: 1.3rem;
  transition: var(--transition);
}

.team-card .social-icons a:hover {
  color: var(--brand-blue);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .team-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .team-grid {
    flex-direction: column; 
    gap: 1.5rem;
    align-items: center; 
  }
  .team-card {
    padding: 1.5rem;
    width: 90%;
  }
  .team-card img {
    width: 120px;
    height: 120px;
  }
  .team-card .bio {
    text-align: justify;
  }
  .team-card .social-icons {
    justify-content: center;
  }
}

/* ========= CSR SECTION (Existing) ========= */
.csr {
  background: var(--bg-soft); 
  padding: 4rem 1rem;
  text-align: center;
}

.csr p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted); 
  font-size: 1.05rem;
}

/* ========= CLIENTS (Existing) ========= */
.clients {
  padding: 1rem 1rem;
  width: 100%;
}

.logo-slider {
  overflow: hidden;
  margin-top: 1.5rem;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: scrollLeft 20s linear infinite;
}

.logo-track img {
  height: 90px;
  width: auto;
  filter: grayscale(0.1);
  transition: 0.3s;
}

.logo-track img:hover {
  transform: translateY(-6px);
  filter: none;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== FOOTER (Redesigned for Simplicity & Appeal) ========== */



/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 50px;
  right: 22px;
  width: 50px;
  height: 50px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1200;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe57;
}

/* Nice pulse animation */
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Hide on small phones if needed */
@media(max-width:600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}



/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: 1.5rem
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, .08);
  padding-bottom: .5rem
}

.footer-section p,
.footer-section ul {
  font-size: .95rem;
  color: rgba(255, 255, 255, .9)
}

.footer-section ul {
  list-style: none;
  padding: 0
}

.footer-section ul li {
  margin-bottom: .5rem
}

.footer-section a {
  color: rgba(255, 255, 255, .9);
  transition: color .3s
}

.footer-section a:hover {
  color: var(--brand-red)
}

.footer-social a {
  font-size: 1.4rem;
  margin-right: 1.2rem;
  transition: color .3s, transform .3s
}

.footer-social a:hover {
  color: var(--brand-red);
  transform: scale(1.08)
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.footer-bottom p {
  font-size: .85rem;
  margin: 0;
  color: rgba(255, 255, 255, .75)
}
/* Footer Map Responsive Fix */
.footer .map-section iframe {
  width: 100% !important;
  height: 220px;
  border-radius: 10px;
  border: 0;
  display: block;
}

/* Focus */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(20, 40, 84, .06);
  border-radius: 8px
}

/* RESPONSIVE */
@media(max-width:1100px) {
  .hero-text h1 {
    font-size: 2.05rem
  }

  .project-card img {
    height: 220px
  }

  .gallery-swiper .swiper-slide img {
    height: 340px
  }
}

@media(max-width:920px) {
  .about-container {
    grid-template-columns: 1fr
  }

  .usp-grid {
    grid-template-columns: 1fr
  }

  nav ul {
    display: none
  }

  .hamburger {
    display: flex
  }

  nav ul.show {
    display: flex;
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    width: 220px
  }

  .search-bar input,
  .search-bar select {
    width: 100%
  }

  .search-card {
    flex-direction: column;
    text-align: center
  }

  .search-card img {
    max-height: 220px;
    width: 100%
  }

  .search-card-actions {
    justify-content: center
  }
}

@media(max-width:600px) {
  .logo img {
    height: 40px
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .footer-bottom p:first-child {
    order: 2
  }

  .masonry-grid {
    column-count: 1
  }

  .hero {
    min-height: 62vh
  }
}

/* ===========================
   REVEAL & STAGGER ANIMATIONS
   =========================== */
/* base reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(.997);
  transition: opacity .72s cubic-bezier(.2, .9, .2, 1), transform .72s cubic-bezier(.2, .9, .2, 1);
  will-change: transform, opacity;
  visibility: visible;
}

/* variants */
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1)
}

.reveal-left {
  transform: translateX(-36px)
}

.reveal-right {
  transform: translateX(36px)
}

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0)
}

.reveal-up {
  transform: translateY(36px)
}

.reveal-up.active {
  transform: translateY(0)
}

/* fade down (when leaving view from top) - handled by JS toggling class 'reveal-out' */
.reveal-out {
  opacity: 0;
  transform: translateY(-22px);
  transition: opacity .45s ease, transform .45s ease
}

/* Stagger container: children animate with calculated delay */
.stagger {
  --stagger-gap: 80ms;
}

.stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: 0ms;
  will-change: transform, opacity;
}

.stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Add subtle hover zoom for cards */
.card,
.project-card {
  transition: transform .5s cubic-bezier(.2, .9, .2, 1), box-shadow .4s;
}

.card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: var(--shadow-2);
}

/* Small utility spacing helpers */
.pt-2 {
  padding-top: 1rem
}

.pb-2 {
  padding-bottom: 1rem
}

.mt-1 {
  margin-top: .6rem
}

.mb-1 {
  margin-bottom: .6rem
}