/* ==========================================
   MD. IRTIJA AZAD TALHA – PORTFOLIO
   All rights reserved.
   ========================================== */

/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fbfbfd;
  color: #1a1e2b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  background: radial-gradient(circle at 10% 20%, rgba(245, 248, 255, 0.9), #fff);
  position: relative;
}

/* ----- MOBILE HEADER (fixed, glass‑morphism) ----- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.6rem 1rem;
  display: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  will-change: transform;
}

.mobile-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a2b4a;
}

.header-title i {
  font-size: 1.2rem;
  color: #2c5a9e;
}

/* Hamburger button inside the header */
.mobile-header .hamburger-toggle {
  position: static;
  display: flex;
  background: transparent;
  border: none;
  color: #1a2b4a;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-header .hamburger-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-header .hamburger-toggle i {
  transition: transform 0.3s ease;
}

.mobile-header .hamburger-toggle.open i {
  transform: rotate(90deg);
}

/* ----- SIDEBAR ----- */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1001;
  position: sticky;
  top: 0;
}

/* ----- BRAND + DYNAMIC NAV ICON ----- */
.brand {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.nav-icon-display {
  font-size: 4.8rem;
  color: #2c5a9e;
  line-height: 1;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.nav-icon-display i {
  display: inline-block;
  color: #2c5a9e;
}

/* Professional pop animation */
@keyframes navIconPop {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.4) rotate(12deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.nav-icon-display.animating i {
  animation: navIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ----- NAVIGATION MENU ----- */
.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  color: #2d3a5e;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-item i {
  width: 1.75rem;
  font-size: 1.25rem;
  color: #5b6e8c;
}

.nav-item:hover {
  background: rgba(47, 85, 151, 0.08);
  transform: translateX(6px);
  color: #1f3a6b;
}

.nav-item.active {
  background: linear-gradient(95deg, rgba(47, 85, 151, 0.12), rgba(47, 85, 151, 0.03));
  color: #1f3a6b;
  border-left: 3px solid #2c5a9e;
}

.nav-item.active i {
  color: #2c5a9e;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.7rem;
  color: #6c7f99;
}

/* ----- MAIN CONTENT ----- */
.main-content {
  flex: 1;
  padding: 2rem 2rem;
  overflow-y: auto;
  transition: padding 0.3s ease;
  scroll-behavior: smooth;
}

/* ----- PAGES ----- */
.page {
  display: none;
  animation: fade 0.3s ease;
}

.page.active-page {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- GLASS CARD ----- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, #1e2f4b, #2b4b7a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ----- HOME / PROFILE ----- */
.home-two-columns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-left,
.home-right {
  flex: 1;
  min-width: 260px;
}

.profile-pic-placeholder {
  width: clamp(120px, 25vw, 180px);
  height: clamp(120px, 25vw, 180px);
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #2c5a9e;
  background: #e2e8f0;
}

.profile-pic-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.personal-details p {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.personal-details strong {
  color: #1f3b62;
}

.personal-details i {
  width: 1.4rem;
  color: #2c5a9e;
}

/* ===== PREMIUM LOCAL TIME BADGE ===== */
.local-time-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.3rem 1.4rem 0.3rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(59, 130, 246, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.local-time-wrapper:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.10);
  transform: translateY(-1px);
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  animation: pulse-dot-pro 2s ease-in-out infinite;
}

@keyframes pulse-dot-pro {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.04);
  }
}

.time-label {
  color: #475569;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-right: 1px solid #e2e8f0;
  padding-right: 0.7rem;
}

.time-label i {
  color: #3b82f6;
  font-size: 0.85rem;
}

.time-digital {
  font-family: 'Inter', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1rem;
  color: #1e40af;
  background: #f8fafc;
  padding: 0.05rem 0.8rem;
  border-radius: 0.4rem;
  letter-spacing: 0.5px;
  border: 1px solid #e2e8f0;
  min-width: 82px;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.time-zone {
  font-size: 0.55rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.2px;
  background: #f1f5f9;
  padding: 0.1rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #f1f5f9;
}

/* ----- QUALIFICATIONS ----- */
.qualifications-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qual-card {
  background: white;
  border-radius: 1.2rem;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid #eef2f8;
  transition: all 0.2s ease;
}

.qual-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.qual-icon {
  font-size: 1.8rem;
  color: #2c5a9e;
  min-width: 45px;
  text-align: center;
}

.qual-content {
  flex: 1;
}

.qual-degree-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2b45;
}

.qual-institution {
  font-weight: 600;
  color: #2c5a9e;
  font-size: 0.85rem;
}

.qual-major {
  font-size: 0.8rem;
  color: #3a5670;
  margin-bottom: 0.2rem;
}

.qual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

.qual-gpa {
  background: #eef2ff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

.qual-year-range {
  color: #4a627a;
}

.qual-subject-passing {
  margin: 0.3rem 0;
  font-size: 0.8rem;
  color: #2d3a5e;
}

.qual-label {
  font-weight: 700;
  color: #1f3b62;
}

.qual-sep {
  margin: 0 0.3rem;
  color: #9aaebf;
}

.qual-board {
  font-size: 0.75rem;
  color: #6c7f99;
  margin-top: 0.2rem;
}

.qual-note {
  font-size: 0.75rem;
  color: #2c5a9e;
  margin-top: 0.3rem;
}

/* ----- EXPANDABLE ACADEMIC DETAILS ----- */
.btn-toggle-details {
  background: transparent;
  border: 1px solid #2c5a9e;
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c5a9e;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-toggle-details:hover {
  background: #2c5a9e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(44, 90, 158, 0.2);
}

.btn-toggle-details i {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.btn-toggle-details.open i {
  transform: rotate(180deg);
}

.details-content {
  display: none;
  padding-top: 1rem;
  border-top: 1px solid #eef2f8;
  margin-top: 0.8rem;
  animation: fade 0.3s ease;
}

.details-content.open {
  display: block;
}

.details-inner {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #eef2f8;
}

.details-note {
  font-size: 0.8rem;
  color: #4a627a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.details-note i {
  color: #2c5a9e;
}

.semester-group {
  margin-bottom: 1.5rem;
}

.semester-group:last-of-type {
  margin-bottom: 0.5rem;
}

.semester-group h4 {
  font-size: 0.9rem;
  color: #1f3b62;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 480px;
}

.academic-table thead th {
  background: #2c5a9e;
  color: white;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.academic-table tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eef2f8;
  color: #1f2e4b;
}

.academic-table tbody tr:last-child td {
  border-bottom: none;
}

.academic-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.academic-table tbody tr:hover {
  background: #eef4ff;
}

.details-footer {
  font-size: 0.75rem;
  color: #6c7f99;
  margin-top: 0.8rem;
  text-align: right;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.details-footer i {
  color: #2c5a9e;
}

/* ----- SKILLS ----- */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.2rem;
}

.skill-category {
  background: white;
  border-radius: 1.2rem;
  padding: 1.2rem;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f8;
  transition: transform 0.2s ease;
  position: relative;
}

.skill-category:hover {
  transform: translateY(-3px);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid #2c5a9e;
  padding-left: 0.7rem;
}

.skills-list-wrapper {
  position: relative;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.skills-list.fade-gradient {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 0.75rem;
  color: #2c5a9e;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.skills-list.fade-gradient ~ .fade-overlay {
  opacity: 1;
  pointer-events: auto;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.fade-overlay::after {
  content: "⋯ more skills";
  font-size: 0.7rem;
  font-weight: 500;
  background: #eef2ff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  color: #2c5a9e;
}

.skill-category.expanded .skills-list {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.skill-category.expanded .fade-overlay {
  display: none;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  background: #f0f4fa;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1f3b62;
  transition: 0.1s ease;
}

.skill-tag i {
  margin-right: 5px;
  color: #2c5a9e;
}

.helper-text {
  font-size: 0.7rem;
  color: #6c7f99;
  margin-top: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.social-helper {
  margin-bottom: 0.5rem;
}

/* ----- CAREER OBJECTIVE ----- */
.career-objective-highlight {
  background: linear-gradient(135deg, #f1f5fe 0%, #ffffff 100%);
  border-radius: 1.2rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(44, 90, 158, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.obj-icon {
  font-size: 2rem;
  color: #2c5a9e;
  background: white;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.obj-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e2f4b;
  margin-bottom: 0.3rem;
  font-family: 'Playfair Display', serif;
}

.obj-content p {
  color: #2c3e50;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ----- TIMELINE ----- */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #2c5a9e, #d0d8e8);
}

.timeline-entry {
  position: relative;
  display: flex;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  background: #2c5a9e;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(44, 90, 158, 0.3);
  z-index: 2;
  transition: 0.2s ease;
}

.timeline-entry:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(44, 90, 158, 0.5);
}

.timeline-content {
  flex: 1;
  background: #ffffffcc;
  border-radius: 1rem;
  padding: 1rem;
  border-left: 3px solid #2c5a9e;
  transition: 0.2s ease;
  margin-left: 1rem;
}

.timeline-content:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.timeline-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2c5a9e;
  background: #eef2ff;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f3b62;
}

.meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #4a627a;
}

.meta-inline span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-inline i {
  width: 1rem;
  color: #2c5a9e;
}

.key-points-single {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #2d3a5e;
  margin-bottom: 0.5rem;
}

.parent-club {
  font-size: 0.75rem;
  color: #2c5a9e;
  background: #eef2ff;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.parent-club i {
  margin-right: 0.3rem;
}

.cert-highlight {
  background: white;
}

.cert-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2c5a9e;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-decoration: none;
  color: #2c5a9e;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #2c5a9e;
  color: white;
}

.official-icon,
.thm-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ----- CONTACT ----- */
.contact-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.primary {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.social-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.contact-card {
  background: white;
  border-radius: 1.2rem;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid #eef2fa;
}

.contact-card i {
  font-size: 2rem;
  color: #2c5a9e;
  margin-bottom: 0.5rem;
}

.social-heading {
  font-size: 1.2rem;
  margin: 1rem 0 0.8rem;
  color: #1f2e4a;
}

.social-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.6rem;
  border-radius: 2rem;
  text-align: center;
  text-decoration: none;
  color: #1f3b62;
  font-weight: 500;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.social-btn:hover {
  background: #2c5a9e;
  color: white;
  border-color: #2c5a9e;
}

.phone-card {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.65rem;
  color: #7d8ea3;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* ----- TABLET (769px – 1024px) ----- */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 220px;
    padding: 1.5rem 1rem;
  }
  .nav-item {
    padding: 0.7rem 1rem;
    gap: 0.8rem;
  }
  .nav-item span {
    font-size: 0.85rem;
  }
  .main-content {
    padding: 1.8rem 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .profile-pic-placeholder {
    width: 140px;
    height: 140px;
  }
  .nav-icon-display {
    font-size: 3.8rem;
    min-height: 70px;
  }
}

/* ----- LARGE DESKTOP (≥ 1400px) ----- */
@media (min-width: 1400px) {
  .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
  }
  .app-wrapper {
    justify-content: center;
  }
}

/* ----- MOBILE (≤ 768px) ----- */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header {
    display: block;
  }

  /* Main content: add top padding to clear the fixed header */
  .main-content {
    padding: 4.5rem 1rem 1.5rem 1rem;
  }

  /* Sidebar: slide from RIGHT side */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    padding-top: 4.5rem;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transition: transform 0.3s ease;
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  /* Mobile order: personal details (with photo) appear FIRST */
  .home-two-columns {
    display: flex;
    flex-direction: column;
  }
  .home-right {
    order: -1;
  }
  .home-left {
    order: 0;
  }

  /* Qualification tables on small screens */
  .academic-table {
    font-size: 0.7rem;
    min-width: 420px;
  }
  .academic-table thead th,
  .academic-table tbody td {
    padding: 0.4rem 0.5rem;
  }
  .details-inner {
    padding: 0.75rem;
  }
  .btn-toggle-details {
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
  }

  /* Skills grid becomes 1 column */
  .grid-2col {
    grid-template-columns: 1fr;
  }

  /* Time badge responsive */
  .local-time-wrapper {
    gap: 0.4rem;
    padding: 0.25rem 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .time-digital {
    font-size: 0.8rem;
    min-width: 65px;
    padding: 0.05rem 0.4rem;
  }
  .time-label {
    font-size: 0.6rem;
    padding-right: 0.4rem;
  }
  .time-zone {
    font-size: 0.45rem;
    padding: 0.05rem 0.4rem;
  }
  .live-indicator {
    width: 6px;
    height: 6px;
  }

  /* Timeline on mobile */
  .timeline-container {
    padding-left: 0;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-marker {
    left: 12px;
    top: 0.4rem;
  }
  .timeline-content {
    margin-left: 40px;
  }

  /* Career objective */
  .career-objective-highlight {
    flex-direction: column;
    text-align: center;
  }

  /* Contact grid */
  .primary,
  .social-grid {
    grid-template-columns: 1fr;
  }

  /* Navigation icon responsive */
  .nav-icon-display {
    font-size: 4.2rem;
    min-height: 80px;
  }
}
