/* =========================
  COLOR VARIABLES
========================= */
:root {
  --primary: #0367FA;
  --secondary: #06D1F9;
  --accent1: #F6DC49;
  --accent2: #FD8506;
  --white: #fff;
  --black: #111;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* =========================
  GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--accent1) rgba(255,255,255,0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
}

/* =========================
  HEADER & NAVIGATION
========================= */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
}

nav {
  background: transparent;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styles */
.logo-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: transparent;
  padding: 0.5rem;
  transition: background-color 0.3s, width 0.3s, height 0.3s;
}
.logo-container.dark-bg {
  background-color: var(--black);
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.logo span {
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--accent1);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.4s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
  HERO SECTION
========================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: url('https://picsum.photos/1600/900?tech') no-repeat center/cover;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, var(--accent1), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin: 1.2rem 0;
  font-size: 1.2rem;
}
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  border-radius: 50px;
  color: var(--black);
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(253, 133, 6, 0.7);
}

/* =========================
  SECTIONS & HEADINGS
========================= */
section {
  padding: 4rem 2rem;
  width: 100%;
  text-align: center;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  background: #1B2A34;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section backgrounds */
#services {
  background: linear-gradient(var(--secondary), var(--primary));
}
#products {
  background: linear-gradient(var(--primary), var(--secondary));
}

/* =========================
  CARDS & GLASS EFFECTS
========================= */
/* ABOUT SECTION */
.about-section {
  padding: 5rem 2rem;
  background: #f8f9fa; /* light background */
  color: #111;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* Left side - image with organic mask */
.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Right side - text */
.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-overlay {
    font-size: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

.glass-card {
  backdrop-filter: blur(12px);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
#about-card {
  background: linear-gradient(var(--secondary), var(--primary));
  color: var(--black);
  max-width: 100%;
  padding: 2rem;
  text-align: center;
}
.glass-card.about {
  transform: none !important;
  box-shadow: none !important;
  max-width: 1000px;
  text-align: center;
  padding: 2rem;
}
.glass-card:not(.about):hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(6, 209, 249, 0.4);
}

/* Card grid */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  width: 100%;
  padding: 0 2rem;
}
.card {
  background: rgba(30,30,30,0.9);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 300px;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--accent1);
}
.card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #ddd;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(6, 209, 249, 0.3);
}

/* =========================
  FOOTER
========================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left,
.footer-right {
  flex: 1 1 300px;
  text-align: center;
}
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.footer-left p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-right h3 {
  margin-bottom: 1rem;
  color: var(--accent1);
  text-align: left;
}
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start; /* align top for multi-line */
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;       /* ✅ allow wrapping */
  text-align: left;      /* ✅ left align multi-line text */
  word-break: break-word; /* ✅ force break if it's too long */
}
.footer-contact li span {
  flex: 1;              /* take remaining space */
  word-break: break-word; /* wrap long text */
  text-align: left;     /* keep text aligned */
}
.footer-contact li i {
  color: var(--accent1);
  min-width: 20px;
  text-align: center;
  margin-top: 3px; /* keeps icon aligned with first line */
}
.footer-contact i {
  color: var(--accent1);
  min-width: 20px;
  text-align: center;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-socials a {
  color: var(--accent1);
  margin-right: 0.8rem;
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.footer-socials a:hover {
  transform: scale(1.2);
}
hr {
  margin: 2rem 0;
  border: 0.5px solid #333;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* =========================
  SCROLLBAR STYLES
========================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* =========================
  RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
  .cards-container {
   grid-template-columns: repeat(2, 1fr);
   padding: 0 1rem;
  }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  body { font-size: 0.9rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.9rem; }
  .btn {
   padding: 0.7rem 1.5rem;
   font-size: 0.9rem;
  }
  .logo { font-size: 1.5rem; }
  .cards-container {
   grid-template-columns: 1fr;
   padding: 0 1rem;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }

  /* Mobile nav styles */
  /* Mobile nav styles */
.nav-links {
    flex-direction: column;
    position: fixed; /* keep fixed */
    top: 65px;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 0 0 0 12px;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 65px);
    overflow-y: auto; /* scroll inside menu */
    pointer-events: none; /* default: not clickable, won’t block scroll */
}

/* Only activate pointer events on menu links */
.nav-links.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto; /* only clickable when open */
}

  .hamburger { display: flex; }
  .nav-links a {
   transform: translateX(20px);
   opacity: 0;
   transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .nav-links.active a {
   transform: translateX(0);
   opacity: 1;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 1.3rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.9rem; }
}
/* Larger cards and tighter layout on laptops/desktops */
@media (min-width: 1025px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr); /* still 3 per row */
    gap: 1.2rem; /* reduce gap between cards */
    padding: 0 3rem; /* give breathing room on sides */
  }

  .card {
    max-width: 360px; /* increase card size */
    height: auto;
  }
  .card img {
    height: 240px; /* slightly taller images */
  }
}
