/* =========================================================
   GLOBAL THEME (Polished Professional)
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Better focus visuals */
:focus {
  outline: none;
}

:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(110,168,254,0.18);
  outline-offset: 3px;
  box-shadow: 0 4px 18px rgba(110,168,254,0.08);
}

body {
  background: var(--hero-bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  line-height: 1.6;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.loaded {
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}

:root {
  --primary: #6ea8fe;
  --secondary: #93c5fd;
  --dark: #0e1117;
  --gray: #d1d5db;
  --card-bg: rgba(22, 27, 34, 0.7);
  --border: rgba(110, 168, 254, 0.2);
  --input-bg: rgba(17, 21, 34, 0.8);
  --glass: rgba(14, 17, 23, 0.6);
  --text: #d1d5db;
  --heading: #fff;
  --nav-text: #f9fafb;
  --hero-bg-gradient: linear-gradient(-45deg, #0e1117, #161b22, #0d1117, #1a1f2e);
  --skill-tag-bg: #1c1f26;
  --footer-bg: #0c0f15;
  --section-bg: #0e1117;
  --section-bg-alt: #0d1117;
  --mobile-menu-bg: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(22, 27, 34, 0.96));
}

[data-theme="light"] {
  --primary: #6ea8fe;
  --secondary: #93c5fd;
  --dark: #0e1117;
  --gray: #d1d5db;
  --card-bg: rgba(22, 27, 34, 0.7);
  --border: rgba(110, 168, 254, 0.2);
  --input-bg: rgba(17, 21, 34, 0.8);
  --glass: rgba(14, 17, 23, 0.6);
  --text: #d1d5db;
  --heading: #fff;
  --nav-text: #f9fafb;
  --hero-bg-gradient: linear-gradient(-45deg, #0e1117, #161b22, #0d1117, #1a1f2e);
  --skill-tag-bg: #1c1f26;
  --footer-bg: #0c0f15;
  --section-bg: #0e1117;
  --section-bg-alt: #0d1117;
  --mobile-menu-bg: linear-gradient(135deg, rgba(14, 17, 23, 0.98), rgba(22, 27, 34, 0.96));
}



/* =========================================================
   NAVBAR
========================================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 3rem;
  background: var(--glass);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  will-change: color;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10.5rem 6rem 5.5rem;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--heading);
  margin-bottom: 1rem;
}

.hero-text h1 span {
  background: linear-gradient(120deg, var(--primary), #a78bfa, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-text h2 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.typing {
  color: var(--secondary);
  border-right: 3px solid var(--primary);
  padding-right: 6px;
  animation: blink 0.8s infinite;
  font-weight: 600;
}

@keyframes blink {
  0%, 50%, 100% { border-color: transparent; }
  25%, 75% { border-color: var(--primary); }
}

.hero-text p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn {
  background: var(--primary);
  color: #0e1117;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.hero-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-socials a {
  color: var(--primary);
  border: 1px solid rgba(110, 168, 254, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.hero-socials a:hover {
  background: var(--primary);
  color: #0e1117;
  transform: scale(1.15);
}

/* Hero Image */
.hero-img.rectangular {
  position: relative;
  width: 440px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 0 25px rgba(110, 168, 254, 0.15);
  border: 1px solid rgba(110, 168, 254, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-img.rectangular img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.hero-img.rectangular:hover img {
  transform: scale(1.05);
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.about.text-only {
  text-align: center;
  padding: 6rem 3rem;
  max-width: 900px;
  margin: auto;
}

.about.text-only h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.about.text-only h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.about.text-only:hover h2::after {
  transform: translateX(-50%) scaleX(1);
}

.about.text-only p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* =========================================================
   SKILLS SECTION
========================================================= */
.skills {
  text-align: center;
  padding: 6rem 3rem;
  background: var(--section-bg);
}

.skills h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.skills h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.skills:hover h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  justify-items: center;
}

.skill-category {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.6rem 1.2rem;
  width: 100%;
  max-width: 330px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-category:hover {
  transform: translateY(-8px);
  border-color: rgba(110, 168, 254, 0.4);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.skill-header i {
  color: var(--primary);
  font-size: 1.6rem;
}

.skill-header h3 {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.skill-tags span {
  background: var(--skill-tag-bg);
  border-radius: 10px;
  padding: 0.35rem 0.8rem;
  color: var(--gray);
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 64px;
  text-align: center;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.skill-tags span:hover {
  background: var(--primary);
  color: #0e1117;
  transform: translateY(-3px) scale(1.02);
}

/* =========================================================
   EXPERIENCE SECTION (Timeline)
========================================================= */
.experience {
  padding: 6rem 3rem;
  background: var(--section-bg-alt);
}

.experience h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
}

.experience h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.experience:hover h2::after {
  transform: translateX(-50%) scaleX(1);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.timeline-date {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(110, 168, 254, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 168, 254, 0.4);
}

.timeline-header h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.timeline-header .company {
  color: var(--gray);
  font-size: 1rem;
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.experience-list {
  list-style: none;
  padding: 0;
}

.experience-list li {
  margin-bottom: 0.8rem;
  color: var(--gray);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.experience-list li i {
  color: var(--primary);
  margin-top: 0.3rem;
  font-size: 0.9rem;
  flex-shrink: 0; /* Prevents icon from shrinking */
  margin-right: 0.5rem; /* Explicit spacing */
}

.experience-list li b {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: -2.05rem;
  }
}

/* =========================================================
   RESEARCH SECTION (Featured Card)
========================================================= */
.research {
  padding: 6rem 3rem;
  background: var(--section-bg);
}

.research h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
}

.research h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.research:hover h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* Research Card - Matches Timeline Content Style */
.research-card {
  max-width: 800px; /* Matches timeline max-width */
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
  text-align: left;
}

.research-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 168, 254, 0.4);
}

@media (max-width: 768px) {
  .research-card {
    padding: 1.5rem;
    width: 95%; /* Ensure it doesn't overflow */
    margin: 0 auto;
  }
}

/* Updated Link Style */
.research-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: gap 0.3s ease, color 0.3s ease;
  margin-top: 1rem;
}

.research-link:hover {
  gap: 0.8rem;
  color: #fff;
  text-decoration: underline;
}

.research-link i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.research-link:hover i {
  transform: translateX(3px);
}

/* =========================================================
   PROJECTS SECTION (Fixed Images + Modern Layout)
========================================================= */
.projects {
  text-align: center;
  padding: 5rem 3rem;
}

.projects h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.projects h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.projects:hover h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* Project Filters */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transition: 0.4s ease;
  max-width: 360px;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(110, 168, 254, 0.3);
  box-shadow: 0 10px 25px rgba(110, 168, 254, 0.1);
}

.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  text-align: left;
}

.project-content h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.project-content p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(110, 168, 254, 0.2);
}

.tech-badge {
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.2), rgba(147, 197, 253, 0.1));
  border: 1px solid rgba(110, 168, 254, 0.3);
  color: var(--secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-badge:hover {
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.4), rgba(147, 197, 253, 0.2));
  border-color: rgba(110, 168, 254, 0.6);
  transform: translateY(-2px);
}

/* Project action buttons */
.project-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--gray);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.22s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(110,168,254,0.35);
  color: var(--primary);
}

