/* ============================================
   Modern Minimalist Personal Website Styles
   Light Theme - White & Black
   ============================================ */

/* CSS Custom Properties (Variables) */
:root {
  --color-primary: #000000;
  --color-secondary: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-sidebar: #ffffff;
  --color-border: #e0e0e0;
  --color-accent: #000000;
  --color-hover: #f5f5f5;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --sidebar-width: 280px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-text);
}

/* Left Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.sidebar-logo-link {
  display: inline-block;
  text-decoration: none;
}

.sidebar-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  border: 3px solid var(--color-border);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out;
  cursor: pointer;
}

.sidebar-logo:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

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

.sidebar-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-name-link:hover .sidebar-name {
  color: var(--color-text);
}

.sidebar-title {
  font-size: 0.9rem;
  color: var(--color-text-light);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.sidebar-nav {
  list-style: none;
  padding: var(--spacing-md) 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--color-hover);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background: var(--color-hover);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.sidebar-nav a i {
  margin-right: var(--spacing-sm);
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav a span {
  flex: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  z-index: 1001;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle:hover {
  background: var(--color-hover);
}

/* Main Content */
main {
  margin-left: var(--sidebar-width);
  padding: 0;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
  position: relative;
  padding-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.4s both;
}

/* Hero/Intro Section */
#intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  color: var(--color-primary);
  text-align: center;
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md);
}

#intro .container {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

#intro h2 {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.1;
  animation: fadeInUp 1s ease-out 0.2s both;
}

#intro h5 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
  animation: fadeInUp 1s ease-out 0.4s both;
}

#intro .teal {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}

#intro .teal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  animation: expandWidth 0.6s ease-out 1.2s both;
}

/* Social Icons */
.social {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-md) 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: var(--transition);
  border: 2px solid var(--color-border);
}

.icon-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Buttons */
.buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.readme,
.contactme {
  padding: 14px 36px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid var(--color-primary);
}

.readme {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.readme:hover {
  background: transparent;
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contactme {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contactme:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* About Section */
#about {
  background: var(--color-bg);
  padding: var(--spacing-xl) var(--spacing-md);
}

#about .container {
  max-width: 800px;
  margin: 0 auto;
}

#about p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

/* Student Projects Section */
#student-projects {
  background: var(--color-bg-alt);
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Personal Projects Section */
#projects {
  background: var(--color-bg);
  padding: var(--spacing-xl) var(--spacing-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Modern Card Design */
.card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeInUp 0.6s ease-out;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-bg-alt);
  transition: var(--transition);
}

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title i {
  color: var(--color-text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.card-title i:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}

.card-description {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
  line-height: 1.6;
}

.card-reveal {
  padding: var(--spacing-md);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.card.active .card-reveal {
  max-height: 1000px;
  opacity: 1;
  padding: var(--spacing-md);
}

.card-reveal .card-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.card-toggle,
.card-close {
  cursor: pointer;
  transition: var(--transition);
}

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

.card-reveal ul {
  list-style: none;
  margin: var(--spacing-sm) 0;
}

.card-reveal ul li {
  padding: var(--spacing-xs) 0;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  padding-left: var(--spacing-md);
}

.card-reveal ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.card-reveal ul li b {
  color: var(--color-primary);
  font-weight: 600;
}

.card-action {
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.card-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.card-action a:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-sm);
}

.edge-link,
.chrome-link,
.firefox-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.edge-icon,
.chrome-icon,
.firefox-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Research Papers Section */
#research {
  background: var(--color-bg);
  padding: var(--spacing-xl) var(--spacing-md);
}

.scholar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.scholar-link:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.scholar-link i {
  font-size: 1.2rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.research-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--color-primary);
  border: 1px solid var(--color-border);
  animation: fadeInUp 0.6s ease-out;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}

.research-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.research-card-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
}

.research-card-abstract {
  color: var(--color-text);
  margin: var(--spacing-sm) 0;
  line-height: 1.6;
}

