/* ---------- Base Styles ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */      
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(20, 24, 32, 0.95), rgba(34, 40, 50, 0.95));
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.logo-img {
  height: 40px;   /* adjust as needed */
  width: auto;
  margin-right: 10px;
}

/* Default: show both */
.logo-text {
  display: inline;
}

/* On mobile (max-width 768px = tablets & phones) */
@media (max-width: 768px) {
  .logo-text {
    display: none; /* hide text */
  }
}



/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff4d4d;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ff4d4d;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger (Hidden on Desktop) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 100%;
    background: rgba(17, 17, 17, 0.97);
    flex-direction: column;
    align-items: start;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Overlay when menu is open */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }
}
/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: rgba(17, 17, 17, 0.97);
    flex-direction: column;
    align-items: start;
    padding: 60px 20px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

body.menu-open::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(90deg, rgba(20, 24, 32, 0.95), rgba(34, 40, 50, 0.95));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.hero-text {
  flex: 1 1 500px;
  text-align: left;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 700px;
  white-space: normal; /* ✅ Allow wrapping on mobile */
  overflow: visible;
  animation: none; /* ✅ Disable typewriter on small screens */
  border-right: none;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero button:hover {
  background-color: #e63939;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}
/* mobile screen  */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px; /* More vertical space */
    min-height: auto; /*Let content dictate height */
    padding-bottom: 30px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 25px;
  }

  .hero-text {
    text-align: center;
    flex: 1 1 250px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem); /* Fluid scaling */
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 20px auto; /* Center text */
  }

  .hero button {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    padding: 12px 22px;
  }

  .hero-image img {
    max-width: 80%; /* Prevent image from being too large */
    height: auto;
  }
}



/* ---------- Services Section ---------- */
.services {
  padding: 60px 20px;
  background-color: #121212;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
}

.services h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #e63939; /* highlight color */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Card Styles */
.service-card {
  display: block;
  background: #1e1e1e; /* darker card background */
  padding: 25px;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: #2a2a2a; /* subtle hover darkening */
  animation: glowPulse 1.5s infinite alternate; /* neon pulsing */
}

/* Neon Glow Animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 12px 24px rgba(0,0,0,0.6),
                0 0 10px rgba(230, 57, 57, 0.6),
                0 0 20px rgba(230, 57, 57, 0.4);
  }
  100% {
    box-shadow: 0 12px 24px rgba(0,0,0,0.6),
                0 0 20px rgba(230, 57, 57, 0.9),
                0 0 40px rgba(230, 57, 57, 0.7);
  }
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #e63939; /* highlight headings */
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc; /* softer gray text */
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .services h2 {
    font-size: 2rem;
  }
  .service-card {
    padding: 20px;
  }
}


/* ---------- About Section ---------- */
.about {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #ff4d4d;
  display: block;
  margin: 16px auto 0;
  border-radius: 2px;
}

.about-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* ---------- Contact Section ---------- */
.contact {
  background-color: #121212;
  color: #e0e0e0;
  padding: 80px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.contact h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #ff4d4d;
  display: block;
  margin: 16px auto 0;
  border-radius: 2px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.contact-info {
  flex: 1;
  font-size: 1.1rem;
  text-align: left;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #1f1f1f;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  padding: 12px;
  background: #ff4d4d;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #e63b3b;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background-color: #0d0d0d;
  color: #aaa;
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #888;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}
