/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full-page background */
body {
  font-family: Arial, sans-serif;
  background: url('../assets/hero-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #14bff8;
}

/* Sections with transparent overlay for readability */
section {
  background-color: transparent;
  padding: 50px 20px;
}

/* Header / Navbar */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.phone-number {
  font-size: 0.95rem;
  font-weight: bold;
  color: #14bff8;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: hsla(170, 21%, 33%, 0.902);
  padding: 1rem 2rem;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 100px;
  height: 90px;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.navbar ul li a:hover {
  color: #ff5722;
}

/* ========== HAMBURGER MENU (hidden on desktop) ========== */
.menu-icon {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}


.btn {
  display: inline-block;
  background-color: #007bff; /* blue color */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ff8800; /* orange on hover */
}


/* Side Menu default */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  transition: 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(12, 11, 11, 0.9);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: hsl(234, 94%, 49%);
}

.hero h2 {
  font-size: 2rem;
  color: #ffffff;
}

/* About, Services, CTA, Contact, Footer — unchanged from yours */
.about {
  padding: 4rem 2rem;
  background: hsl(195, 4%, 21%);
  text-align: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.founder-img {
  width: 250px;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  color: #ffffff;
  text-align: left;
}

.about h2 {
  color: #14bff8;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1.6;
}

/* Services */
.services {
  padding: 4rem 2rem;
  background: #111;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #171616;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  max-width: 200px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
}

.card h3 {
  color: hsl(240, 97%, 50%);
  margin-bottom: 0.5rem;
}

.card p {
  color: #ddd;
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  background: hsl(216, 19%, 28%);
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid hsl(111, 94%, 49%);
  border-radius: 5px;
}

.contact button {
  padding: 1rem;
  background: #5108ed;
  color: hsl(30, 20%, 96%);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover {
  background: #e64a19;
}

/* CTA Section */
.cta {
  padding: 4rem 2rem;
  background: hsl(250, 13%, 12%);
  text-align: center;
  border-radius: 10px;
  margin: 3rem auto;
  max-width: 900px;
}

.cta h2 {
  font-size: 2.5rem;
  color: #2304f1;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #cfd4d6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #24c2ee;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.cta-buttons a:hover {
  transform: scale(1.05);
  background: hsl(137, 80%, 50%);
}

.cta-icon {
  width: 20px;
  height: 20px;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* ======================= MOBILE VIEW ======================= */
@media (max-width: 768px) {
  /* Mobile Typography - Optimized for phone screens */
  .hero h1 {
    font-size: 1.8rem; /* Reduced from 3rem */
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero h2 {
    font-size: 1.1rem; /* Reduced from 2rem */
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .about p {
    font-size: 1rem; /* Reduced from 1.7rem */
    line-height: 1.5;
  }

  .about h2 {
    font-size: 1.5rem; /* Reduced from 2rem */
  }

  .services h2 {
    font-size: 1.5rem;
  }

  .services h3 {
    font-size: 1.1rem;
  }

  .why-choose-us h2 {
    font-size: 1.5rem;
  }

  .why-choose-us p {
    font-size: 0.9rem;
  }

  .cta h2 {
    font-size: 1.6rem; /* Reduced from 2.5rem */
  }

  .cta p {
    font-size: 1rem; /* Reduced from 1.2rem */
  }

  /* Mobile Header/Navbar Optimization */
  header {
    padding: 0.8rem 1rem; /* Reduced padding */
  }

  .navbar-left {
    gap: 0.5rem; /* Reduced gap */
  }

  .logo {
    width: 70px; /* Smaller logo for mobile */
    height: 60px;
  }

  .site-title {
    font-size: 0.9rem; /* Reduced from 1.2rem */
  }

  .phone-number {
    font-size: 0.75rem; /* Reduced from 0.95rem */
  }

  /* Show hamburger */
  .menu-icon {
    display: block;
    font-size: 1.5rem; /* Slightly smaller */
  }

  /* Hide nav links by default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px; /* Slightly wider for better touch */
    width: 280px;
    height: 100%;
    background: rgba(0, 0, 0, 0.98); /* Darker for modern look */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 0 0 0; /* Top padding for close button */
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); /* Modern shadow */
  }

  /* When active */
  .nav-links.active {
    right: 0;
  }

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

  .nav-links li a, .nav-links li button {
    display: block;
    width: 100%;
    padding: 16px 30px; /* Larger touch targets */
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
  }

  .nav-links li a:hover, .nav-links li button:hover {
    color: #14bff8;
    background: rgba(20, 191, 248, 0.1); /* Subtle hover effect */
  }

  /* Modern close button */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem; /* Larger for touch */
    color: white;
    cursor: pointer;
    display: block;
    width: 40px; /* Touch-friendly size */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Mobile Section Spacing and Layout */
  section {
    padding: 2rem 1rem; /* Reduced from 50px 20px */
  }

  /* Hero Section Mobile Optimization */
  .hero {
    height: 100vh; /* Keep full height but optimize content */
    padding: 0 1rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.9); /* Slightly more opaque */
  }

  .btn {
    padding: 12px 24px; /* Larger touch target */
    font-size: 1rem;
    margin-top: 1rem;
  }

  /* About Section Mobile Layout */
  .about {
    padding: 2.5rem 1rem; /* Reduced padding */
  }

  .about-container {
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap */
    margin-top: 1.5rem;
  }

  .founder-img {
    width: 200px; /* Reduced from 250px */
    margin: 0 auto;
  }

  .about-text {
    text-align: center;
    width: 100%;
  }

  /* Services Section Mobile Layout */
  .services {
    padding: 2.5rem 1rem;
  }

  .service-cards {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 1.5rem; /* Reduced gap */
    margin-top: 1.5rem;
  }

  .card {
    padding: 1.2rem; /* Reduced padding */
  }

  .card img {
    height: 120px; /* Reduced height */
  }

  .card p {
    font-size: 0.9rem; /* Slightly smaller for mobile */
  }

  /* Contact Section Mobile Layout */
  .contact {
    padding: 2.5rem 1rem;
  }

  .contact form {
    max-width: 100%;
    gap: 0.8rem; /* Reduced gap */
  }

  .contact input,
  .contact textarea {
    padding: 12px 15px; /* Better touch targets */
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .contact button {
    padding: 14px 20px; /* Larger touch target */
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  /* CTA Section Mobile Layout */
  .cta {
    padding: 2.5rem 1rem;
    margin: 2rem 1rem; /* Reduced margins */
    border-radius: 8px;
  }

  .cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 0.8rem; /* Reduced gap */
    margin-top: 1.5rem;
  }

  .cta-buttons a {
    padding: 12px 20px; /* Larger touch targets */
    font-size: 0.95rem;
    justify-content: center;
  }

  /* Footer Mobile Optimization */
  footer {
    padding: 1.5rem 1rem; /* Reduced padding */
    font-size: 0.9rem;
  }

  /* Why Choose Us Section Mobile */
  .why-choose-us {
    padding: 2.5rem 1rem;
    height: auto; /* Remove fixed height for mobile */
    min-height: 60vh; /* Minimum height instead */
  }
}

/* ===================== */
/* EXTRA SMALL SCREENS (phones) */
/* ===================== */
@media (max-width: 480px) {
  /* Even smaller text for very small screens */
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.1;
  }
  
  .hero h2 {
    font-size: 1rem;
  }
  
  .about h2 {
    font-size: 1.3rem;
  }
  
  .services h2 {
    font-size: 1.3rem;
  }
  
  .services h3 {
    font-size: 1rem;
  }
  
  .why-choose-us h2 {
    font-size: 1.3rem;
  }
  
  .why-choose-us p {
    font-size: 0.85rem;
  }
  
  .cta h2 {
    font-size: 1.4rem;
  }
  
  .cta p {
    font-size: 0.9rem;
  }
  
  /* Smaller logo for very small screens */
  .logo {
    width: 60px;
    height: 50px;
  }
  
  .site-title {
    font-size: 0.8rem;
  }
  
  .phone-number {
    font-size: 0.7rem;
  }
  
  /* Reduce padding even more for very small screens */
  section {
    padding: 1.5rem 0.8rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  /* Smaller images for very small screens */
  .founder-img {
    width: 180px;
  }
  
  .card img {
    height: 100px;
  }
  
  /* Stack CTA buttons better on very small screens */
  .cta-buttons a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* ===================== */
/* TOUCH-FRIENDLY IMPROVEMENTS */
/* ===================== */

/* Smooth scrolling for better mobile experience */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}

/* Better tap highlights for mobile */
* {
  -webkit-tap-highlight-color: rgba(20, 191, 248, 0.3);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for content areas */
.hero-content,
.about-text,
.card p,
.cta p,
.why-choose-us p {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Better focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid #14bff8;
  outline-offset: 2px;
}

/* Improve image loading on mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Better mobile form styling */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===================== */
/* DESKTOP NAVIGATION STYLES */
/* ===================== */
@media (min-width: 769px) {
  .close-btn {
    display: none;
  }
  
  .menu-icon {
    display: none;
  }
  
  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: 25px;
    padding: 0;
    box-shadow: none;
  }
  
  .nav-links li a, .nav-links li button {
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
  }
}

/* ============================= */
/* Why Choose Us Section Styling */
/* ============================= */
.why-choose-us {
  padding: 4rem 2rem;
  background: fixed;
  text-align: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.why-choose-us h2 {
  color: #14bff8;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-choose-us p {
  color: hsl(0, 0%, 98%);
  font-size: 2rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* Mobile override for "Why Choose Us" — place at EOF so it wins */
@media (max-width: 768px) {
  .why-choose-us {
    height: auto !important;
    min-height: 0 !important;
    padding: 2rem 1rem;
    display: block;
    align-items: normal;
  }

  .why-choose-us h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.15;
  }

  .why-choose-us p {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 640px;
    padding: 0 0.75rem;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .why-choose-us h2 { font-size: 1.25rem; }
  .why-choose-us p  { font-size: 0.9rem; }
}
