/* =============================================
   RITIKA PATHAK — PORTFOLIO
   Aesthetic: Warm editorial — cream bg, dusty 
   rose accent, deep sage, Cormorant headlines.
   Feminine, refined, not overdone.
   ============================================= */

:root {
    --cream:     #faf6f1;
    --cream-alt: #f4ede4;
    --rose:      #c2797f;
    --rose-light:#e8b4b8;
    --rose-dim:  rgba(194,121,127,0.12);
    --sage:      #7a9e8e;
    --sage-dim:  rgba(122,158,142,0.12);
    --brown:     #2c1f1a;
    --text:      #2c1f1a;
    --text-mid:  #6b5b52;
    --text-dim:  #a0887e;
    --border:    rgba(44,31,26,0.08);
    --border-mid:rgba(44,31,26,0.14);
    --radius:    16px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 20px rgba(44,31,26,0.07);
    --shadow:    0 12px 40px rgba(44,31,26,0.1);
}

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

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ---- Decorative blobs ---- */
.blob {
    position: fixed; border-radius: 50%;
    filter: blur(100px); pointer-events: none;
    z-index: 0; animation: blobDrift 14s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: rgba(194,121,127,0.1);
    top: -150px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: rgba(122,158,142,0.08);
    bottom: 20%; left: -120px;
    animation-delay: -5s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: rgba(194,121,127,0.06);
    bottom: 0; right: 10%;
    animation-delay: -9s;
}
@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.03); }
    66%       { transform: translate(-15px, 25px) scale(0.97); }
}

/* ---- Container ---- */
.container { width: min(90%, 1060px); margin: 0 auto; position: relative; z-index: 1; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.3rem 0;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
    background: rgba(250,246,241,0.88);
    backdrop-filter: blur(18px);
    padding: 0.9rem 0;
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    width: min(90%, 1060px); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 500; font-style: italic;
    color: var(--text); text-decoration: none; line-height: 1;
}
.logo span { color: var(--rose); }

.nav-links { display: flex; list-style: none; align-items: center; gap: 2.2rem; }
.nav-links a {
    color: var(--text-mid); text-decoration: none;
    font-size: 0.875rem; font-weight: 400;
    transition: color 0.25s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1px; background: var(--rose);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--rose) !important;
    color: white !important;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-weight: 500 !important;
    transition: background 0.25s, transform 0.2s !important;
}
.nav-cta:hover { background: #d4898f !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text); border-radius: 2px; transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 100vh; padding: 140px 0 0;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.hero-inner {
    width: min(90%, 1060px); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    flex: 1; padding-bottom: 3rem;
    position: relative; z-index: 1;
}

.hero-eyebrow {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; color: var(--text-dim);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.dot-green {
    width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
    box-shadow: 0 0 0 0 rgba(122,158,142,0.5);
    animation: pulseSage 2s infinite;
}
@keyframes pulseSage {
    0%  { box-shadow: 0 0 0 0 rgba(122,158,142,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(122,158,142,0); }
    100%{ box-shadow: 0 0 0 0 rgba(122,158,142,0); }
}
.sep { color: var(--text-dim); }
.mono { font-family: 'DM Mono', monospace; }

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 300; line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem; color: var(--text);
}
.hero-name em { color: var(--rose); font-style: italic; }

.hero-role {
    font-size: 1.1rem; color: var(--text-mid);
    font-weight: 400; margin-bottom: 1.2rem; letter-spacing: 0.02em;
}
.amp { color: var(--rose); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; }

.hero-bio {
    font-size: 1rem; color: var(--text-dim);
    line-height: 1.85; margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center;
    background: var(--rose); color: white;
    padding: 0.85rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 500; font-size: 0.9rem;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(194,121,127,0.3);
}
.btn-primary:hover { background: #d4898f; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(194,121,127,0.4); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border: 1px solid var(--border-mid); color: var(--text-mid);
    padding: 0.85rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 400; font-size: 0.9rem;
    transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-dim); }

