/*-----------------------------------*\
  #style.css — Premium Navy + Gold Theme v2
\*-----------------------------------*/

/* ===== THEME VARIABLES ===== */
:root {
  /* NAVY + GOLD COLOR PALETTE */
  --bg-deep:          hsl(222, 35%, 8%);
  --bg-body:          hsl(222, 33%, 10%);
  --bg-card:          hsl(222, 28%, 14%);
  --bg-card-alt:      hsl(222, 25%, 17%);
  --bg-elevated:      hsl(222, 22%, 20%);
  --border-color:     hsl(222, 20%, 24%);
  --border-light:     hsl(222, 18%, 28%);

  --gold:             hsl(45, 100%, 65%);
  --gold-dim:         hsl(45, 60%, 50%);
  --gold-glow:        hsla(45, 100%, 65%, 0.15);
  --gold-glow-strong: hsla(45, 100%, 65%, 0.3);

  --text-primary:     hsl(220, 20%, 95%);
  --text-secondary:   hsl(220, 15%, 75%);
  --text-muted:       hsl(220, 12%, 55%);

  --glass-bg:         hsla(222, 28%, 14%, 0.7);
  --glass-border:     hsla(222, 20%, 30%, 0.5);
  --glass-blur:       blur(20px);

  /* ACCENT COLORS */
  --accent-green:     hsl(142, 60%, 50%);
  --accent-blue:      hsl(210, 85%, 60%);
  --accent-purple:    hsl(270, 65%, 60%);
  --accent-red:       hsl(0, 70%, 55%);
  --accent-orange:    hsl(25, 90%, 55%);
  --accent-cyan:      hsl(185, 70%, 50%);

  /* GRADIENTS */
  --gradient-gold:    linear-gradient(135deg, hsl(45, 100%, 65%), hsl(35, 90%, 55%));
  --gradient-card:    linear-gradient(145deg, hsl(222, 28%, 16%) 0%, hsl(222, 28%, 12%) 100%);
  --gradient-hero:    linear-gradient(135deg, hsla(45, 100%, 65%, 0.08) 0%, transparent 60%);
  --gradient-glow:    radial-gradient(ellipse at 50% 0%, hsla(45, 100%, 65%, 0.1) 0%, transparent 60%);

  /* SHADOWS */
  --shadow-sm:   0 2px 8px hsla(222, 50%, 5%, 0.3);
  --shadow-md:   0 8px 24px hsla(222, 50%, 5%, 0.4);
  --shadow-lg:   0 16px 48px hsla(222, 50%, 5%, 0.5);
  --shadow-xl:   0 24px 64px hsla(222, 50%, 5%, 0.6);
  --shadow-gold: 0 4px 20px hsla(45, 100%, 65%, 0.15);

  /* TYPOGRAPHY */
  --ff-primary:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-display:   clamp(2rem, 4vw, 3rem);
  --fs-h1:        clamp(1.5rem, 3vw, 2.25rem);
  --fs-h2:        clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-h3:        clamp(1.1rem, 2vw, 1.375rem);
  --fs-h4:        clamp(1rem, 1.5vw, 1.125rem);
  --fs-body:      0.9375rem;
  --fs-small:     0.8125rem;
  --fs-xs:        0.75rem;

  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* SPACING */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* RADIUS */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 50%;

  /* TRANSITIONS */
  --ease-out:  cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   0.2s var(--ease-out);
  --transition-normal: 0.3s var(--ease-out);
  --transition-slow:   0.5s var(--ease-out);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg-deep:          hsl(220, 25%, 95%);
  --bg-body:          hsl(220, 20%, 97%);
  --bg-card:          hsl(0, 0%, 100%);
  --bg-card-alt:      hsl(220, 20%, 98%);
  --bg-elevated:      hsl(220, 15%, 93%);
  --border-color:     hsl(220, 15%, 88%);
  --border-light:     hsl(220, 12%, 82%);

  --gold:             hsl(38, 85%, 48%);
  --gold-dim:         hsl(38, 60%, 40%);
  --gold-glow:        hsla(38, 85%, 48%, 0.12);
  --gold-glow-strong: hsla(38, 85%, 48%, 0.25);

  --text-primary:     hsl(222, 35%, 15%);
  --text-secondary:   hsl(222, 20%, 40%);
  --text-muted:       hsl(222, 15%, 55%);

  --glass-bg:         hsla(0, 0%, 100%, 0.75);
  --glass-border:     hsla(220, 15%, 85%, 0.6);

  --gradient-card:    linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(220, 20%, 97%) 100%);
  --gradient-hero:    linear-gradient(135deg, hsla(38, 85%, 48%, 0.06) 0%, transparent 60%);
  --gradient-glow:    radial-gradient(ellipse at 50% 0%, hsla(38, 85%, 48%, 0.08) 0%, transparent 60%);

  --shadow-sm:   0 2px 8px hsla(220, 30%, 50%, 0.08);
  --shadow-md:   0 8px 24px hsla(220, 30%, 50%, 0.1);
  --shadow-lg:   0 16px 48px hsla(220, 30%, 50%, 0.12);
  --shadow-xl:   0 24px 64px hsla(220, 30%, 50%, 0.15);
  --shadow-gold: 0 4px 20px hsla(38, 85%, 48%, 0.12);
}

