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

:root {
  /* Color Palette - Premium Dark Mode */
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-tertiary: #1b1b1e;
  
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  
  --nav-bg: rgba(10, 10, 11, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1400px;
  --container-padding: 5%;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 80px; /* offset for sticky header */
}

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

a:hover {
  color: var(--accent-color);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* --- NAVIGATION HEADER (Glassmorphism) --- */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  transition: all 0.3s ease;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 30px;
}

/* Nav Links Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
}

.nav-link.active, .nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6);
  transform: scale(1.05); /* Avoid edge artifacts during subtle pan animation if added */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,11,0) 0%, var(--bg-primary) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1s ease forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -2px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  color: var(--bg-primary);
}


/* --- CSS GRID GALLERY (The Core Component) --- */
.gallery-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--container-padding);
}

.gallery-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 300px;
  gap: 20px;
}

/* Gallery Item Card */
.grid-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
  transform: translateZ(0); /* Force HW acceleration */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.6s ease;
  filter: brightness(0.8) grayscale(20%);
}

.grid-item:hover .grid-img {
  filter: brightness(1) grayscale(0%);
  transform: scale(1.08);
}

.grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.grid-item:hover .grid-overlay {
  transform: translateY(0);
  opacity: 1;
}

.grid-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.5px;
}


/* --- FOOTER --- */
.main-footer {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}

/* Animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ARTICLE COMPONENTS --- */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px var(--container-padding);
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.article-divider {
  border: 0;
  height: 1px;
  background: var(--glass-border);
  margin: 3rem 0;
}

.email-quote {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.letter-body {
  background: var(--bg-primary);
}

/* Preloader Removal - We don't need clunky preloaders with static sites */
#preloader { display: none !important; }

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 130px;
  }
  .glass-header {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  .nav-menu {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .gallery-container {
    padding: 40px 5%;
  }
}

/* =============== */
/*  CUSTOM LIGHTBOX  */
/* =============== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close, .lightbox-next, .lightbox-prev {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.lightbox-close:hover, .lightbox-next:hover, .lightbox-prev:hover {
    color: white;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 40px;
    font-size: 4rem;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}
