/* =========================================================
   TechnoStar Infotech – Final Production CSS
   Theme: Modern UI + Backward Compatibility
========================================================= */

:root {
  /* Brand Colors */
  --primary: #0b2c5f;
  --primary-dark: #07162f;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --bg-light: #f8fafc;
  --text-dark: #020617;
  --text-gray: #64748b;
  --border: #e2e8f0;
  --gradient-main: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--primary-dark); font-weight: 700; }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; width: 90%; margin: 0 auto; }
.section { padding: 80px 0; }
.text-center { text-align: center; }

/* ================= 2. BUTTONS ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; gap: 8px; }
.btn-primary { background: var(--gradient-main); color: white; box-shadow: 0 4px 15px rgba(11, 44, 95, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(11, 44, 95, 0.4); }
.btn-secondary { background: white; color: var(--primary); border: 1px solid var(--border); }
.btn-whatsapp { background: #25D366; color: white; }

/* ================= 3. HEADER & LOGO FIX ================= */
.top-bar { background: var(--primary-dark); color: #c7ddff; padding: 10px 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: space-between; }

.main-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 10px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; }

/* Brand Styling Updated */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { width: 50px; height: auto; }
.brand-text h1 { font-size: 1.4rem; line-height: 1.1; margin: 0; color: var(--primary); }
.brand-text p { font-size: 0.75rem; color: var(--text-gray); margin: 0; font-weight: 500; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { color: var(--text-dark); font-weight: 500; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent); transition: 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-menu .btn-nav { background: var(--primary); color: white; padding: 8px 20px; border-radius: 6px; font-size: 0.9rem; }
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--primary); }

/* ================= 4. HERO SECTION ================= */
.hero-section { padding: 60px 0 80px; background: white; position: relative; overflow: hidden; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.badge-pill { background: var(--accent-soft); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; padding-top: 25px; border-top: 1px solid var(--border); }
.stat-item strong { display: block; font-size: 1.8rem; color: var(--primary); line-height: 1; }
.floating-img { width: 100%; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ================= 5. CARDS & PROCESS ================= */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.glass-card { background: white; padding: 40px 30px; border-radius: 20px; border: 1px solid var(--border); transition: 0.3s; position: relative; }
.glass-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: var(--accent); }
.icon-box { font-size: 2.5rem; margin-bottom: 20px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); border-radius: 16px; }
.link-arrow { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; }

/* Process Steps Detail */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.step-card-detail { background: white; padding: 30px; border-radius: 16px; text-align: center; border: 1px solid var(--border); transition: 0.3s; position: relative; }
.step-card-detail:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.step-num { position: absolute; top: 15px; right: 15px; font-size: 2.5rem; font-weight: 800; color: rgba(0,0,0,0.05); }
.step-icon { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }

