@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --primary: #00e5ff;
  --primary-hover: #00b3cc;
  --secondary: #6c5ce7;
  --bg-dark: #0a0e17;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-main: #f0f2f5;
  --text-muted: #a0aec0;
  --border-light: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(10, 14, 23, 0.85);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================= */
/* Scrollbar */
/* ========================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ========================= */
/* Typography */
/* ========================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

/* ========================= */
/* Sticky Navbar & Hamburger */
/* ========================= */
nav {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

nav h2 {
  font-size: 24px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================= */
/* Hero Section */
/* ========================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: url("images/hero.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.7), var(--bg-dark));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.hero p {
  font-size: 22px;
  color: #fff;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

/* ========================= */
/* Sections Core */
/* ========================= */
section {
  padding: 100px 5%;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: #fff;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--primary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* Services Grid (Existing & New) */
/* ========================= */
.services, .features-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-box, .feature-box, .team-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-box:hover, .feature-box:hover, .team-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}

.service-box img, .feature-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 25px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.service-box:hover img, .feature-box:hover img {
  transform: scale(1.1) rotate(5deg);
}

.service-box h3, .feature-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* ========================= */
/* About Section */
/* ========================= */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.about > div {
  flex: 1;
  min-width: 300px;
}

.about img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.about img:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.about-extra {
  width: 150px !important;
  display: block;
  margin: 30px auto;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 40px;
}

.mv-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.mv-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.mv-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

/* ========================= */
/* New Sections (Projects, Process) */
/* ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  group: hover;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-info {
  opacity: 1;
}

.project-info h3 {
  color: var(--primary);
  margin-bottom: 5px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #000;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* ========================= */
/* SG Image Gallery */
/* ========================= */
.sg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.sg-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.sg-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
}

.process-bg {
  background: url("https://images.unsplash.com/photo-1516192518150-0d8fee5425e3?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat fixed;
  position: relative;
  padding: 100px 5%;
}

.process-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
}

.process-bg > * {
  position: relative;
  z-index: 2;
}

/* ========================= */
/* Contact & Services BG */
/* ========================= */
.contact-bg {
  background: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat fixed;
  position: relative;
  text-align: center;
  padding: 100px 5%;
}

.services-bg {
  background: url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat fixed;
  position: relative;
  padding: 100px 5%;
}

.contact-bg::before, .services-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(5px);
}

.contact-bg > *, .services-bg > * {
  position: relative;
  z-index: 2;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.contact-info {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

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

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: #fff;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

footer {
  text-align: center;
  padding: 30px;
  background: #05080f;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

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

html {
  scroll-behavior: smooth;
}

/* ========================= */
/* Mobile Responsive */
/* ========================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  nav ul.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero h1 { font-size: 40px; }
  .section-title { font-size: 32px; }
  
  .mission-vision, .contact-wrapper {
    grid-template-columns: 1fr;
  }
}