*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

body{
  background:#ffffff;
  color:#333;
}

/* HEADER */
header{
  width:100%;
  padding:18px 45px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  border-bottom:1px solid #eee;
}

.logo{
  font-size:22px;
  font-weight:700;
}
.logo span{ color:#ff6a00; }

nav a{
  margin:0 7px;
  color:#555;
  text-decoration:none;
  font-weight:500;
}
nav a.active{ color:#2f6be0; }

/* HERO */
.hero{
  text-align:center;
  padding:50px 20px;
}
.hero h1{
  font-size:42px;
  font-weight:800;
}
.blue{ color:#2f6be0; }
.orange{ color:#ff6a00; }
.hero p{ margin-top:10px; color:#666; }

/* CONTACT WRAPPER */
.contact-wrapper{
  width:90%;
  max-width:1300px;
  margin:40px auto;
  display:flex;
  gap:30px;
}

/* LEFT BOX */
.left-box{
  width:30%;
  background:#fff;
  padding:25px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
}
.left-box h3{
  margin:20px 0 10px;
  font-size:18px;
}
.info{
  display:flex;
  align-items:flex-start;
  gap:15px;
  margin:15px 0;
}
.info i{
  font-size:20px;
  color:#2f6be0;
}
.whatsapp-color{ color:#25D366 !important; }

/* RIGHT BOX */
.right-box{
  width:70%;
  background:#fff;
  padding:30px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.right-box h3{
  margin-bottom:20px;
}

form .row{
  display:flex;
  gap:20px;
  margin-bottom:15px;
}

input, select, textarea{
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:8px;
  font-size:15px;
  outline:none;
}
textarea{
  height:120px;
  resize:none;
}

/* BUTTON */
button{
  width:100%;
  margin-top:15px;
  background:#2f6be0;
  color:#fff;
  padding:14px;
  border:none;
  border-radius:8px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}
button:hover{
  background:#1f50b3;
}

/* ----------------- HEADER BUTTON COLORS (Same as your previous pages) ----------------- */

.header-right a {
  padding: 8px 12px;
  border-radius: 6px;
  margin-left: 10px;
  font-size: 14px;
  text-decoration: none !important;
  color: #333;
  border: 1px solid #ccc;
  transition: 0.3s ease;
}

.header-right a:hover {
  background: #f7f7f7;
}

/* WhatsApp Button */
.header-right .whatsapp {
  color: white;
  background: #25D366 !important;
  border: none !important;
}

.header-right .whatsapp:hover {
  opacity: 0.85;
}

/* Get Free Audit — Gradient button (Same as homepage) */
.header-right .cta {
  color: white !important;
  border: none !important;
  background: linear-gradient(to right, #557bff, #9c4bff) !important;
}

.header-right .cta:hover {
  opacity: 0.9;
}

/* ----------------- FOOTER STYLES (Same as original footer) ----------------- */


footer {
    background: #0a2b33;
    color: white;
    padding: 60px;
    margin-top: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin: 6px 0;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(1, 1fr);
    text-align: center;
  }

  .footer-col {
    margin-bottom: 25px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar li {
  list-style: none;
  position: relative;
}

.navbar li a {
  text-decoration: none;
  color: #333;
  padding: 6px 8px;
}

/* Dropdown hidden */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 0;
  width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dropdown visible on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* ===== FIX: prevent dropdown from hiding when moving cursor ===== */

/* make trigger clickable area stable */
.dropdown > .nav-link,
.dropdown > a {
  display: inline-block;
  padding: 8px 10px;   /* increase hit area to make hover easier */
  line-height: 1;
}

/* place menu immediately under the trigger (no gap) */
.dropdown-menu {
  /* replace top: 35px; with top: 100% so there's no gap between trigger and menu */
  top: 100% !important;
  left: 0;
  margin-top: 0; /* ensure no extra gap */
}

/* small extra: a tiny offset inside menu so it doesn't overlap text */
.dropdown-menu { 
  transform: translateY(0);
}

/* keep the hover target to the entire dropdown wrapper (already used) */
.dropdown {
  position: relative;
  z-index: 300; /* ensure it's above other elements */
}



/* ================= BASE SCROLL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.17, 0.55, 0.55, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SOFT ZOOM ================= */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s ease-out;
}
.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* ================= GLOW FADE ================= */
.reveal-glow {
  opacity: 0;
  filter: brightness(0.4) blur(3px);
  transition: all 1.2s ease-out;
}
.reveal-glow.active {
  opacity: 1;
  filter: brightness(1) blur(0);
}

/* ================= 3D PARALLAX TILT ================= */
.reveal-tilt {
  opacity: 0;
  transform: perspective(800px) rotateX(15deg) translateY(40px);
  transition: all 1s ease-out;
}
.reveal-tilt.active {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* ================= STAGGER ================= */
.stagger:nth-child(1) { transition-delay: 0.1s; }
.stagger:nth-child(2) { transition-delay: 0.2s; }
.stagger:nth-child(3) { transition-delay: 0.3s; }
.stagger:nth-child(4) { transition-delay: 0.4s; }
.stagger:nth-child(5) { transition-delay: 0.5s; }
.stagger:nth-child(6) { transition-delay: 0.6s; }


/* =================================================
   RESPONSIVE FIX — CONTACT PAGE
   (ADD THIS AT THE END OF contact.css)
================================================= */

/* ---------- GLOBAL SAFETY ---------- */
body {
  overflow-x: hidden;
}

/* ---------- HEADER FIX ---------- */
@media (max-width: 1200px) {

  header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo1 {
    margin-left: 0 !important;
    display: flex;
    justify-content: center;
  }

  nav {
    margin-left: 0 !important;
  }

  .navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-right {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .header-right a {
    display: inline-block;
    margin: 0.4rem;
  }
}

/* ---------- HERO SECTION ---------- */
@media (max-width: 768px) {

  .hero h1 {
    text-align: center;
    font-size: 2rem;
    padding: 0 1rem;
  }

  .hero p {
    text-align: center;
    padding: 0 1rem;
  }
}

/* ---------- CONTACT SECTION ---------- */
.contact-wrapper {
  display: flex;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .left-box,
  .right-box {
    width: 90%;
    max-width: 700px;
  }
}

@media (max-width: 480px) {

  .row {
    flex-direction: column;
  }

  .row input,
  .row select {
    width: 100%;
  }

  textarea {
    width: 100%;
  }
}

/* ---------- FOOTER FIX ---------- */
footer {
  overflow-x: hidden;
}

.footer-grid {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1200px) {

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    text-align: center;
    margin-left: 0 !important;
    padding: 0 1rem;
  }

  footer p {
    margin-left: 0 !important;
    text-align: center;
  }
}

/* ---------- MOBILE FOOTER ---------- */
@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  footer p {
    margin: 0.6rem 0 !important;
    padding: 0 1rem;
  }

  hr {
    margin: 1.5rem 0;
  }
}

/* ---------- COPYRIGHT LINE ---------- */
@media (max-width: 768px) {

  footer p:last-child {
    text-align: center;
    font-size: 0.9rem;
  }
}

/* ==========================================
   FOOTER HARD RESPONSIVE OVERRIDE
   (NO HTML CHANGE)
========================================== */

footer {
  width: 100%;
  overflow-x: hidden;
}

/* ----- FOOTER GRID RESET ----- */
.footer-grid {
  margin: 0 auto !important;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ----- FORCE REMOVE INLINE MARGINS ----- */
footer p {
  margin-left: 0 !important;
  margin-top: 0 !important;
  
}

/* ----- TABLET ----- */
@media (max-width: 1024px) {

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    text-align: center;
  }
}

/* ----- MOBILE ----- */
@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid div {
    text-align: center;
  }

  footer p {
    padding: 0.5rem 1rem;
    line-height: 1.6;
  }

  hr {
    margin: 1.5rem 0;
  }
}

/* ----- GST / UDYAM / COPYRIGHT CENTER FIX ----- */
@media (max-width: 768px) {

  footer > p {
    display: block;
    width: 100%;
    text-align: center !important;
    font-size: 0.9rem;
  }
}


/* ================= MOBILE NAVBAR ONLY ================= */

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* MOBILE VIEW */
@media (max-width: 768px) {

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  }

  /* LOGO LEFT */
  .logo {
    margin-left: -9rem !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
    
  }

  .logo1 {
    margin-left: 0 !important;
  }

  /* HAMBURGER RIGHT */
  .hamburger {
    display: block;
    margin-right: -17rem;
    margin-top: -6rem;
    margin-bottom: 2rem;
  }

  /* HIDE NORMAL MENU */
  nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: none;
  }

  nav.active {
    display: block;
  }

  /* MENU ITEMS STRAIGHT LINE */
  .navbar {
    flex-direction: column;
    
    padding: 1rem 0;
  }

  .navbar li,
  .navbar a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    display: block;
  }

  /* RIGHT BUTTONS STACK */
  .header-right {
    display: none;
  }
}

/* ===== MOBILE NAV FIX (OVERLAY) ===== */

@media (max-width: 768px) {

  nav {
    position: fixed;              /* IMPORTANT */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;                /* FULL SCREEN */
    background: #ffffff;          /* SOLID BG */
    z-index: 9999;                /* SABSE UPAR */
    display: none;
    padding-top: 6rem;            /* header ke neeche */
  }

  nav.active {
    display: block;
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar li,
  .navbar a {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }
}



/* ===== NAVBAR LINKS (NO SIZE / LAYOUT CHANGE) ===== */

header nav a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover text color */
header nav a:hover {
  color: rgb(0, 184, 197) !important;
}

/* Underline animation */
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: rgb(0, 184, 197);
  transition: width 0.3s ease;
}

/* Hover underline */
header nav a:hover::after {
  width: 100%;
}

/* Active page underline */
header nav a.active::after {
  width: 100%;
}

/* ===== HEADER RIGHT (Login + Get Started) ===== */

.header-right a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Login hover */
.header-right a:hover {
  color: rgb(0, 184, 197);
}

/* Get Started hover (NO JUMP) */
.header-right a.yeah:hover {
  background-color: rgb(0, 150, 160);
  color: #fff;
}
