/* ============================================
   PORTFOLIO — Shobhit Singh
   Sidebar + Tabs Layout — Dark Glassmorphism
   ============================================ */

/* ======== CSS VARIABLES ======== */
:root {
  --bg-primary: #0b0b10;
  --bg-secondary: #111118;
  --bg-sidebar: #0f0f16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: rgba(0, 0, 0, 0.4);

  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #63637a;

  --accent: #a78bfa;
  --accent-start: #8b5cf6;
  --accent-end: #06b6d4;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));

  --amber: #f59e0b;
  --green: #22c55e;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ======== GLASS CARD ======== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.18);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.06);
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-success {
  background: var(--green) !important;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3) !important;
}

/* ======== TAGS ======== */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.12);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar-inner {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 21px;
  background: var(--bg-sidebar);
}

.avatar-initials {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.avatar-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--bg-sidebar);
  z-index: 2;
}

.sidebar-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.sidebar-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
  margin: 24px 0;
}

/* Sidebar Info */
.sidebar-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
}

.info-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  word-break: break-word;
}

a.info-value:hover {
  color: var(--accent);
}

/* Sidebar Socials */
.sidebar-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.sidebar-social-link:hover {
  color: var(--accent);
  border-color: var(--accent-start);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.sidebar-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--accent-gradient);
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.sidebar-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 40px 48px 80px;
}

/* Mobile Header */
.mobile-header {
  display: none;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.menu-toggle {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--bg-card-hover);
}

.mobile-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-bracket {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======== TABS NAV ======== */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.tab-btn i {
  font-size: 0.9rem;
}

/* ======== TAB CONTENT ======== */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Header */
.content-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-line {
  width: 48px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  margin-top: 12px;
}

.sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 40px;
  color: var(--text-primary);
}

/* ============================================
   ABOUT TAB
   ============================================ */
.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* What I Do */
.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.wid-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wid-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.wid-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.wid-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   RESUME TAB
   ============================================ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.resume-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.resume-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(139, 92, 246, 0.2);
}

.resume-item {
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.resume-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid var(--bg-primary);
}

.resume-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.resume-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.resume-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.resume-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   PROJECTS TAB
   ============================================ */
.project-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: rgba(139, 92, 246, 0.3);
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition), opacity 0.4s ease, transform 0.4s ease;
}

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.project-card:hover .project-image-placeholder {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: var(--transition);
  transform: translateY(8px);
}

.project-card:hover .project-action-btn {
  transform: translateY(0);
}

.project-action-btn:hover {
  border-color: var(--accent-start);
  background: rgba(139, 92, 246, 0.2);
}

.project-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}

/* ============================================
   SKILLS TAB
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.skill-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Soft Skills */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.soft-skill-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.soft-skill-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-end);
  font-size: 1.1rem;
}

.soft-skill-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.soft-skill-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CONTACT TAB
   ============================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: var(--transition);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-info-card:hover .contact-info-icon {
  background: var(--accent-gradient);
  color: #fff;
}

.contact-info-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  padding: 32px;
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -10px;
  left: 12px;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--bg-primary);
  padding: 0 6px;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .main-content {
    padding: 32px 32px 80px;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 200;
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 20px 16px 80px;
  }

  .mobile-header {
    display: flex;
  }

  .tabs-nav {
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.78rem;
    gap: 6px;
    border-radius: 8px;
  }

  .tab-btn span {
    display: none;
  }

  .what-i-do-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .wid-card {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }
}