/* ===== Poddar Infratech — Global Styles ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a1f3d;
  --blue:    #1a4d8f;
  --blue-lt: #2a6fc9;
  --accent:  #d4a853;
  --white:   #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #f0f1f3;
  --gray-200: #dde0e5;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-lt); }

.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.logo-sub { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.12em; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--gray-700); padding: 0.4rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--blue); transition: width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy); }
.nav-cta::after { display: none !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,31,61,.85) 0%, rgba(26,77,143,.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; line-height: 1.8; margin-bottom: 2rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat .number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent); display: block; }
.hero-stat .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.75); }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-lt); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,77,143,.3); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }

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

/* ---------- Section ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 640px; margin: 0 auto; color: var(--gray-500); }

/* ---------- Services / Expertise ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  border-color: var(--blue);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* ---------- Projects Grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,61,.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.project-card-overlay h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.3rem; }
.project-card-meta { font-size: 0.82rem; opacity: 0.85; }
.project-card-type {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Placeholder for projects without photos */
.project-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  opacity: 0.7;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Project Detail Page ---------- */
.project-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}

.project-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
}

.project-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,61,.92) 0%, rgba(10,31,61,.5) 40%, rgba(10,31,61,.25) 100%);
  z-index: 1;
}

.project-hero-content {
  position: relative; z-index: 2;
  padding: 3rem 0 2.5rem;
  color: var(--white);
}

.project-hero h1 { color: var(--white); margin-bottom: 0.3rem; }

.project-hero-location {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

.project-type-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 0.35rem; }

.project-meta-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.meta-bar-inner {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); display: block; margin-bottom: 0.15rem; }
.meta-value { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* Project highlights bar */
.project-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.highlight-item {
  text-align: center;
}

.highlight-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.highlight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

/* Project content layout — writeup + sidebar gallery */
.project-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Project writeup */
.project-writeup { }
.project-writeup h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}

.project-writeup h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  color: var(--blue);
}

.project-writeup p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--gray-700);
  text-align: justify;
}

/* Sidebar gallery */
.project-sidebar {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
  padding-right: 4px;
}
.project-sidebar::-webkit-scrollbar { width: 5px; }
.project-sidebar::-webkit-scrollbar-track { background: transparent; }
.project-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.project-sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

.project-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.sidebar-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.sidebar-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-gallery-item:hover img { transform: scale(1.05); }

.sidebar-gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  border: 2px dashed var(--gray-200);
  border-radius: 6px;
  background: var(--off-white);
}

@media (max-width: 900px) {
  .project-content-grid {
    grid-template-columns: 1fr;
  }
  .project-sidebar {
    position: static;
  }
  .sidebar-gallery {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-gallery-item {
    min-width: 240px;
    flex-shrink: 0;
  }
}

.project-body { }
.project-body h2 { margin-top: 0; margin-bottom: 1.2rem; }
.project-body p { font-size: 1.02rem; line-height: 1.85; color: var(--gray-700); text-align: justify; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  border: 2px dashed var(--gray-200);
  border-radius: 6px;
  background: var(--off-white);
}

/* Video embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 2rem 0;
  background: var(--gray-900);
}

.video-container video,
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1rem; }
.about-text p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-card h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.team-card .role { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Contact ---------- */
.contact-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}
.contact-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.contact-tab-btn:hover { color: var(--navy); }
.contact-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
}
.contact-tab-panel { display: none; }
.contact-tab-panel.active { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-map {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  margin-top: 0.5rem;
}

.careers-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,77,143,.1);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px; height: 40px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 0.9rem; display: block; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.5rem; color: rgba(255,255,255,.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Map Marker Pins ---------- */
.map-section { position: relative; }
.india-map { max-width: 500px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-200); box-shadow: 0 4px 12px rgba(0,0,0,.08); gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }

  .hero { min-height: 70vh; }
  .hero-stats { gap: 1.5rem; }

  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-meta-bar { gap: 1rem; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transition: opacity 0.25s ease;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.22); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.sidebar-gallery-item { cursor: pointer; }
.sidebar-gallery-item img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.sidebar-gallery-item:hover img { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