/*-----------------------------------*\
  #RESET & BASE
\*-----------------------------------*/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

html {
  font-family: var(--ff-primary);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-body);
  color: var(--text-secondary);
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

/* Custom Scrollbar */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--bg-deep); }
body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }


/*-----------------------------------*\
  #PAGE LOADER
\*-----------------------------------*/
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.loader-text {
  color: var(--text-muted);
  font-size: var(--fs-small);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}


/*-----------------------------------*\
  #REUSED STYLES
\*-----------------------------------*/
.sidebar, article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: var(--space-lg) 0;
}

.icon-box {
  position: relative;
  background: var(--gradient-card);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  flex-shrink: 0;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-card-alt);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fadeIn 0.5s var(--ease-out) backwards;
}

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

.h2, .h3, .h4, .h5 {
  color: var(--text-primary);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-h1); font-weight: var(--fw-700); }
.h3 { font-size: var(--fs-h2); font-weight: var(--fw-600); }
.h4 { font-size: var(--fs-h3); font-weight: var(--fw-500); }
.h5 { font-size: var(--fs-body); font-weight: var(--fw-500); }

.article-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: var(--space-xl);
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-600);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* Scrollbar for scrollable containers */
.has-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.has-scrollbar::-webkit-scrollbar-track { background: var(--bg-elevated); border-radius: 5px; }
.has-scrollbar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }

.content-card {
  position: relative;
  background: var(--gradient-card);
  padding: var(--space-lg);
  padding-top: 45px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 1;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-glow-strong);
}


/*-----------------------------------*\
  #MAIN LAYOUT
\*-----------------------------------*/
main {
  margin: var(--space-lg) var(--space-md);
  margin-bottom: 75px;
  min-width: 259px;
}


/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/
.sidebar {
  margin-bottom: var(--space-lg);
  max-height: 112px;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), background var(--transition-slow);
}

.sidebar.active { max-height: 700px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-lg);
}

.avatar-box {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  min-width: 80px;
  position: relative;
}

.avatar-box img {
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal);
}

.avatar-box::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-xl) + 3px);
  background: var(--gradient-gold);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.avatar-box:hover::after { opacity: 1; }
.avatar-box:hover img { transform: scale(1.03); }

.info-content .name {
  color: var(--text-primary);
  font-size: var(--fs-h3);
  font-weight: var(--fw-600);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
  white-space: normal;
  line-height: 1.2;
}

.info-content .title {
  color: var(--gold);
  background: var(--bg-elevated);
  font-size: var(--fs-xs);
  font-weight: var(--fw-400);
  width: 100%;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: normal;
  text-align: center;
  line-height: 1.6;
  border: 1px solid var(--border-color);
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 var(--radius-lg);
  font-size: var(--fs-small);
  color: var(--gold);
  background: var(--gradient-card);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 1;
  border: 1px solid var(--border-color);
}

.info_more-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  color: var(--gold);
}

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.contact-info {
  max-width: calc(100% - 52px);
  width: calc(100% - 52px);
}

.contact-title {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: color var(--transition-fast);
}

.contact-info .contact-link:hover { color: var(--gold); }
.contact-info address { font-style: normal; }

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--text-muted);
  font-size: 20px;
  transition: all var(--transition-fast);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.social-item .social-link:hover {
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}


/*-----------------------------------*\
  #THEME TOGGLE
\*-----------------------------------*/
.theme-toggle-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  transform: scale(1.1);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: none; }


