:root {
  --accent: #DC2626; /* Arsenal red */
  --accent-light: #EF4444; /* Lighter red */
  --accent-dark: #B91C1C; /* Darker red */
  --bg: #0D162B; /* Even lighter dark background */
  --bg-gradient: linear-gradient(135deg, #0D162B 0%, #1A2847 50%, #0F1C3F 100%);
  --card: #121F42; /* Even lighter dark card */
  --card-gradient: linear-gradient(135deg, #121F42 0%, #1A2847 100%);
  --muted: #94A3B8; /* Muted text */
  --text: #FFFFFF; /* White text */
  --glass: rgba(220, 38, 38, 0.1); /* Subtle red glass */
  --shadow-light: rgba(220, 38, 38, 0.1);
  --shadow-medium: rgba(220, 38, 38, 0.2);
  --shadow-strong: rgba(220, 38, 38, 0.3);
  --max-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-gradient);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text);
}
p {
  font-weight: 400;
}
a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
}
a:hover {
  color: #EF4444;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 17, 40, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}
header.scrolled {
  background: rgba(10, 17, 40, 0.95);
  box-shadow: 0 4px 30px rgba(220, 38, 38, 0.15);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.logo:hover {
  background: rgba(220, 38, 38, 0.1);
  -webkit-text-fill-color: var(--accent);
  background-clip: initial;
}
.logo i {
  font-size: 1.5rem;
  color: var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}
.nav-links li a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #EF4444);
  transition: width 0.3s ease;
}
.nav-links li a:hover::after {
  width: 100%;
}
.nav-links li a:hover {
  color: var(--accent);
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero */
#hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?w=800') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content {
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF, #E5E7EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
  animation: fadeInUp 1s ease-out 0.2s both;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #CBD5E1;
  animation: fadeInUp 1s ease-out 0.4s both;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  color: var(--text);
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #B91C1C, #991B1B);
}
.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.cta-button.secondary:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #EF4444;
}
.cta-button.nav-button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Page Container */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}
.page.active {
  display: block;
  animation: pageSlideIn 0.5s ease-out;
}
@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}
section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Page - Detailed */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?w=1920') center/cover scroll;
  padding: 8rem 0 2rem;
  text-align: center;
}
.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.about-hero p {
  font-size: 1.3rem;
  color: #CBD5E1;
  max-width: 800px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
  align-items: center;
}
.about-image {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.1)),
              url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?w=1200&h=1200&fit=crop') center/cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
}
.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: #CBD5E1;
}
.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.skill-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
  background: var(--card-gradient);
  padding: 5rem 2rem;
  margin: 4rem 0;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  box-shadow: 0 8px 25px var(--shadow-light);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.skill-card {
  background: var(--card-gradient);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 8px 25px var(--shadow-light);
}
.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 15px 40px var(--shadow-medium);
}
.skill-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--accent), #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: block;
}
.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.skill-card p {
  color: var(--muted);
  line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.project-card {
  background: linear-gradient(135deg, #0F1C3F, #1A2847);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
}
.project-image {
  height: 250px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.1));
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay i {
  font-size: 3rem;
  color: var(--accent);
}
.project-content {
  padding: 2rem;
}
.project-badge {
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}
.project-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.project-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin: 3rem 0;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}
.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}
.timeline-content {
  background: linear-gradient(135deg, #0F1C3F, #1A2847);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.timeline-content::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 0;
  height: 0;
  border-style: solid;
}
.timeline-item:nth-child(odd) .timeline-content::before {
  right: -15px;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #0F1C3F;
}
.timeline-item:nth-child(even) .timeline-content::before {
  left: -15px;
  border-width: 10px 15px 10px 0;
  border-color: transparent #0F1C3F transparent transparent;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
  z-index: 1;
}
.timeline-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.timeline-item .date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}
.timeline-item ul {
  list-style: none;
  text-align: left;
}
.timeline-item ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: #CBD5E1;
}
.timeline-item ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  left: 0;
}
.timeline-item:hover .timeline-content {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.article-card {
  background: linear-gradient(135deg, #0F1C3F, #1A2847);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
}
.article-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-meta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-date {
  background: rgba(10, 17, 40, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.article-content {
  padding: 2rem;
}
.article-category {
  background: rgba(220, 38, 38, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}
.article-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
.article-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.article-card:hover .read-more {
  gap: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info {
  background: linear-gradient(135deg, #0F1C3F, #1A2847);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.contact-item:hover {
  background: rgba(220, 38, 38, 0.1);
  transform: translateX(10px);
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}
.contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}
.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
  background: var(--bg);
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
}
footer p {
  color: #64748B;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--accent), #B91C1C);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}
.scroll-top.visible {
  opacity: 1;
}
.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* Tweets Grid */
.tweets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.tweet-item {
  padding: 0;
  background: none;
  border-radius: 0;
  transition: none;
}

.tweet-item:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 80px !important;
    padding-right: 20px !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 30px;
  }
  .timeline-content::before {
    left: -15px !important;
    border-width: 10px 15px 10px 0 !important;
    border-color: transparent #0F1C3F transparent transparent !important;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    width: 100%;
    height: 100vh;
    justify-content: center;
    transition: right 0.3s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  section h2 {
    font-size: 2.2rem;
  }
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid, .projects-grid, .articles-grid, .tweets-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile-specific improvements */
  .hero-content {
    padding: 2rem 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .cta-button {
    min-height: 48px; /* Minimum touch target */
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .nav-links li a {
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .skill-card, .project-card, .article-card {
    margin-bottom: 1rem;
  }
  .contact-item {
    padding: 1.5rem 1rem;
    min-height: 48px;
  }
  .social-link {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Mobile-first enhancements */
@media (max-width: 480px) {
  /* Hero section optimization */
  #hero {
    height: 90vh; /* Reduce from 100vh for better mobile experience */
    min-height: 500px; /* Ensure minimum height */
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Improve touch targets */
  .cta-button, .nav-button {
    min-height: 48px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Navigation improvements */
  .nav-links li a {
    padding: 1.2rem 1rem;
    font-size: 1.2rem;
  }

  /* Grid spacing */
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 4rem 0;
  }

  /* Card improvements */
  .skill-card, .project-card, .article-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skill-icon {
    font-size: 3rem;
  }

  /* Contact improvements */
  .contact-grid {
    gap: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .contact-icon {
    align-self: center;
  }

  /* Footer improvements */
  footer {
    padding: 2rem 1rem;
  }

  /* Scroll to top positioning */
  .scroll-top {
    bottom: 15px;
    right: 15px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .skill-card:hover,
  .project-card:hover,
  .article-card:hover,
  .contact-item:hover,
  .social-link:hover,
  .scroll-top:hover {
    transform: none;
    box-shadow: none;
  }

  /* Add active states for touch feedback */
  .cta-button:active,
  .nav-links li a:active,
  .social-link:active,
  .scroll-top:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Improve tap targets */
  .read-more,
  .project-overlay i {
    padding: 0.5rem;
    margin: -0.5rem;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  /* Reduce motion for better performance on mobile */
  .timeline-item,
  .skill-card,
  .project-card,
  .article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Optimize animations */
  .hero-content h1,
  .hero-content p,
  .hero-buttons {
    animation-duration: 0.6s;
  }

  /* Optimize hero backgrounds for mobile */
  #hero,
  .about-hero {
    background-attachment: scroll;
    background-position: center top;
  }
}
