/*
Theme Name: Olanrewaju Tejuoso Portfolio
Theme URI: https://olanrewajutejuoso.com
Author: Antigravity Custom Theme
Author URI: https://olanrewajutejuoso.com
Description: A custom dynamic WordPress theme for Olanrewaju Tejuoso's portfolio.
Version: 2.0.2
Text Domain: tejuoso
*/

:root {
  --canvas: #d8d8d8;
  --ink: #121212;
  --muted: #8e8e8e;
  --accent: #d23b25;
  --panel: rgba(244, 244, 244, 0.9);
  --panel-strong: rgba(248, 248, 248, 0.95);
  --font-display: 'Archivo Black', sans-serif;
  --font-nav: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Serif 4', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- GLOBAL IMMERSIVE DESIGN --- */
body {
  background: #d8d8d8;
  color: #121212;
  font-family: var(--font-body);
  line-height: 1.45;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('olanrewaju_background_opt.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.site-shell {
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Floating Minimal Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2.5rem 4rem 0;
  background: transparent;
  display: flex;
  justify-content: center;
}

.page-kicker { display: none; }

.site-nav {
  background: transparent;
  border: none;
  width: 100%;
}

.site-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}

.site-nav a {
  border: none;
  background: transparent;
  font-family: var(--font-nav);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  padding: 0.5rem 0;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

/* Global Stage */
.stage, .home-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  border: none;
  background: transparent;
  overflow: visible;
}

.content-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.page-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #111;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid #111;
  padding-bottom: 1rem;
  width: 100%;
  text-transform: uppercase;
}

/* --- HOME PAGE STAGE --- */
.home-stage {
  padding: 1.15rem 1.2rem 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 155px); /* Ensures it takes up the full screen minus the header */
}

/* --- HOME PAGE HERO --- */
.home-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(320px, 1fr);
  align-items: end;
  gap: 2rem;
  margin-top: 0;
  z-index: 10;
}

