/* 🌐 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa; /* Light gray background */
  color: #212529; /* Dark text */
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== UTILITIES ========== */
.container {
  width: 90%;
  max-width: 1140px;
  margin: auto;
}

section {
  padding: 5rem 0; /* Increased padding for sections */
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

h2.section-title {
  text-align: center;
  font-size: 2.5rem; /* Larger section titles */
  margin-bottom: 3.5rem; /* Increased margin */
  position: relative;
}

/* Adding a subtle underline to section titles */
h2.section-title::after {
  content: '';
  display: block;
  width: 70px; /* Wider underline */
  height: 4px; /* Thicker underline */
  background-color: #007bff;
  margin: 0.8rem auto 0; /* Adjusted margin */
  border-radius: 2px;
}


p {
  color: #555;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #007bff; /* Primary blue */
}
a:hover {
    text-decoration: underline;
}

/* ========== HEADER / NAVBAR ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%; /* Slightly reduced padding */
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08); /* Stronger shadow */
  border-bottom: 1px solid #e0e0e0;
}

.logo {
  font-size: 1.8rem; /* Larger logo */
  font-weight: 700;
  color: #007bff;
  letter-spacing: 1px;
}

.logo span {
  color: #333;
}

nav a {
  color: #444;
  margin: 0 16px; /* Increased margin */
  font-weight: 500;
  transition: 0.3s ease-in-out;
  padding-bottom: 6px; /* Slightly more padding */
  border-bottom: 3px solid transparent; /* Thicker border */
  text-decoration: none;
}

nav a:hover, nav a.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
  text-decoration: none;
}

/* ========== HERO SECTION (index.html) ========== */
.hero-new {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #c1e7f0 100%); /* Subtle gradient */
  padding: 0 15px; /* Added horizontal padding */
}

.hero-content-new {
  max-width: 800px;
}

.hero-content-new h1 {
  font-size: 3.8rem; /* Larger font size */
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Style for the Typed.js cursor */
.hero-content-new h1 span {
  color: #007bff; /* Primary blue */
}
.typed-cursor {
  color: #333; /* Darker cursor for light background */
  font-size: 3.8rem;
}

.hero-content-new p {
  max-width: 700px;
  color: #444;
  margin: 0 auto 2.5rem; /* Centered and increased margin */
  font-size: 1.3rem; /* Larger font size */
  font-weight: 400;
}

/* ========== PAGE HERO (Internal Pages) ========== */
.page-hero {
  background: #f1f3f5;
  padding: 4rem 0; /* Increased padding */
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}
.page-hero h1 {
  font-size: 3rem; /* Larger heading */
}
.page-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 650px;
    margin: 1rem auto 0;
}

/* Primary Button */
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 15px 35px; /* Larger padding */
  border-radius: 50px;
  margin: 0 10px 10px 10px; /* Added spacing between buttons and responsive margin */
  font-weight: 600;
  font-size: 1.1rem; /* Larger font size */
  transition: all 0.3s ease;
  border: 2px solid #007bff;
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.25); /* Stronger shadow */
  text-decoration: none;
}

.btn:hover {
  background: #0056b3;
  color: #fff;
  transform: translateY(-4px); /* More pronounced lift */
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35); /* Stronger hover shadow */
  text-decoration: none;
}

/* Secondary Button */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #007bff;
  padding: 15px 35px;
  border-radius: 50px;
  margin: 0 10px 10px 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #007bff;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
  text-decoration: none;
}

