:root{
  --bg: #fff7fb;
  --card: #ffffff;
  --text: #ff3f7a;
  --muted: #7a5e67;
  --pink-1: #ffd9e8;
  --pink-2: #ff9acb;
  --accent: #ff3f7a; /* stronger pink for headline accent */
  --glass: rgba(255,255,255,0.8);
  --radius: 12px;
  --shadow: 0 8px 30px rgba(199,104,141,0.12);
  --max-width: 1200px;
  --focus: 3px solid rgba(255,111,162,0.18);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color-scheme: light;
}

/* Reset and base */
*{box-sizing:border-box}
/* --- GLOBAL OVERFLOW FIX --- */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* This hides the white gap on the right */
  margin: 0;
  padding: 0;
}

.container{max-width:var(--max-width);margin:0 auto;padding:1.25rem}

/* HEADER */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  background:transparent;
  padding:18px 40px;
}
.header-inner{
  display:flex;
  align-items:center;
  gap:1rem;
  /* keep brand left and let nav float right using margin-left:auto */
  justify-content:flex-start;
}
.brand{display:flex;gap:0.75rem;align-items:center;text-decoration:none;color:#ffffff;font-weight:700}
.logo{
  width:44px;height:44px;border-radius:6px;background:linear-gradient(135deg,var(--accent),var(--pink-2));
  display:flex;align-items:center;justify-content:center;font-weight:700;color:#ffffff;
  box-shadow:var(--shadow)
}
.name{display:none; /* keep small brand just logo to match concept */}

/* Nav on top-right: pushed right with margin-left:auto */
.top-nav{
  display:flex;
  gap:2rem;
  align-items:center;
  margin-left:auto; /* this moves nav to the right */
  order:2;
}
.top-nav a{
  color:#ee1c77;text-decoration:none;font-weight:600;padding:6px 0;position:relative;
}
.top-nav a::after{
  content:'';position:absolute;left:0;right:0;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:left center;transition:transform .18s ease;bottom:-10px;border-radius:2px;
}
.top-nav a:hover::after,
.top-nav a.active::after{ transform:scaleX(1); }

/* theme toggle button placed to the far right */
.theme-btn{
  background:transparent;border:1px solid rgba(255,255,255,0.08);color:#fff;padding:8px;border-radius:8px;cursor:pointer;margin-left:12px;order:3;
}

/* HERO - big visual block
   Now uses a vertical gradient that transitions into the pink used in the About section */
.hero {
  padding-top: 86px;
  background: linear-gradient(180deg, #0b0b0b 50%, #1a0e14 85%, var(--pink-1) 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* This clips the blob so it doesn't cause white space */
}

.hero .container{
  max-width: 1440px;
}


.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Use 1fr instead of 560px */
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem; /* Changed from negative values to positive */
}

/* left column: intro text */
.hero-left{padding-left:-2rem;max-width:760px}
.hero-subtitle{
  font-size:1.05rem;color:#e9d5df;margin-bottom:0.75rem;font-weight:500;
}
.hero-headline{
  font-size:4.2rem;line-height:1; margin:0 0 0.4rem;font-weight:900;
  letter-spacing:-1px;
}
.hero-headline .accent{ color:var(--accent); display:inline-block; padding-left:4px; }

.hero-tagline{
  font-size:1.6rem;margin:0 0 1rem;font-weight:700;color:#fff;
}
.hero-bio{color:#e9d5df;max-width:56ch;margin-top:1rem}
.hero-ctas{display:flex;gap:0.75rem;margin-top:1.25rem}
.btn{display:inline-flex;align-items:center;gap:0.6rem;padding:0.75rem 1.1rem;border-radius:10px;border:none;text-decoration:none;cursor:pointer;font-weight:700}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 12px 30px rgba(255,63,122,0.16)}
.btn-outline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,0.12)}

