html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ================= ROOT DESIGN SYSTEM ================= */
:root {
  --bg: #0b1220;
  --bg-soft: #0f3250;
  --text: #ffffff;
  --text-muted: #b8c7d9;
  --accent: #1d96a1;
  --card: rgba(255,255,255,0.06);
  --shadow: 0 0 25px rgba(29,150,161,0.25);
}

/* LIGHT MODE (IMPROVED READABILITY) */
body.light {
  --bg: #f5f7fb;
  --bg-soft: #e9eef5;
  --text: #0b1220;
  --text-muted: #3a4a5a;
  --card: #ffffff;
  --shadow: 0 8px 25px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(15, 50, 80, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

/* ================= NAV LINKS (NOW BUTTON STYLE) ================= */
.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  padding: 8px 14px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);

  transition: all 0.25s ease;
  display: inline-block;
}

.nav-links a:hover {
  background: linear-gradient(90deg, var(--accent), #4fd1c5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(29,150,161,0.3);
  border-color: var(--accent);
}

/* ================= NAV ACTIONS ================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= HAMBURGER ================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

/* ================= MOBILE NAV ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: var(--bg-soft);
    padding: 15px;
    border-radius: 14px;
    display: none;
    width: 220px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
  }
}

/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 10%;
  gap: 60px;
}

.hero-left img {
  width: 360px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(29,150,161,0.3);
}

.hero-right h1 {
  font-size: 52px;
}

.hero-right h2 {
  color: var(--accent);
  margin: 10px 0;
  font-weight: 500;
}

.hero-right p {
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ================= SECTIONS ================= */
.section {
  padding: 90px 10%;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 20px;
  position: relative;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent);
  display: block;
  margin-top: 8px;
  border-radius: 5px;
}

.section.dark {
  background: var(--bg-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.grid {
  width: 100%;
  max-width: 100%;
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: 14px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* ================= CONTACT ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

input, textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--card);
  color: var(--text);
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* ================= FLOATING BUTTONS ================= */
.whatsapp-btn,
.top-btn {
  position: fixed;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
}

.whatsapp-btn {
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
}

.top-btn {
  bottom: 85px;
  right: 20px;
  background: var(--accent);
  color: white;
  display: none;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 30px;
  background: var(--bg-soft);
  color: var(--text-muted);
  margin-top: 50px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 120px 20px;
    text-align: center;
  }

  .hero-left img {
    width: 80%;
    max-width: 300px;
  }

  .hero-right {
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.btn, button {
  white-space: nowrap;
}

/* Make project cards clickable without breaking design */
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}