:root {
  --bg: #000;
  --fg: #fff;
  --accent: white;
  --gray: #aaa;
  --card: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  background: black;
  color: white!important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 999;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 0.8rem;
  color: white!important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white!important;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white!important;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px; /* extra space for fixed header */
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  z-index: 1;
  color: white!important;
  
}

.hero-content h2 {
  font-size: 3.2rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white!important;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 400;
  color: white!important;
  margin-top: 0.5rem;
}

.hero-line {
  width: 120px;
  height: 4px;
  background: white!important;
  margin: 1.5rem auto 0;
  border-radius: 2px;
  color: white!important;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: white!important;
  border: 2px solid white!important;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.project-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  scroll-margin-top: 100px; /* for anchor link offset from header */
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

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

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    width: 100%;
    padding: 1rem 2rem;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.5rem 0;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}
/* Light mode support */
body.light {
  --bg: #fff;
  --fg: #000;
  --accent: #000;
  --gray: #555;
  --card: #f2f2f2;
}

body.light nav a {
  color: var(--gray);
}
body.light nav a:hover {
  color: var(--accent);
}

.dark-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--accent);
}

nav button.dark-toggle {
  padding: 0;
  margin-left: auto;
}

input, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 6px;
  background: #1c1c1c;
  color: white;
  font-size: 1rem;
}

body.light input,
body.light textarea {
  background: #eaeaea;
  color: #000;
}

form button.btn {
  width: 100%;
}

.project-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