.hero-visual {
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(20%) contrast(110%);
  mix-blend-mode: multiply;
  opacity: 0.9;
  margin: 0 auto;
  animation: revealImage 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content {
  padding: 0 4rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid #111;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-location { font-family: var(--font-nav); font-size: 0.9rem; letter-spacing: 0.15em; font-weight: 600; color: #444; }
.hero-tagline { font-family: var(--font-body); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.hero-quote { max-width: 45ch; font-family: var(--font-body); font-size: 1.35rem; line-height: 1.4; color: #333; }

@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes revealImage { 0% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0.9; transform: scale(1); } }
.name-line, .hero-location, .hero-tagline, .hero-quote { opacity: 0; animation: slideUpFade 0.8s forwards; }

/* --- BIOGRAPHY --- */
.rich-text { max-width: 900px; margin: 0 auto; }
.lead-text { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.4; margin-bottom: 2rem; border-left: 4px solid var(--accent); padding-left: 1.5rem; }
.rich-text p:not(.lead-text) { font-size: 1.25rem; color: #333; margin-bottom: 1.5rem; }

@media (min-width: 1024px) {
  .rich-text { column-count: 2; column-gap: 4rem; column-rule: 1px solid #ccc; }
  .lead-text { column-span: all; margin-bottom: 3rem !important; }
}

/* --- EXHIBITIONS --- */
.exhibition-group { margin-bottom: 5rem; }
.exhibition-group h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1.5rem; border-bottom: 2px solid #111; display: inline-block; padding-bottom: 0.5rem; }
.exhibition-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.exhibition-list li { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid #111; align-items: baseline; transition: background 0.3s ease; font-family: var(--font-body); font-size: 1.2rem; }
.exhibition-list li:hover { background: rgba(255,255,255, 0.4); padding-left: 1rem; }

/* --- PROJECTS --- */
.projects-layout { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.project-nav { position: sticky; top: 8rem; border-right: 1px solid #111; padding-right: 2rem; }
.project-nav h2, .project-nav h3 { font-family: var(--font-display); text-transform: uppercase; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.project-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.project-nav a { display: block; padding: 0.5rem 0; font-family: var(--font-nav); text-transform: uppercase; color: #666; transition: all 0.3s; }
.project-nav a:hover { color: var(--accent); transform: translateX(10px); }
.project-detail { border-bottom: 4px solid #111; padding-bottom: 4rem; margin-bottom: 4rem; }
.project-detail h2 { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; text-transform: uppercase; }
.project-detail .meta { background: #111; color: #d8d8d8; padding: 0.2rem 0.6rem; font-family: var(--font-nav); text-transform: uppercase; display: inline-block; margin-bottom: 2rem; }
.project-detail p { font-size: 1.15rem; margin-bottom: 1rem; line-height: 1.6; }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gallery-trigger { background: transparent; border: none; overflow: hidden; position: relative; cursor: pointer; display: flex; flex-direction: column; }
.gallery-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(100%) contrast(120%); transition: all 0.5s ease; }
.gallery-trigger:hover .gallery-thumb { filter: grayscale(0%) contrast(100%); transform: scale(1.05); }
.gallery-title { font-family: var(--font-nav); text-transform: uppercase; font-size: 1.1rem; font-weight: bold; margin-top: 1rem; transition: color 0.3s; }
.gallery-year { font-family: var(--font-nav); color: #666; font-size: 0.9rem; }
.gallery-trigger:hover .gallery-title { color: var(--accent); }

/* --- VLOGS --- */
.vlog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 2rem; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 16px; margin-bottom: 1.2rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2); transition: transform 0.3s; cursor: pointer; overflow: hidden; }
.video-wrapper:hover { transform: translateY(-5px); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; border: 0; }
.video-cover { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter 0.4s; z-index: 1; }
.video-wrapper:hover .video-cover { filter: grayscale(0%); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(255,255,255,0.9); border-radius: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.play-btn::after { content: ''; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 18px solid #111; margin-left: 4px; }
.video-wrapper:hover .play-btn { background: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.video-wrapper:hover .play-btn::after { border-left-color: #fff; }
.vlog-title { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.vlog-note { font-family: var(--font-nav); color: var(--accent); font-weight: bold; text-transform: uppercase; }

/* --- CONTACT --- */
.contact-layout { display: grid; grid-template-columns: 350px 1fr; gap: 4rem; align-items: start; }
.contact-panel, .form-panel { background: transparent; border: none; padding: 0; }
.contact-panel p { font-size: 1.4rem; font-family: var(--font-body); margin-bottom: 1.5rem; }
.contact-form label { font-family: var(--font-nav); font-size: 0.85rem; color: #666; text-transform: uppercase; display: block; margin-top: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; background: transparent; border: none; border-bottom: 2px solid #666; border-radius: 0; padding: 1rem 0; font-size: 1.5rem; font-family: var(--font-body); transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.submit-btn { background: #111; color: #fff; border: none; padding: 1rem 3rem; font-family: var(--font-nav); font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2rem; width: 100%; cursor: pointer; transition: background 0.3s; }
.submit-btn:hover { background: var(--accent); }

/* --- LIGHTBOX (Global) --- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.95); display: none; padding: 2rem; }
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox-panel { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; background: transparent; color: #fff; border: none; font-size: 1.2rem; cursor: pointer; text-transform: uppercase; font-family: var(--font-nav); }
.lightbox-meta { color: #fff; text-align: center; margin-bottom: 1rem; }
.lightbox-meta h2 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.lightbox-meta p { font-family: var(--font-nav); font-size: 1rem; opacity: 0.9; }
.lightbox-figure img { max-height: 65vh; object-fit: contain; }
.lightbox-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 2rem; padding: 0.5rem 1rem; cursor: pointer; transition: background 0.3s; }
.lightbox-nav-btn:hover { background: rgba(255,255,255,0.4); }
.prev-btn { left: -3rem; }
.next-btn { right: -3rem; }

/* =======================================================================
   MOBILE ADAPTATIONS & HAMBURGER
   ======================================================================= */
   
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1000;
}
.hamburger-line { display: block; width: 28px; height: 3px; margin: 5px auto; background-color: #111; transition: all 0.3s ease; }

@media (max-width: 900px) {
    /* Responsive Resets */
    .page-heading { font-size: 1.8rem; }
    .stage, .home-stage { padding: 6rem 1.5rem 2rem; }
    
    /* Layout Stacking */
    .projects-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid, .vlog-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    
    /* Home Page specific mobile stacking */
    .home-hero { grid-template-columns: 1fr; height: auto; margin-top: 0; padding-top: 2rem; gap: 2rem; }
    .hero-content { order: 1; padding: 1rem; text-align: center; }
    .hero-visual { order: 2; height: 50vh; }
    .hero-meta { margin: 0 auto; justify-content: center; }
    .hero-name { font-size: 3rem; }
    
    /* Hamburger Menu Overrides */
    .site-header { position: relative; padding: 1.5rem; display: block; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .site-nav {
        display: none;
        background: #efefef;
        border: 1px solid #c0c0c0;
        margin-top: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { padding: 1.5rem; border-bottom: 1px solid #d0d0d0; width: 100%; justify-content: flex-start; text-align: left; }
    .site-nav li:last-child a { border-bottom: none; }
    .site-nav a::after { display: none; } /* Hide hover strokes on mobile */
    
    /* Project Nav Un-sticky */
    .project-nav { position: static; border-right: none; border-bottom: 2px solid #111; padding-bottom: 1.5rem; margin-bottom: 2rem; }
    .project-detail h2 { font-size: 2rem; }
    
    /* Contact Space Fix */
    .contact-form input, .contact-form textarea { background: rgba(255,255,255, 0.5) !important; padding: 1rem !important; border: 1px solid #ccc !important; }
}

@media (max-width: 600px) {
    .gallery-grid, .vlog-grid { grid-template-columns: 1fr; }
    .site-nav { left: 1.5rem; width: calc(100% - 3rem); }
}

/* --- ARCHIVE (JOGJA) SPECIFIC --- */
.archive-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.archive-section-toggle { font-family: var(--font-display); background: transparent; border: 1px solid #111; padding: 1rem; font-size: 1.5rem; width: 100%; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; transition: background 0.3s; }
.archive-section-toggle:hover { background: #111; color: #fff; }
.archive-section-toggle:hover .toggle-subtitle, .archive-section-toggle:hover .toggle-icon { color: #fff; }
.toggle-subtitle { font-family: var(--font-nav); font-size: 0.9rem; color: #666; }
.archive-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s; }
.archive-thumb:hover { filter: grayscale(0%); }
.archive-lb-close { position: fixed; top: 1.5rem; right: 1.5rem; background: #111; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; border: none; cursor: pointer; z-index: 2001; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }

/* =======================================================================
   DESKTOP FRONT PAGE ADJUSTMENTS (5px drop & title line break)
   ======================================================================= */
@media (min-width: 901px) {
    .home-hero .hero-visual img {
        transform: translateY(5px); /* Drop the image exactly 5px */
    }
    .home-hero .hero-name .name-line:first-child {
        display: block; /* The block display forces 'THE' to live on its own line */
        width: 100%;
    }
}

/* =======================================================================
   HERO PORTRAIT BASE ALIGNMENT
   ======================================================================= */
@media (min-width: 901px) {
    .home-hero .hero-visual {
        /* Ensure the container pushes its content to the very bottom */
        align-items: flex-end !important; 
        padding-top: 5rem !important; /* Force space at the top so it never touches the nav */
    }
    .home-hero .hero-visual img {
        /* Drop max height slightly to 75vh so it has room to breathe at the top */
        max-height: 75vh !important; 
        object-position: bottom center !important; /* Lock to the base */
        margin-bottom: 0 !important; /* Ensure it sits flush with the bottom */
        transform: none !important; /* Reset our previous 5px hack to use absolute layout */
    }
}
