/* ====== VARIABLES & RESET ====== */
:root {
  --bg: #1e2426;
  --panel: #252b2d;
  --chalk: #f8f9fa;
  --accent: #ffcc5c;
  --muted: rgba(248, 249, 250, 0.75);
  --radius: 10px;
  --gap: 24px;
  --nav-width: 300px;
  --transition: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-width: 1100px;
  --focus: 0 0 0 4px rgba(255, 204, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  color: var(--chalk);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

p {
  margin: 0.5rem 0;
  font-family: "Inter", sans-serif;
}

/* ====== LAYOUT ====== */
.app {
  display: flex;
  min-height: 100vh;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: var(--nav-width);
  position: sticky;
  top: 48px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), #1f2628);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
}

.brand h1 {
  font-size: 18px;
  margin: 0;
  color: var(--chalk);
  line-height: 1;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.brand p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.logo img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.brand:hover h1,
.brand:active h1 {
  color: var(--accent);
}

.brand-name-link {
  display: flex;
  flex-direction: column;
}

nav.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--chalk);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.02);
  transition: all var(--transition);
}

.nav-link:hover {
  transform: translateX(6px);
  color: var(--accent);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 204, 92, 0.07), transparent);
  border-color: rgba(255, 204, 92, 0.12);
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
}

.copyright {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.02);
  color: var(--chalk);
  text-decoration: none;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent);
}

/* ====== MOBILE ELEMENTS ====== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--chalk);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  padding: 15px 20px;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: space-between;
}

.mobile-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--chalk);
}

.overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* ====== MAIN CONTENT ====== */
.main {
  max-width: var(--max-width);
  width: 100%;
  padding: 12px 24px;
  margin-left: 10px;
}

.section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  scroll-margin-top: 56px;
}

.section.visible {
  opacity: 1;
  transform: none;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.section-heading {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ====== HERO SECTION ====== */
.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.03);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #efe1c0, #d8c49a);
  display: grid;
  place-items: center;
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
}

.hero h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  color: var(--chalk);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.hero-name {
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  max-width: 75ch;
  font-weight: 400;
}

.hero-description {
  margin-top: 20px;
}

.hero-description strong {
  color: var(--chalk);
  font-weight: 600;
}

.hero .cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 600;
  text-decoration: none;
  color: var(--chalk);
  background: transparent;
}

.hero .cta:hover {
  box-shadow: var(--focus);
  color: var(--accent);
}

.badge {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  font-weight: 600;
  margin-top: 12px;
}

/* ====== CAREER JOURNEY ====== */
.career-card {
  display: flex;
  background: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--accent);
}

.career-card:hover .career-header h4 {
  color: var(--accent);
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(99, 102, 241, 0.05);
  min-width: 120px;
}

.company-logo img {
  max-width: 80px;
  max-height: 40px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.career-card:hover .company-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.career-content {
  padding: 20px;
  flex: 1;
}

.career-header {
  margin-bottom: 15px;
}

.career-header h4 {
  margin: 0 0 5px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--chalk);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.company-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.company-link i {
  font-size: 12px;
}

.career-period {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.career-responsibilities {
  margin: 0 0 15px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.career-responsibilities li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.career-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ====== FEATURES SECTION ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 25px;
  text-align: center;
}

.feature-icon {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* ====== PROJECTS ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.03);
  background: transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 204, 92, 0.12);
}

.project:hover h4 {
  color: var(--accent);
}

.project p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.project-content {
  flex-grow: 1;
}

.project-actions {
  margin-top: auto;
  padding-top: 15px;
}

.project-thumb {
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(248, 249, 250, 0.3);
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-back {
  display: inline-flex;
  margin-bottom: 16px;
}

.project-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.project-view {
  margin-top: 15px;
  display: inline-block;
}

.project-view-all {
  margin-top: 30px;
}

/* ====== FILTERS & TAGS ====== */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
  justify-content: center;
}

