:root {
  --primary: #00d4ff;
  --secondary: #00ff9d;
  --bg-dark: #05070d;
  --bg-soft: #0b111b;
  --bg-elev: #111827;
  --text-light: #e6f1ff;
  --text-muted: #93a4b6;
  --border-soft: rgba(255, 255, 255, 0.08);
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(1200px circle at 10% -10%, rgba(0, 212, 255, 0.15), transparent 60%),
    radial-gradient(900px circle at 90% 10%, rgba(0, 255, 157, 0.12), transparent 60%),
    var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-circle {
  font-family: var(--font-display);
}

section {
  position: relative;
  padding: 90px 0;
  scroll-margin-top: 120px;
}

.text-primary {
  color: var(--primary) !important;
}

/* ===== HEADER ===== */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 12, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.logo-circle {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-top: 10px;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.logo-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.25));
}

.logo-circle:hover {
  transform: scale(1.06);
}

.nav-link {
  color: #cdd9e5;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

header + section.hero {
  margin-top: 120px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 120px 0 80px;
  background:
    radial-gradient(1000px circle at 15% 0%, rgba(0, 212, 255, 0.2), transparent 60%),
    radial-gradient(900px circle at 85% 10%, rgba(0, 255, 157, 0.16), transparent 60%),
    url("/assets/banner2.png") center/cover no-repeat;
  background-blend-mode: screen, screen, normal;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.65), rgba(5, 10, 20, 0.95));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.25;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  animation: heroReveal 0.9s ease-out both;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.8rem;
}

.hero-cta .btn {
  min-width: 220px;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: none;
  color: #04111a;
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.22);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 212, 255, 0.35);
}

.btn-outline-primary {
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--text-light);
  background: rgba(0, 212, 255, 0.08);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #04111a;
  border-color: transparent;
}

/* ===== ABOUT ===== */
#about {
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.95), rgba(5, 7, 13, 1));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.about-photo {
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.about-photo img {
  transition: transform 0.4s ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}

/* ===== TECH ===== */
.tech-section {
  position: relative;
  height: 520px;
  background:
    radial-gradient(900px circle at 20% 10%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(800px circle at 80% 10%, rgba(0, 255, 157, 0.1), transparent 60%),
    url("/assets/image.jpeg") center/cover no-repeat;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.tech-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.75), rgba(4, 10, 20, 0.95));
  z-index: 1;
}

.tech-section .container {
  position: relative;
  z-index: 2;
}

.tech-title {
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}

.tech-row {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-top: 24px;
}

.scroll-content {
  display: inline-flex;
  align-items: center;
  animation: scroll-left 30s linear infinite;
}

.scroll-content img {
  width: 58px;
  margin: 0 22px;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.35));
  opacity: 0.9;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== PROJECT CARDS ===== */
#projects {
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(7, 10, 16, 1));
}

.services-section {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(6, 10, 18, 1));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.service-card {
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid var(--border-soft);
  color: var(--text-light);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 212, 255, 0.16);
}

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

.project-card {
  background: rgba(11, 18, 28, 0.82);
  border: 1px solid var(--border-soft);
  color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.16);
}

.project-card strong {
  color: var(--secondary);
  font-weight: 600;
}

/* ===== CONTACT ===== */
#contact {
  background: linear-gradient(180deg, rgba(6, 10, 18, 1), rgba(5, 7, 13, 1));
  border-top: 1px solid var(--border-soft);
}

.contact-form .form-control {
  background: rgba(10, 16, 27, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text-light);
}

.contact-form .form-control::placeholder {
  color: rgba(230, 241, 255, 0.5);
}

.contact-form .form-control:focus {
  border-color: rgba(0, 255, 157, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 157, 0.2);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  font-size: 1.8rem;
  border-radius: 50%;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER ===== */
footer {
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.18), transparent 70%),
    linear-gradient(135deg, #060b16, #0b0f1a);
  color: var(--text-light);
  padding: 60px 0 20px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.footer-brand p {
  color: #cbd5e1;
  line-height: 1.8;
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 700px;
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.footer-brand strong {
  color: #fff;
  font-weight: 600;
}

.footer-contact h5 {
  color: var(--secondary);
  font-weight: 700;
}

.footer-contact a {
  color: #dbe4f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-contact i {
  font-size: 1.2rem;
  margin-right: 10px;
  color: #cfd9e6;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-contact i:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa6b2;
}

@media (max-width: 768px) {
  header + section.hero {
    margin-top: 110px;
  }

  .nav-link {
    letter-spacing: 0.6px;
  }

  .hero {
    padding: 110px 0 60px;
  }

  section {
    padding: 70px 0;
  }

  .tech-section {
    height: 460px;
  }

  .scroll-content img {
    width: 48px;
    margin: 0 16px;
  }
}
