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

/* =============================================
   RESET & CSS VARIABLES
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:    #F5F0E8;
  --navy:     #1B2140;
  --crimson:  #CC3322;
  --purple:   #7B50A3;
  --gold:     #E0B040;
  --forest:   #3A7A50;
  --lavender: #A090C5;

  --font-script: 'Great Vibes', cursive;
  --font-body:   'Outfit', sans-serif;
  
  --link-color: var(--crimson);
  --link-hover: var(--gold);
  --link-transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none; /* Keeps it clean and minimalist */
  transition: all var(--link-transition);
}

a:hover, a:focus {
  color: var(--link-hover);
  outline: none;
}

/* ── Paper edge vignette: left & right of full page ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    linear-gradient(to right,  rgba(175, 160, 135, 0.20) 0px, transparent 55px),
    linear-gradient(to left,   rgba(175, 160, 135, 0.20) 0px, transparent 55px);
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 33, 64, 0.08);
  padding: 14px 0 14px 40px;
}

.logo-div {
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
  display: block;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--crimson);
}

.menu-div {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 20px;
  list-style: none;
}

.menu-div a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.menu-div a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.3s ease;
}

.menu-div a:hover {
  color: var(--crimson);
}

.menu-div a:hover::after {
  width: 100%;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px 28px;
  gap: 4px;
  border-bottom: 2px solid var(--crimson);
  box-shadow: 0 12px 40px rgba(27, 33, 64, 0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 33, 64, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--crimson);
  padding-left: 8px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(to left,
      var(--cream)              0%,
      var(--cream)              45%,
      rgba(245,240,232,0.4)     55%,
      transparent               85%
    ),
    url('images/hero-bg.png')
    center / 100% auto no-repeat;
  background-color: var(--cream);
  padding-top: 50px; /* breathing room on mobile; overridden to 0 on desktop */
  border-bottom: 1px solid var(--crimson);
  border-top: 1px solid var(--crimson);
}

.hero-empty {
  /* left side — bg image shows through here */
  background: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 50px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 22px;
}

.hero-title .accent {
  color: var(--crimson);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(27, 33, 64, 0.72);
  margin-bottom: 20px;
  max-width: 400px;
}

.cta-btn {
  display: inline-block;
  background: var(--crimson);
  color: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  border: 2px solid var(--crimson);
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
  margin: 0px 10px 10px 0px;
}

.cta-btn:hover {
  background: transparent;
  color: var(--crimson);
}
.linkedin-btn {
  display: inline-block;
  background: var(--forest);
  color: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  border: 2px solid var(--forest);
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
}

.linkedin-btn:hover {
  background: transparent;
  color: var(--forest);
}

/* =============================================
   TWO-COLUMN SECTION LAYOUT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}

.content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

.empty-col {
  background: transparent;
}

/* =============================================
   SECTION BACKGROUNDS — portrait watercolor, alternating sides
   ============================================= */

/* content LEFT, artwork RIGHT: Who I Am, My Workflow, Contact */
#who-i-am,
#my-workflow,
#contact {
  background:
    linear-gradient(to right,
      transparent               0px,
      transparent               20px,
      var(--cream)              40px,
      var(--cream)              56%,
      rgba(245,240,232,0.50)    64%,
      transparent               76%
    ),
    url('images/sections-bg.png')
      0px center / 54% auto no-repeat,
    url('images/sections-bg.png')
      right center / 54% auto no-repeat;
      
      /* Adds a tiny bit of internal space so 'contain' doesn't touch the very edge */

  background-color: var(--cream);
}
#my-workflow {
  /* This keeps your horizontal position (left/right) but 
     nudges the image down 20px from the top */
  background-position: 
    center center,         /* Keeps the gradient centered */
    0px 10px,              /* Nudges left image down 20px */
    right 0px;            /* Nudges right image down 20px */
}

/* content RIGHT, artwork LEFT: What I Can Do, Work History */
#what-i-can-do,
#work-history {
  background:
    linear-gradient(to left,
      transparent               0px,
      transparent               20px,
      var(--cream)              40px,
      var(--cream)              56%,
      rgba(245,240,232,0.50)    64%,
      transparent               76%
    ),
    url('images/sections-bg.png')
      100% center / 54% auto no-repeat,
    url('images/sections-bg.png')
      left center / 54% auto no-repeat;
  background-color: var(--cream);
}

/* All cols transparent — section bg does the work */
.content-col,
.empty-col {
  background: transparent;
}

/* =============================================
   SECTION TYPOGRAPHY
   ============================================= */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
  width: max-content; 
  display: block;
  /* This creates the bar */
  border-bottom: 3px solid var(--gold); 
  padding-bottom: 10px; /* Space between text and bar */
  margin-bottom: 22px; /* Space between bar and h2 */
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  line-height: 1.2;
}

.section-body {
  font-size: 1.02rem;
  line-height: 1.78;
  color: rgba(27, 33, 64, 0.78);
}

/* =============================================
   WHAT I CAN DO — Skill List
   ============================================= */
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

.skill-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* =============================================
   MY WORKFLOW — Steps
   ============================================= */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 4px;
}

.workflow-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  min-width: 28px;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: rgba(27, 33, 64, 0.68);
  line-height: 1.6;
}

/* =============================================
   WORK HISTORY
   ============================================= */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.history-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.history-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.history-item p {
  font-size: 0.9rem;
  color: rgba(27, 33, 64, 0.68);
  line-height: 1.65;
}

.more-history-divider {
display: flex;
align-items: center;
margin: 10px 0;
text-align: center;
color: var(--navy);
font-size: 0.85 rem;
letter-spacing: 1px;
text-transform: uppercase;
}

