/* =========================================
   BASE RESET & TYPOGRAPHY
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #111827;
  scroll-behavior: smooth;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4,
.logo-text,
.nav-logo-text {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eef2f6;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0b2c4a 0%, #1f4e79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.nav-logo-text:hover {
  opacity: 0.9;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: #0b2c4a;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #1e2a3a;
  font-size: 0.95rem;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #00a8ff;
}
.buy-coffee-btn {
  background: #0b2c4a;
  color: white !important;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  border: 1px solid #1f4e79;
  display: inline-block;
}

/* Adjust chai button inside navbar */
.buy-coffee-btn img {
  display: block;
  transition: transform 0.2s;
}
.buy-coffee-btn:hover img {
  transform: scale(1.02);
}

/* =========================================
   GLOBAL BUTTONS
   ========================================= */
.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}
.btn-primary {
  background-color: #0b2c4a;
  color: white;
  border: none;
}
.btn-primary:hover {
  background-color: #1f4e79;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 44, 74, 0.15);
}
.btn-secondary {
  background-color: transparent;
  color: #0b2c4a;
  border: 1.5px solid #0b2c4a;
}
.btn-secondary:hover {
  background: rgba(11, 44, 74, 0.05);
  transform: translateY(-2px);
}

/* =========================================
   MODAL
   ========================================= */
.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.quote-modal.active {
  opacity: 1;
  visibility: visible;
}
.quote-card {
  background: #fff;
  color: #353535;
  padding: 2rem;
  border-radius: 30px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}
.quote-modal.active .quote-card {
  transform: scale(1);
  opacity: 1;
}
.close-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  background: #ff6b01;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.close-btn:hover {
  background: #ffa352;
}

/* =========================================
   [NEW] ENTERPRISE HOMEPAGE DESIGN 
   ========================================= */
.bg-light {
  background-color: #f8fafc;
}
.stealth-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.stealth-link:hover h3 {
  color: #0b2c4a;
}

.enterprise-hero {
  position: relative;
  padding: 160px 0 140px;
  background: #040d1a url('../images/vyomarc-hero-image.jpeg') center/cover no-repeat;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 13, 26, 0.98) 0%, rgba(15, 33, 55, 0.92) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge i {
  color: #38bdf8;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Enterprise Hero Buttons */
.hero-btn-primary {
  background: #ffffff;
  color: #040d1a;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}
.hero-btn-primary:hover {
  background: #f1f5f9;
  color: #040d1a;
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enterprise Solutions Grid */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.ent-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.ent-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.ent-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0f172a;
  margin-bottom: 20px;
}
.ent-card h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 700;
}
.ent-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================
   GLOBAL SECTIONS
   ========================================= */
section {
  padding: 70px 0;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 16px;
  text-align: center;
}
.section-sub {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
  color: #4a5b6e;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-header .section-title {
  margin-bottom: 16px;
}

/* =========================================
   CARDS GRIDS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.service-card,
.product-card,
.why-card,
.process-step,
.testimonial-card {
  background: white;
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s;
  border: 1px solid #eef2f6;
}
.service-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
.service-card i,
.why-card i {
  font-size: 2.2rem;
  color: #0b2c4a;
  margin-bottom: 20px;
}
.product-icon {
  font-size: 2.2rem;
  color: #0b2c4a;
  margin-bottom: 24px;
}
.service-card h3,
.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.service-card p {
  color: #4b5563;
  line-height: 1.4;
}
.product-card .product-badge {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: #0b2c4a;
  cursor: pointer;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.why-card {
  text-align: center;
}

/* =========================================
   PORTFOLIO (COMPLETELY FIXED OVERLAP)
   ========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden; /* Stops content from spilling out */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.portfolio-img {
  background: #f4f7fb;
  width: 100%;
  height: 240px; /* FIXED HEIGHT: Stops image from expanding */
  overflow: hidden; /* FIXED OVERFLOW */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps aspect ratio clean */
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05); /* Smooth hover zoom effect */
}
.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* =========================================
   PROCESS STEPS
   ========================================= */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.process-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  background: #fafcff;
}
.step-num {
  background: #0b2c4a;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

/* =========================================
   TESTIMONIALS (COMPLETELY FIXED SPACING)
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.testimonial-card p {
  font-style: italic;
  margin: 15px 0;
  color: #2d3e50;
}
.quote-icon {
  color: #cbd5e1;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.testi-role {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px; /* FIXED: Removed the negative margin */
  margin-bottom: 12px;
}
.testi-link {
  font-size: 0.85rem;
  color: #1f4e79;
  font-weight: 600;
  text-decoration: none;
}
.testi-link:hover {
  text-decoration: underline;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: #0b2c4a;
  border-radius: 48px;
  text-align: center;
  padding: 64px 32px;
  color: white;
  margin: 40px 0;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 16px;
}
.cta-section .btn-primary {
  background: white;
  color: #0b2c4a;
  margin-top: 24px;
}
.cta-section .btn-primary:hover {
  background: #eef2ff;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #f9fafb;
  border-top: 1px solid #e5e9f0;
  padding: 48px 0 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col {
  flex: 1;
  min-width: 150px;
}
.footer-col .logo-foot {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0b2c4a, #1f4e79);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: inline-block;
}
.footer-col p,
.footer-col a {
  color: #4b5563;
  text-decoration: none;
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: #00a8ff;
}
.social-icons a {
  display: inline-block;
  margin-right: 16px;
  font-size: 1.3rem;
  color: #1f4e79;
}
.copyright {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
  color: #6c757d;
  font-size: 0.85rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  background: #f9fafe;
  border-radius: 32px;
  padding: 40px;
  border: 1px solid #eef2f6;
}
.about-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}
.about-text {
  flex: 2;
}
.about-text p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #2c3e50;
}
.about-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b2c4a;
}

