/* ======= Base Styles ======= */
:root {
  /* Primary Color Scheme */
  --primary-color: #ffab66;
  --primary-dark: #ff9839;
  --primary-light: #fbb679;
  --secondary-color: #ffea8b;
  
  /* Text Colors */
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --text-muted: #6b7280;
  
  /* Background Colors */
  --bg-dark: #271c11;
  --bg-light: #ffffff;
  --bg-accent: #f6f5f3;
  
  /* RGB values for calculations */
  --primary-color-rgb: 255, 171, 102;
  --text-muted-rgb: 107, 114, 128;
  
  /* Other Variables */
  --border-radius: 8px;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  
  /* Dark Mode Variables (will be applied via JS) */
  --dark-bg: #2a1e0f;
  --dark-card: #3b2f1e;
  --dark-border: #554a33;
}

/* Default Light Theme */
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme (Applied via JS) */
body.dark-theme {
  --bg-light: var(--dark-bg);
  --bg-accent: var(--dark-card);
  --text-dark: var(--text-light);
  --text-muted: #94a3b8;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
.section {
  padding: 6rem 0;
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--text-dark);
}

.section-heading::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Button Styles */
.btn, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn:hover, .cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.btn.secondary, .cta-btn.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ======= Loading Screen ======= */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(var(--primary-color-rgb), 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s infinite ease-in-out;
}

.loading-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.1em;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* ======= Header & Navigation ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 999;
  transition: background-color 0.3s, padding 0.3s;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: rgba(var(--bg-light), 0.8);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.resume-btn:hover {
  background-color: var(--primary-dark);
  color: white;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ======= Hero Section ======= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  z-index: 1;
}

.hero-text {
  max-width: 650px;
}

.pre-heading {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s ease infinite;
  background-size: 200% 200%;
}

.animated-subtitle {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  height: 2.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 80%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-btn {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
  letter-spacing: 0.5px;
  position: relative;
}

.hover-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  margin-bottom: 0.5rem;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 10px;
  background-color: var(--text-muted);
  border-radius: 3px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-scroll 2s infinite;
}

@keyframes mouse-scroll {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* ======= About Section ======= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  top: 15px;
  left: 15px;
  z-index: -1;
  border-radius: var(--border-radius);
}

.about-image img {
  border-radius: var(--border-radius);
  transition: transform 0.5s ease;
}

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

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.about-cta {
  margin-top: 2rem;
}

/* ======= About Stats ======= */
.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ======= Research Interests ======= */
.research-interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.research-card {
  background-color: var(--bg-accent);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
}

.research-card:hover {
  transform: translateY(-5px);
}

.research-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.research-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.research-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ======= Skills Section ======= */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--bg-accent);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.skill-category h3 i {
  color: var(--primary-color);
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.skill-bar {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: skill-animation 1.5s ease forwards;
}

@keyframes skill-animation {
  to {
    transform: scaleX(1);
  }
}

/* ======= Projects Section ======= */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background-color: var(--bg-accent);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-accent);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ======= Project Status ======= */
.project-status {
  margin-bottom: 1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.ongoing {
  background-color: #3b82f6;
  color: white;
}

.status-badge.paused {
  background-color: #ffe992;
  color: #ffffff;
}

.status-badge.completed {
  background-color: #10b981;
  color: white;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.project-tags span {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-meta {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.project-meta i {
  margin-right: 0.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ======= Publications ======= */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.publication-card {
  background-color: var(--bg-accent);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.publication-status {
  margin-bottom: 1rem;
}

.pub-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pub-badge.accepted {
  background-color: #10b981;
  color: white;
}

.pub-badge.submitted {
  background-color: #f59e0b;
  color: white;
}

.publication-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.pub-authors, .pub-venue {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pub-description {
  color: var(--text-muted);
  margin: 1rem 0;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-tags span {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ======= Experience Section ======= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-light);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s infinite;
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background-color: var(--bg-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  left: 55%;
  transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 0;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 20px;
  height: 20px;
  background-color: var(--bg-accent);
  transform: rotate(45deg);
}

.timeline-item .timeline-content::before {
  left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -10px;
  left: auto;
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.timeline-content h4 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ======= Contact Section ======= */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.125rem;
}

.contact-item p, .contact-item a {
  color: var(--text-muted);
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
}

.contact-socials a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.25rem;
  transition: var(--transition);
}

.contact-socials a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Form styles */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--bg-accent);
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.submit-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ======= Footer ======= */
.footer {
  background-color: var(--bg-accent);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--text-muted-rgb), 0.2);
}

#back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  z-index: 99;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
}

/* ======= Cookie Consent ======= */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-accent);
  padding: 1rem 2rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* ======= Theme Toggle ======= */
#theme-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: var(--transition);
}

#theme-toggle:hover {
  transform: rotate(30deg);
}

#theme-toggle i {
  font-size: 1.25rem;
}

#theme-toggle .fa-sun {
  display: none;
}

body.dark-theme #theme-toggle .fa-moon {
  display: none;
}

body.dark-theme #theme-toggle .fa-sun {
  display: block;
}

/* ======= Animations & Utilities ======= */
.magnetic {
  position: relative;
  transition: transform 0.15s ease-out;
}

/* AOS Animations Custom */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ======= Responsive Design ======= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-marker {
    left: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    left: 80px;
  }
  
  .timeline-item .timeline-content::before {
    left: -10px;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero-description {
    max-width: 100%;
    font-size: 1.125rem;
  }
  
  .animated-subtitle {
    font-size: 1.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
    z-index: 999;
  }
  
  .nav-link {
    margin: 1rem 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-consent {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .pre-heading {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-btn {
    width: 100%;
  }
  
  .projects-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  .logo a {
    font-size: 1.5rem;
  }
  
  #theme-toggle,
  #back-to-top {
    width: 35px;
    height: 35px;
  }
  
  .nav-list {
    width: 85%;
  }
}

/* ======= Print Styles ======= */
@media print {
  .header,
  #theme-toggle,
  #back-to-top,
  .cookie-consent,
  .scroll-indicator,
  .footer-social,
  .contact-form,
  .projects-filter {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .timeline::before,
  .timeline-marker,
  .timeline-marker::before {
    display: none;
  }
  
  .timeline-content {
    box-shadow: none;
    border: 1px solid #ccc;
    width: 100%;
    left: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    left: 0;
  }
  
  .project-card,
  .skill-category {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ======= Accessibility Improvements ======= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.dark-mode-transition {
  transition: background-color 0.5s ease, color 0.5s ease;
}