.more-history-divider .line {
flex: 1;
height: 1px;
background-color: var(--gold);
margin: 0 20px;
opacity: 0.4;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(27, 33, 64, 0.18);
  background: rgba(245, 240, 232, 0.5);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--crimson);
  background: rgba(245, 240, 232, 0.9);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: transparent;
  color: var(--navy);
}

#form-status {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background:
    linear-gradient(to right,
      transparent               0px,
      transparent               20px,
      var(--cream)              40px,
      var(--cream)              calc(100% - 40px),
      transparent               calc(100% - 20px),
      transparent               100%
    ),
    url('images/sections-bg.png')
      0px center / 54% auto no-repeat,
    url('images/sections-bg.png')
      right center / 54% auto no-repeat;
  background-color: var(--cream);
  color: var(--navy);
  padding: 20px  0px 40px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--navy);
  text-decoration: none;
  display: block;
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

.footer-logo:hover {
  color: var(--crimson);
}

.footer-contact {
  font-size: 0.9rem;
  color: rgba(27, 33, 64, 0.65);
  line-height: 1.9;
}

.footer-contact a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-contact a:hover {
  color: var(--navy);
}

.footer-copyright {
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}

footer {
  /* This defines the new texture for the footer */
  background-image: 
    linear-gradient(
      rgba(245, 240, 232, 0.5), /* A wash to ensure text legibility */
      rgba(245, 240, 232, 0.5)
    ),
    url('images/footer-bg.png'); /* Replace with your new file name */
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Optional: Adds a subtle blur to the background for a modern feel */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  margin-left: 0px;
  width: 100%;
  display: block;
  text-align: left;
}

/* =============================================
   DIVIDERS — subtle decorative lines between sections
   ============================================= */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 28px;
}

/* =============================================
   RESPONSIVE — Tablet (≤ 1024px): hamburger, hero height
   ============================================= */
@media (max-width: 1024px) {

  /* Switch to hamburger on iPad / tablet */
  .menu-div {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  header {
    
    padding: 12px 0 12px 24px;
  }

  /* Bring the hero closer to the header on tablet */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 36px;
  }

  .content-col {
    padding: 60px 36px;
  }
}

/* =============================================
   RESPONSIVE — Mobile (≤ 768px): single-column stack
   ============================================= */
@media (max-width: 768px) {

  header {
    padding: 14px 0 14px 20px;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
    background:
      linear-gradient(
        rgba(245, 240, 232, 0.74),
        rgba(245, 240, 232, 0.74)
      ),
      url('images/hero-bg.png')
      center center / 100% auto no-repeat;
    background-color: var(--cream);
  }

  /* Section backgrounds: single centered image, dimmed */
  #who-i-am,
  #my-workflow,
  #contact,
  #what-i-can-do,
  #work-history {
    background-image:
      linear-gradient(
        rgba(245, 240, 232, 0.68),
        rgba(245, 240, 232, 0.68)
      ),
      url('images/sections-bg.png');
   /* This keeps the image's aspect ratio but ensures it covers the area */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
   /* Ensure the container grows with the text */
    height: auto; 
    min-height: 400px; 
    display: flex;
    align-items: center; /* Centers the content vertically within the art */
  }

  /* Hide paper-edge vignette on mobile */
  body::after {
    display: block; /* Bring it back */
    background:
      linear-gradient(to right, rgba(175, 160, 135, 0.15) 0px, transparent 20px),
      linear-gradient(to left,  rgba(175, 160, 135, 0.15) 0px, transparent 20px);
  }

  .hero-empty {
    display: none;
  }

  .hero-content {
    padding: 64px 24px 56px;
  }

  .hero-sub {
    max-width: 100%;
  }

  /* Two-col sections */
  .two-col {
    grid-template-columns: 1fr;
  }

  .empty-col {
    display: none;
  }

  .content-col {
    padding: 56px 24px;
  }

  .section-body {
    max-width: 100%;
  }

  /* Buttons */
  .submit-btn {
    align-self: stretch;
    text-align: center;
  }

  /* Footer */
  footer {
    padding: 0px 40px 40px 40px;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — Desktop (≥ 769px): hero flush against header
   ============================================= */
@media (min-width: 769px) {
  .hero {
    padding-top: 0;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    /* Swap to a mobile-optimized image that is taller */
    display: block;
    max-height: 80vh;
    overflow: hidden;
    background-image: 
      linear-gradient(
        rgba(245, 240, 232, 0.65), /* Higher opacity wash for text legibility */
        rgba(245, 240, 232, 0.65)
      ),
      url('images/hero-bg-mobile.png');

    /* Ensure the image stretches to the full height of the text */
    background-size: cover;
    background-position: top center;
    
    /* Remove any fixed height so the 'paper' grows with the text */
    height: auto;
    min-height: 0; /* Ensures it at least fills the screen */
    padding-top: 10px; /* Extra top padding for your logo/nav */
    padding-top: 10px;
  }
}

/* --- Visual Validation Logic --- */

/* 1. The Red Outline: Only appears when a field is 'invalid' AND the user has interacted with it */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--crimson) !important;
  background-color: rgba(204, 51, 34, 0.02);
}

/* 2. Visual "Required" Indicator: Adds a red asterisk to labels */
.form-field label::after {
  content: " *";
  color: var(--crimson);
  font-weight: bold;
}

/* 3. Success State: Just in case you want to nudge the status box look */
#form-status {
  transition: all 0.3s ease;
  border-radius: 4px; /* Optional: Softens the alert look */
}

/* Apply a red border to invalid fields once the user interacts with them */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--crimson) !important;
  background-color: rgba(204, 51, 34, 0.02);
}
