@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #FFFFFF;
  --surface-color: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --brand-navy: #18181B;
  --brand-red: #C51A1B;
  --border-light: #E2E8F0;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-navy);
}

.logo img {
  height: 80px !important;
  object-fit: contain;
  transition: var(--transition);
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo span {
  color: var(--brand-red);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brand-navy);
}

.cta-btn {
  background: var(--brand-navy);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--brand-navy);
}

.cta-btn:hover {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

/* Layout */
main {
  padding-top: 9rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
}

/* Glowing blur blobs */
.blur-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 59, 46, 0.07) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 100%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.blob-1 { top: 5%; left: -150px; }
.blob-2 { top: 40%; right: -150px; }
.blob-3 { top: 75%; left: 10%; }

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 5%;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

@media (max-width: 1024px) {
  .hero-image {
    width: 100%;
    opacity: 0.15;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Services / Products Grid */
.section {
  padding: 8rem 0;
  position: relative;
}

.section.bg-surface {
  background: var(--surface-color);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--brand-red);
}

.service-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--surface-color);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-red);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Restored Bento Grid for Sub-Pages */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
}

.bento-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

.image-card {
  padding: 0;
  border: none;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-card:hover img {
  transform: scale(1.06);
}
.image-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.35) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem;
  transition: var(--transition);
  color: #fff;
  z-index: 2;
}
.image-card .overlay-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.image-card .overlay-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
}
.image-card:hover .overlay-subtitle {
  opacity: 1;
  transform: translateY(0);
}
.image-card:hover .overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

/* Stats Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin: 4rem auto;
  text-align: center;
  width: 100%;
}
.stat-item {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  background: var(--surface-color);
}
.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(169, 59, 46, 0.25);
}
.stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red), #F43F5E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
  font-size: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.specs-table th {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem;
}
.specs-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}
.specs-table tr:nth-child(even) td {
  background: var(--surface-color);
}
.specs-table td strong {
  color: var(--text-main);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Image Grid for Projects */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

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

/* Footer */
footer {
  background: var(--brand-navy);
  color: #fff;
  padding: 6rem 5% 4rem;
}

footer .logo {
  color: #fff;
}

footer .logo-mark rect {
  stroke: #fff;
}
footer .logo-mark line:nth-child(3) {
  stroke: #fff;
}

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

footer h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

footer p, footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-color);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(169, 59, 46, 0.1);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--brand-navy);
  padding-left: 0.5rem;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .col-span-3, .col-span-4 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-masonry { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item { min-height: 250px; }
  .col-span-2, .col-span-3, .col-span-4 { grid-column: span 1; }
}

/* Gallery Filter Styles */
.filter-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.filter-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.filter-btn.active {
  background: var(--brand-navy) !important;
  color: #fff !important;
  border-color: var(--brand-navy) !important;
  box-shadow: 0 4px 15px rgba(18, 25, 61, 0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 360px;
  gap: 2.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:nth-child(5n+1) {
  grid-column: span 2;
}

.gallery-item:nth-child(7n+3) {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .gallery-item:nth-child(5n+1) {
    grid-column: span 1;
  }
  .gallery-item:nth-child(7n+3) {
    grid-row: span 1;
  }
}

.gallery-item.hide {
  display: none;
}

/* Brand Marquee Loop Carousel */
.brand-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 3rem 0;
  width: 100%;
  background: var(--surface-color);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.brand-marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee-scroll 25s linear infinite;
  width: max-content;
}

.brand-marquee-item {
  flex-shrink: 0;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  letter-spacing: 1px;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Responsive Grid Helper for About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Responsive Form Row Helper */
.form-row-2 {
  display: flex;
  gap: 1rem;
}
@media (max-width: 576px) {
  .form-row-2 {
    flex-direction: column;
  }
}
