/*
Theme Name: Riya Dhar Resume
Theme URI: https://github.com/riyadhar/resume-theme
Author: Riya Dhar
Author URI: #
Description: A premium, elegant single-page resume/portfolio WordPress theme for Aspiring Data Analyst & MIS Executive. Features animated skill bars, timeline experience, scroll-reveal sections, and a fully responsive layout with a warm cream and rust colour palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riya-dhar-resume
Tags: one-page, resume, portfolio, custom-colors, custom-logo, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --cream:   #faf6f0;
  --ink:     #1a1208;
  --rust:    #c4531a;
  --gold:    #d4a853;
  --sage:    #5a7358;
  --mist:    #e8e0d4;
  --card-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav#site-navigation {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 5%;
  background: rgba(250,246,240,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow 0.3s;
}
nav#site-navigation.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--rust);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.88rem; letter-spacing: 0.04em;
  font-weight: 400;
  position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--rust);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 8% 5rem; gap: 5rem;
  position: relative; overflow: hidden;
  background: var(--cream);
}
#hero::before {
  content: '';
  position: absolute; right: 0; top: 0;
  width: 50%; height: 100%;
  background: linear-gradient(160deg, #f5ede0 0%, #eedcc4 100%);
  z-index: 0;
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}
#hero::after {
  content: '';
  position: absolute; right: 8%; top: 12%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,83,26,0.12) 0%, transparent 70%);
  z-index: 0;
}
.hero-text { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; border: 1.5px solid var(--rust); color: var(--rust);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45rem 1.1rem; border-radius: 30px; margin-bottom: 1.8rem;
  font-weight: 500;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); flex-shrink: 0; }
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05; font-weight: 900; letter-spacing: -0.02em;
  animation: fadeUp 0.7s 0.1s ease both;
}
h1 .name-first { display: block; color: var(--ink); }
h1 .name-last  { display: block; color: var(--rust); font-style: italic; }
.hero-divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--rust), var(--gold));
  border-radius: 2px; margin: 1.6rem 0;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-sub {
  font-size: 1rem; color: #5a4a3a; margin-bottom: 2.2rem;
  max-width: 400px; line-height: 1.8;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
.btn {
  padding: 0.85rem 2rem; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
  letter-spacing: 0.03em; transition: all 0.25s;
}
.btn-primary { background: var(--rust); color: #fff; border: 2px solid var(--rust); }
.btn-primary:hover { background: transparent; color: var(--rust); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid rgba(26,18,8,0.3); }
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hero-stats {
  display: flex; gap: 0; margin-top: 3rem;
  border-top: 1px solid rgba(26,18,8,0.1);
  padding-top: 1.8rem;
  animation: fadeUp 0.7s 0.4s ease both;
}
.hero-stat {
  flex: 1; padding-right: 1.5rem;
  border-right: 1px solid rgba(26,18,8,0.1);
  margin-right: 1.5rem;
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: var(--rust); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: #8a7a6a; letter-spacing: 0.06em; margin-top: 5px; text-transform: uppercase; }

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}
.avatar-wrap {
  position: relative;
  width: clamp(260px, 32vw, 380px);
}
.avatar-card {
  width: 100%; aspect-ratio: 4/5; border-radius: 16px;
  background: linear-gradient(145deg, #2b1a0e 0%, #5a2d0c 40%, #c4531a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 2rem; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(196,83,26,0.3), 0 8px 24px rgba(0,0,0,0.15);
}
.avatar-card::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 40px rgba(255,255,255,0.03), 0 0 0 80px rgba(255,255,255,0.02);
}
.avatar-monogram {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900; font-style: italic;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.04em; user-select: none; line-height: 1;
}
.avatar-nameplate {
  position: relative; z-index: 1; text-align: center; width: 100%;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.avatar-nameplate .name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.1; }
.avatar-nameplate .role { font-size: 0.75rem; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }
.avatar-badge {
  position: absolute; top: -18px; right: -18px;
  background: var(--sage); color: #fff;
  border-radius: 50%; width: 88px; height: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.65rem; text-align: center; line-height: 1.3;
  font-weight: 500; letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(90,115,88,0.45);
  border: 3px solid var(--cream); z-index: 3;
}
.avatar-badge strong { font-size: 1rem; font-family: 'Playfair Display', serif; display: block; }
.avatar-location {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--cream); color: var(--ink);
  border-radius: 30px; padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 0.4rem;
  white-space: nowrap; border: 1px solid var(--mist); z-index: 3;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
section { padding: 6rem 5%; }
section:nth-child(even) { background: var(--mist); }
.section-label {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust); font-weight: 500; margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-title span { color: var(--rust); font-style: italic; }
.section-intro { font-size: 1rem; color: #5a4a3a; max-width: 560px; line-height: 1.75; margin-bottom: 3.5rem; }

/* ── ABOUT ── */
#about .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card {
  background: var(--card-bg); padding: 1.4rem 1.6rem; border-radius: 6px;
  border-left: 4px solid var(--rust);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.about-card:hover { transform: translateX(6px); }
