:root {
  --navy-blue: #0D1B2A;
  --midnight-blue: #1B263B;
  --steel-blue: #415A77;
  --dusty-blue: #778DA9;
  --soft-grey: #E0E1DD;

  --font-heading: 'EB Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--soft-grey);
  background-color: var(--navy-blue);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  position: fixed;
  top: 5.5rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background-color: var(--soft-grey);
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--dusty-blue);
}

@media (max-width: 480px) {
  .theme-toggle {
    top: 1.2rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.navbar {
  position: sticky;
  top: 0;
  background-color: var(--steel-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 998;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--soft-grey);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--dusty-blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--soft-grey);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--soft-grey);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 2rem;
    background-color: var(--steel-blue);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    display: none;
  }

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

header.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  color: var(--soft-grey);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6);
}

body.light .hero-video {
  filter: brightness(0.9);
}

header.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.6);
  z-index: -1;
}

body.light header.hero::before {
  background: rgba(224, 225, 221, 0.6);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--soft-grey);
}

.hero-text p {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: var(--soft-grey);
}

.btn {
  background-color: var(--soft-grey);
  color: var(--navy-blue);
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--dusty-blue);
  color: white;
}

.hero-image {
  background: conic-gradient(from 180deg at 50% 50%, var(--steel-blue), var(--midnight-blue));
  padding: 5px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--soft-grey);
  display: block;
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--dusty-blue);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image img {
  width: 300px;
  max-width: 90vw;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.section {
  padding: 4rem 2rem;
  background-color: var(--midnight-blue);
  transition: background-color 0.3s ease;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--soft-grey);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section p,
.section a {
  color: var(--dusty-blue);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project {
  background-color: var(--steel-blue);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s;
  text-align: center;
}

.project:hover {
  transform: translateY(-5px);
}

.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project a:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project h3 {
  font-family: var(--font-heading);
  color: var(--soft-grey);
  margin-bottom: 0.5rem;
}

.project p {
  color: var(--dusty-blue);
}

.project ul {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--soft-grey);
}

#contact p {
  margin-bottom: 1rem;
}

footer {
  background-color: var(--navy-blue);
  text-align: center;
  padding: 2rem;
  color: var(--soft-grey);
  font-size: 0.9rem;
}

body.light {
  background-color: var(--soft-grey);
  color: var(--navy-blue);
}

body.light .section {
  background-color: #dbe2e7;
}

body.light .section h2,
body.light .section p,
body.light .section a {
  color: var(--navy-blue);
}

body.light .project {
  background-color: #cbd7e5;
}

body.light .project h3,
body.light .project p,
body.light .project ul {
  color: var(--navy-blue);
}

body.light footer {
  background-color: var(--dusty-blue);
  color: var(--navy-blue);
}

body.light .btn {
  background-color: var(--navy-blue);
  color: var(--soft-grey);
}

body.light .btn:hover {
  background-color: var(--steel-blue);
}
