/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */
:root {
  /* Light Mode */
  --primary-light: #2d6cdf;
  --primary-dark-light: #1a4ba6;
  --secondary-light: #00c2ff;
  --background-light: #f8f9fc;
  --surface-light: #ffffff;
  --text-primary-light: #1a1c25;
  --text-secondary-light: #4a4d60;
  --border-light: #e0e3f0;
  --shadow-light: rgba(0, 24, 69, 0.08);
  --success-light: #00c853;
  --error-light: #ff3d71;

  /* Dark Mode */
  --primary-dark: #4d8df6;
  --primary-dark-dark: #2c5bb8;
  --secondary-dark: #00e5ff;
  --background-dark: #12151d;
  --surface-dark: #1a1f2c;
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #a0a3b8;
  --border-dark: #2a3042;
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --success-dark: #00e676;
  --error-dark: #ff5c8d;

  /* Active Vars */
  --primary: var(--primary-light);
  --primary-dark-color: var(--primary-dark-light);
  --secondary: var(--secondary-light);
  --background: var(--background-light);
  --surface: var(--surface-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --border: var(--border-light);
  --shadow: var(--shadow-light);
  --success: var(--success-light);
  --error: var(--error-light);

  /* Sizing & Fonts */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 4rem;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Roboto", sans-serif;
  --transition-normal: 0.2s ease;
  --transition-fast: 0.15s ease;
}

.dark-mode {
  --primary: var(--primary-dark);
  --primary-dark-color: var(--primary-dark-dark);
  --secondary: var(--secondary-dark);
  --background: var(--background-dark);
  --surface: var(--surface-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --border: var(--border-dark);
  --shadow: var(--shadow-dark);
  --success: var(--success-dark);
  --error: var(--error-dark);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  opacity: 0;
  animation: pageLoadFadeIn 0.6s ease-out forwards;
}

@keyframes pageLoadFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hidden {
  display: none !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.dark-mode header {
  background-color: rgba(26, 31, 44, 0.7);
}

header.scrolled {
  padding: var(--space-sm) var(--space-lg);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px var(--shadow);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: var(--space-lg);
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

.theme-toggle-container {
  position: relative;
}

.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border);
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .theme-toggle {
  background: var(--primary);
}

.dark-mode .theme-toggle::before {
  transform: translateX(30px);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

/* Remove focus/active states after click */
.theme-toggle:focus,
.theme-toggle:active {
  outline: none;
  box-shadow: none;
}

.menu-toggle {
  display: none;
}

/* ========================================
   PROJECTS PAGE
   ======================================== */
.projects-page {
  padding-top: 100px;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.page-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  margin: 0 auto;
  border-radius: 2px;
}

/* Accordion Filter Revamp */
.filter-section {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xxl);
  padding: 0 var(--space-md);
}

.filter-accordion {
  position: relative;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px var(--shadow);
  border-radius: 16px;
  background: var(--surface);
  transition: box-shadow 0.3s;
}

.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: none;
  z-index: 2;
}

.filter-toggle.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  background: var(--surface);
  box-shadow: none;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: var(--space-sm);
}

.filter-current {
  flex: 1;
  text-align: left;
  margin-left: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.filter-arrow {
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.filter-toggle.active .filter-arrow {
  transform: rotate(180deg);
}

.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px var(--shadow);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.filter-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-option {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid var(--border);
  outline: none;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover,
.filter-option:focus {
  background: rgba(45, 108, 223, 0.07);
  color: var(--primary);
  padding-left: calc(var(--space-xl) + 10px);
}

.filter-option.active {
  background: rgba(45, 108, 223, 0.13);
  color: var(--primary);
  font-weight: 700;
}

/* Remove old filter styles */
.filter-container,
.filter-btn {
  display: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.project-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow);
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 108, 223, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-text {
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content {
  padding: var(--space-xl);
}

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

.card-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.project-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tech-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  flex: 1;
}

.tech-tag {
  padding: 0.25rem 0.6rem;
  background: rgba(45, 108, 223, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(45, 108, 223, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(45, 108, 223, 0.2);
  transform: translateY(-1px);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--surface);
  padding: var(--space-xxl) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-center {
  text-align: center;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.resume-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  background: var(--primary-dark-color);
}

.button-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.resume-button:hover .button-icon {
  transform: translateY(2px);
}

.footer-right {
  text-align: right;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-item {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  font-size: 0.9rem;
}

.contact-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-value {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(45, 108, 223, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.dark-mode .hero::before {
  background: radial-gradient(circle at center, rgba(77, 141, 246, 0.1) 0%, transparent 70%);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.glitch {
  position: relative;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.hero-name {
  display: block;
  margin: 0.2em 0;
  opacity: 0;
  animation: riseFromBelow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom;
}

.hero-name:first-child {
  animation-delay: 0.2s;
}

.hero-name:last-child {
  animation-delay: 0.5s;
}

@keyframes riseFromBelow {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glitch-anim-1 {
  0%, 100% {
    clip: rect(2px, 9999px, 28px, 0);
  }
  25% {
    clip: rect(51px, 9999px, 21px, 0);
  }
  50% {
    clip: rect(14px, 9999px, 92px, 0);
  }
  75% {
    clip: rect(35px, 9999px, 92px, 0);
  }
}

@keyframes glitch-anim-2 {
  0%, 100% {
    clip: rect(65px, 9999px, 91px, 0);
  }
  25% {
    clip: rect(79px, 9999px, 97px, 0);
  }
  50% {
    clip: rect(21px, 9999px, 35px, 0);
  }
  75% {
    clip: rect(74px, 9999px, 31px, 0);
  }
}

.typewriter {
  margin-top: var(--space-md);
}

#typewriter-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--text-primary);
  animation: blink 1s infinite;
}

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

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 2s ease-in-out infinite;
}

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

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

.arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-sm);
}

.arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow 1.5s infinite;
}

.arrow:nth-child(2) {
  animation-delay: 0.2s;
}
.arrow:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: var(--space-xxl) var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.section-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  opacity: 0.3;
  z-index: -1;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg);
  background-color: var(--surface);
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.about-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
  position: relative;
  padding-bottom: var(--space-sm);
}

.about-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ========================================
   EXPERIENCE ACCORDION
   ======================================== */
.experience-container {
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: relative;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.experience-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow);
}

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

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.experience-info {
  flex: 1;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.experience-header:hover .experience-info {
  transform: translateX(5px);
}

.experience-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
}

.experience-company {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.experience-header:hover .experience-company {
  color: var(--secondary);
  transform: translateX(3px);
}

.experience-duration {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.dropdown-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(45, 108, 223, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.dropdown-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.experience-header:hover .dropdown-arrow::before {
  opacity: 0.1;
}

.experience-card.expanded .dropdown-arrow {
  transform: rotate(180deg) scale(1.1);
  background: rgba(45, 108, 223, 0.2);
}

.experience-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(-20px);
}

.experience-card.expanded .experience-content {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.experience-details {
  padding: 0 var(--space-xl) var(--space-xl);
  position: relative;
}

.experience-details::before {
  content: "";
  position: absolute;
  top: -20px;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.details-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.details-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease forwards;
}

.experience-card.expanded .details-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.experience-card.expanded .details-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.experience-card.expanded .details-list li:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.details-list li::before {
  content: "\25B8";  /* ▸ – no emoji version */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.details-list li:hover::before {
  color: var(--secondary);
  transform: translateX(3px);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

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

.skill-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(45, 108, 223, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(45, 108, 223, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(45, 108, 223, 0.2);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(45, 108, 223, 0.3);
}

.skill-tag:hover::before {
  left: 100%;
}

/* ========================================
   PROJECTS CTA SECTION
   ======================================== */
.projects-cta-section {
  padding: var(--space-xxl) 0;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
}

.projects-cta-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.projects-cta-header {
  margin-bottom: var(--space-xl);
}

.projects-cta-title {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.projects-cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.cta-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.cta-button-enhanced,
.cta-button-secondary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.cta-button-enhanced {
  background: var(--primary);
  color: white;
}

.cta-button-secondary {
  background: var(--surface);
  color: var(--primary);
}

.cta-button-enhanced:hover,
.cta-button-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

.cta-button-secondary:hover {
  background: var(--primary);
  color: white;
}

.button-content-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.button-icon-enhanced {
  transition: transform 0.3s ease;
}

.cta-button-enhanced:hover .button-icon-enhanced,
.cta-button-secondary:hover .button-icon-enhanced {
  transform: translateX(5px);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-page {
  padding-top: 100px;
  min-height: 100vh;
}

.contact-hero {
  text-align: center;
  padding: var(--space-xxl) 0;
  background: rgba(45, 108, 223, 0.05);
  border-radius: 20px;
  margin-bottom: var(--space-xxl);
}

.contact-hero h1 {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.contact-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-main {
  padding: var(--space-xxl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: stretch;
}

.contact-form-container,
.contact-info-container {
  background: var(--surface);
  padding: var(--space-xxl);
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.contact-info-container {
  justify-content: space-between;
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-header h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.floating-label {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 50px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--surface);
  transform: translateY(-1px);
}

.form-label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--surface);
  padding: 0 var(--space-sm);
  border-radius: 4px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: -8px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

.form-label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background: var(--background);
  padding: 0 var(--space-sm);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.form-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.form-input:focus ~ .form-icon,
.form-textarea:focus ~ .form-icon {
  color: var(--primary);
}

/* Bar under the contact form: I don't want it to be on here but if I decide to put it in again here is the HTML: <div class="form-highlight"></div> */

/* .form-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.form-input:focus ~ .form-highlight,
.form-textarea:focus ~ .form-highlight {
  width: 100%;
} */

.submit-button-modern {
  position: relative;
  padding: var(--space-lg) var(--space-xl);
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.submit-button-modern:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(5deg);
  box-shadow: 0 10px 30px var(--shadow);
  background: var(--primary-dark-color);
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.button-icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.submit-button-modern:hover .button-icon {
  transform: translateX(5px);
}

.form-result-modern {
  display: none;
  padding: var(--space-md);
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-md);
}

.form-result-modern.success {
  background: rgba(0, 200, 83, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-result-modern.error {
  background: rgba(255, 61, 113, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

.contact-info-container h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.contact-info-container p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--background);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.contact-info-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--background), rgba(45, 108, 223, 0.05));
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.contact-info-item:hover .contact-info-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(45, 108, 223, 0.4);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.contact-info-text h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.contact-info-text p {
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   CERTIFICATIONS PAGE
   ======================================== */
.certifications-page {
  padding-top: 100px;
  min-height: 100vh;
}

.certifications-section {
  margin-bottom: var(--space-xxl);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.cert-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-xl);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow);
}

.cert-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cert-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.cert-title {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cert-issuer {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.cert-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.cert-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.cert-skills {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  /* justify-content: center; removed to left-align badges */
}

.skill-badge {
  padding: 0.25rem 0.6rem;
  background: rgba(45, 108, 223, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(45, 108, 223, 0.2);
}

.awards-section {
  margin-top: var(--space-xxl);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.award-card {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.award-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow);
}

.award-content h3 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.award-amount {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.award-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.award-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========================================
   PROJECT DETAIL PAGES
   ======================================== */
.project-page {
  padding-top: 100px;
  min-height: 100vh;
}

.back-to-projects {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  transition: all 0.3s ease;
}

.back-to-projects:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

.project-hero {
  margin-bottom: var(--space-xxl);
}

.project-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.project-info {
  padding-right: var(--space-lg);
}

.project-title {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

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

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.meta-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.project-hero-image {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.project-content {
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}

.content-section h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--background);
  padding: var(--space-lg);
  border-radius: 15px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.feature-title {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.tech-item {
  position: relative;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(45, 108, 223, 0.1);
  color: var(--primary);
  border-radius: 25px;
  font-weight: 500;
  border: 1px solid rgba(45, 108, 223, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
  background: rgba(45, 108, 223, 0.2);
  border-color: var(--primary);
}

.tech-item:hover::before {
  left: 100%;
}

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

.process-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: var(--space-sm);
}

.step-content h4 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.learnings-list {
  list-style: none;
  padding: 0;
}

.learnings-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.learnings-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */
.fade-enter {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-enter-active {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }

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

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

  .project-hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .project-info {
    padding-right: 0;
  }

  .cta-buttons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xxl: 2rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
  }

  .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 99;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .glitch {
    font-size: 3rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .projects-cta-title {
    font-size: 2rem;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

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

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

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

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

  .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .filter-container {
    padding: var(--space-xs);
    gap: var(--space-xs);
    margin: 0 var(--space-sm);
  }

  .filter-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
  }

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

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

  .contact-form-container,
  .contact-info-container {
    min-height: auto;
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .glitch {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .projects-cta-title {
    font-size: 1.8rem;
  }

  .project-title {
    font-size: 2rem;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: var(--space-xl) var(--space-sm);
  }

  .about-content,
  .contact-form-container,
  .contact-info-container,
  .content-section {
    padding: var(--space-lg);
  }

  .experience-header,
  .experience-details {
    padding: var(--space-lg);
  }

  .cert-card {
    padding: var(--space-lg);
  }

  .award-card {
    padding: var(--space-lg);
  }

  .filter-section {
    padding: 0;
  }

  .filter-container {
    margin: 0 var(--space-sm);
    border-radius: 25px;
  }

  .page-header {
    padding: 0 var(--space-sm);
  }
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .glitch::before,
  .glitch::after {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-dark: #ffffff;
  }
}

/* Print styles */
@media print {
  header,
  .theme-toggle,
  .menu-toggle,
  .scroll-indicator,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Remove all focus outlines */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: none !important;
}

/* Certifications CTA styles */
.certs-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.certs-section-title {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.certs-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.cert-status {
  display: none;
}

.cert-actions {
  margin-top: var(--space-lg);
  text-align: center;
}

.cert-cta {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cert-cta:hover {
  background: var(--primary-dark-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 108, 223, 0.3);
}

.certs-cta-section {
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.05), rgba(0, 194, 255, 0.05));
  border-radius: 20px;
  padding: var(--space-xxl);
  text-align: center;
  border: 1px solid var(--border);
}

.certs-cta-title {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.certs-cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.certs-cta-buttons {
  display: flex;
  justify-content: center;
}

.certs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.certs-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 108, 223, 0.4);
  background: var(--primary-dark-color);
}

#loader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #181c24;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.loader {
  border: 8px solid #222;
  border-top: 8px solid #4e8cff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.cert-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 16px;
}

.cert-cta {
  min-width: 100px;
  text-align: center;
}

.cert-bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 12px;
}
