/* --- Basic Reset --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* --- Navigation Bar Styling --- */
nav {
  background-color: white;
  padding: 16px 40px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  color: black;
  text-decoration: none;
  margin-right: 20px;
  font-weight: bold;
}

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

.nav-left {
  display: flex;
  align-items: center;
}

.nav-title {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

/* Text on top of hero image */
.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  text-align: left;
  color: white;
}

.hero .hero-name {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 0;
  color: white;
}

.hero .hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 14px 0 0 0;
  color: white;
  max-width: 600px;
  line-height: 1.5;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

/* --- About Section Base Styling --- */
.about {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 160px auto 0;
  max-width: 1200px;
  padding: 0 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  color: #333;
}

/* --- Portfolio Links Layout --- */
.portfolio-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 180px auto 0;
  max-width: 1200px;
  padding: 0 40px;
}

/* --- Portfolio Card Base Styling --- */
.portfolio-card {
  position: relative;
  display: block;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card h2 {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  color: black;             /* black text */
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: none;        /* no drop shadow */
}

.portfolio-card:hover img {
  transform: scale(1.05) translateY(-6px);
}

.portfolio-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Contact Section --- */
.contact-section {
  max-width: 700px;
  margin: 180px auto 120px auto;
  text-align: center;
  padding: 0 40px;
}

.contact-section h2 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  align-items: center;   /* center children horizontally */
}

.contact-form label {
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  margin: 0 auto;
}

.contact-btn {
  display: block;
  margin: 20px auto 0 auto;
  width: fit-content;
  padding: 14px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background-color: #333;
}

/* --- Global Footer Styling --- */
.site-footer {
  margin-top: 120px;
  padding: 30px 40px;
  text-align: center;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.site-footer p {
  margin: 0;
}

/* --- Page Header (Magazines / Ads pages) --- */
.page-header {
  max-width: 1200px;
  margin: 140px auto 60px auto;
  padding: 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 auto;
}

/* --- Magazine Gallery – single column list --- */
.magazine-gallery {
  max-width: 600px;
  margin: 0 auto 160px auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.magazine-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

.magazine-item {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Ads Page Spacing --- */

.ads-page .magazine-item {
  max-width: 1200px;
}

.ads-page .magazine-item img {
  width: 100%;
}

.ads-page .magazine-gallery {
  max-width: 1000px;   /* or 1100px, depending on preference */
  padding: 0 20px;     /* optional: smaller side padding */
}

/* --- Show More button for galleries --- */
.show-more-btn {
  display: block;
  margin: 40px auto 120px auto;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  background-color: black;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;

  /* Mobile browser resets */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

.show-more-btn:hover {
  background-color: #333;
  transform: translateY(-1px);
}

/* --- Desktop layout (wider screens) --- */
@media (min-width: 900px) {
  .about {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .about-text p {
    text-align: left;
    margin: 0;
  }

  .about-image img {
    max-width: 420px;
  }

  .portfolio-links {
    flex-direction: row;
  }
}

/* --- Mobile & Tablet layout tweaks --- */
@media (max-width: 768px) {
  /* Nav: stack title on top, links below */
  nav {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-left {
    margin-bottom: 8px;
  }

  .nav-title {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .nav-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-right a {
    font-size: 0.9rem;
  }

  /* Hero: shrink text a bit and keep it readable */
  .hero {
    height: 60vh;
  }

  .hero-text {
    bottom: 24px;
    left: 20px;
    right: 20px;
  }

  .hero .hero-name {
    font-size: 2.6rem;
    letter-spacing: 2px;
  }

  .hero .hero-tagline {
    font-size: 0.95rem;
    max-width: 90%;
  }

  /* Page header spacing on inner pages */
  .page-header {
    margin: 100px auto 40px auto;
    padding: 0 20px;
  }

  .page-header h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  /* Smaller page title ONLY on Ads page (mobile only) */
  .ads-page .page-header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
  }

  /* Gallery padding tighter on mobile */
  .magazine-gallery {
    padding: 0 20px;
    margin-bottom: 120px;
  }

  /* Ensure portfolio link text is black on mobile too */
  .portfolio-card h2 {
    color: black;
    text-shadow: none;
  }
}

/* --- Extra small screens --- */
@media (max-width: 600px) {
  .contact-section {
    padding: 0 20px;
  }

  .contact-form input,
  .contact-form textarea {
    max-width: 100%;
  }
}

/* FORCE portfolio link text to be black on ALL devices */
.portfolio-links .portfolio-card h2 {
  color: black !important;
  text-shadow: none !important;
}

/* Remove shadows on ads page images on all devices */
.ads-page .magazine-item img {
  box-shadow: none !important;
}