/* ===== Global Style ===== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500&display=swap");

:root {
  --bg: #1b1b1b;
  --text: #eaeaea;
  --accent: #a67c52;
  --secondary: #3a3a3a;
  --hover: #c9a875;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  line-height: 1.8;
  font-size: 18px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--hover);
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-bottom: 1px solid var(--secondary);
  background: rgba(27, 27, 27, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.logo {
  font-size: 1.8rem;
  letter-spacing: 3px;
  font-weight: 600;
}
nav a {
  margin-left: 2.5rem;
  font-size: 1.1rem;
  font-weight: 400;
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 2s ease;
  position: relative;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero p {
  color: #ddd;
  font-size: 1.4rem;
  max-width: 700px;
}

/* ===== Sections ===== */
section {
  padding: 7rem 4rem;
  max-width: 1200px;
  margin: auto;
}
section p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: #d0d0d0;
}
section.fade {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  aspect-ratio: 4/3;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(166, 124, 82, 0.3);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.08);
}
.project-card h3 {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1.6rem;
  backdrop-filter: blur(5px);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ===== Project Gallery ===== */
.projects-grid img {
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
  padding: 7rem 4rem;
}
.contact h1 {
  margin-bottom: 3rem;
}
.contact a {
  display: block;
  font-size: 1.4rem;
  margin: 1.5rem 0;
  font-weight: 400;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--secondary);
  font-size: 1rem;
  color: #aaa;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

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

  nav a {
    margin-left: 0;
    font-size: 1rem;
  }

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

  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  section {
    padding: 4rem 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card h3 {
    font-size: 1.3rem;
    padding: 0.6rem 1.2rem;
  }
}
