:root {
  --primary: orangeRed;
  --bg-dark: #0a0a0a;
  --bg-light: #ffffff;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

nav ul {
  display: flex;
  gap: 28px;
}

nav ul li {
  list-style: none;
}
nav ul li a {
  color: var(--text-white);
  text-decoration: none;
}

nav ul li:hover {
  color: var(--primary);
  cursor: pointer;
}

nav .logo {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.5rem;
}

nav .contact-button {
    padding: 5px 10px;
    background-color: var(--primary);
    border-radius: 8px;
}

/* hero section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  background-color: #1b1b1c;
  background-image: url("https://images.unsplash.com/photo-1583454110551-21f2fa2afe61?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-repeat: no-repeat;
  background-size: cover;
}

#hero .hero-image-container{
    position: relative;
}

#hero .hero-image-container img {
    height: 100vh;
}

#hero .hero-gradient-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom right, #0c0c12 30%, transparent 100%);
}

#hero .slide span {
  color: var(--primary);
}

#hero a {
  color: var(--text-white);
  text-decoration: none;
}

.hero-slider {
  position: relative;
  z-index: 10;
  width: 80%;
  max-width: 900px;
  margin-left: 10%;
}

.slide {
  display: none;
  animation: fadeIn 0.8s ease-out;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#hero h1 {
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary);
  color: var(--text-white);
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--primary);
}

.btn:hover {
  background: transparent;
  color: var(--primary);
}

/* about section */
#about {
  padding: 100px 10%;
  background: var(--bg-dark);
  text-align: center;
  background-color: #0c0c12;
}

#about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#typewriter {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.5 rem;
  color: var(--primary);
  min-height: 1.6rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Gallery section styling */
.gallery {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #0c0c12;
    display: flex;
    justify-content: center;
}

.gallery-hero {
    position: absolute;
    inset: 0;
    z-index: 10; /* Stays on top initially */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-hero img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px;
    height: 100vh;
    align-content: center;
    opacity: 0; /* Hidden until scroll */
    transform: scale(0.5); /* Slight zoom out effect during reveal */
}

.gallery-item img{
    border-radius: 10px;
}

/* contact section */
.contact {
  padding: 100px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #0c0c12;
}

.contact-info h2 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  background: #222;
  border: 1px solid #333;
  color: white;
  border-radius: 4px;
  outline: none;
}

/* --- FOOTER --- */
footer {
  padding: 50px 10%;
  position: relative;
  /* background: var(--bg-dark); */
}

.layer-footer {
    position: absolute;
  inset: 0;       /* Covers the entire footer */
  z-index: -1;    /* Pushes it BEHIND the text */
  
  /* Background properties */
  background-image: 
    radial-gradient(circle at center, transparent 30%, black 100%),
    url("https://images.unsplash.com/photo-1673872967335-1440705f7b2e?q=80&w=1170&auto=format&fit=crop");
  background-size: cover;
  background-position: center;

  /* 3. The Grayscale: Applied ONLY to this layer */
  filter: grayscale(100%);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  z-index: 2;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.9rem;
}

.copy {
  color: #444;
  font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .hero h1 { font-size: 3rem; }
            .contact { grid-template-columns: 1fr; }
            .nav-links { display: none; }
        }