/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #0f172a;
  z-index: 1000;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 15px 15px; /* UPDATED: slightly slimmer */
}

.nav-logo a {
  font-size: 1.4rem; /* UPDATED: balanced logo size */
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.nav-logo span {
  color: #38bdf8;
}

/* ---------- NAV LINKS ---------- */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.4rem; /* UPDATED */
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem; /* UPDATED: cross-platform readable */
  padding: 0.25rem 0.15rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* ---------- TOGGLE ---------- */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 90px 20px 70px;
  background: linear-gradient(180deg, #020617, #0f172a);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: #38bdf8;
  margin-bottom: 20px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: #cbd5f5;
}

/* ---------- BUTTONS ---------- */
.buttons a,
.hero-buttons a {
  display: inline-block;
  margin: 8px;
  padding: 11px 24px;
  background: #38bdf8;
  color: #020617;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buttons a:hover,
.hero-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

/* ---------- SECTIONS ---------- */
section {
  padding: 10px 20px 25px 20px; /* top right bottom left */
  max-width: 900px;
  margin: auto;
}

section h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
}

/* ---------- LIST ---------- */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: #020617;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #020617;
  margin-top: 60px;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ================= MOBILE NAV ================= */
@media (max-width: 1200px) {
  .nav-links {
    position: absolute;
    top: 56px; /* UPDATED: matches reduced navbar */
    right: 12px;
    background: #020617;
    flex-direction: column;
    width: 210px;
    padding: 0.8rem;
    display: none;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0.4rem;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }
}

/* ---------- SCROLL SHADOW ---------- */
.navbar.scroll-shadow {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
}

.project {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT */
.content {
    flex: 1;
}

/* RIGHT */
.video {
    flex: 1;
}

.video iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Buttons (basic) */
.buttons {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    margin-right: 10px;
    background: #4da3ff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.btn.secondary {
    background: #333;
}

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

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 0px 20px;
}

.contact-card {
    flex: 1;
}

.contact-profile {
    flex: 0 0 260px;
    display: flex;
    padding-bottom: 60px;
    justify-content: center;
}

.contact-profile img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #1f2933;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .contact-profile img {
        width: 200px;
        height: 200px;
    }
}
