/* ==============================
   GLOBAL RESET & VARIABLES
============================== */
:root {
  --bg-dark: #0b0b12;
  --bg-card: #151525;
  --primary: #7f5cff;
  --accent: #ff4ecd;
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,11,18,0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 25px;
  font-weight: 500;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), #00e5ff);
  border-radius: 30px;
  font-weight: 600;
}

/* ==============================
   HAMBURGER MENU
============================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: var(--bg-dark);
    padding: 40px 20px;
    flex-direction: column;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 15px 0;
  }
}

/* ==============================
   HERO
============================== */
.hero {
  min-height: 100vh;
  padding: 140px 60px 100px;
  display: flex;
  align-items: center;
  position: relative;

  background-image: url("../images/austin-poon-JO_S6ewBqAk-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(127,92,255,0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(0,229,255,0.35), transparent 45%);
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn.secondary {
  background: #fff;
  color: #000;
}

.btn.outline {
  border: 1px solid #fff;
}

.btn.large {
  padding: 16px 34px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(127,92,255,0.45);
}

/* ==============================
   SECTIONS
============================== */
section {
  padding: 100px 60px;
}

h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
}

/* ==============================
   CARDS (SERVICES / TEAM / TESTIMONIALS)
============================== */
.services-grid,
.projects-grid {
  display: grid;
  gap: 30px;
}
.service-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 3px solid rgba(127, 92, 255, 0.6);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card,
.project-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(127,92,255,0.45);
}

/* ==============================
   CTA
============================== */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 40px;
  margin: 0 60px 80px;
  padding: 100px 40px;
}

/* ==============================
   FOOTER
============================== */
footer {
  text-align: center;
  padding: 30px;
  opacity: 0.65;
}

/* ==============================
   WHATSAPP FLOAT
============================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 2000;
}

/* ==============================
   PAGE LOADER & TRANSITION
============================== */
#page-loader,
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 6000;
}

#page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

#page-transition {
  transform: translateY(100%);
  transition: transform 0.6s ease;
}

#page-transition.active {
  transform: translateY(0);
}

/* ==============================
   SCROLL ANIMATIONS
============================== */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .navbar {
    padding: 18px 25px;
  }

  .hero {
    padding: 120px 25px 80px;
  }

  section {
    padding: 80px 25px;
  }

  .cta {
    margin: 0 25px 60px;
  }
}