/* social row under CTAs */
.hero-social{margin-top:1rem;display:flex;gap:1rem;color:#ffffff}
.hero-social a{color:#fff;text-decoration:none}

.hero-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  position:relative;
}

.hero-portrait{
  width:100%;height:100%;max-width:560px;max-height:720px;object-fit:cover;border-radius:8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  border-left: 8px solid rgba(255,255,255,0.03);
}

/* ---------- LARGER AVATAR + BETTER FACE POSITIONING ---------- */
/* Paste this after the .hero-right / .hero-portrait rules in style.css */

.avatar-wrap{
  position: relative;
  width: 480px;           /* overall widget size (bigger) */
  height: 480px;
  display:inline-block;
  vertical-align: middle;
}

/* extra-large variant for hero specifically (if you need a different class) */
.avatar-wrap.large-avatar{
  width: 520px;
  height: 520px;
}

/* small variant kept for About or other uses */
.avatar-wrap.small-avatar{
  width: 160px;
  height: 160px;
}

/* the decorative blob behind the photo (scaled up) */
.avatar-blob{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) scale(1.25); /* scale up the blob slightly */
  width: 120%;
  height: 120%;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.5));
  z-index: 1;
}

/* circular photo sits above the blob and is larger */
.avatar-photo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* true center by default */
  width: 350px;      /* photo size inside blob - larger than before */
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  border: 10px solid rgba(0,0,0,0.6); /* darker rim for contrast */
  box-shadow: 0 28px 60px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.25) inset;
  background: #fff0;
}

/* actual image - object-position controls which part of the photo is visible */
.avatar-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Tweak object-position to vertically shift the face: 50% 35% moves it up
     If face appears too low/high, change the second value (0% top → 100% bottom) */
  object-position: 50% 35%;
  display:block;
  transform: translateZ(0); /* helps with GPU compositing */
}