/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  transition: background var(--transition-slow);
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  padding: 18px 10px;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.navbar-link:hover { color: var(--text-secondary); }
.navbar-link.active { color: var(--gold); }
.navbar-link.active::after { transform: translateX(-50%) scaleX(1); }


/*-----------------------------------*\
  #HERO SECTION (inside About)
\*-----------------------------------*/
.hero-section {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--gradient-glow);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-greeting {
  color: var(--gold);
  font-size: var(--fs-body);
  font-weight: var(--fw-500);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: slideUp 0.6s var(--ease-out) 0.2s forwards;
}

.hero-name {
  color: var(--text-primary);
  font-size: var(--fs-display);
  font-weight: var(--fw-700);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: slideUp 0.6s var(--ease-out) 0.4s forwards;
}

.hero-name .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: slideUp 0.6s var(--ease-out) 0.6s forwards;
}

.hero-subtitle-label {
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.typing-text {
  color: var(--gold);
  font-size: var(--fs-body);
  font-weight: var(--fw-600);
  border-right: 2px solid var(--gold);
  padding-right: 4px;
  animation: blink 0.7s step-end infinite;
  min-height: 1.5em;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.6s var(--ease-out) 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  background: var(--gradient-gold);
  color: var(--bg-deep);
  font-size: var(--fs-small);
  font-weight: var(--fw-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(45, 100%, 65%, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}

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


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/
.about .article-title { margin-bottom: var(--space-lg); }

.about-text {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  font-weight: var(--fw-400);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.about-text p { margin-bottom: var(--space-lg); }

.service { margin-bottom: var(--space-2xl); }
.service-title { margin-bottom: var(--space-xl); }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-item {
  position: relative;
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-glow-strong);
}

.service-icon {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.service-content-box { text-align: left; }
.service-item-title { margin-bottom: 6px; }

.service-item-text {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-400);
  line-height: 1.6;
}


/*-----------------------------------*\
  #EDUCATION SECTION (in About page)
\*-----------------------------------*/
.education-section {
  margin-bottom: var(--space-2xl);
}

.education-section .section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.education-section .section-title ion-icon {
  color: var(--gold);
  font-size: 24px;
}

.education-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.edu-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 0 4px 4px 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: hsla(45, 100%, 65%, 0.2);
}

.edu-card:hover::before { opacity: 1; }

.edu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.edu-card-title {
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-600);
  line-height: 1.4;
  flex: 1;
}

.edu-card-date {
  color: var(--gold-dim);
  font-size: var(--fs-xs);
  font-weight: var(--fw-500);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--gold-glow);
  border-radius: 20px;
  border: 1px solid var(--gold-glow-strong);
}

.edu-card-degree {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.edu-card-grade {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: var(--fw-600);
}

.edu-card-location {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 4px;
}

.edu-card-location ion-icon {
  font-size: 12px;
  display: inline-block;
}


/*-----------------------------------*\
  #CODING PROFILES
\*-----------------------------------*/
.coding-profiles {
  margin-bottom: var(--space-2xl);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.profile-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-glow-strong);
}

.profile-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.profile-card:hover .profile-card-icon { transform: scale(1.1); }

.profile-card-icon.codeforces {
  background: hsla(210, 85%, 60%, 0.15);
  color: var(--accent-blue);
}
.profile-card-icon.codechef {
  background: hsla(25, 90%, 55%, 0.15);
  color: var(--accent-orange);
}
.profile-card-icon.leetcode {
  background: hsla(38, 90%, 55%, 0.15);
  color: var(--gold);
}
.profile-card-icon.github {
  background: hsla(0, 0%, 100%, 0.08);
  color: var(--text-primary);
}
.profile-card-icon.linkedin {
  background: hsla(210, 85%, 60%, 0.15);
  color: var(--accent-blue);
}

.profile-card-info {
  flex: 1;
  min-width: 0;
}

.profile-card-name {
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-600);
  margin-bottom: 2px;
}

