/* =============================================
   devxois.com — Personal Portfolio
   Colors:
     Primary Text: #373D43 (Anthracite)
     Secondary:    #6C757D (Gray)
     Background:   #FFFFFF (White)
     Accent Blue:  #00B4D8
     Accent Purple:#8B5CF6
     Accent Navy:  #1B4965
     Accent Green: #7CB518
   ============================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #373D43;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.938rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn--primary {
  background: #373D43;
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #1a1f24;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(55, 61, 67, 0.25);
}

.btn--outline {
  background: transparent;
  color: #373D43;
  border: 1.5px solid #D1D5DB;
}

.btn--outline:hover {
  border-color: #373D43;
  transform: translateY(-1px);
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #00B4D8, #8B5CF6);
  color: #FFFFFF;
  border: none;
}

.btn--small:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

.btn--large {
  padding: 15px 40px;
  font-size: 1rem;
}

/* ---------- Gradient Text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #00B4D8, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar--scrolled {
  border-bottom-color: #F0F0F0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #373D43;
  letter-spacing: -0.03em;
}

.brand-x {
  background: linear-gradient(135deg, #00B4D8, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-dot {
  color: #6C757D;
  font-weight: 400;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 450;
  color: #6C757D;
  transition: color 0.2s;
}

.navbar__links a:hover { color: #373D43; }

.navbar__links a.nav-active {
  color: #373D43;
  font-weight: 500;
}

/* ---------- Navbar Actions (lang toggle + hamburger) ---------- */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid #E5E7EB;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6C757D;
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: #ADB5BD;
}

.lang-opt {
  transition: color 0.2s;
}

.lang-opt.active {
  color: #373D43;
}

.lang-sep {
  color: #D1D5DB;
  font-weight: 300;
}

/* ---------- Navbar Toggle (hamburger) ---------- */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #373D43;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  font-weight: 500;
  color: #373D43;
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  background: #F8FFF8;
  border: 1px solid #D1FAE5;
  border-radius: 20px;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hero__role {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6C757D;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

.role-sep {
  color: #ADB5BD;
  margin: 0 6px;
}

.hero__subtitle {
  font-size: 1.063rem;
  color: #6C757D;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  color: #6C757D;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: #373D43;
  color: #373D43;
  transform: translateY(-2px);
}

/* ---------- Hero Visual / Avatar ---------- */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #00B4D8, #8B5CF6) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar__inner {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B4965, #373D43);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.avatar__initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.05em;
}

.avatar__badge {
  position: absolute;
  bottom: 0;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
  white-space: nowrap;
}

/* ---------- Code Snippet ---------- */
.hero__code-snippet {
  width: 100%;
  max-width: 320px;
  background: #1E2028;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #16181F;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-filename {
  margin-left: 8px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #6C757D;
}

.code-body {
  padding: 16px 20px 20px;
}

.code-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.813rem;
  line-height: 1.8;
  white-space: pre;
}

