/* ============================================
   MAIN STYLES — Christopher Ireland Creative
   Inspired by minimal portfolio / gallery aesthetic
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent: #c8a96e;
  --accent-hover: #d4b87e;
  --border: rgba(255,255,255,0.06);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 72px;
  --container-max: 1400px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.6) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 900px;
}
.hero-name {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.6s forwards;
}
.hero-sub {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.9s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.hero-scroll-line {
  display: block;
  width: 1px; height: 50px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--text-primary);
  animation: scrollLine 2s ease infinite;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
  position: relative;
}
.section--dark {
  background: var(--bg-secondary);
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  font-weight: 400;
}
.section-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.9;
}

/* Two-column layout */
.section-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-cols img {
  border-radius: 2px;
  width: 100%;
  height: auto;
}

/* Full-width image section */
.section-fullimg {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.section-fullimg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.section-fullimg .overlay-text {
  position: absolute;
  bottom: 3rem; left: 3rem;
  z-index: 2;
}
.section-fullimg .overlay-text h3 {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== WORKS GRID ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.work-card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.work-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #222;
}
.work-card-body {
  padding: 1.5rem;
}
.work-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.work-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}
.work-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.75rem;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  .section { padding: 4rem 0; }
  .section-cols { grid-template-columns: 1fr; gap: 2rem; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-fullimg .overlay-text { left: 1.5rem; bottom: 2rem; }
  .section-fullimg .overlay-text h3 { font-size: 1.4rem; }
}