/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 20px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#main-content {
  flex: 1; /* This ensures content takes available space and pushes footer */
}
a {
  text-decoration: none;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* === Navbar === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background: #00bcd4; */
  background: #002b36;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
  transition: transform 0.15s ease-out;
}
/* Hide state */
nav.hide {
  transform: translateY(-100%);
}
.logo a {
  /* font-family: 'Courier New', Courier, monospace; */
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}
 .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #00bcd4;
}
.nav-container {
  /* max-width: 1200px; */
  /* margin: 0 auto; */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* === MOBILE SIDEBAR STYLE === */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    height: 100vh;
    width: 250px;
    background: #002b36;
    flex-direction: column;
    justify-content: flex-start; /* ✅ Align items at top */
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem; /* ✅ Controls spacing from top */
    gap: 1.2rem;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: right 0.4s ease, opacity 0.3s ease;
    z-index: 1001;
  }

  .nav-links.show {
    right: 0;
    opacity: 1; /* ✅ Smooth fade-in */
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    width: 100%;
    display: block;
    color: white;
    transition: background 0.2s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: #00bcd4; */
    background: #002b36;
    z-index: 1000;
  }
}
/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #00bcd4;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 6px;
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: white;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #0097a7;
}
/* === DESKTOP (hover to show) === */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    background: #0097a7;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #00bcd4;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 1001;
  }
}
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: static;
    background: #00bcd4;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown .dropdown-menu a {
    color: white;
    padding: 0.5rem 1rem;
  }
}
/* === Hero Section === */
.hero {
  background: linear-gradient(to right, #F0F9FF, #D0F0FF);
  color: #003344;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
/* ===service modal=== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  position: relative; /* ✅ THIS IS KEY */
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.modal .btn {
  background: #00bcd4;
  color: white;
  border: none;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
/* === General Sections === */
.section {
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.section h2 {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 1.5rem;
}

/* === Services Grid === */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
  text-align: left;
}

/* === Cards === */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* === CTA Box === */
.cta {
  background: #e0f7fa;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 3rem;
}

/* === Button === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #00bcd4;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: #007c91;
  transform: scale(1.03);
}

/* === About Section List === */
.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.about-list li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* === Contact Form === */
form.contact-form {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Contact Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-group.full {
  grid-column: span 2;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: #f9f9f9;
}
.form-group textarea {
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #00bcd4;
  background: #fff;
  outline: none;
}

/* Floating Labels */
.form-group label {
  position: absolute;
  top: -0.65rem;
  left: 0.85rem;
  background: white;
  padding: 0 0.4rem;
  font-size: 0.85rem;
  color: #555;
  pointer-events: none;
}


/* Form Submission Message */
#formStatus {
  margin-top: 1rem;
  font-weight: 500;
  color: #007c91;
  text-align: center;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 1rem;
  }
  .card {
    text-align: center;
  }
  .btn {
    width: 100%;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .logo a {
    font-size: 1.2rem;
  }
  nav {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  form.contact-form {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr; /* Force single column */
  }

  .form-group.full {
    grid-column: span 1 !important;
  }

  .btn {
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    width: 100%;
  }
}

/* ===== Footer Styles ===== */
footer {
  background: #002b36;
  color: #ffffff;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
}

.footer-grid h3,
.footer-grid h4 {
  color: #00bcd4;
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-grid a:hover {
  text-decoration: none;
  color: #00bcd4;
}

.footer-bottom {
  border-top: 1px solid #00bcd4;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ✅ Mobile-friendly adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid div {
    padding: 0.5rem 0;
  }

  .footer-grid a {
    display: inline-block;
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.5rem 1rem;
  }

  .footer-grid h3,
  .footer-grid h4 {
    font-size: 1.2rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

.footer-grid i {
  margin-right: 0.5rem;
  color: #00bcd4;
}

/* ===Section Approach=== */
/* === Default: Desktop Grid === */
.approach-cards {
  display: flex;
  gap: 1.5rem;
  animation: scroll-left 40s linear infinite;
  will-change: transform;
  overflow: hidden;
  width: max-content;       
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* for iOS smooth scrolling */
}

.approach-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: fit-content;
}

@media (max-width: 768px) {
  .approach-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .approach-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
    padding-bottom: 1rem;
    width: auto;

    /* 🔧 This disables the auto-scroll on mobile */
    animation: none !important;
    transform: none !important;
  }

  .flip-card {
    flex: 0 0 85%; /* Show part of the next card */
    scroll-snap-align: start;
    transition: transform 0.3s ease;
  }

  .approach-cards::-webkit-scrollbar {
    display: none;
  }
}

.approach-carousel-wrapper:hover .approach-cards {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.flip-card {
  flex: 0 0 300px;           
  height: 250px;
  scroll-snap-align: start;
  /* touch-action: pan-y; */
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  position: absolute;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flip-front {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.flip-back {
  background: #00bcd4;
  color: white;
  transform: rotateY(180deg);
  font-size: 1rem;
}

.card-template {
  display: none !important;
}

/* Hide scrollbar */
.approach-cards::-webkit-scrollbar {
  display: none;
}

/* ===services pages=== */
.service-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.service-image {
  flex: 0 1 400px;
  max-width: 500px;
}

.service-image img {
  width: 85%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-summary {
  flex: 1 1 400px;
  max-width: 600px;
}

.service-summary p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Features Grid */
.dynatrace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  height: 160px;
  object-fit: cover;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
  color: #00bcd4;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ===nav logo=== */
.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.logo-img {
  height: 40px;       /* Desktop size */
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 32px; 
  }

  .logo-text {
    font-size: 1.2rem;
    padding-top: 2px;
  }
}

.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.dots span {
  width: 6px;
  height: 6px;
  background: #007bff;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 0.6s infinite alternate;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* Disabled button style */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
