/* =========================
   Global Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f9fb;
  color: #111;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* =========================
   NAVBAR (Updated)
========================= */
nav {
  background: #ffffff;                  /* white top bar */
  padding: 15px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
  box-shadow: 0 1px 0 rgba(2,6,23,0.04);
}

nav.scrolled {
  background: rgba(255,255,255,0.86);   /* transparent on scroll */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(2,6,23,0.06);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

nav ul li a {
  color: #0b1220 !important;             /* dark text */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #0066ff !important;             /* accent */
}

/* =========================
   HEADER with background poster
========================= */
header {
  background: url("https://github.com/urcneeraj/urcrobotics.github.io/blob/main/pt7.jpg?raw=true")
              no-repeat center center / cover;
  color: white;
  text-align: center;
  padding: 160px 20px 160px;
  position: relative;
  overflow: hidden;
}

/* Soft overlay */
header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);   /* improves text readability */
}

/* Header text */
header h1 {
  font-size: 3.4rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

header p {
  font-size: 1.3rem;
  color: #e0e0e0;
  z-index: 2;
  position: relative;
}

/* =========================
   SECTIONS
========================= */
section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #003399;
  position: relative;
}

h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #00c6ff;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* About */
.about {
  text-align: center;
  background-color: #eef3ff;
  border-radius: 15px;
  padding: 60px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* =========================
   PRODUCTS
========================= */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.product {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 330px;
  text-align: center;
  transition: all 0.35s ease;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product:hover img {
  transform: scale(1.05);
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
  background-color: #002c77;
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-top: 5px solid #00c6ff;
}

.contact a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #ffffff;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
  background: #001a40;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 { font-size: 2.4rem; }
  header p { font-size: 1.1rem; }
  .product { width: 90%; }
}
