
   /*DOUBLE H CREATIVES - STYLE.CSS*/

:root {
  --ink: #0e0d0c;
  --dust: #f5f0e8;
  --warm: #f0ebe0;
  --gold: #c8a96e;
  --gold-dim: #a88a52;
  --mist: #bfb8ab;
  --flash: #e8dcc8;

  --section-gap: 7rem;
  --container: 1400px;
  --radius: 18px;

  --shadow:
    0 15px 40px rgba(0, 0, 0, 0.25);

  --transition: all 0.35s ease;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--dust);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

section {
  padding: var(--section-gap) 0;
}

.container {
  width: min(90%, var(--container));
  margin: auto;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.95;
  margin-top: 50px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: 2rem;
}

p {
  color: var(--mist);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title span {
  display: block;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.section-title h2 {
  color: var(--dust);
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: var(--transition);
  font-weight: 600;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-dim);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--dust);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--ink);
}

/* HEADER*/

.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  color: var(--dust);
}

.logo span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--gold);
}

.logo small {
  letter-spacing: 4px;
}

.nav ul {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--dust);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dust);
  font-size: 2rem;
  cursor: pointer;
}

/* HERO*/

.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.75)
    ),
    url("../images/hero.jpg");

  background-size: cover;
  background-position: center;
  position: relative;

  display: flex;
  align-items: center;
}

.hero-content {
  width: min(90%, 1400px);
  margin: auto;
  max-width: 900px;
}

.hero-subtitle {
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero p {
  margin: 2rem 0;
  max-width: 650px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ABOUT PREVIEW*/

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #171513;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  height: 280px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--gold);
}

/* PORTFOLIO*/

.portfolio-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(350px, 1fr));

  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.portfolio-item img {
  height: 450px;
  object-fit: cover;
  transition: 0.8s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      transparent,
      rgba(0,0,0,0.85)
    );

  display: flex;
  align-items: end;
  padding: 2rem;
}

.portfolio-overlay h3 {
  color: var(--dust);
}

/* WHY US */

.why-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  background: #171513;
}

.why-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

/* CTA */

.cta {
  background:
    linear-gradient(
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.75)
    ),
    url("../images/cta.jpg");

  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
}

/* FOOTER */

.footer {
  background: #090807;
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

  gap: 3rem;
}

.footer h3,
.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--mist);
}

.footer a:hover {
  color: var(--gold);
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* GALLERY PAGE */

.gallery {
  columns: 4 300px;
  gap: 1rem;
}

.gallery img {
  margin-bottom: 1rem;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
}

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

/* FORM STYLING*/

form {
  max-width: 800px;
  margin: auto;
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;

  background: #171513;
  border: 1px solid rgba(255,255,255,0.08);

  color: var(--dust);
  border-radius: 10px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

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

/* PAGE HERO */

.page-hero {
  height: 60vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background-size: cover;
  background-position: center;

  position: relative;
}

.page-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      rgba(0,0,0,0.6),
      rgba(0,0,0,0.7)
    );
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* SCROLL ANIMATIONS */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {

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

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 {
    font-size: 3.5rem;
  }

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

@media (max-width: 600px) {

  section {
    padding: 5rem 0;
  }

  h2 {
    font-size: 2.5rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* LIGHTBOX */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: .4s;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* MOBILE NAV */

.nav.mobile-active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--ink);
}

.nav.mobile-active ul {
  flex-direction: column;
  padding: 2rem;
}

/* CURSOR GLOW */

.cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;

  border-radius: 50%;

  background:
    radial-gradient(
      rgba(200,169,110,.08),
      transparent
    );

  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);

    color: var(--gold);

    font-size: 1.2rem;

    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--ink);

    transform: translateY(-5px);
}

.social-text {
    margin-top: 1rem;
    color: var(--mist);
}

.portfolio-filters{
    display:flex;
    gap:1rem;
    justify-content:center;
    flex-wrap:wrap;
    margin-bottom:3rem;
}

.filter-btn{
    background:transparent;
    border:1px solid var(--gold);
    color:var(--dust);
    padding:.8rem 1.5rem;
    cursor:pointer;
    transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
    background:var(--gold);
    color:var(--ink);
}