/*
Theme Name: Thais Portfolio Theme
Author: Brian D'Aurio
Description: Custom website to showcase photography and allow customers to sign up for sessions.
Version: 1.0
*/

:root {
  --bg-primary: #D4C6AA;
  --bg-secondary: #f6f4ee;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(148, 163, 184, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #f6f4ee;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-secondary: #818cf8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background-color: var(--bg-primary); color: var(--text-main); line-height: 1.6; }
body {}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
main.container { width: 100%; margin: -72px 0 0; padding: 0; max-width: none; text-align: center;}
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); border-bottom: 1px solid #cfcfc4; height: 72px; display: flex; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-logo { font-weight: 500; font-size: 2.25rem; font-family:"Kaushan Script"; letter-spacing: -0.02em; color: var(--text-main); text-decoration: none; }
.brand-logo span { color: var(--accent); }
#title-apos { margin-right: -2px; }
nav ul { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
nav a { color: #FFFFFF; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; letter-spacing: 1px; }
nav a:hover { color: var(--accent); }
.hero { padding: 90px 0 60px; }
.hero-badge-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge { display: inline-block; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.25); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; font-weight: 800; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; margin-bottom: 32px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-container { width: 100%;}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background: #72BEE2; color: #FFFFFF; border: none; }
.btn-primary:hover { background: #7dd3fc; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { background: var(--bg-secondary); border-color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0 80px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; text-align: center; backdrop-filter: blur(8px); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }
section { padding: 60px 0;}
.section-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 36px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex-grow: 1; height: 1px; background: var(--border-color); margin-left: 12px; }
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; position: relative; }
.experience-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; position: relative; transition: transform 0.2s ease, border-color 0.2s ease; }
.experience-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.4); }
.role-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.company-name { font-size: 1.3rem; font-weight: 700; color: var(--text-main); }
.company-location { font-size: 0.85rem; color: var(--text-dim); margin-left: 8px; font-weight: 400; }
.date-badge { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.sub-role { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-color); }
.sub-role-title { font-size: 1.05rem; font-weight: 600; color: #e2e8f0; }
.experience-card ul { margin: 12px 0 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.experience-card li { margin-bottom: 8px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.skill-category { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.skill-category h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.chip-container { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: #cbd5e1; }
.education-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.education-card h3 { font-size: 1.15rem; color: var(--text-main); margin-bottom: 4px; }
.education-card p { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
footer { margin-top: auto; border-top: 1px solid var(--border-color); padding: 0 0 12px; text-align: center; color: var(--text-dim); font-size: 0.9rem; background-color: #B5A89E; }

.italic { font-style: italic;}

/* WP Specific Additions */
article.experience-card { margin-bottom: 30px; }
.post-content h2, .post-content h3 { color: var(--text-main); margin: 24px 0 16px; }
.post-content p { margin-bottom: 16px; }
.post-content a { color: var(--accent); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { border: 1px solid var(--border-color); text-align: center; background: var(--bg-secondary); padding: 5px; margin-bottom: 16px; }
.screen-reader-text { display: none; }

@media (max-width: 768px) {
  .nav-wrapper { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; }
  .role-header { flex-direction: column; }
  .date-badge { margin-top: 4px; }
}

/* ---------------------------------------------------------
   Fullscreen Hero Slideshow
   --------------------------------------------------------- */

.hero-slideshow {
    width: 100%;
    height: 100svh;
    overflow: hidden;
	position: relative;
	box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.3);
}

.hero-slideshow__slides {
    position: absolute;
    inset: 0;
	background-color: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 2.5s ease-in-out,
        visibility 2.5s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .hero-slideshow {
        height: 50svh;
    }

    .hero-slide__image {
        object-position: center center;
    }

}


/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .hero-slide {
        transition: none;
    }
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

/* Mobile menu button is hidden by default */
.mobile-menu-toggle {
  display: none;
}


/* ----------------------------------------
   MOBILE
   ---------------------------------------- */

@media (max-width: 767px) {

  /* Keep header above the hero image */
  header {
    position: relative;
    z-index: 1000;
  }

  /*
   * Keep the existing nav-wrapper structure,
   * but use it as the positioning context.
   */
  .nav-wrapper {
    position: relative;
  }

  /*
   * Hamburger
   */
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    padding: 5px 2px;

    flex-direction: column;
    justify-content: center;
    gap: 5px;

    background: transparent;
    border: 0;
    cursor: pointer;

    z-index: 10001;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }


  /*
   * Center the logo in the actual viewport/header,
   * rather than centering it between the hamburger
   * and the right side of the header.
   */
  .brand-logo {
    position: absolute;
    left: 50%;
	top: 6px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1002;
  }


  /*
   * Hide desktop navigation
   */
  .site-navigation {
    position: fixed;

    top: 0;
    left: 0;

    width: min(320px, 82vw);
    height: 100vh;

    background: rgba(25, 25, 25, 0.97);

    transform: translateX(-100%);
    transition: transform 0.35s ease;

    z-index: 10000;

    display: flex;
    align-items: flex-start;

    padding: 80px 40px;
  }

  /*
   * Open drawer
   */
  body.menu-open .site-navigation {
    transform: translateX(0);
  }


  /*
   * Mobile navigation list
   */
  .site-navigation ul {
    display: flex;
    flex-direction: column;

    width: 100%;
    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .site-navigation li {
    margin: 0;
    padding: 0;
  }

  .site-navigation a {
    display: block;

    color: #fff;
    text-decoration: none;

    font-size: 1.15rem;
    font-weight: 500;

    transition: opacity 0.2s ease;
  }

  .site-navigation a:hover {
    opacity: 0.65;
  }


  /*
   * Dark overlay behind drawer
   */
  .mobile-menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;

    z-index: 999;
  }

  body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
  }


  /*
   * Prevent the page from scrolling while
   * the drawer is open.
   */
  body.menu-open {
    overflow: hidden;
  }


  /*
   * Hamburger transforms into an X
   */
  body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

}


/* ----------------------------------------
   DESKTOP
   ---------------------------------------- */

@media (min-width: 768px) {

  .site-navigation {
    display: block;
  }

}