:root {
  --black: #000;
  --white: #fff;
  --green: #8dc63f;
  --muted: #b7b7b7;
  --bg: #0a0a0a;
  --shadow: rgba(141,198,63,0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 10;
}

.nav img {
  height: 36px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav a:hover {
  opacity: 1;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: -2;
  transform: translateY(0px);
}

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(141,198,63,0.18), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 55%);
  z-index:-1;
}

.hero-content {
  z-index: 1;
}

.hero-media {
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0.06em;
}

.subtitle {
  color: var(--muted);
  max-width: 520px;
  margin-top: 1rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Hero media */
.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  transform: translateY(20px);
  opacity: 0;
  animation: mediaIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes mediaIn {
  to { transform: translateY(0); opacity: 1; }
}

.media-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(141,198,63,0.15), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-20px); opacity: 1; }
}

.youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* SECTIONS */
.section {
  padding: 5rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.section p {
  color: var(--muted);
  max-width: 700px;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(141,198,63,0.15);
}

.project-top {
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.project-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-media {
  padding: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* COMPANIES */
.companies {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.companies a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.companies a:hover {
  transform: translateY(-3px);
}

.companies img {
  height: 92px;
  max-width: 100%;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.companies img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

/* CONTACT */
.contact {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-form select {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  appearance: none;            /* Remove OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Focus state */
.contact-form select:focus {
  outline: none;
  border-color: var(--green);
  transform: translateY(-2px);
}

/* Placeholder option */
.contact-form select option[value=""] {
  color: rgba(255, 255, 255, 0.5);
}

/* Dropdown options */
.contact-form select option {
  background: #0a0a0a;
  color: var(--white);
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  padding: 3rem 2rem;
  background: rgba(0,0,0,0.8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

footer h4 {
  margin: 0 0 0.5rem 0;
}

footer a {
  color: var(--green);
  text-decoration: none;
}

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

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
}

.lightbox-content img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
}

#lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-media {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .project-buttons {
    justify-content: flex-start;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