/* small variant */
.avatar-photo.small{
  width: 500px;
  height: 500px;
  border-radius: 50px;
  border: 6px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Optional: slightly lift blob and photo on hover for a little interaction */
.avatar-wrap:hover .avatar-blob{ transform: translate(-50%, -47%) scale(1.28); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.avatar-wrap:hover .avatar-photo{ transform: translate(-50%, -50%) scale(1.02); transition: transform .28s cubic-bezier(.2,.8,.2,1); }

/* Responsive adjustments */
@media (max-width:1200px){
  .avatar-wrap.large-avatar{ width:420px; height:420px; }
  .avatar-wrap{ width:450px; height:450px; }
  .avatar-photo{ width:350px; height:350px; }
}
@media (max-width:980px){
  .avatar-wrap{ width:320px; height:320px; }
  .avatar-photo{ width:260px; height:260px; object-position: 50% 30%; }
}
@media (max-width:640px){
  .avatar-wrap{ width:240px; height:240px; margin: 2rem auto 0; display:block; }
  .hero-inner{ grid-template-columns: 1fr; gap:2rem; } /* stack hero on small screens */
  .avatar-photo{ width:160px; height:160px; object-position:50% 30%; }
}

/* MAIN content sections - style adjustments for new themed look */
.section{padding:3.25rem 0;background:linear-gradient(180deg,#ffffff 0%, #fff7fb 100%);color:var(--text)}
.section.alt{background:#ffffff}
.section-title{font-size:2.25rem;margin:0 0 1rem;font-weight:800}
.lead{color:var(--muted);margin-bottom:0.75rem}

/* =========================
   ABOUT
   ========================= */
.about-section{
  /* begin the About background with the same pink used at the end of the hero so the transition is seamless */
  background: linear-gradient(180deg, var(--pink-1) 0%, #fff7fb 100%);
}
.about-inner{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:2rem;
  align-items:start;
}
.about-left{padding-right:1rem}
.about-lead{color:var(--muted);margin-bottom:4rem;font-weight: 500}
.about-contact-cards{display:grid;grid-template-columns:repeat(1,1fr);gap:1rem;margin-top:5rem}
.info-card{
  background:#0f0b0d;color:#fff;padding:2rem;border-radius:12px;
  box-shadow:0 10px 20px rgba(11,6,10,0.35);
  border:1px solid rgba(255,255,255,0.03);
}
.info-card h3{margin-top:0;color:var(--accent)}
.skill-list{margin:0;padding-left:1.1rem;color:#d9c6cf}
.skill-list li{margin-bottom:0.35rem}

/* profile card on right */
.profile-card{
  background:#fff;border-radius:12px;padding:1rem;box-shadow:var(--shadow);text-align:center;
}
.profile-image-wrap{display:flex;justify-content:center;margin-bottom:0.75rem}
.profile-image{width:160px;height:160px;border-radius:12px;object-fit:cover;border:6px solid rgba(255,255,255,0.85)}
.profile-meta h3{margin:0}
.profile-meta .muted{color:var(--muted);margin-bottom:0.75rem}

/* =========================
   SKILLS & STRENGTHS
   ========================= */
.skills-section{background:#fff7fb}
.skills-inner{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}
.skills-cards{display:grid;grid-template-columns:1fr;gap:1rem}
.dark-card{background:#0f0b0d;color:#ffffff;padding:1rem;border-radius:12px;box-shadow:0 20px 40px rgba(11,6,10,0.35)}
.skill-pills{display:flex;flex-wrap:wrap;gap:0.6rem;padding:0;list-style:none;margin:0}
.skill-pills li{background:#271a20;padding:8px 12px;border-radius:999px;color:#fff;border:1px solid rgba(255,255,255,0.03);font-weight:600}

/* skill meters (right column) */
.skill-meter{margin-bottom:1rem}
.skill-meter label{display:block;margin-bottom:0.5rem;color:var(--muted);font-weight:600}
.meter{height:14px;width:320px;background:#e9dfe3;border-radius:999px;overflow:hidden}
.meter span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#ff2b6f);border-radius:999px}

/* =========================
   PROJECTS / PORTFOLIO
   ========================= */
.projects-section{background:linear-gradient(180deg,#fff 0%, #fff7fb 100%)}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1rem}
.dark-project{
  background:#0f0b0d;color:#fff;padding:1.2rem;border-radius:12px;
  box-shadow:0 20px 40px rgba(11,6,10,0.35);border:1px solid rgba(255,255,255,0.03);
  transition:transform .16s ease,box-shadow .16s ease;
}
.dark-project:hover{transform:translateY(-6px);box-shadow:0 36px 70px rgba(11,6,10,0.45)}
.dark-project h3{color:#ff2b6f;margin-top:0}
.dark-project .meta{color:#d9c6cf;font-size:0.95rem}
.card-actions{display:flex;gap:0.6rem;margin-top:0.9rem;align-items:center}
.card-actions .link{color:#fff;text-decoration:underline}

/* CONTACT styles kept from prior update */
.contact-section{
  padding:4rem 0;
  background:#0b0b0b;
  color:#ff2b6f;
}

.contact-inner{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:2.5rem;
  align-items:start;
}
.contact-left{padding:1rem 0}
.contact-title{font-size:3rem;margin:0 0 1.5rem;font-weight:800}
.contact-info{list-style:none;padding:0;margin:0 0 1.5rem;display:flex;flex-direction:column;gap:0.9rem}
.contact-info li{display:flex;align-items:center;gap:12px;color:#e9d5df}
.contact-info a{color:#e9d5df;text-decoration:none;font-weight:600}
.ci{flex:0 0 18px; display:inline-block}
.contact-left-cta{margin-top:1.5rem}
.download-btn{padding:0.85rem 1.1rem;border-radius:8px;display:inline-block}
.contact-right{padding:0.5rem 0}
.contact-form{display:block;max-width:100%}
.form-row{margin-bottom:1rem}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  width:100%;
  background:#222;
  border:1px solid rgba(255,255,255,0.03);
  color:#ddd;
  padding:14px 16px;
  border-radius:8px;
  font-size:1rem;
  resize:vertical;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#7d7d7d;
}
.form-submit{margin-top:0.75rem}
.submit-btn{
  background:linear-gradient(180deg,var(--accent),#ff2b6f);
  color:#fff;
  padding:0.85rem 2.2rem;
  border-radius:8px;
  font-weight:800;
  font-size:1rem;
  border:none;
  cursor:pointer;
  box-shadow: 0 18px 36px rgba(255,63,122,0.12);
}

/* FOOTER */
.site-footer{padding:1.25rem 0;border-top:1px solid rgba(255,111,162,0.06);margin-top:1rem;background:transparent}
.footer-inner{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}

/* Modal */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(0,0,0,0.55);visibility:hidden;opacity:0;transition:opacity .18s ease,visibility .18s ease}
.modal[aria-hidden="false"]{visibility:visible;opacity:1}
.modal-content{background:var(--card);padding:1.25rem;border-radius:12px;max-width:720px;width:100%;box-shadow:var(--shadow);position:relative}
.modal-close{position:absolute;top:10px;right:10px;background:transparent;border:none;font-size:1.5rem;cursor:pointer}

/* responsive adjustments */
@media (max-width:1100px){
  .about-inner{grid-template-columns:1fr}
  .skills-inner{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  .contact-inner{grid-template-columns:1fr;gap:1.25rem}
}
/* --- COMPLETE MOBILE OVERHAUL --- */
@media (max-width: 880px) {
  /* 1. Force the page to stay within bounds */
  html, body {
    overflow-x: hidden;
    width: 100%;
    height: auto; /* Allow the page to grow naturally */
  }

/* --- UPDATED MOBILE NAVIGATION --- */
@media (max-width: 880px) {
  
  /* 1. Header Adjustment: Move Logo to the Left */
  .site-header {
    position: relative; 
    padding: 15px 20px; /* Give it some breathing room from the edge */
    background: #0b0b0b;
    text-align: left;    /* Align content to the left */
  }

  .header-inner {
    flex-direction: row;  /* Keep logo on one line */
    justify-content: flex-start; /* Push everything to the left */
    gap: 0;
  }

  /* 2. REMOVE Navigation and Flower Button */
  .top-nav, 
  .theme-btn {
    display: none !important; /* This completely removes them on mobile */
  }

  /* 3. Adjust Hero Spacing now that Nav is gone */
  .hero {
    padding-top: 10px; /* Reduce top gap since there's no menu */
  }

  .hero-inner {
    padding-top: 0;
  }
}

  /* 4. Fix Hero: Remove the grid and huge height */
  .hero {
    padding-top: 20px;
    min-height: auto; /* Remove the 100vh which was pushing content away */
    display: block;
  }

  .hero-inner {
    display: flex;
    flex-direction: column; /* Stack image above text */
    padding: 20px;
    gap: 20px;
  }

  .hero-right {
    order: -1; /* Puts the image at the top */
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* 5. Shrink Avatar/Blob for small screens */
  .avatar-wrap.large-avatar, .avatar-wrap {
    width: 250px;
    height: 250px;
  }

  .avatar-photo {
    width: 180px;
    height: 180px;
  }

  .avatar-blob {
    transform: translate(-50%, -45%) scale(1.5);
  }

  /* 6. Fix Text and Headlines */
  .hero-left {
    max-width: 100%;
    text-align: center;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* 7. Fix Sections (About/Skills) */
  .about-inner, .skills-inner, .contact-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }
}

/* dark theme (toggle via .theme-dark on body) */
body.theme-dark{
  --bg: #0b0b0b;
  --card: #151313;
  --text: #ffeef6;
  --muted: #f0cbd8;
  --pink-1: #3a0f1a;
  --pink-2: #7a0f2f;
  --accent: #ff6fa2;
  color-scheme: dark;
}