.action-btn.primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #0e1117;
  border: none;
}

.action-btn.primary:hover,
.action-btn.primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 18px rgba(110,168,254,0.12);
}

@media (max-width: 480px) {
  .project-actions { flex-wrap: wrap; }
  .action-btn { width: 48%; justify-content: center; }
}

/* =========================================================
   CONTACT SECTION (Redesigned)
========================================================= */
.contact {
  background: var(--section-bg-alt);
  padding: 6rem 4rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: auto;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.contact-info:hover h2::after {
  transform: scaleX(1);
}

.contact-message {
  background: var(--card-bg);
  padding: 1.6rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.contact-message h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.contact-message p {
  color: var(--gray);
  line-height: 1.7;
}

.contact-details p {
  color: var(--secondary);
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Modern Contact Form */
.contact-form {
  flex: 1;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.2rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(110, 168, 254, 0.3);
}

.btn-glow {
  width: 100%;
  background: var(--primary);
  color: #0e1117;
  padding: 0.9rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-glow:hover {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(110, 168, 254, 0.3);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--footer-bg);
  color: var(--gray);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* =========================================================
   ANIMATION
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
/* =========================================================
   RESPONSIVE & MOBILE MENU
========================================================= */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: all 0.22s ease;
}

.hamburger:hover {
  border-color: var(--primary);
  background: var(--card-bg);
}

.hamburger:focus-visible {
  outline: 3px solid var(--border);
  outline-offset: 2px;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  header {
    padding: 0.8rem 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    border-left: 1px solid var(--border);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .nav-menu ul li a {
    font-size: 1.5rem;
  }

  /* Hamburger Animation */
  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    flex-direction: column;
    padding: 8.5rem 1.6rem 3.5rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-img.rectangular {
    width: 90%;
    height: auto;
    max-width: 400px;
    aspect-ratio: 1/1;
  }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  z-index: 1002;
  transition: width 0.1s;
}

/* Hide default cursor only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  /* Removed custom cursor styles */
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  /* Removed touch cursor logic */
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  .project-card {
    max-width: 100%;
  }
}