.btn-light { /* For CTA section */
  background: #fff;
  color: #007bff;
  border: 2px solid #fff;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}
.btn-light:hover {
  background: #f0f0f0;
  color: #0056b3;
  border-color: #f0f0f0;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}


/* ========== CARDS (Services, Portfolio, etc.) ========== */
.service-grid, .service-cards, .grid, .why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem; /* Increased gap */
}

.card {
  background: #ffffff;
  border-radius: 12px; /* Slightly more rounded */
  padding: 2.5rem; /* Increased padding */
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* Stronger shadow */
  text-align: center; /* Centered card content */
}

.card:hover {
  transform: translateY(-10px); /* More pronounced lift */
  box-shadow: 0 12px 30px rgba(0,0,0,0.12); /* Stronger hover shadow */
}

.card h3 {
  color: #007bff;
  margin-bottom: 1rem; /* Increased margin */
  font-size: 1.45rem; /* Larger heading */
}
.card p {
    font-size: 1.05rem;
    color: #444;
}

/* ========== ABOUT PAGE ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ========== CASE STUDIES ========== */
.case {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.case ul {
  list-style-position: inside;
  margin-top: 1rem;
}

/* ========== CONTACT PAGE (UPDATED) ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Info column smaller, form column larger */
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-info p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}
.contact-info-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.contact-info-item a {
    text-decoration: none;
    font-weight: 500;
}
.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* NEW: Grid for form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.contact-card label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 16px; 
  background: #f1f3f5;
  border: 1px solid #e0e0e0;
  color: #333;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.contact input:focus, .contact textarea:focus {
  outline: 2px solid #007bff;
  background: #fff;
}

.contact button {
  background: #007bff;
  border: none;
  padding: 16px 35px; 
  border-radius: 35px; 
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.25);
  margin-top: 0.5rem; /* Added margin on top */
}

.contact button:hover {
  background: #0056b3;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}
.form-status {
  text-align: center;
  margin-top: 1.5rem; 
  font-weight: 500;
  font-size: 1.05rem;
}

.map-section {
    padding-top: 0; /* Removed top padding as it's a new section */
}
.map-wrapper {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 4.5rem 10%; /* Increased padding */
  text-align: center;
  color: #fff;
  border-radius: 12px; /* Slightly more rounded */
  margin: 3rem auto; /* Increased margin */
}
.cta h2 {
  color: #fff;
  font-size: 2.5rem; /* Larger font size */
  line-height: 1.3;
  margin-bottom: 2.5rem; /* Increased margin */
}
/* .btn-light style is already defined */


/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 3rem; /* Increased padding */
  border-top: 1px solid #e0e0e0;
  color: #777;
  margin-top: 3rem; /* Increased margin */
  background: #fff;
  font-size: 0.95rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  .hero-content-new h1 {
    font-size: 3rem;
  }
  .typed-cursor {
    font-size: 3rem;
  }
  .hero-content-new p {
    font-size: 1.2rem;
  }
  .service-grid, .why-us-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .cta h2 {
    font-size: 2rem;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr; /* Stack contact grid on tablets */
  }
  .contact-info {
    text-align: center; /* Center the info when stacked */
  }
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem 5%;
  }

  nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a {
    margin: 5px 8px;
    font-size: 0.9rem;
  }

  .hero-new {
    height: auto; /* Adjust height dynamically on small screens */
    padding: 6rem 15px; /* More padding for smaller screens */
  }
  .hero-content-new h1 {
    font-size: 2.5rem; /* Smaller font size */
    margin-bottom: 1rem;
  }
  .typed-cursor {
    font-size: 2.5rem;
  }
  .hero-content-new p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .btn, .btn-secondary {
    display: block; /* Stack buttons vertically */
    width: 100%;
    margin: 10px 0; /* Adjust margin for stacking */
    padding: 14px 25px;
    font-size: 1rem;
  }

  h2.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  h2.section-title::after {
    width: 50px;
  }

  .page-hero h1 {
      font-size: 2.5rem;
  }
  .page-hero p {
      font-size: 1rem;
  }
  
  .service-grid, .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .cta h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .contact-info h2 {
      font-size: 2.2rem;
  }

  /* UPDATED: Stack form grid on mobile */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0; /* Remove gap when stacked */
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
    .hero-content-new h1 {
        font-size: 2rem;
    }
    .typed-cursor {
        font-size: 2rem;
    }
    .hero-content-new p {
        font-size: 0.95rem;
    }
    .btn, .btn-secondary {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    .card h3 {
        font-size: 1.3rem;
    }
    .card p {
        font-size: 0.95rem;
    }
    .cta h2 {
        font-size: 1.5rem;
    }
}