.about-card h4 { font-weight: 500; font-size: 0.9rem; color: var(--rust); margin-bottom: 0.4rem; letter-spacing: 0.05em; text-transform: uppercase; }
.about-card p { font-size: 0.95rem; line-height: 1.6; color: #4a3a2a; }
.about-highlight-box {
  background: linear-gradient(135deg, var(--rust), #e8783a);
  color: #fff; padding: 2.5rem; border-radius: 12px;
}
.about-highlight-box .big-num { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; line-height: 1; }
.about-highlight-box .big-label { font-size: 0.9rem; margin-top: 0.4rem; opacity: 0.85; }
.about-highlight-box .big-sub   { font-size: 0.82rem; margin-top: 0.6rem; opacity: 0.7; }
.target-roles-box { background: var(--card-bg); padding: 1.6rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.target-roles-box .box-label { font-size: 0.8rem; color: var(--rust); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.roles-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.roles-tags span { background: var(--mist); padding: 0.35rem 0.8rem; border-radius: 3px; font-size: 0.85rem; }

/* ── EXPERIENCE / TIMELINE ── */
#experience .timeline { position: relative; padding-left: 2.5rem; }
#experience .timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--rust), var(--gold), var(--sage));
  border-radius: 2px;
}
.timeline-item {
  position: relative; margin-bottom: 3rem;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 0.4rem;
  width: 14px; height: 14px;
  background: var(--rust); border: 3px solid var(--cream);
  border-radius: 50%; box-shadow: 0 0 0 3px var(--rust);
}
.timeline-card {
  background: var(--card-bg); padding: 1.8rem 2rem; border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07); border-top: 3px solid var(--rust);
}
.timeline-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.timeline-role { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; }
.timeline-org { color: var(--sage); font-size: 0.9rem; font-weight: 500; margin-top: 2px; }
.timeline-date {
  background: var(--mist); color: var(--rust);
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 500; white-space: nowrap;
}
.timeline-bullets { list-style: none; padding: 0; }
.timeline-bullets li {
  padding: 0.4rem 0 0.4rem 1.2rem; font-size: 0.9rem; color: #4a3a2a; line-height: 1.6;
  border-bottom: 1px dashed #e0d8cc; position: relative;
}
.timeline-bullets li:last-child { border-bottom: none; }
.timeline-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--rust); font-size: 0.8rem; }

