:root {
  --dark: #0D1B2A;
  --deep: #1B263B;
  --muted: #415A77;
  --light-slate: #778DA9;
  --cream: #E0E1DD;
  --white: #FFFFFF;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: var(--white);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
}

nav.scrolled {
  background: var(--deep);
}

nav .logo {
  font-weight: bold;
  font-size: 28px;
  color: var(--dark);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--muted);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 4px;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--deep), var(--muted));
  color: var(--white);
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-slate);
}

.btn {
  padding: 12px 28px;
  background: var(--muted);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 80px 50px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark);
  font-size: 2.5rem;
}

/* About Section */
#about .container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

#about p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Projects */
#projects .container {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  color: var(--deep);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-info p {
  color: var(--light-slate);
  font-size: 1rem;
  margin-bottom: 15px;
}

.project-info a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.project-info a:hover {
  color: var(--dark);
}

/* Footer */
footer {
  text-align: center;
  padding: 25px 50px;
  background: var(--deep);
  color: var(--cream);
  font-weight: 500;
}

/* HERO PARALLAX already works via JS modifying background-position */

/* SCROLL ANIMATIONS */
section, .project-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

section.animate, .project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* BUTTON HOVER / CARD ANIMATION */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* NAVBAR SCROLL EFFECT */
nav.scrolled {
  background: var(--deep);
  transition: background 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 70px;
    right: 50px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
  }

  nav ul.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

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

  .hero p {
    font-size: 1rem;
  }
}