/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Container for consistent width */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar styles */
.navbar {
  background: #ffffff;
  padding: 15px 0;
  height: 160px; /* tall enough for big logo */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0; /* remove extra margin */
  position: relative;
}

/* Logo container */
.logo {
  display: flex;
  align-items: center;
  max-width: 300px;
}

/* Logo image styles */
.logo img {
  height: 145px;
  width: auto;
  max-height: none;
  display: block;
  transition: height 0.3s ease;
}

/* About page specific styles */
body.about-page .logo img {
  height: 140px;
  /* Removed brightness filter to preserve original logo color */
  /* filter: brightness(0.9); */
}

body.about-page .navbar {
  height: 150px;
  padding: 10px 0;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0057a3;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
  z-index: 1100;
  position: relative;
}

/* Hamburger bars */
.hamburger span {
  display: block;
  width: 28px;
  height: 3.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animate hamburger into X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #0057a3;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #0057a3;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Hide nav links initially but keep flex for animation */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #111; /* darker background for techy vibe */
    position: absolute;
    top: 160px;
    right: 10px;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 87, 163, 0.7);
    width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: #eee;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.05em;
    z-index: 1050;
  }

  /* Show nav-links with animation when active */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Links style inside menu */
  .nav-links li a {
    color: #eee;
    font-size: 1.1rem;
    text-shadow: 0 0 5px #0057a3;
    transition: color 0.3s ease;
  }

  .nav-links li a:hover {
    color: #00bfff;
    text-shadow: 0 0 8px #00bfff;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }
}







    /* Hero Section */
.hero {
  background: #0057a3;
  color: white;
  text-align: center;
  padding: 100px 20px 80px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Sections */
.section {
  background: #fff;
}

.alt-bg {
  background: #eef2f5;
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Technologies Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tech-card {
  background: white;
  padding: 20px;
  flex: 1 1 30%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Grocerlink */
.grocerlink-demo {
  background: #ccc;
  padding: 60px;
  text-align: center;
  margin-top: 20px;
  border-radius: 8px;
}

 /* ===== Footer ===== */
footer {
  background: #0b1f33;
  color: #fff;
  padding: 40px 8% 20px 8%;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffeaa7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #6c5ce7;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    float: none;
    text-align: center;
    margin-top: 10px;
  }
  .nav-links li {
    display: block;
    margin: 10px 0;
  }

  .tech-grid {
    flex-direction: column;
  }
}
