/* ============================================================
   Harpreet Kaur Portfolio — styles.css
   Color palette: Dusty rose · Cream · Dark brown
   ============================================================ */

:root {
  --rose:        #a85f3a;
  --rose-light:  #d4906a;
  --rose-pale:   #f5e6dc;
  --cream:       #f7ede3;
  --brown:       #2e1a0e;
  --brown-mid:   #5a3018;
  --brown-light: #8a5030;
  --text:        #1e0e06;
  --text-muted:  #5a3a22;
  --border:      #c8a882;
  --white:       #fffaf6;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Georgia', serif; background: var(--cream); color: var(--text); }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 237, 227, 0.97);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
}
.nav-logo { font-size: 1.1rem; font-weight: bold; color: var(--brown); letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s; font-family: 'Arial', sans-serif;
}
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.contact-btn {
  background: var(--brown); color: var(--cream);
  padding: 0.5rem 1.2rem; border: none; font-size: 0.82rem;
  cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'Arial', sans-serif; transition: background 0.2s;
}
.contact-btn:hover { background: var(--rose); }

/* ============================================================
   PAGE SWITCHING
   ============================================================ */
.page { display: none; min-height: 100vh; padding-top: 64px; }
.page.active { display: block; }

/* ============================================================
   ABOUT — HERO
   ============================================================ */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); }

.hero-left {
  background: var(--brown); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3.5rem;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose-light); font-family: 'Arial', sans-serif; margin-bottom: 1rem;
}
.hero-name { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 0.5rem; }
.hero-contact { font-size: 1rem; color: #d89e7dbd; font-style: italic; margin-bottom: 2rem; }
.hero-divider{
    width:120px;
    height:0.5px;
    background:#d4a574;
    margin:1rem 0 1.5rem;
}

.hero-titles { font-size: 1.2rem; color: #e3bca0; font-style: bold; font-weight: 300;}
.hero-philosophy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ffc8a9;
  font-style: italic;
  margin: 0.75rem 0 1.5rem;
  max-width: 650px;
  padding-left: 2em;
}

.hero-summary { font-size: 1rem; line-height: 1.8; color: #e0c8b8; max-width: 480px; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--rose); color: white;
  padding: 0.7rem 1.5rem; border: none; font-size: 0.82rem;
  cursor: pointer; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Arial', sans-serif; transition: all 0.2s;
}
.btn-primary:hover { background: var(--brown-mid); }
.btn-outline {
  background: transparent; color: var(--cream);
  padding: 0.7rem 1.5rem; border: 1px solid var(--cream); font-size: 0.82rem;
  cursor: pointer; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Arial', sans-serif; transition: all 0.2s;
}
.btn-outline:hover { background: var(--cream); color: var(--brown); }

.hero-right {
  background: var(--rose-pale); position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden;
}
.photo-frame {
  width: 320px; height: 420px; overflow: hidden;
  border: 3px solid var(--border);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block;
}
.photo-placeholder-inner {
  width: 100%; height: 100%; background: var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-family: 'Arial', sans-serif; font-size: 0.85rem; text-align: center;
  cursor: pointer;
}
.photo-placeholder-inner .initials { font-size: 4rem; color: var(--rose); font-family: 'Georgia', serif; margin-bottom: 0.5rem; }
.photo-upload-btn {
  margin-top: 1rem; padding: 0.5rem 1rem; background: var(--rose);
  color: white; border: none; cursor: pointer; font-family: 'Arial', sans-serif; font-size: 0.8rem;
}
.hero-tag {
  position: absolute; right: 0; top: 0; bottom: 0; width: 28px;
  background: var(--brown); display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-light); font-family: 'Arial', sans-serif; user-select: none;
}

/* ============================================================
   ABOUT — SECTIONS
   ============================================================ */
.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose); font-family: 'Arial', sans-serif; margin-bottom: 1.5rem;
}
.about-sections { padding: 5rem 6rem; background: var(--cream); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.value-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 2rem 1.5rem; text-align: center;
}
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-title { font-size: 1.1rem; color: var(--brown); margin-bottom: 0.5rem; font-weight: bold; }
.value-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; font-family: 'Arial', sans-serif; }

.duality-section { background: var(--brown); color: var(--cream); padding: 4rem 6rem; }
.duality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.duality-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.duality-card.tech h3 { color: var(--rose-light); }
.duality-card.creative h3 { color: #d4c5b0; }
.duality-card p { font-size: 0.92rem; line-height: 1.8; color: #c0a888; font-family: 'Arial', sans-serif; }
.duality-divider { border: none; border-top: 1px solid var(--brown-mid); margin: 2rem 0; }
.duality-quote { text-align: center; font-style: italic; font-size: 1.1rem; color: var(--rose-light); }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-hero { background: var(--brown); padding: 5rem 6rem 3rem; }
.exp-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); }
.exp-hero p { color: var(--rose-light); margin-top: 0.5rem; font-family: 'Arial', sans-serif; font-size: 0.9rem; }