.profile-card-rating {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.profile-card-rating strong {
  color: var(--gold);
  font-weight: var(--fw-600);
}

.profile-card-arrow {
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.profile-card:hover .profile-card-arrow {
  color: var(--gold);
  transform: translateX(3px);
}


/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.resume-header .article-title { margin-bottom: 0; }

.resume-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Resume PDF Viewer */
.resume-viewer {
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
}

.resume-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.resume-viewer-title {
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-600);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.resume-viewer-title ion-icon {
  color: var(--gold);
  font-size: 18px;
}

.resume-viewer iframe,
.resume-viewer object,
.resume-viewer embed {
  width: 100%;
  height: 700px;
  border: none;
  background: hsl(0, 0%, 95%);
}

.resume-viewer-fallback {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

.resume-viewer-fallback a {
  color: var(--gold);
  text-decoration: underline;
}

/* Resume Block Cards */
.resume-block {
  margin-bottom: var(--space-xl);
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-normal);
}

.resume-block:hover { border-color: var(--border-light); }

.resume-section-title {
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.resume-section-title ion-icon { color: var(--gold); font-size: 20px; }

/* Professional Summary */
.resume-block .summary-text {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* Resume Lists */
.resume-list { list-style: none; padding-left: 0; }

.resume-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.resume-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gold);
}

.resume-list li a {
  color: var(--gold);
  text-decoration: underline;
  display: inline;
  transition: opacity var(--transition-fast);
}

.resume-list li a:hover { opacity: 0.8; }

/* Skill categories */
.skill-category {
  color: var(--text-primary);
  font-weight: var(--fw-600);
  margin-bottom: 6px;
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--fs-small);
}

.skill-category:first-child { margin-top: 0; }

.skill-items {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Skill Badges */
.skills-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-elevated);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-500);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

/* Timeline */
.timeline { margin-bottom: var(--space-xl); }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.timeline-list {
  font-size: var(--fs-body);
  margin-left: 45px;
}

.timeline-item { position: relative; }
.timeline-item:not(:last-child) { margin-bottom: var(--space-xl); }

.timeline-item-title {
  font-size: var(--fs-body);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--gold-dim);
  font-weight: var(--fw-400);
  line-height: 1.6;
  font-size: var(--fs-small);
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--border-color);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 8px;
  width: 8px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 12px var(--gold-glow-strong);
}

.timeline-text {
  color: var(--text-secondary);
  font-weight: var(--fw-400);
  line-height: 1.7;
  font-size: var(--fs-small);
}

.skills-title { margin-bottom: var(--space-xl); }
.skills-list { padding: var(--space-xl); }
.skills-item:not(:last-child) { margin-bottom: var(--space-lg); }
.skills-item .title-wrapper { margin-bottom: 0; }

.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

/* Download & View Buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: var(--gradient-gold);
  color: var(--bg-deep);
  font-size: var(--fs-small);
  font-weight: var(--fw-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-download:hover::before { left: 100%; }

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(45, 100%, 65%, 0.3);
}

.btn-download ion-icon { font-size: 18px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline ion-icon { font-size: 18px; }


/*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.project-item {
  width: 100%;
  background: var(--gradient-card);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: block;
  position: relative;
  transition: all var(--transition-normal);
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(45, 100%, 65%, 0.2);
}

.project-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: var(--fs-display);
  font-weight: var(--fw-700);
  color: var(--border-color);
  opacity: 0.3;
  line-height: 1;
  pointer-events: none;
  transition: color var(--transition-normal);
}

.project-item:hover .project-number { color: var(--gold-glow-strong); }

.project-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-glow);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-500);
  border-radius: 20px;
  border: 1px solid var(--gold-glow-strong);
  margin-bottom: var(--space-sm);
}

.project-title {
  color: var(--text-primary);
  font-size: var(--fs-h3);
  font-weight: var(--fw-600);
  line-height: 1.3;
  margin-bottom: 10px;
}

.project-category {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-400);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.project-features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.project-features li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* Tech Stack Badges */
.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
  margin-top: var(--space-md);
}

.tech-badge {
  font-size: var(--fs-xs);
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  color: var(--gold);
  border: 1px solid var(--border-color);
  font-weight: var(--fw-500);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

/* Project Links */
.project-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-link ion-icon { font-size: 16px; }

.btn-link:hover {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}


/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.blog-card:hover::before { transform: scaleX(1); }

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(45, 100%, 65%, 0.2);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.blog-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-glow);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-500);
  border-radius: 20px;
  border: 1px solid var(--gold-glow-strong);
}