.c-kw { color: #C792EA; }
.c-var { color: #82AAFF; }
.c-punct { color: #89DDFF; }
.c-key { color: #F07178; }
.c-str { color: #C3E88D; }
.c-bool { color: #FF9CAC; }

/* ---------- Scroll Hint ---------- */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: #ADB5BD;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: #FAFBFC;
}

.section--dark {
  background: #1E2028;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: block;
  font-size: 0.813rem;
  font-weight: 500;
  color: #6C757D;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text .section__title {
  margin-bottom: 20px;
  margin-top: 10px;
}

.about__desc {
  font-size: 1rem;
  color: #6C757D;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__desc strong {
  color: #373D43;
  font-weight: 600;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about__tags span {
  font-size: 0.813rem;
  font-weight: 500;
  color: #373D43;
  padding: 5px 14px;
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 20px;
}

/* ---------- Info Cards ---------- */
.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.25s ease;
}

.info-card:hover {
  border-color: #E0E0E0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.info-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #F8F9FA;
  color: #373D43;
}

.info-card__label {
  font-size: 0.75rem;
  color: #ADB5BD;
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #373D43;
  line-height: 1.3;
}

.info-card__sub {
  font-size: 0.75rem;
  color: #6C757D;
  margin-top: 2px;
}

/* ---------- Skills ---------- */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-group {
  padding: 28px;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  background: #FFFFFF;
}

.skill-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #373D43;
}

.skill-group__icon {
  font-size: 1rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 0.813rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
}

.skill-pill--primary {
  background: rgba(0, 180, 216, 0.08);
  color: #0077B6;
}

.skill-pill--secondary {
  background: rgba(139, 92, 246, 0.08);
  color: #7C3AED;
}

.skill-pill--security {
  background: rgba(27, 73, 101, 0.08);
  color: #1B4965;
}

.skill-pill--neutral {
  background: #F8F9FA;
  color: #6C757D;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  padding: 32px;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #E0E0E0;
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.project-card--featured {
  border: 1.5px solid rgba(0, 180, 216, 0.3);
  background: linear-gradient(to bottom right, #FFFFFF, rgba(0, 180, 216, 0.02));
}

.project-card--coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-color: #E9ECEF;
  background: #FAFBFC;
  gap: 12px;
  min-height: 260px;
}

.project-card--coming:hover {
  transform: none;
  box-shadow: none;
}

.coming-soon__icon {
  color: #CED4DA;
}

.coming-soon__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ADB5BD;
  padding: 4px 12px;
  border-radius: 20px;
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #00B4D8;
  padding: 4px 12px;
  background: rgba(0, 180, 216, 0.08);
  border-radius: 20px;
}

.project-card__featured-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #F59E0B;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 20px;
  margin-left: 6px;
}

.project-card__tag--security {
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
}

.project-card__featured-badge--sec {
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
}

.project-card__year {
  font-size: 0.75rem;
  color: #ADB5BD;
  font-weight: 500;
  white-space: nowrap;
}

.project-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.project-card__desc {
  font-size: 0.875rem;
  color: #6C757D;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.project-card__features span {
  font-size: 0.813rem;
  color: #6C757D;
}

.project-card__stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card__stack span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #373D43;
  padding: 4px 10px;
  background: #F8F9FA;
  border-radius: 6px;
}

/* ---------- Timeline ---------- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.timeline__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F0F0;
}

.timeline {
  position: relative;
}

.timeline__item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 28px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: #F0F0F0;
}

.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { display: none; }

.timeline__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #E5E7EB;
}

.timeline__dot--active {
  background: #00B4D8;
  box-shadow: 0 0 0 2px rgba(0,180,216,0.2);
}

.timeline__dot--edu {
  background: #8B5CF6;
  box-shadow: 0 0 0 2px rgba(139,92,246,0.2);
}

.timeline__dot--cert {
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
}

.timeline__date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ADB5BD;
  font-family: 'JetBrains Mono', monospace;
  display: block;
  margin-bottom: 4px;
}

.timeline__role {
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline__company {
  font-size: 0.813rem;
  color: #6C757D;
  margin-bottom: 8px;
}

.timeline__list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline__list li {
  font-size: 0.813rem;
  color: #6C757D;
  padding-left: 12px;
  position: relative;
}

.timeline__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #ADB5BD;
}

/* ---------- Contact ---------- */
.contact-cta {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-cta__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.contact-cta__desc {
  font-size: 1.063rem;
  color: #6C757D;
  margin-bottom: 36px;
  line-height: 1.65;
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  text-align: left;
  transition: all 0.25s ease;
  background: #FFFFFF;
}

.contact-option:hover {
  border-color: #373D43;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.contact-option__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #F8F9FA;
  color: #373D43;
}

.contact-option__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ADB5BD;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-option__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #373D43;
  word-break: break-all;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: #ADB5BD;
  font-size: 0.813rem;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #F0F0F0;
}

.contact-form {
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.938rem;
  font-family: inherit;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  color: #373D43;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: #ADB5BD; }

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #373D43;
  box-shadow: 0 0 0 3px rgba(55,61,67,0.06);
}

.contact-form__textarea {
  margin-bottom: 20px;
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  padding: 56px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #6C757D;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 72px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.813rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col a {
  font-size: 0.875rem;
  color: #6C757D;
}

.footer__col a:hover { color: #373D43; }

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid #F0F0F0;
}

.footer__bottom p {
  font-size: 0.813rem;
  color: #ADB5BD;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease 0.2s, transform 0.65s ease 0.2s;
}

.reveal-delay--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }

  .navbar__links--open { right: 0; }
  .navbar__links a { font-size: 1rem; }
  .navbar__toggle { display: flex; }

  .navbar__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle--active span:nth-child(2) { opacity: 0; }

  .navbar__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__socials { justify-content: center; }

  .hero__visual { order: -1; }

  .hero__code-snippet { max-width: 100%; }

  .section { padding: 72px 0; }

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

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

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

  .footer__inner { flex-direction: column; }
  .footer__links { gap: 40px; }
}

@media (max-width: 480px) {
  .about__cards { grid-template-columns: 1fr; }
  .contact-options { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.25rem; }
  .hero__role { font-size: 1rem; }
}