.timeline { padding: 4rem 6rem; }
.job {
  margin-bottom: 3.5rem; border-left: 2px solid var(--border);
  padding-left: 2rem; position: relative;
}
.job::before {
  content: ''; position: absolute; left: -5px; top: 6px;
  width: 8px; height: 8px; background: var(--rose);
  border-radius: 50%; border: 2px solid var(--cream);
}
.job-meta { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.job-company { font-size: 1.15rem; color: var(--brown); font-weight: bold; }
.job-date {
  font-family: 'Arial', sans-serif; font-size: 0.78rem; color: var(--rose);
  background: var(--rose-pale); padding: 0.2rem 0.6rem; border: 1px solid var(--rose-light);
}
.job-role {
  font-size: 0.85rem; color: var(--brown-mid); font-family: 'Arial', sans-serif;
  letter-spacing: 0.04em; margin-bottom: 0.25rem; font-style: italic;
}
.job-location { font-size: 0.78rem; color: var(--text-muted); font-family: 'Arial', sans-serif; margin-bottom: 0.8rem; }
.job-bullets { list-style: none; padding: 0; }
.job-bullets li {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
  font-family: 'Arial', sans-serif; padding-left: 1.2rem; position: relative; margin-bottom: 0.4rem;
}
.job-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--rose); }

.projects-section { background: var(--rose-pale); padding: 4rem 6rem; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.proj-card { background: var(--white); border: 1px solid var(--border); padding: 2rem; }
.proj-title { font-size: 1rem; color: var(--brown); margin-bottom: 0.3rem; font-weight: bold; }
.proj-date { font-size: 0.75rem; color: var(--rose); font-family: 'Arial', sans-serif; margin-bottom: 0.8rem; }
.proj-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; font-family: 'Arial', sans-serif; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-hero { background: var(--rose); padding: 5rem 6rem 3rem; }
.edu-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.edu-hero p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; font-family: 'Arial', sans-serif; font-size: 0.9rem; }

.edu-cards { padding: 4rem 6rem; display: grid; gap: 2.5rem; }
.edu-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 3rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
}
.edu-year { font-size: 2.5rem; color: var(--rose-light); font-weight: bold; }
.edu-degree { font-size: 1.2rem; color: var(--brown); margin-bottom: 0.3rem; font-weight: bold; }
.edu-school { font-size: 0.92rem; color: var(--rose); font-family: 'Arial', sans-serif; margin-bottom: 0.3rem; }
.edu-location { font-size: 0.82rem; color: var(--text-muted); font-family: 'Arial', sans-serif; margin-bottom: 1rem; }
.edu-gpa {
  display: inline-block; background: var(--rose-pale); color: var(--brown-mid);
  padding: 0.3rem 0.8rem; font-size: 0.8rem; font-family: 'Arial', sans-serif;
  border: 1px solid var(--rose-light); font-weight: bold;
}
.skills-section { background: var(--brown); padding: 4rem 6rem; }
.skills-section h2 { color: var(--cream); margin-bottom: 2rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skill-chip {
  background: rgba(168, 95, 58, 0.2); border: 1px solid var(--rose);
  color: var(--rose-light); padding: 0.6rem 1rem;
  font-size: 0.82rem; font-family: 'Arial', sans-serif; text-align: center;
}

/* ============================================================
   CREATIVE
   ============================================================ */
.creative-hero { background: var(--rose-pale); padding: 5rem 6rem 3rem; border-bottom: 1px solid var(--border); }
.creative-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brown); }
.creative-hero p { color: var(--text-muted); margin-top: 0.5rem; font-family: 'Arial', sans-serif; font-size: 0.9rem; }

