/* =========================
   Variables & Reset
========================= */
:root {
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --dark: #0d1b2a;
  --light: #f4f7fb;
  --overlay: rgba(0,50,100,0.55);
  --text-dark: #333;
  --text-light: #fff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   Navbar
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: rgba(13, 27, 42, 0.85); /* semi-transparent dark navy */
  color: var(--text-light);
  padding: 10px 30px;
  backdrop-filter: blur(10px); /* adds glass blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); /* subtle depth shadow */
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Brand (Logo + Name) Group */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.nav-logo img {
  width: 130px;
  height: auto;
  display: block;
}

/* Company Name (no stroke, smooth gradient text) */
.company-name {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;                /* Slightly larger */
  font-weight: 800;               /* Bolder */
  letter-spacing: 2px;
  color: transparent;
  background: linear-gradient(90deg, #00aaff, #007bff, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin: 0;
  user-select: none;
  text-shadow: 0 0 4px rgba(0, 150, 255, 0.3); /* soft glow */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.company-name:hover {
  transform: scale(1.07);
  text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
}

/* Hover Glow */
.company-name:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
}

/* Filled text gradient inside */
.company-name span {
  background: linear-gradient(90deg, #00aaff, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover glow */
.company-name:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
}

/* Left: Brand section (logo + name) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo {
  width: 80px;
  height: auto;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* Center: Nav links */
.nav-links {
  display: flex;
  gap: 25px;
  flex-grow: 1;
  justify-content: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Right: Button */
.nav-btn {
  margin-left: auto;
  margin-right: 10px;
}

/* Hamburger menu (hidden by default) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}

/* =========================
   Buttons
========================= */
.btn {
  background: var(--primary);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: var(--dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    display: none;
    padding: 20px;
    justify-content: flex-start;
    border-top: 2px solid var(--primary);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-btn {
    /* margin: 50px auto 0; */
    text-align: center;
    display: block;
  }
}
/* =========================
   Hero
========================= */
.hero {
  height: 100vh;
  background: url('../img/netw2.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}

/* Zoom Animation */
@keyframes zoomHero {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.hero {
  animation: zoomHero 20s infinite alternate ease-in-out;
}

/* Fade-in Up Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.5s ease-out forwards;
}

.hero-content img.logo {
  width: 220px;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-content .btn {
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 1.1s;
}

/* =========================
   About
========================= */
.about {
  background: #f9f9f9;
  text-align: center;
  padding: 60px 20px;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.about p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   Services
========================= */
.services {
  background: #fff;
  text-align: center;
  padding: 60px 20px;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  text-decoration: none; /* remove underline */
  color: inherit; /* keep text color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card p {
  font-size: 1rem;
  color: #444;
}

/* =========================
   Contact
========================= */
.contact {
  background: var(--light);
  padding: 60px 20px;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: #003366;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
}

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

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-info p {
  margin: 12px 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.contact-info a {
  color: #003366;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Contact Flexbox for Business Hours + Map */
.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* Each side takes equal width */
.contact-flex > div {
  flex: 1;
  min-width: 280px;
}

/* Icons and Headings */
.business-hours h3 i,
.hours-column h4 i,
.map h3 i {
  color: #007BFF;
  margin-right: 8px;
}

/* Adjust heading spacing */
.map h3 {
  font-size: 1.4rem;
  color: #0056b3;
  margin-bottom: 15px;
  text-align: center;
}

/* Equal columns */
.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-flex > div {
  flex: 1;
  min-width: 280px;
}

/* Business Hours Box */
.business-hours {
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 25px;
}

.business-hours h3 {
  font-size: 1.6rem;
  color: #0056b3;
  margin-bottom: 20px;
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.hours-column h4 {
  font-size: 1.2rem;
  color: #007BFF;
  margin-bottom: 10px;
}

.hours-column ul {
  list-style: none;
  padding: 0;
}

.hours-column li {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

/* Map Styling */
.map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #fff;
  padding: 25px;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-flex {
    flex-direction: column;
  }

  .business-hours, .map {
    width: 100%;
  }
}

/* =========================
   Footer
========================= */
footer {
  background: var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 15px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links {
    flex-direction: column;
    background: var(--dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
    padding: 20px;
  }

  .nav-links.show { display: flex; }

 /* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breadcrumb Animation */
.breadcrumb {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #555;
}

/* Back to Services Button Animation */
.back-btn-container {
  margin-top: 40px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}


/* Back to Services Button Container */
.back-btn-container {
  margin-top: 40px;
  text-align: center;
}

  .menu-toggle { display: block; }

  .contact .container { grid-template-columns: 1fr; }
  .contact-card { margin-bottom: 30px; }
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 12px;
}
.form-message {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: center;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  opacity: 1;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  opacity: 1;
}
/* Flip Card Container */
.flip-card {
  background: transparent;
  width: 300px;
  height: 220px;
  perspective: 1000px;
  margin: 20px auto;
}

/* Inner Card */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1s;
  transform-style: preserve-3d;
}

/* Auto spin after hover for 5s */
.flip-card:hover .flip-card-inner {
  animation: spinCard 5s linear 1;
}

@keyframes spinCard {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(0deg); }
}

/* Front and Back Faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: all 0.4s ease;
}

/* Front Style */
.flip-card-front {
  background: var(--light);
  color: var(--dark);
}

/* Back Style */
.flip-card-back {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: rotateY(180deg);
}

/* Optional: button inside */
.flip-card-back .btn {
  margin-top: 10px;
  background: white;
  color: var(--primary-dark);
}

.flip-card-back .btn:hover {
  background: var(--primary-dark);
  color: white;
}