/* ================= 6. LOCATION & MAPS ================= */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: white; border-radius: 24px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.location-info .address-text { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 20px; }
.contact-rows p { margin-bottom: 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.map-frame-shop iframe { border-radius: 16px; }
.wide-map-container iframe { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* ================= 7. FOOTER ================= */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 50px 0; border-top: 4px solid var(--accent); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-col h3 { color: white; margin-bottom: 10px; }

/* ================= 8. FLOATING WA ================= */
.float-wa { position: fixed; width: 60px; height: 60px; bottom: 25px; right: 25px; background-color: #25d366; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999; }
.float-wa:hover { transform: scale(1.1); }

/* =========================================================
   9. LEGACY SUPPORT (IMPORTANT FOR OTHER PAGES)
   Ye code hatana mat, warna baaki pages toot jayenge.
========================================================= */

/* Old Hero Class Support */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 100px 0; text-align: center; }
.hero h1 { color: white; font-size: 2.5rem; margin-bottom: 15px; }
.hero p { color: #dbeafe; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* Old Service Cards Support */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; margin-top: 40px; }
.service-card { background: white; border-radius: 26px; padding: 40px 34px; text-align: center; box-shadow: 0 22px 46px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.service-card h3 { color: var(--primary); margin-bottom: 10px; }

/* Old Button Classes Support */
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: 10px 25px; border-radius: 50px; }
.btn-outline:hover { background: var(--accent); color: white; }

/* ================= 10. RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .cards-grid, .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-menu { display: none; } 
  .mobile-toggle { display: block; }
  .location-grid { grid-template-columns: 1fr; padding: 25px; }
  .cta-buttons { flex-direction: column; }
}


/* --- Location Section Fixes --- */

/* Address Text Styling */
.address-box {
  margin-bottom: 25px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.contact-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Button Layout Fix */
.cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Agar screen choti ho to niche aa jaye */
  gap: 12px;
  margin-top: 25px;
}

/* New 'Get Direction' Button Style */
.btn-direction {
  background: white;
  color: #ea4335; /* Google Maps Red color */
  border: 2px solid #ea4335;
  font-weight: 700;
}

.btn-direction:hover {
  background: #ea4335;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

/* Mobile Responsive Fix for Buttons */
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column; /* Mobile pe buttons ek ke niche ek ayenge */
    width: 100%;
  }
  
  .btn {
    width: 100%; /* Mobile pe full width button */
    justify-content: center;
  }
}


/* --- MOBILE MENU & BUTTONS FIX (Add to style.css) --- */

@media (max-width: 768px) {
  /* 1. Fix for 3 Buttons (Chat, Call, Direction) */
  .cta-buttons {
    display: flex;
    flex-direction: column; /* Buttons ko ek ke niche ek layega */
    gap: 15px;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%; /* Button full width lega */
    justify-content: center;
  }

  /* 2. Mobile Menu Dropdown Fix */
  .nav-menu {
    display: none; /* Pehle chupayega */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary);
  }

  /* Javascript is class ko add karega tab menu dikhega */
  .nav-menu.active {
    display: flex; 
  }
}

/* ================= NEW MENU STYLES (Clean & Premium) ================= */

/* 1. All Links Styling (Mobile & Desktop) */
.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px; /* Thoda space diya taaki button jaisa feel aye */
  border-radius: 8px; /* Gol kinare */
  transition: all 0.3s ease;
  position: relative;
}

/* 2. Remove the old Underline effect */
.nav-link::after {
  content: none !important; 
  display: none !important;
}

/* 3. NEW ACTIVE STATE (Soft Blue Background pill) */
.nav-link.active {
  background-color: rgba(56, 189, 248, 0.15); /* Light Blue BG */
  color: var(--primary) !important; /* Dark Blue Text */
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1); /* Halka sa border border */
}

/* 4. Hover Effect for other links */
.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.03); /* Halka grey hover */
  color: var(--primary);
}

/* 5. Mobile Menu Fixes */
@media (max-width: 768px) {
  .nav-menu {
    gap: 10px; /* Mobile me thoda gap kam */
    padding: 15px;
  }
  
  .nav-link {
    display: block;
    width: 100%; /* Mobile me full width */
    text-align: left;
  }
}

/* --- FIX: WhatsApp Hero Button (Green Outline) --- */
.hero-btns .btn-whatsapp-hero {
  background: white !important;
  border: 2px solid #25D366 !important; /* Green Border */
  color: #25D366 !important; /* Green Text */
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-btns .btn-whatsapp-hero:hover {
  background: #25D366 !important; /* Hover par Solid Green */
  color: white !important;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* --- FIX: Ensure 'Get Direction' Button is Visible on Mobile --- */
@media (max-width: 768px) {
  .cta-buttons .btn-direction {
    display: inline-flex !important; /* Force visibility */
    width: 100%; /* Make it full width like other buttons */
    justify-content: center; /* Center the text */
    margin-top: 10px; /* Add spacing if needed */
  }
}
/* --- FIX: Custom Button Styles --- */

/* 1. WhatsApp Hero Button (Green Outline Style) */
.btn-whatsapp-hero {
  background-color: white !important;
  color: #25D366 !important;
  border: 2px solid #25D366 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp-hero:hover {
  background-color: #25D366 !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

/* 2. Get Direction Button (Red Outline Style) */
.btn-direction {
  background-color: white !important;
  color: #ea4335 !important; /* Google Red */
  border: 2px solid #ea4335 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px; /* Thoda chota padding taaki fit ho */
  border-radius: 50px; /* Pill Shape */
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center; /* Text center for mobile */
}

.btn-direction:hover {
  background-color: #ea4335 !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
  transform: translateY(-2px);
}

/* Mobile Fix for Get Direction Button */
@media (max-width: 768px) {
  .btn-direction {
    width: 100%;
    margin-top: 10px;
  }
}