.creative-tabs { display: flex; border-bottom: 2px solid var(--border); background: var(--cream); }
.ctab {
  padding: 1rem 2rem; border: none; background: none; cursor: pointer;
  font-family: 'Arial', sans-serif; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.ctab.active { color: var(--rose); border-bottom-color: var(--rose); font-weight: bold; }
.ctab:hover { color: var(--rose); }

.creative-panel { display: none; padding: 4rem 6rem; }
.creative-panel.active { display: block; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.media-cell {
  aspect-ratio: 4/3; background: var(--rose-pale);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-family: 'Arial', sans-serif; font-size: 0.78rem; text-align: center;
  border: 2px dashed var(--rose-light); padding: 1rem; cursor: pointer;
  transition: background 0.2s; position: relative; overflow: hidden;
}
.media-cell:hover { background: var(--border); }
.media-cell img, .media-cell video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-cell.portrait { aspect-ratio: 3/4; }
.media-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.media-label { margin-top: 0.5rem; color: var(--rose); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.media-overlay {
  position: absolute; inset: 0; background: rgba(46, 26, 14, 0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-family: 'Arial', sans-serif; font-size: 0.82rem;
  opacity: 0; transition: opacity 0.2s; cursor: pointer;
}
.media-cell:hover .media-overlay { opacity: 1; }

.audio-list { margin-top: 1rem; }
.audio-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  padding: 1.2rem 1.5rem; margin-bottom: 1rem; cursor: pointer;
  transition: background 0.15s;
}
.audio-item:hover { background: var(--rose-pale); }
.audio-play {
  width: 36px; height: 36px; background: var(--rose); border: none;
  color: white; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.audio-info { flex: 1; }
.audio-title { font-size: 0.9rem; color: var(--brown); font-weight: bold; }
.audio-sub { font-size: 0.75rem; color: var(--text-muted); font-family: 'Arial', sans-serif; }
.audio-dur { font-size: 0.78rem; color: var(--text-muted); font-family: 'Arial', sans-serif; }

.upload-info {
  margin-top: 2rem; background: var(--white); border: 1px solid var(--border);
  padding: 1.5rem; border-left: 4px solid var(--rose);
}
.upload-info h4 { font-size: 0.9rem; color: var(--brown); margin-bottom: 0.75rem; font-family: 'Arial', sans-serif; }
.upload-info p { font-size: 0.82rem; color: var(--text-muted); font-family: 'Arial', sans-serif; line-height: 1.7; }


.rotated-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
}

.rotated-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56.25cqh;   /* swap: use container height as width */
    height: 100cqw;    /* swap: use container width as height */
    transform: translate(-50%, -50%) rotate(-90deg);
    object-fit: cover;
    object-position: center top;
}

#creative-candles .media-cell {
    aspect-ratio: 3/2.5;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.photo-item {
    display: flex;
    align-items: flex-end;
}

.photo-item img {
    display: block;
    height: 220px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}





/* ============================================================
   CHATBOT
   ============================================================ */
#chat-bubble {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 54px; height: 54px; background: var(--brown); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(46,26,14,0.4);
  transition: transform 0.2s; color: white; font-size: 1.3rem;
}
#chat-bubble:hover { transform: scale(1.08); }
.notif {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px; background: var(--rose);
  border-radius: 50%; border: 2px solid var(--cream); display: none;
}
#chat-window {
  position: fixed; bottom: 6.5rem; right: 2rem; z-index: 200;
  width: 370px; background: var(--white); border: 1px solid var(--border);
  display: none; flex-direction: column;
  box-shadow: 0 8px 40px rgba(46,26,14,0.22); max-height: 540px;
}
#chat-window.open { display: flex; }
.chat-header {
  background: var(--brown); color: var(--cream);
  padding: 1rem 1.2rem; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: bold; color: white; flex-shrink: 0;
}
.chat-header-text h4 { font-size: 0.88rem; margin: 0; }
.chat-header-text p { font-size: 0.72rem; color: var(--rose-light); margin: 0; font-family: 'Arial', sans-serif; }
.chat-status { width: 8px; height: 8px; background: #5cb85c; border-radius: 50%; display: inline-block; margin-right: 4px; }
.chat-close { background: none; border: none; color: var(--cream); cursor: pointer; font-size: 1.1rem; opacity: 0.8; }
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 200px; max-height: 340px;
}
.msg { max-width: 88%; font-size: 0.84rem; line-height: 1.6; padding: 0.65rem 0.9rem; font-family: 'Arial', sans-serif; }
.msg.bot { background: var(--rose-pale); color: var(--text); align-self: flex-start; border-left: 3px solid var(--rose); }
.msg.user { background: var(--brown); color: var(--cream); align-self: flex-end; }
.msg.typing { background: var(--rose-pale); color: var(--text-muted); font-style: italic; align-self: flex-start; }
.chat-suggestions { padding: 0.5rem 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; border-top: 1px solid var(--border); }
.sug-label { width: 100%; font-size: 0.7rem; color: var(--text-muted); font-family: 'Arial', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.sug-btn {
  background: var(--cream); border: 1px solid var(--border); color: var(--brown-mid);
  padding: 0.3rem 0.65rem; font-size: 0.72rem; cursor: pointer;
  font-family: 'Arial', sans-serif; transition: all 0.15s;
}
.sug-btn:hover { background: var(--rose); color: white; border-color: var(--rose); }
.chat-input-area { display: flex; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input-area input {
  flex: 1; border: none; padding: 0.85rem 1rem; font-size: 0.84rem;
  outline: none; font-family: 'Arial', sans-serif; background: var(--white); color: var(--text);
}
.chat-send-btn { background: var(--rose); border: none; color: white; padding: 0 1.2rem; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.chat-send-btn:hover { background: var(--brown); }
.chat-error { font-size: 0.75rem; color: #a33; font-family: 'Arial', sans-serif; padding: 0.3rem 1rem; background: #fff0f0; border-top: 1px solid #fcc; display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--brown); color: var(--cream); text-align: center;
  padding: 2.5rem; font-family: 'Arial', sans-serif; font-size: 0.82rem; letter-spacing: 0.05em;
}
footer a { color: var(--rose-light); text-decoration: none; margin: 0 0.5rem; }
footer a:hover { color: var(--rose); }
footer p:first-child { margin-bottom: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 340px; }
  .about-sections, .timeline, .projects-section,
  .edu-cards, .skills-section, .creative-hero,
  .creative-panel, .duality-section, .exp-hero, .edu-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .duality-grid, .values-grid, .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  #chat-window { width: calc(100vw - 2rem); right: 1rem; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .media-grid { grid-template-columns: 1fr; }
  .creative-tabs { flex-wrap: wrap; }
  .ctab { flex: 1 1 50%; }
}