.blog-date,
.blog-read-time {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-date ion-icon,
.blog-read-time ion-icon {
  font-size: 14px;
  display: inline-block;
}

.blog-title {
  color: var(--text-primary);
  font-size: var(--fs-h3);
  font-weight: var(--fw-600);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-title { color: var(--gold); }

.blog-excerpt {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: var(--fw-500);
  transition: gap var(--transition-fast);
}

.blog-read-more:hover { gap: var(--space-sm); }
.blog-read-more ion-icon { font-size: 16px; display: inline-block; }


/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-item-box {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.contact-item-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: hsla(45, 100%, 65%, 0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-item-box:hover .contact-icon {
  background: var(--gold-glow);
  box-shadow: var(--shadow-gold);
}

.contact-details .title {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.contact-details .value {
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-500);
}

.contact-details a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
  margin-top: var(--space-xl);
}

.contact-form-title {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  font-weight: var(--fw-600);
}

.contact-form {
  display: grid;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.form-input {
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-400);
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: var(--fw-400);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input:focus:invalid {
  border-color: hsl(0, 60%, 55%);
  box-shadow: 0 0 0 3px hsla(0, 60%, 55%, 0.15);
}

textarea.form-input {
  min-height: 120px;
  max-height: 240px;
  resize: vertical;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--gradient-gold);
  color: var(--bg-deep);
  font-size: var(--fs-body);
  font-weight: var(--fw-600);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-gold);
  width: fit-content;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
}

.form-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3), transparent);
  transition: left 0.5s ease;
}

.form-btn:hover::before { left: 100%; }

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(45, 100%, 65%, 0.3);
}

.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-btn ion-icon { font-size: 18px; }


/*-----------------------------------*\
  #SCROLL ANIMATIONS
\*-----------------------------------*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for list items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }


/*-----------------------------------*\
  #RESPONSIVE — MOBILE FIRST
\*-----------------------------------*/

/* >= 450px */
@media (min-width: 450px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .blog-list { grid-template-columns: 1fr 1fr; }
}

/* >= 580px */
@media (min-width: 580px) {
  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: var(--space-xl);
  }

  .article-title {
    font-weight: var(--fw-700);
    padding-bottom: var(--space-lg);
  }

  .article-title::after { width: 50px; height: 4px; }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 18px;
  }

  .hero-section { padding: var(--space-2xl); }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* >= 768px */
@media (min-width: 768px) {
  .service-list { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* >= 1024px — DESKTOP */
@media (min-width: 1024px) {
  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-xl);
  }

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }

  /* Navbar switches to top */
  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 var(--radius-xl);
    padding: 0 var(--space-xl);
    box-shadow: none;
  }

  .navbar-list { gap: var(--space-xl); padding: 0 var(--space-xl); }

  .navbar-link {
    font-weight: var(--fw-500);
    font-size: var(--fs-body);
  }

  /* Content below navbar */
  article { padding-top: 100px !important; }

  .theme-toggle-btn {
    bottom: auto;
    top: 20px;
    right: 20px;
    position: fixed;
  }

  .resume-viewer iframe,
  .resume-viewer object,
  .resume-viewer embed {
    height: 850px;
  }
}

/* >= 1250px — WIDE DESKTOP */
@media (min-width: 1250px) {
  body::-webkit-scrollbar { width: 10px; }
  body::-webkit-scrollbar-track { background: var(--bg-deep); }
  body::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg-deep);
    background: var(--border-light);
    border-radius: 10px;
  }
  body::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

  .sidebar, article { width: auto; }
  article { min-height: 100%; }

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-xl);
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  /* Sticky sidebar */
  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
    min-width: 320px;
    width: 320px;
  }

  .sidebar-info { flex-direction: column; }
  .avatar-box img { width: 160px; }

  .info-content .name {
    white-space: normal;
    text-align: center;
    font-size: var(--fs-h2);
    line-height: 1.3;
  }

  .info-content .title { margin: auto; }
  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    font-size: var(--fs-small);
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: var(--space-lg) 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }
  .timeline-text { max-width: 700px; }
  .main-content { width: calc(100% - 350px) !important; }
  .blog-list { grid-template-columns: 1fr 1fr; }
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small phones fix */
@media (max-width: 370px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { width: 100%; justify-content: center; }
  .project-links { flex-direction: column; }
  .project-links .btn-link { width: 100%; justify-content: center; }
  .resume-header { flex-direction: column; align-items: flex-start; }
  .resume-actions { flex-direction: column; width: 100%; }
  .resume-actions .btn-download,
  .resume-actions .btn-outline { width: 100%; justify-content: center; }
  .profiles-grid { grid-template-columns: 1fr; }
}
