/* ═══════════════════════════════════════════════
   swati-projects.com  –  Dark Theme Portfolio CSS
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:          #0d0f14;
  --bg-alt:      #12151d;
  --surface:     #1a1e2a;
  --surface-2:   #222738;
  --border:      #2a2f3f;
  --accent:      #7c6af5;
  --accent-2:    #5eead4;
  --text:        #e2e8f0;
  --text-muted:  #8892a4;
  --text-dim:    #4e586b;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.25s ease;
}

/* ── Light theme ── */
body.light {
  --bg:          #f8f9fb;
  --bg-alt:      #f0f2f5;
  --surface:     #ffffff;
  --surface-2:   #e8eaed;
  --border:      #d1d5db;
  --accent:      #6c55f5;
  --accent-2:    #0d9488;
  --text:        #111827;
  --text-muted:  #4b5563;
  --text-dim:    #9ca3af;
  --shadow:      0 4px 24px rgba(0,0,0,0.1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ═══════════════════════════════ NAVBAR ══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: #a0aec0;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #a0aec0;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  transition: all var(--transition);
  margin-left: auto;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: #fff;
}

.nav-linkedin {
  font-size: 1.25rem;
  color: #a0aec0;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.nav-linkedin:hover { color: #0a66c2; }

.nav-admin {
  font-size: 1rem;
  color: #a0aec0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.nav-admin:hover {
  border-color: var(--accent);
  color: var(--accent);
}
body.light .nav-admin       { color: #374151; border-color: #d1d5db; }
body.light .nav-admin:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 0;
}

/* ── Navbar: light theme overrides ── */
body.light .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}
body.light .nav-links a        { color: #374151; }
body.light .nav-links a:hover  { color: #111827; }
body.light .theme-toggle       { color: #374151; border-color: #d1d5db; }
body.light .theme-toggle:hover { color: #111827; border-color: var(--accent); }
body.light .nav-linkedin       { color: #374151; }
body.light .nav-toggle         { color: #374151; }
body.light .resume-btn         { color: #374151; border-color: #d1d5db; }
body.light .resume-btn:hover   { color: #111827; border-color: var(--accent); }

/* ═══════════════════════════════ LANDING (sidebar + projects) ══════════ */
.landing {
  display: flex;
  min-height: 100vh;
  padding-top: 60px; /* navbar height */
}

/* ── Left sidebar ── */
.sidebar {
  position: sticky;
  top: 60px;
  width: 280px;
  flex-shrink: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 3rem 2rem 3rem 2.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-greeting {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sidebar-cta {
  margin-top: 1rem;
  text-align: center;
}

.cert-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.cert {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

/* ── Right projects area ── */
.projects-main {
  flex: 1;
  padding: 3rem 2.5rem;
  background: var(--bg-alt);
  min-width: 0; /* prevent grid blowout */
}

.projects-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════ SECTIONS ══════════════════════════ */
.section        { padding: 5rem 0; }
.section-alt    { background: var(--bg-alt); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-title  {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ═══════════════════════════════ BUTTONS ════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ═══════════════════════════════ ABOUT ═════════════════════════════ */
.about-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.about-avatar { flex-shrink: 0; }

.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent);
}

.about-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent);
}

.about-text p { color: var(--text-muted); margin-bottom: 1rem; max-width: 600px; }

.about-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.contact-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.contact-info i {
  color: var(--accent);
  width: 14px;
  text-align: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 106, 245, 0.07);
}

.social-link-toggle {
  background: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  justify-content: flex-start;
}
.social-link-toggle.open {
  border-color: var(--accent);
  color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.social-link-toggle .contact-chevron { margin-left: auto; }

.sidebar-reveal {
  border-radius: 0 0 8px 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.social-link-linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
}
.social-link-linkedin:hover {
  color: #fff;
  background: #0a66c2;
  border-color: #0a66c2;
}

.contact-option-linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
}
.contact-option-linkedin:hover {
  color: #fff;
  background: #0a66c2;
  border-color: #0a66c2;
}

/* ═══════════════════════════════ PROJECTS ══════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(124, 106, 245, 0.18);
  border-color: var(--accent);
}

.project-image {
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}
.project-image img { width: 100%; height: auto; display: block; }

.placeholder-img {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(124, 106, 245, 0.15);
  color: var(--accent);
  border: 1px solid rgba(124, 106, 245, 0.25);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════ SKILLS ════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skill-category h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface-2);
  transition: all var(--transition);
}
.skill-badge:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ═══════════════════════════════ CONTACT ═══════════════════════════ */
.contact-container { max-width: 640px; }

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-option-wrap {
  display: flex;
  flex-direction: column;
}

.contact-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.contact-option-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-alt);
}
.contact-option-btn.open {
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.contact-option-btn i:first-child {
  font-size: 1.2rem;
  width: 1.4rem;
  text-align: center;
}
.contact-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform var(--transition);
}
.contact-option-btn.open .contact-chevron {
  transform: rotate(180deg);
}

.contact-reveal {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 0.75rem 1.25rem;
}
.contact-reveal.open { display: block; }
.contact-reveal a {
  color: var(--accent);
  font-size: 0.95rem;
  word-break: break-all;
}

/* ── Resume dropdown ── */
.resume-dropdown {
  position: relative;
}

.resume-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.resume-btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.resume-chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
}
.resume-dropdown.open .resume-chevron {
  transform: rotate(180deg);
}

.resume-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 150;
  overflow: hidden;
}
.resume-dropdown.open .resume-menu { display: block; }

.resume-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.resume-menu li a:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.resume-menu li a .fa-file-pdf  { color: #ef4444; }
.resume-menu li a .fa-file-word { color: #3b82f6; }

/* ═══════════════════════════════ MODAL ═════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow);
  animation: fadeUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--accent); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.modal-form input,
.modal-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  transition: border-color var(--transition);
}
.modal-form input:focus,
.modal-form textarea:focus { outline: none; border-color: var(--accent); }
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--text-dim); }

.modal-form-status {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

/* ═══════════════════════════════ FOOTER ════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.heart { color: #f472b6; }

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 1.2rem;
}
.footer-links a { color: var(--text-dim); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2.5rem 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  /* Stack sidebar above projects on mobile */
  .landing { flex-direction: column; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.25rem;
    align-items: flex-start;
  }
  .projects-main { padding: 2rem 1.25rem; }

  .about-grid { flex-direction: column; align-items: center; text-align: center; }
  .about-links { justify-content: center; }

  .form-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