/* ============================================
   FULLY RESPONSIVE MEDIA QUERIES
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .enterprise-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eef2f6;
    z-index: 999;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    white-space: normal;
    width: 100%;
    padding: 8px 0;
  }
  .buy-coffee-btn {
    text-align: center;
    width: auto;
  }

  /* Enterprise Hero */
  .enterprise-hero {
    padding: 120px 0 100px;
  }
  .hero-btn-primary, .hero-btn-secondary {
    width: 100%;
  }

  /* Sections padding */
  section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }

  /* About */
  .about-grid {
    flex-direction: column;
  }
  .about-content {
    padding: 24px;
  }
  .about-stats {
    width: 100%;
  }

  /* CTA */
  .cta-section {
    padding: 40px 20px;
    margin: 30px 0;
  }
  .cta-section h2 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  .footer-col {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .cards-grid,
  .why-grid,
  .portfolio-grid,
  .testimonial-grid,
  .enterprise-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  
  .service-card,
  .product-card,
  .why-card {
    padding: 20px 16px;
  }
  .process-step {
    min-width: 140px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .quote-card {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Touch-friendly improvements */
button,
a,
.menu-toggle,
.close-btn,
.product-badge {
  touch-action: manipulation;
}

/* =========================================
   ADDITIONAL ENHANCEMENTS
   ========================================= */
.outcome-text {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 8px;
  line-height: 1.5;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tech-tag {
  background: #eef2ff;
  color: #1f4e79;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #d0dcf5;
}
.case-study-link {
  display: inline-block;
  color: #00a8ff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.case-study-link:hover {
  color: #0b2c4a;
  text-decoration: underline;
}
.case-study-link i {
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Team Card Styles for about.html */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.team-card {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: 24px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s;
}
.team-card:hover {
  transform: translateY(-5px);
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid #eef2ff;
}
.team-card h4 {
  color: #0b2c4a;
  margin-bottom: 4px;
  font-size: 1.2rem;
}
.team-card .role {
  color: #00a8ff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.team-card .expertise {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =========================================
   TEAM IMAGES & HOVER EFFECTS
   ========================================= */
.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #f8fafc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}
.team-card:hover .team-img {
  transform: scale(1.1);
  border-color: #00a8ff;
}
  
/* =========================================
   TEAM SOCIAL ICONS
   ========================================= */
.team-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.team-social a {
  color: #64748b;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}
.team-social a.linkedin:hover { 
  color: #0077b5;
  transform: translateY(-3px); 
}
.team-social a.twitter:hover { 
  color: #000000; 
  transform: translateY(-3px); 
}
.team-social a.instagram:hover { 
  color: #e1306c; 
  transform: translateY(-3px);
}