@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --color-bg: #050505;
  --color-gold: #D4AF37;
  --color-gold-light: #F2D06B;
  --color-gold-dark: #AA8C2C;
  --color-text: #F5F5F5;
  --color-text-muted: #A0A0A0;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 215, 0, 0.2);
  --font-main: 'Outfit', sans-serif;
  --container-width: 1200px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* Utilities */
.text-gold {
  color: var(--color-gold);
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% auto;
  animation: shine 3s linear infinite;
  color: transparent;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.section {
  padding: 100px 40px;
  position: relative;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-gold);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  position: relative;
  opacity: 0.8;
}

.nav-links a.active,
.nav-links a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s;
}

/* Hero Section (Home) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 100%;
  height: 120%;
  /* Extra height for parallax movement */
  transform: translate(-50%, 0);
  z-index: -1;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 49%) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  /* Increased to ensure it's above video but below content */
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
  background: transparent;
}

.btn:hover {
  background: var(--color-gold);
  color: #000;
}

.page-header {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

/* Disable parallax on mobile for performance */
@media (max-width: 768px) {
  .page-header {
    background-attachment: scroll;
    height: 40vh;
  }
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

/* Work / Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  /* Square for 3-col grid */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #111;
  display: block;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  filter: brightness(0.7);
  /* Slightly darker initially to show text */
}

.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.2) 60%,
      rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 1;
  /* Always visible */
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.project-card:hover img {
  transform: scale(1.15);
  /* Significant zoom on hover */
  filter: brightness(0.4);
  /* Significantly darker on hover for contrast */
}

.project-card:hover .project-info {
  background: linear-gradient(to top,
      rgba(212, 175, 55, 0.2) 0%,
      /* Subtle gold tint on hover */
      rgba(0, 0, 0, 0.8) 100%);
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #fff;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-info p {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-info h3 {
  color: var(--color-gold-light);
  transform: scale(1.05);
  /* Slight text pop */
}

/* Team / People */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.team-card {
  text-align: center;
}

.team-img-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-card:hover .team-img {
  transform: scale(1.1);
}

.team-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.team-role {
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: block;
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

/* About / Services Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: var(--glass-bg);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.service-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
  outline: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    height: calc(100vh - 70px);
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .header-title {
    font-size: 2.5rem;
  }
}

/* Project Detail Page */
.project-detail-hero {
  height: 70vh;
}

.project-content {
  max-width: 900px;
  margin: 0 auto;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 40px;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}