/* Photo */
.hero-photo { position: relative; display: flex; justify-content: center; }
.photo-frame {
    position: relative;
    width: clamp(250px, 36vw, 390px);
}
.photo-frame img {
    width: 100%; display: block;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    object-fit: cover; aspect-ratio: 4/5;
    border: 1px solid var(--border-mid);
    filter: saturate(0.9) contrast(1.02);
}
.photo-deco {
    position: absolute; inset: -8px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1.5px dashed rgba(194,121,127,0.35);
    pointer-events: none;
    animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.floating-chip {
    position: absolute;
    background: white;
    border: 1px solid var(--border-mid);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.78rem; font-weight: 500; color: var(--text-mid);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 0.4rem;
    animation: chipFloat 4s ease-in-out infinite;
    white-space: nowrap;
}
.chip-1 { top: 12%; left: -10%; animation-delay: 0s; }
.chip-2 { top: 48%; right: -8%; animation-delay: -1.5s; }
.chip-3 { bottom: 12%; left: -5%; animation-delay: -3s; }
.floating-chip i { color: var(--rose); }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Marquee */
.hero-marquee {
    width: 100%; overflow: hidden;
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
    background: var(--cream-alt);
    position: relative; z-index: 1;
}
.marquee-track {
    display: flex; align-items: center; gap: 2rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-style: italic;
    color: var(--text-mid); letter-spacing: 0.03em;
}
.marquee-track .bullet { color: var(--rose); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================
   SECTIONS COMMON
   =========================== */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    color: var(--rose); letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300; line-height: 1.1;
    letter-spacing: -0.01em; margin-bottom: 3rem;
}
.section-heading em { color: var(--rose); font-style: italic; }

/* ===========================
   ABOUT
   =========================== */
.about-section { background: var(--cream); }
.about-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem; align-items: start;
}
.about-left p {
    color: var(--text-mid); font-size: 1.02rem;
    line-height: 1.85; margin-bottom: 1.2rem;
}
.about-left strong { color: var(--text); font-weight: 500; }
.about-interests {
    margin-top: 2rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.about-interests span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-style: italic; color: var(--rose);
    letter-spacing: 0.02em;
}

