* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #0d1016;
  --card: #171b22;
  --accent: #00a6ff;
  --accent2: #0077ff;
  --text: #ffffff;
  --muted: #aeb8c7;
  --border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
       NAVBAR
    ========================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.brand-text h2 {
  font-family: "Tajawal", sans-serif;
  font-size: 26px;
  line-height: 1;
  color: white;
  font-weight: 600;
}

.brand-text span {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav-links a {
  font-weight: 600;
  transition: 0.3s;
  color: var(--accent);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  background: linear-gradient(45deg, var(--accent), var(--accent2));
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 0 12px 25px rgba(0, 166, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0, 166, 255, 0.45);
}

/* =========================
       HERO
    ========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 20px 80px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.82)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=1974&auto=format&fit=crop")
      center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px;
  right: -200px;
  opacity: 0.12;
}

.hero-content {
  max-width: 1300px;
  margin: auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 60px;
  line-height: 1.05;
  margin-bottom: 25px;
  font-weight: 700;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 20px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.outline-btn {
  border: 2px solid var(--accent);
  padding: 13px 24px;
  border-radius: 10px;
  transition: 0.3s;
  font-weight: bold;
}

.outline-btn:hover {
  background: var(--accent);
}

.hero-card {
  background: rgba(23, 27, 34, 0.9);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-card img {
  width: 100%;
  max-width: 350px;
  margin: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 25px rgba(0, 166, 255, 0.25));
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.spec strong {
  color: white;
}

/* =========================
       GENERAL SECTION
    ========================== */

section {
  padding: 100px 20px;
}

.container {
  max-width: 1300px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 50px;
  margin-bottom: 18px;
}

.section-title p {
  color: var(--muted);
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
}

/* =========================
       SERVICES
    ========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid var(--border);
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--accent);
  top: -50px;
  right: -50px;
  border-radius: 50%;
  opacity: 0.08;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 166, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
  font-size: 55px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
}

/* =========================
       STATS
    ========================== */

.stats {
  background: linear-gradient(90deg, #111722, #0a0d13);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-box h2 {
  font-size: 60px;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-box p {
  color: var(--muted);
  font-size: 18px;
}

/* =========================
       PROJECTS
    ========================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.project img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: 0.5s;
}

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

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.overlay h3 {
  font-size: 28px;
}

/* =========================
       CTA
    ========================== */

.cta {
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.85)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=1974&auto=format&fit=crop")
      center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 {
  font-size: 58px;
  margin-bottom: 20px;
}

.cta p {
  max-width: 750px;
  margin: auto;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 35px;
  font-size: 18px;
}

/* =========================
       CONTACT
    ========================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: center;
}

.contact-info h3 {
  font-family: "Tajawal", sans-serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  margin-top: 30px;
}

.contact-list li {
  margin: 18px 0;
  font-size: 18px;
  color: var(--muted);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  background: #0f131b;
  color: white;
  border: 1px solid var(--border);
  font-size: 16px;
}

.contact-form textarea {
  min-height: 150px;
  resize: none;
}

.contact-form button {
  border: none;
  cursor: pointer;
  width: 100%;
}

/* =========================
       FOOTER
    ========================== */

footer {
  text-align: center;
  padding: 35px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: #090b0f;
}

/* =========================
       ANIMATION
    ========================== */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
       RESPONSIVE
    ========================== */

/* =========================
       HAMBURGER MENU
    ========================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 11, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 12px;
  transition: 0.25s;
  text-align: center;
  width: 80%;
}

.mobile-menu a:hover {
  background: rgba(0, 166, 255, 0.12);
  color: var(--accent);
}

.mobile-menu .btn {
  margin-top: 20px;
  width: 80%;
  text-align: center;
  font-size: 20px;
}

/* Hide hamburger on desktop */
@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-container .btn {
    display: none;
  }

  .hero-text h1 {
    font-size: 52px;
  }

  .section-title h2 {
    font-size: 40px;
  }

  .cta h2 {
    font-size: 42px;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 42px;
  }

  .brand-text h2 {
    font-size: 20px;
  }

  .brand img {
    width: 60px;
  }
}

.calculator-box {
  background: #161b22;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 10px;
  color: #9fb0c4;
  font-weight: bold;
}

.field input,
.field select {
  background: #0f1319;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
}

.results {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.result-card {
  background: #0f1319;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card h3 {
  margin-bottom: 15px;
  color: #9fb0c4;
}

.result-card h2 {
  color: #00a6ff;
  font-size: 42px;
}

.formula {
  margin-top: 50px;
  background: #111827;
  border-radius: 20px;
  padding: 30px;
  line-height: 1.9;
  color: #c6d0dc;
}

.formula h2 {
  margin-bottom: 20px;
  color: #00a6ff;
}

.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9fb0c4;
  margin-top: 80px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }

  .calculator-box {
    padding: 25px;
  }
}
/* =========================================================
   FUTURE UPGRADES
========================================================= */

.upgrades {
  margin-top: 10px;
}

.upgrades h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 20px;
}

.upgrade-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #b6c2d1;
  line-height: 1.8;
  font-size: 18px;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.upgrade-card {
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 35px 30px;
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.upgrade-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: #00a6ff;
  top: -60px;
  right: -60px;
  border-radius: 50%;
  opacity: 0.08;
}

.upgrade-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 166, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.upgrade-icon {
  font-size: 52px;
  margin-bottom: 20px;
}

.upgrade-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.upgrade-card p {
  color: #b6c2d1;
  line-height: 1.8;
}

.container-1 {
  max-width: 1200px;
  margin: 120px auto 5px auto;
  padding: 10px 20px;
}

.hero-1 {
  text-align: center;
  margin-bottom: 30px;
}

.hero-1 h1 {
  font-size: 55px;
  margin-bottom: 20px;
}

.hero-1 h1 span {
  color: #00a6ff;
}

.hero-1 p {
  color: #b6c2d1;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
  font-size: 18px;
}

/* ================= EXTRA CALCULATORS ================= */

.extra-calculators {
  margin-top: 20px;
  padding: 40px 20px;
}

.extra-calculators h2 {
  text-align: center;
  font-size: 45px;
  margin-bottom: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.calc-card {
  background: #161b22;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.calc-card h3 {
  margin-bottom: 20px;
  color: #00a6ff;
  font-size: 24px;
}

.calc-card label {
  display: block;
  margin-top: 15px;
  margin-bottom: 8px;
  color: #9fb0c4;
  font-weight: bold;
}

.calc-card input,
.calc-card select {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1319;
  color: white;
}

.result {
  margin-top: 25px;
  text-align: center;
  padding: 20px;
  background: #0f1319;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result p {
  color: #9fb0c4;
}

.result h2 {
  color: #00a6ff;
  font-size: 36px;
}