.filter-description {
  color: var(--muted);
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--chalk);
  border: 1px dashed rgba(248, 249, 250, 0.3);
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border: 1px dashed var(--accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.project-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(248, 249, 250, 0.3);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ====== TECH STACK ====== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.tech-item {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-item:hover {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}

.tech-stack-text {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* ====== CONTACT ====== */
.contact-offer {
  color: var(--muted);
}

.contact-description {
  color: var(--muted);
  margin-bottom: 20px;
}

.contact-cta {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--chalk);
  text-decoration: none;
  font-weight: 500;
}

.contact-cta:hover {
  color: var(--accent);
  box-shadow: var(--focus);
}

.social-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-icon-compact {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(248, 249, 250, 0.3);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--chalk);
  transition: all 0.3s ease;
}

.social-icon-compact:hover,
.social-icon-compact:active {
  transform: translateY(-5px) scale(1.1);
  background: var(--accent);
  color: var(--bg);
  border: 2px dashed var(--accent);
}

/* ====== FORMS ====== */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(248, 249, 250, 0.2);
  border-radius: var(--radius);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--chalk);
  transition: all 0.3s ease;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border: 2px dashed var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
  padding: 15px 30px;
  background: var(--accent);
  color: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover,
.btn-submit:active {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(248, 249, 250, 0.2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.contact-item:hover,
.contact-item:active {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed var(--accent);
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(248, 249, 250, 0.2);
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-details {
  flex-grow: 1;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-value {
  color: rgba(248, 249, 250, 0.9);
  font-size: 1.05rem;
}

/* ====== PROJECT DETAIL ====== */
.project-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.project-image {
  width: 100%;
  height: 280px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(248, 249, 250, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.project-meta {
  font-size: 14px;
  margin-top: 4px;
  color: var(--muted);
}

.project-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(248, 249, 250, 0.3);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tech-stack-text .tech-item {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ====== ACHIEVEMENTS ====== */
.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(248, 249, 250, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.achievement-list li:last-child {
  border-bottom: none;
}

.achievement-list i {
  color: var(--accent);
  font-size: 1rem;
  min-width: 20px;
  margin-top: 4px;
}

.achievement-list .content {
  flex: 1;
}

.achievement-list h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.achievement-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ====== PROGRESS BAR ====== */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.08));
  transform-origin: left;
  width: 0;
  z-index: 2000;
}

/* ====== UTILITY CLASSES ====== */
.m0 {
  margin: 0;
  color: var(--accent);
}
.text-center {
  text-align: center;
}

/* ====== ACCESSIBILITY ====== */
body.menu-open {
  overflow: hidden;
}

/* ====== VISUAL EFFECTS ====== */
body:after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.01) 1px,
    transparent 1px
  );
  background-size: 16px 16px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  [role="button"],
  input[type="button"],
  input[type="submit"],
  label,
  .clickable {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (min-width: 769px) {
  .project-hero {
    flex-direction: row;
  }

  .project-image {
    width: 50%;
  }

  .project-info {
    width: 50%;
  }
}

@media (max-width: 980px) {
  .app {
    padding: 28px;
  }

  .sidebar {
    position: fixed;
    left: 16px;
    top: 16px;
    width: 220px;
    z-index: 1000;
  }

  .main {
    margin-left: 260px;
  }

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

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

  .filter-container {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .tech-stack {
    gap: 10px;
  }

  .tech-item {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 700px) {
  .app {
    flex-direction: column;
    padding: 16px;
    position: relative;
    margin-top: 70px;
  }

  .mobile-header {
    display: flex;
    height: 70px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    left: -280px;
    height: calc(100vh - 70px);
    width: 280px;
    padding: 25px 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    left: 0;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    margin-bottom: 25px;
  }

  .brand h1 {
    font-size: 22px;
    margin-top: 10px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .socials {
    justify-content: center;
    margin-bottom: 15px;
  }

  .main {
    margin-left: 0;
    padding-top: 8px;
    width: 100%;
  }

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

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar {
    margin: 0 auto;
  }

  .filter-container {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-item {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .social-icon-compact {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }

  .project-header {
    flex-direction: column;
  }

  .project-actions {
    width: 100%;
    justify-content: center;
  }

  /* Career Journey Mobile Adjustments */
  .career-timeline {
    padding-left: 30px;
  }

  .career-timeline:before {
    left: 10px;
  }

  .career-item:before {
    left: -30px;
    width: 20px;
    height: 20px;
  }

  .career-card {
    flex-direction: column;
  }

  .company-logo {
    padding: 15px;
    min-width: auto;
  }

  .company-logo img {
    max-height: 30px;
  }

  .career-tech {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-icon-compact {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