.about-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.about-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-big {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; font-weight: 300;
    color: var(--rose); line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-sub { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===========================
   EXPERIENCE
   =========================== */
.exp-section { background: var(--cream-alt); }
.exp-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.exp-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.exp-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem; gap: 1rem;
}
.exp-card-header h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; }
.exp-company {
    font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--rose);
}
.exp-tag {
    background: var(--rose-dim); color: var(--rose);
    border: 1px solid rgba(194,121,127,0.25);
    padding: 0.25rem 0.85rem; border-radius: 50px;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.exp-tag--vol { background: var(--sage-dim); color: var(--sage); border-color: rgba(122,158,142,0.25); }

.exp-list {
    list-style: none; margin-bottom: 1.5rem;
}
.exp-list li {
    color: var(--text-mid); font-size: 0.95rem; line-height: 1.8;
    padding: 0.45rem 0; border-bottom: 1px solid var(--border);
    padding-left: 1.2rem; position: relative;
}
.exp-list li:last-child { border-bottom: none; }
.exp-list li::before {
    content: '—'; color: var(--rose);
    position: absolute; left: 0;
    font-size: 0.75rem;
}

.exp-desc { color: var(--text-mid); font-size: 0.95rem; line-height: 1.8; }

.exp-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.exp-skills span {
    background: var(--cream-alt); border: 1px solid var(--border);
    color: var(--text-mid); padding: 0.25rem 0.8rem;
    border-radius: 6px; font-size: 0.78rem;
}

/* ===========================
   SKILLS
   =========================== */
.skills-section { background: var(--cream); }
.skills-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.skill-block {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.skill-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-block:hover .skill-block-icon i { transform: scale(1.1) rotate(-5deg); }

.skill-block-icon {
    width: 48px; height: 48px;
    background: var(--rose-dim);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
}
.skill-block-icon i { font-size: 1.2rem; color: var(--rose); transition: transform 0.3s; }

.skill-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 500;
    margin-bottom: 1.1rem; color: var(--text);
}
.skill-block ul { list-style: none; }
.skill-block li {
    color: var(--text-mid); font-size: 0.9rem; line-height: 1;
    padding: 0.5rem 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.5rem;
}
.skill-block li:last-child { border-bottom: none; }
.skill-block li::before {
    content: '·'; color: var(--rose-light); font-size: 1.4rem; line-height: 0; flex-shrink: 0;
}

/* ===========================
   EDUCATION
   =========================== */
.edu-section { background: var(--cream-alt); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.col-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-style: italic; color: var(--rose);
    margin-bottom: 2rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.edu-item {
    margin-bottom: 2.2rem; padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; margin-bottom: 0; }
.edu-year {
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    color: var(--text-dim); letter-spacing: 0.08em;
    display: block; margin-bottom: 0.5rem;
}
.edu-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.edu-item p { color: var(--text-mid); font-size: 0.9rem; }

.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, border-color 0.25s;
}
.cert-item:hover { transform: translateX(4px); border-color: var(--rose-light); }
.cert-item > i { color: var(--rose); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.cert-name { font-size: 0.92rem; font-weight: 500; margin-bottom: 0.2rem; }
.cert-org { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--text-dim); }

/* ===========================
   FOOTER
   =========================== */
.footer {
    position: relative; overflow: hidden;
    padding: 110px 0 60px;
    border-top: 1px solid var(--border);
    background: var(--cream);
    text-align: center;
}
.footer-blob {
    position: absolute; width: 700px; height: 300px; border-radius: 50%;
    background: rgba(194,121,127,0.07); filter: blur(80px);
    top: -50px; left: 50%; transform: translateX(-50%);
    pointer-events: none;
}
.footer-content { position: relative; z-index: 1; margin-bottom: 4rem; }
.footer-eyebrow {
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    color: var(--rose); text-transform: uppercase;
    letter-spacing: 0.15em; margin-bottom: 1rem;
}
.footer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 300; line-height: 1; margin-bottom: 2.5rem;
}
.footer-title em { color: var(--rose); font-style: italic; }

.footer-email {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-mid); text-decoration: none;
    border: 1px solid var(--border-mid); border-radius: 50px;
    padding: 0.9rem 2rem; margin-bottom: 2.5rem;
    transition: all 0.3s;
}
.footer-email:hover { color: var(--rose); border-color: var(--rose); background: var(--rose-dim); }
.footer-email i { font-size: 0.85rem; transition: transform 0.25s; }
.footer-email:hover i { transform: translate(3px, -3px); }

.footer-socials { margin-bottom: 0; }
.social-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-dim); text-decoration: none; font-size: 0.88rem;
    padding: 0.5rem 1.2rem; border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.social-pill:hover { color: var(--rose); border-color: var(--rose-light); background: var(--rose-dim); }
.social-pill i { font-size: 0.85rem; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2.5rem; border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); font-family: 'DM Mono', monospace; }

/* ===========================
   ANIMATIONS
   =========================== */
.fade-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger within containers */
.about-grid .fade-up:nth-child(2) { transition-delay: 0.15s; }
.exp-cards .fade-up:nth-child(2) { transition-delay: 0.15s; }
.skills-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }
.edu-grid .fade-up:nth-child(2) { transition-delay: 0.15s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: -100%;
        width: min(300px, 82vw); height: 100vh;
        background: var(--cream);
        border-left: 1px solid var(--border);
        padding: 6rem 2.5rem 3rem;
        gap: 2rem; transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1rem; }

    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-photo { order: -1; }
    .photo-frame { max-width: 260px; margin: 0 auto; }
    .chip-1, .chip-2, .chip-3 { display: none; }
    .hero-text { text-align: center; }
    .hero-bio { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-eyebrow { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 560px) {
    .about-stat-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* Selection */
::selection { background: rgba(194,121,127,0.18); color: var(--text); }