.research-card-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Education Section */
#education {
  background: var(--color-bg-alt);
  padding: var(--spacing-xl) var(--spacing-md);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.education-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  animation: fadeInUp 0.6s ease-out;
  cursor: default;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.education-header {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: var(--spacing-md);
  text-align: center;
  position: relative;
  border-bottom: 2px solid var(--color-border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.education-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 180% 180%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: blur(0.5px);
}

.education-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.education-header:hover::before {
  opacity: 0.2;
  transform: scale(1.08);
}

.education-phd .education-header::before {
  background-image: url('../img/UMKC_logo.png');
}

.education-masters .education-header::before {
  background-image: url('../img/UMKC_logo.png');
}

.education-bachelors .education-header::before {
  background-image: url('../img/KAU_logo.png');
}

.education-degree-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.education-logo-container {
  margin: var(--spacing-sm) 0;
  position: relative;
  z-index: 1;
}

.education-logo-container a {
  display: inline-block;
  text-decoration: none;
  transition: var(--transition);
}

.education-logo-container a:hover {
  transform: scale(1.08);
}

.education-logo {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: var(--color-bg);
  padding: var(--spacing-xs);
  transition: var(--transition);
  display: block;
  margin: 0 auto;
}

.education-card:hover .education-logo {
  transform: scale(1.08);
}

.education-university-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  text-align: center;
  line-height: 1.3;
}

.education-university-name a {
  color: var(--color-primary);
  transition: var(--transition);
}

.education-university-name a:hover {
  color: var(--color-text);
}

.education-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.education-location i {
  font-size: 0.9rem;
  color: var(--color-text-lighter);
}

.education-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-md) 0;
  width: 100%;
}

.education-degree-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.education-degree-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-label {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.education-value {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
}

.education-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Degree-specific styling */
.education-phd .education-degree-badge {
  background: var(--color-primary);
}

.education-masters .education-degree-badge {
  background: var(--color-text);
}

.education-bachelors .education-degree-badge {
  background: var(--color-text-light);
}

/* Contact Section - Modern Minimal Design */
#contact {
  background: var(--color-bg);
  padding: var(--spacing-xl) var(--spacing-md);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 600px;
  text-align: center;
  width: 100%;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out;
}

.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text);
  transition: var(--transition);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.contact-icon-link:hover {
  color: var(--color-primary);
  transform: translateY(-5px);
}

.contact-icon-link i {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  transition: var(--transition);
}

.contact-icon-link:hover i {
  transform: scale(1.2) rotate(5deg);
}

.contact-icon-link span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
  transition: var(--transition);
}

.contact-icon-link:hover span {
  color: var(--color-primary);
}

/* Email Contact Special Styling */
.email-contact {
  cursor: pointer;
}

.email-address {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-primary);
  color: var(--color-bg);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.email-address::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-primary);
}

.email-contact:hover .email-address,
.email-contact.active .email-address {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.email-contact .email-address a {
  color: var(--color-bg);
  text-decoration: none;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--spacing-sm));
}

.col {
  padding: 0 var(--spacing-sm);
  flex: 1;
}

.col.s12 { flex: 0 0 100%; max-width: 100%; }
.col.m6 { flex: 0 0 50%; max-width: 50%; }
.col.l4 { flex: 0 0 33.333%; max-width: 33.333%; }

.flow-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.hoverline {
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.hoverline:hover {
  border-bottom-color: var(--color-primary);
}

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

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

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  main {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  #intro {
    min-height: calc(100vh - 70px);
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  #intro h2 {
    font-size: 2.5rem;
  }

  #intro h5 {
    font-size: 1.25rem;
  }

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

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

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

  .col.m6,
  .col.l4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-icons {
    gap: var(--spacing-md);
  }
}

@media (max-width: 600px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --sidebar-width: 260px;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  #intro h2 {
    font-size: 2rem;
  }

  #intro h5 {
    font-size: 1.1rem;
  }

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

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .readme,
  .contactme {
    width: 100%;
    text-align: center;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .contact-icon-link i {
    font-size: 2rem;
  }

  .email-address {
    bottom: -35px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .education-card {
    margin-bottom: var(--spacing-md);
  }

  .education-university-name {
    font-size: 1.15rem;
  }

  .education-logo {
    max-width: 100px;
    max-height: 100px;
  }
}

/* Hide old navigation */
nav.top-nav {
  display: none;
}