/* ── EDUCATION ── */
#education .edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.edu-card {
  background: var(--card-bg); padding: 2rem; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--rust), var(--gold));
}
.edu-degree { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.edu-school { color: var(--sage); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.edu-year   { color: #8a7a6a; font-size: 0.82rem; margin-bottom: 0.8rem; }
.edu-score  { display: inline-block; background: var(--rust); color: #fff; font-size: 0.85rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 20px; }
.edu-loc    { font-size: 0.82rem; color: #8a7a6a; margin-top: 0.5rem; }

/* ── SKILLS ── */
#skills .skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.skills-list { display: flex; flex-direction: column; gap: 1.4rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-size: 0.9rem; font-weight: 500; }
.skill-pct  { font-size: 0.82rem; color: var(--rust); font-weight: 500; }
.skill-bar  { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%; background: linear-gradient(to right, var(--rust), var(--gold));
  border-radius: 3px; width: 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag {
  background: var(--card-bg); border: 1.5px solid var(--mist);
  padding: 0.5rem 1.1rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 400; color: var(--ink); transition: all 0.2s;
}
.tag:hover { background: var(--rust); color: #fff; border-color: var(--rust); }
.skills-tags-section { margin-bottom: 2rem; }
.skills-section-label { font-size: 0.8rem; color: var(--rust); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.academic-box {
  background: var(--card-bg); padding: 1.6rem; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-left: 4px solid var(--gold);
}
.academic-box .academic-label { font-size: 0.8rem; color: var(--rust); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.academic-box p { font-size: 0.9rem; color: #4a3a2a; line-height: 1.7; }

/* ── EXTRA ── */
#extra { background: var(--cream); }
#extra .extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.extra-card {
  background: var(--card-bg); padding: 2rem; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.2s;
}
.extra-card:hover { transform: translateY(-4px); }
.extra-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.extra-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.extra-card p, .extra-card li { font-size: 0.9rem; color: #5a4a3a; line-height: 1.7; }
.extra-card ul { list-style: none; padding: 0; }
.extra-card ul li { padding: 0.3rem 0; border-bottom: 1px dashed #e0d8cc; }
.extra-card ul li:last-child { border-bottom: none; }
.lang-item { display: flex; justify-content: space-between; align-items: center; }
.lang-proficiency { font-size: 0.75rem; background: var(--mist); padding: 0.2rem 0.6rem; border-radius: 10px; color: var(--sage); font-weight: 500; }

/* ── CONTACT ── */
#contact { background: var(--ink); color: var(--cream); text-align: center; }
#contact .section-label { color: var(--gold); }
#contact .section-title { color: var(--cream); }
#contact .section-title span { color: var(--gold); }
#contact .section-intro-dark { color: rgba(250,246,240,0.65); max-width: 480px; margin: 0 auto 1rem; line-height: 1.7; font-size: 1rem; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 3rem; }
.contact-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 1.6rem 2rem; border-radius: 8px; min-width: 180px;
  text-decoration: none; color: var(--cream); transition: all 0.25s;
}
.contact-item:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-4px); }
.contact-icon  { font-size: 1.8rem; }
.contact-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.contact-value { font-size: 0.9rem; font-weight: 500; }

/* ── FOOTER ── */
footer.site-footer {
  background: #0e0b05; color: rgba(255,255,255,0.4);
  text-align: center; padding: 1.5rem;
  font-size: 0.8rem; letter-spacing: 0.05em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; padding: 8rem 6% 5rem; gap: 3rem; }
  #hero::before { width: 100%; height: 45%; top: auto; bottom: 0; clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0% 100%); }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-divider { margin: 1.6rem auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 1rem; order: -1; }
  .avatar-wrap { width: clamp(220px, 55vw, 300px); }
  .avatar-location { left: 50%; transform: translateX(-50%); bottom: -22px; }
  #about .about-grid { grid-template-columns: 1fr; }
  #skills .skills-wrapper { grid-template-columns: 1fr; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem 5%; gap: 1rem;
    border-bottom: 1px solid var(--mist);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
@media (max-width: 560px) {
  section { padding: 4rem 5%; }
  .hero-stats { gap: 1.5rem; }
  .timeline-meta { flex-direction: column; }
}

/* ── WP ADMIN BAR COMPENSATION ── */
.admin-bar nav#site-navigation { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav#site-navigation { top: 46px; }
}
