/* --- CSS Variables --- */
:root {
  /* Colors */
  --clr-primary: #007aff;
  --clr-primary-light: #e6f0ff;
  --clr-primary-dark: #005fcc;
  --clr-dark: #000;
  --clr-light: #fff;
  --clr-gray-100: #eaeaea;
  --clr-gray-200: #ccc;
  --clr-gray-300: #888;
  --clr-gray-400: #666;
  --clr-dark-bg: #121212;
  --clr-dark-card: #181a1b;
  --clr-dark-border: #333;
  --clr-dark-text: #e0e0e0;
  --clr-dark-text-light: #cccccc;
  --clr-dark-text-hero: #fafafa;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --space-hero-padding-desktop: 6rem;

  /* Borders & Radii */
  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  --border-radius-xl: 24px;
  --border-radius-pill: 50px;

  /* Transitions */
  --transition-short: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-long: 0.6s ease;
  --transition-cubic: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1.5px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-button: 0 10px 20px rgba(0, 122, 255, 0.2);
  --shadow-apple-card: 0 8px 32px rgba(0, 0, 0, 0.08), var(--shadow-sm);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--clr-light);
  color: var(--clr-dark);
  transition: background-color var(--transition-medium),
    color var(--transition-medium);
  width: 100vw;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

main {
  padding-top: 0;
  /* fallback spacing for other sections */
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hidden by default, managed by JS for mobile */
.ham,
.cursor {
  display: none;
}

/* --- HEADER & NAVBAR --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-gray-100);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: none;
  /* Removed default box-shadow */
  transition: box-shadow var(--transition-medium),
    background var(--transition-medium);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex: 1;
  /* Allows nav links to take available space */
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo {
  font-size: var(--space-md);
  font-weight: bold;
  color: var(--clr-dark);
}

.logo span {
  color: var(--clr-primary);
}

.nav-container a {
  font-weight: 500;
  color: var(--clr-gray-400);
  /* Adjusted for better contrast */
  position: relative;
}

.nav-container a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-primary);
  transition: width var(--transition-medium);
}

.nav-container a:hover::after {
  width: 100%;
}

/* 404 Page CSS */
/* Designed by - https://codepen.io/uiswarup/pen/dyoyLOp */

#handboy {
  animation: swing ease-in-out 1.3s infinite alternate;
  transform-origin: 98% 98%;
  transform-box: fill-box;

}


#girllight {
  animation: swing ease-in-out 1.3s infinite alternate;
  transform-origin: 0% 97%;
  transform-box: fill-box;
}

#hairgirl {
  animation: swinghair ease-in-out 1.3s infinite alternate;
  transform-origin: 60% 0%;
  transform-box: fill-box;

}

#zero {
  transform-origin: bottom;
  transform-box: fill-box;

}


/*************swing************/
@keyframes swing {
  0% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(-10deg);
  }
}


/*************swing hair************/
@keyframes swinghair {
  0% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(-6deg);
  }
}

/* Dark Mode Toggle */
#toggleMode {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: auto;
  padding-right: var(--space-sm);
}

/* --- Section Base Styles --- */
section {
  font-size: clamp(1rem, 5vw, 1rem);
  margin: var(--space-md);
  padding: var(--space-md);
  position: relative;
  display: inline-block;
  /* Changed to display inline-block */
  font-weight: 400;
}

.section-subtitle {
  font-size: var(--space-lg);
  font-weight: 500;
  color: var(--clr-gray-300);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--clr-dark);
}

/* --- Hero Section --- */
#hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  padding: var(--space-hero-padding-desktop);
  background: linear-gradient(to bottom, #f6f8fa, var(--clr-light));
  overflow: hidden;
  margin-top: 0;
  /* Reset margin from general section style */
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: nowrap;
}

.typewriter {
  font-size: 2.2rem;
  font-weight: 700;
  color: #23272a;
  /* allow wrapping instead of forcing one long line */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  width: 100%;
  max-width: 60ch; /* readable line length */
  min-height: 2.5em;
  display: inline-block;
  /* optional caret (uncomment border-right and animation if you want) */
  /* border-right: 2px solid #FF9800; */
}

.hero-visual {
  flex: 0 0 320px;
  max-width: 380px;
  min-width: 200px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: auto;
}

.hero-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 3;
  padding-left: var(--space-xl);
  padding-right: 0;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  background: linear-gradient(90deg, var(--clr-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  font-weight: 300;
  padding-left: 0.1rem;
  color: var(--clr-gray-300);
}

/* Animated Blobs */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
  margin-bottom: 1.5rem;
  background: #fff;
  transition: box-shadow 0.3s;
  display: block;
}


.blob {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: var(--border-radius-pill);
  filter: blur(80px);
  opacity: 0.7;
  animation: float 12s ease-in-out infinite, blobMorph 16s ease-in-out infinite;
}

.blob1 {
  background: linear-gradient(45deg, var(--clr-primary), #00ffc3);
  top: 0;
  left: 20%;
  animation-delay: 0s;
}

.blob2 {
  background: linear-gradient(45deg, #ff80ab, #8e44ad);
  top: 50px;
  right: 10%;
  animation-delay: 2s;
}

.blob3 {
  background: linear-gradient(45deg, #ffd54f, #ff4081);
  bottom: 0;
  left: 40%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

@keyframes blobMorph {
  0%,100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 60% 40% 50% 60% / 50% 60% 40% 50%; }
  66% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}

/* --- About Section --- */

.about-section {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping for columns */
  align-items: flex-start;
  /* Align content to the top of the columns */
  gap: var(--space-lg);
  border-radius: var(--border-radius-xl);
  padding: var(--space-lg);
  /* Ensure padding exists for the content */
  /* Remove width: 100% and min-height: 600px from here */
  /* These were causing layout issues and are better managed by flex properties of children */
}

.about-section .section-subtitle {
  width: 100%;
  /* Make subtitle span full width */
  text-align: center;
  /* Center the subtitle */
  margin-bottom: var(--space-xl);
  /* Add more space below subtitle */
}


.tilt-card-wrapper {
  perspective: 1000px;
  display: block;
  /* Changed to block to allow flex-basis to work */
  border-radius: var(--border-radius-lg);
  flex-basis: 30%;
  /* Approximately 1/3 width */
  max-width: 450px;
  /* Keep the max-width for image */
  flex-shrink: 0;
  /* Prevent shrinking below preferred size */
  margin: 0 auto var(--space-lg) auto;
  /* Center on desktop and add space below */
}

.tilt-card {
  width: 100%;
  /* Take full width of wrapper */
  height: 90vw;
  /* Retain aspect ratio relative to viewport width */
  max-height: 450px;
  /* Ensure it doesn't get too big */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--transition-short), box-shadow var(--transition-short);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 183, 255, 0.4),
      rgba(0, 0, 0, 0));
}

.tilt-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.tilt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.about-content {
  flex-basis: 65%;
  /* Approximately 2/3 width */
  flex-grow: 1;
  /* Allow to grow if space available */
  min-width: 300px;
  /* Ensure content doesn't get too narrow */
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.about-content p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Skills Carousel */
.skills-carousel {
  margin-top: var(--space-lg);
  position: relative;
}

.carousel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  padding: var(--space-xs) 1.2rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-medium), color var(--transition-medium),
    border var(--transition-medium);
  font-size: 0.9rem;
}

.carousel-btn.active {
  background: var(--clr-primary);
  color: var(--clr-light);
  border-color: var(--clr-primary);
}

.carousel-btn:hover:not(.active) {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

.carousel-slides {
  position: relative;
  min-height: 200px;
  height: auto;
}

.carousel-slide {
  position: static;
  /* Reset from absolute, controlled by display none/block */
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  visibility: visible;
  transition: none;
  /* Controlled by display */
  margin-bottom: var(--space-md);
}

.carousel-slide:not(.active) {
  display: none;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.skill-tag {
  background: var(--clr-primary);
  color: var(--clr-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition-medium), transform var(--transition-short);
}

.skill-tag:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

.carousel-arrow {
  background: var(--clr-primary-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-pill);
  color: var(--clr-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-medium), color var(--transition-medium),
    transform var(--transition-short);
}

.carousel-arrow:hover {
  background: var(--clr-primary);
  color: var(--clr-light);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.8rem;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-pill);
  background: var(--clr-primary-light);
  cursor: pointer;
  transition: background var(--transition-medium), transform var(--transition-short);
}

.carousel-dots .dot.active {
  background: var(--clr-primary);
  transform: scale(1.2);
}

/* --- Portfolio Section --- */
.portfolio-section {
  display: flex;
  background-color: #f8f8f8;
  /* Specific background not easily variable */
  border-radius: var(--border-radius-xl);
  gap: var(--space-lg);
  flex-direction: column;
  /* Ensure title and cards stack */
  align-items: center;
  /* Center content within the section */
  margin-top: 0;
}

.portfolio-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.portfolio-tab {
  background: #f6f8fa;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  color: #23272a;
  transition: background 0.2s, color 0.2s;
}
.portfolio-tab.active,
.portfolio-tab:hover {
  background: #004f84;
  color: #fff;
}
.portfolio-tab-content {
  animation: fadeIn 0.6s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* --- Tilt Card --- */
/* Tilt card styles are primarily defined within the About Section for layout */


/* --- Apple Card Styles --- */
.apple-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-lg);
}

.apple-card {
  /* background: rgba(255, 255, 255, 0.18); */
  /* glass effect */
  border-radius: var(--border-radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.35);
  /* glass border */
  box-shadow: var(--shadow-apple-card);
  overflow: hidden;
  width: 480px;
  cursor: pointer;
  transition: transform var(--transition-cubic), box-shadow var(--transition-cubic);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #222;
}

.apple-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.apple-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.apple-card-title {
  color: #222;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.2rem var(--space-sm);
  text-align: center;
}

/* --- Contact Section --- */
.contact-section {
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
  background-color: var(--contact-bg, #f8f8f8);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md), var(--shadow-sm);
  margin: var(--space-lg);
}

.contactPara {
  font-size: 1.2rem;
  font-weight: 400;
  padding-left: 0.1rem;
  color: var(--clr-dark);
}

.contact-form {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-sm) var(--space-sm);
  border: 1px solid var(--clr-gray-200);
  background: transparent;
  border-radius: var(--border-radius-sm);
  font-size: var(--space-sm);
  outline: none;
  transition: all var(--transition-medium);
  color: var(--clr-dark);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  font-size: var(--space-sm);
  color: var(--clr-gray-400);
  pointer-events: none;
  transition: all var(--transition-short);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: var(--space-xxs);
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--clr-primary);
  background: none;
  padding: 0 var(--space-xxs);
}

/* --- CTA Button Styles --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--clr-primary);
  color: var(--clr-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-medium), transform var(--transition-short),
    box-shadow var(--transition-medium);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
  margin-top: 32px;
}

#sendMsg {
  display: block;
  margin: var(--space-lg) auto 0;
  min-width: 180px;
  max-width: 260px;
  width: 70%;
  text-align: center;
}

.cta-button:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-button);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  margin-left: var(--space-sm);
}

.cta-button.secondary:hover {
  background: var(--clr-primary);
  color: var(--clr-light);
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-long);
  pointer-events: none;
}

.cta-button:hover::after {
  transform: translateX(100%);
}

.hero-buttons {
  display: flex;
  align-items: center;
}

/* --- Footer Section --- */
footer {
  background-color: var(--footer-bg, #2a2a2a);
  color: var(--clr-dark-text-hero);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.footer-logo {
  font-size: var(--space-lg);
  font-weight: bold;
  color: var(--clr-light);
}

.footer-logo span {
  color: var(--clr-primary);
}

.footer-text {
  margin-top: var(--space-sm);
  max-width: 500px;
  margin-inline: auto;
  /* Shorthand for margin-left/right auto */
  font-size: 0.95rem;
  color: var(--clr-dark-text-hero);
}

.social-links {
  margin: var(--space-md) 0;
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-links a {
  font-size: 1.25rem;
  color: var(--clr-gray-200);
  transition: color var(--transition-medium);
}

.social-links a:hover {
  color: var(--clr-primary);
}

footer p {
  font-size: 0.85rem;
  color: var(--clr-gray-400);
  margin-top: var(--space-md);
}

/* --- Modal Styles --- */
.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  /* Shorthand for top, right, bottom, left */
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}

.project-modal.open {
  display: flex;
}

.project-modal-content {
  background: var(--clr-light);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xxl);
  margin: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.project-modal-close {
  position: absolute;
  top: 1.2rem;
  right: var(--space-md);
  font-size: var(--space-lg);
  color: var(--clr-gray-300);
  cursor: pointer;
  transition: color var(--transition-short);
}

.project-modal-close:hover {
  color: var(--clr-primary);
}

/* --- Floating Action Button (FAB) --- */
.fab {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-pill);
  background: var(--clr-primary);
  color: var(--clr-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--space-lg);
  /* Make icon larger and centered */
  box-shadow: 0 5px 20px #00b3ff4d;
  /* Specific shadow for FAB */
  cursor: pointer;
  z-index: 100;
  transition: transform var(--transition-short), opacity var(--transition-short),
    background var(--transition-medium);
  /* Use var(--transition) for consistency */
  transform: scale(0);
  opacity: 0;
  padding: 0;
}

.fab i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.fab.active {
  transform: scale(1);
  opacity: 1;
}

.fab:hover {
  background: #005fcc;
  /* Specific hover background for FAB */
  transform: scale(1.1) !important;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*------------------------ Dark Mode Styles ---------------------------------------*/
body.dark-mode {
  background-color: var(--clr-dark-bg);
  color: var(--clr-dark-text);
}

body.dark-mode header {
  background-color: rgba(18, 18, 18, 0.85);
  border-bottom: 1px solid var(--clr-dark-border);
}



body.dark-mode .logo {
  color: var(--clr-dark-text);
}

body.dark-mode .nav-container a {
  color: var(--clr-dark-text-light);
}

body.dark-mode #toggleMode {
  color: var(--clr-dark-text-light);
}

body.dark-mode .nav-container a::after {
  background-color: var(--clr-light);
  /* Or adjust as needed for dark mode */
}

body.dark-mode .section,
body.dark-mode .portfolio-section {
  background: var(--clr-dark-card);
  border-radius: var(--border-radius-xl);
}

body.dark-mode .section-title {
  color: var(--clr-light);
}

body.dark-mode .section-subtitle {
  color: #4db8ff;
  /* Specific blue for dark mode subtitle */
}

body.dark-mode .apple-card {
  background: rgba(35, 39, 42, 0.35);
  border: 2px solid rgba(76, 184, 255, 0.18);
  color: var(--clr-dark-text);
}

body.dark-mode .apple-card-title {
  color: var(--clr-dark-text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.dark-mode .apple-card img {
  border-bottom: 1px solid var(--clr-dark-border);
}

body.dark-mode #hero {
  background: linear-gradient(to bottom, #111, #1a1a1a);
}

body.dark-mode .hero-text h1 {
  color: var(--clr-primary);
  /* Keeps blue for hero h1 */
}

body.dark-mode .hero-text p {
  color: var(--clr-dark-text-light);
}

body.dark-mode .blob1 {
  background: linear-gradient(45deg, #0ff, var(--clr-primary));
}

body.dark-mode .blob2 {
  background: linear-gradient(45deg, #e040fb, #8e44ad);
}

body.dark-mode .blob3 {
  background: linear-gradient(45deg, #ff8a65, #fbc02d);
}

body.dark-mode .contactPara {
  color: var(--clr-dark-text-hero);
}

body.dark-mode .cta-button.secondary {
  color: var(--clr-light);
  /* Adjusted for dark mode secondary button */
}

body.dark-mode .footer-logo {
  color: var(--clr-dark-text);
}

body.dark-mode .footer-text {
  color: var(--clr-dark-text);
}

body.dark-mode footer p {
  color: var(--clr-gray-300);
}

body.dark-mode .social-links a {
  color: var(--clr-dark-text-light);
}

/* --- Mobile Styles --- */
/* --- Mobile Styles --- */
/* --- Mobile Styles --- */
/* --- Mobile Styles --- */
/* --- Mobile Styles --- */
@media (max-width: 768px) {
  

  .typewriter { font-size: 1.45rem; max-width: 46ch; }


  .main-container {
    padding: 0 var(--space-sm);
  }
  .testimonial-card {
    min-width: 85vw;
    max-width: 95vw;
    padding: 1rem 0.7rem;
  }

  #hero {
    padding-top: 12rem;
    /* Adjust based on navbar height */
    padding-inline: var(--space-lg);
  }

  .hero-content {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-lg);
}

.hero-visual {
  width: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
}

.hero-image {
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.hero-text {
  width: 100%;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}


  .navbar {
    flex-direction: row;
    /* KEEP ROW ON MOBILE */
    padding: var(--space-sm);
  }

  .logo {
    font-size: var(--space-md);
    margin-right: var(--space-sm);
  }

  .contact-section {
    margin: var(--space-sm) var(--space-xs);
    padding: 2.5rem var(--space-xs);
  }

  
.hero-buttons {
  display: block;
}

  .nav-container {
    display: none;
    /* Hidden by default for mobile menu */
    position: absolute;
    top: 60px;
    /* Adjust if needed */
    left: 0;
    right: 0;
    background: var(--clr-light);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-container.open {
    display: flex;
  }

  .nav-right {
    gap: var(--space-xxs);
  }

  body.dark-mode .nav-container {
    background: var(--clr-dark-card);
  }

  body.dark-mode .nav-container a {
    color: var(--clr-dark-text);
  }

  .ham,
  #hamburger,
  #closeMenu {
    display: inline-block;
    background-color: transparent;
    border: none;
    font-size: var(--space-md);
    color: var(--clr-dark);
  }

  #closeMenu {
    display: none;
    /* JS will set to inline-block when menu is open */
  }

  /* Dark mode for hamburger and close buttons */
  body.dark-mode #hamburger,
  body.dark-mode #closeMenu {
    color: var(--clr-light);
  }

  .cta-button {
    border-radius: var(--border-radius-xl);
    padding: 0.9rem var(--space-md);
    font-size: var(--space-sm);
    margin-top: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-button.secondary {
    margin-left: 0;
  }

  .section,
  .portfolio-section,
  .about-section,
  .contact-section {
    margin: var(--space-sm) var(--space-lg);
    border-radius: 18px;
    /* Slightly smaller radius for mobile */
    width: auto;
    box-sizing: border-box;
  }

  .about-section {
    width: auto;
    box-sizing: border-box;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }
  .about-content {

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .tilt-card-wrapper {

    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .tilt-card {

    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    min-height: 180px;
    box-sizing: border-box;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
  }
  .tilt-image {

    display: block;
    object-fit: cover;
    border-radius: 12px;
  }
  .about-section p,
  .about-section h3,
  .about-section .skills-carousel {

    box-sizing: border-box;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  /* Apple card style mobile */
  .apple-card-grid {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 var(--space-xs);
    width: 100%;
  }

  .apple-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .apple-card img {
    height: 160px;
  }

  .project-modal-content {
    max-width: 98vw;
    width: 98vw;
    padding: var(--space-lg) var(--space-sm);
    margin: var(--space-sm);
  }

   #progress-bar-label {
    left: 50% !important;
    top: 18px !important;
    transform: translateX(-50%) !important;
    font-size: 0.95rem !important;
    min-width: 40px !important;
    padding: 2px 8px !important;
  }

}

/* Testimonials Section */
#reviews {
  width: 100%;
  padding: var(--space-lg) 0;
  background: #f8f8f8;
}

.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.testimonials-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.testimonials-container {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollTestimonials 32s linear infinite;
  will-change: transform;
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  min-width: 320px;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.testimonial-card.blue { border-top: 4px solid #2196f3; }
.testimonial-card.green { border-top: 4px solid #43a047; }
.testimonial-card.purple { border-top: 4px solid #8e24aa; }
.testimonial-card.red { border-top: 4px solid #e53935; }
.testimonial-card.yellow { border-top: 4px solid #fdd835; }

.testimonial-text {
  font-size: 1rem;
  font-weight: 400;
  color: #222;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.author-name {
  font-weight: 400;
  color: #222;
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.95rem;
  color: #888;
}

.testimonials-container:hover {
  animation-play-state: paused;
}

/* Testimonials Section dark mode */
body.dark-mode #reviews {
  background: #181a1b;
}

body.dark-mode .testimonial-card {
  background: #23272a;
  color: #f0f0f0;
  box-shadow: 0 44px 24px rgba(0,0,0,0.25);
}

body.dark-mode .testimonial-text,
body.dark-mode .author-name {
  color: #f0f0f0;
}

body.dark-mode .author-title {
  color: #b0b0b0;
}

section,
.section,
.portfolio-section,
.about-section,
.contact-section,
#reviews {
  width: 100%;
  max-width: 1100px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--border-radius-xl);
  box-sizing: border-box;
  display: block;
}

:root {
  --primary: #007aff;
  --primary-light: #4db8ff;
  --primary-dark: #005fcc;
  --secondary: #ff9800;
  --secondary-light: #FFA726;
  --accent: #607D8B;
  --dark: #fff;
  --darker: #f6f8fa;
  --light: #121212;
  --lighter: #fff;
  --gray: #f6f8fa;
  --light-gray: #e0e0e0;
  --dark-gray: #333;
  --darker-gray: #23272a;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --section-padding: 8rem;
}

[data-theme="light"] {
  --dark: #121212;
  --darker: #181a1b;
  --light: #f0f0f0;
  --lighter: #23272a;
  --gray: #23272a;
  --light-gray: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  /* Increase z-index */
  padding: 1.5rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(230, 240, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 8%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 245, 0.95);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
}

body.dark-mode .logo {
  color: #f0f0f0;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 3000;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: 1.05rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.more-dropdown {
  position: relative;
}

.more-btn {
  background: none;
  border: none;
  color: var(--light);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.more-btn i {
  transition: var(--transition);
}

.more-btn:hover {
  color: var(--primary);
}

.more-btn:hover i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--gray);
  border-radius: 10px;
  padding: 1rem 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.more-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(76, 175, 80, 0.1);
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: rotate(30deg);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Case Study Header */
.case-header {
  margin-top: 6rem;
  padding: 12rem 8% 6rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.7), rgba(255, 152, 0, 0.7));
}

.case-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.case-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
}

.case-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Case Study Content */
.case-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 8%;
}

.case-section {
  margin-bottom: 2rem;
}

.case-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.case-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  
  border-radius: 2px;
}

.case-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.case-section p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.case-image {
  margin: 3rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.case-outcome {
  background: var(--gray);
  padding: 3rem;
  border-radius: 15px;
  margin: 4rem 0;
}

.outcome-item {
  margin-bottom: 1.5rem;
}

.outcome-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.persona-card {
  background: var(--gray);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.persona-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.persona-details {
  flex: 1;
}

.persona-quote {
  font-style: italic;
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 3rem;
  transition: var(--transition);
}

.back-button i {
  margin-right: 0.5rem;
  transition: var(--transition);
}

.back-button:hover {
  color: var(--primary-light);
}

.back-button:hover i {
  transform: translateX(-5px);
}

/* Footer Section */
footer {
  background-color: var(--footer-bg, #2a2a2a);
  color: #fafafa;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-logo span {
  color: #007aff;
}

.footer-text {
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  color: #fafafa;
}

.social-links {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.25rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #007aff;
}

footer p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1.5rem;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease, width 0.3s ease, height 0.3s ease;
}



/* Example for dark mode */

body.dark-mode .case-outcome {
  background: var(--darker-gray);
  padding: 3rem;
  border-radius: 15px;
  margin: 4rem 0;
}


body.dark-mode .persona-card {
  background: var(--darker-gray);
  color: #fafafa
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode .navbar.scrolled {
  background: #121212f9;
  border-bottom: 1px solid #333;
}

body.dark-mode .section,
body.dark-mode .portfolio-section {
  background: #181a1b;
  color: #f0f0f0;
}

body.dark-mode .section-title {
  color: #fff;
}

body.dark-mode .section-subtitle {
  color: #4db8ff;
}

body.dark-mode .apple-card {
  background: #23272a;
  color: #f0f0f0;
}

body.dark-mode .apple-card-title {
  color: #f0f0f0;
}

body.dark-mode .contact-section {
  background: #23272a;
  color: #f0f0f0;
}

body.dark-mode .cta-button {
  background: #007aff;
  color: #f0f0f0;
}
body.dark-mode .cta-button.secondary{
  background: none;
  color: #f0f0f0;
}


body.dark-mode .footer-content,
body.dark-mode footer {
  background: #181a1b;
  color: #f0f0f0;
}

/* Hiding header on scroll */
.hide-on-scroll {
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1), opacity 0.5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform, opacity;
}

.hide-on-scroll.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,250,0.98));
  z-index: 99999;
  transition: opacity 600ms ease, visibility 600ms ease;
  opacity: 1;
  visibility: visible;
}

#loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  max-width: 520px;
  padding: 2.2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
}

#loader-count {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--clr-primary, #23272a);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -1px;
}

#loader-subtext {
  font-size: 1.05rem;
  color: #556;
}

/* subtle pulsing while counting */
#loader-count.pulse {
  animation: loaderPulse 700ms ease-in-out;
}
@keyframes loaderPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

/* Smooth entrance for main content after loader removed */
.preload main,
.preload header,
.preload footer,
.preload #section-nav {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

.loaded main,
.loaded header,
.loaded footer,
.loaded #section-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



/* Mobile Screen */
@media (max-width: 768px) {

  #section-nav { display: none; }

 #loader-count { font-size: 3.25rem; }
  .loader-inner { padding: 1.4rem 1rem; border-radius: 12px; }

  #hero {
    padding-top: 12rem;
    /* Adjust based on navbar height */
  }

  .navbar {

    flex-direction: row;
    /* <-- KEEP ROW ON MOBILE */
    align-items: center;
    padding: 1rem;
    z-index: 3000;
  }

  .logo {
    font-size: 1.5rem;
    margin-right: 1rem;
  }

  .contact-section {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 2.5rem 0.5rem;
  }

  .nav-container {
    display: none;
    position: absolute;
    top: 60px;
    /* adjust if needed */
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    z-index: 3000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-container.open {
    display: flex;
  }

  .nav-right {
    gap: 0.25rem;
  }

  .ham {
    display: inline-block;
    /* Always hidden by default */
  }

  #hamburger {
    display: inline-block;
    color: #111;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
  }

  #closeMenu {
    display: none;
    /* JS will set to inline-block when menu is open */
    color: #111;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
  }

  /* Dark mode for hamburger and close buttons */
  body.dark-mode #hamburger,
  body.dark-mode #closeMenu {
    color: #fff;
    font-size: 1.5rem;
    background-color: transparent;
  }

  .cta-button {
    border-radius: 24px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    margin-top: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: start;
  }

  .cta-button.secondary {
    margin-left: 0;
  }

  .section {
    padding: 1rem;
  }

  .about-section {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
  }

  .about-section p {
    font-weight: 100;
  }

  .about-content {
    width: 100%;
  }


  .tilt-card {
    width: 100vw;
    max-width: 100vw;
    height: 60vw;
    max-height: 70vw;
    min-height: 200px;
    background: rgba(0, 183, 255, 0);
    padding: 1.5rem;
    /* Add padding */
    box-sizing: border-box;
  }

  .tilt-image {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }


}

/* Progress Bar Styles */
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 8px;
  background: rgba(0,0,0,0.05);
  z-index: 9999;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#progress-bar-container.active {
  opacity: 1;
  pointer-events: auto;
}
#progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e6f0ff 0%, #007aff 100%);
  transition: width 0.3s;
}

#progress-bar-label {
  position: absolute;
  left: 95%;
  top: 24px;
  transform: translateX(-20%);
  font-size: 1rem;
  color: #23272a;
  background: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10000;
  min-width: 48px;
  text-align: center;
}
body.dark-mode #progress-bar-label {
  background: #23272a;
  color: #fff;
}
body.dark-mode #progress-bar-container {
  background: rgba(255,255,255,0.08);
}

body .dark-mode #progress-bar {
  background: linear-gradient(90deg, #000000 0%, #007aff 100%);
}

/* Completion Badge Styles */
#badge {
  display: none;
  position: fixed;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  text-align: center;
  width: auto;
}
#badge span {
  background: #e6f0ff;
  color: #007aff;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  font-weight: bold;
  font-size: 1.15rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  display: inline-block;
  letter-spacing: 0.5px;
}
body.dark-mode #badge span {
  background: #23272a;
  color: #e6f0ff;
}

.hero-image, .blob {
  animation: floatY 4s ease-in-out infinite alternate;
}
@keyframes floatY {
  0% { transform: translateY(0);}
  100% { transform: translateY(-8px);}
}


 /* Section Navigation Dots */
#section-nav {
  position: fixed;
  top: 50%;
  right: 2vw;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10002;
}
#section-nav a {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6f0ff;
  border: 2px solid #007aff;
  display: block;
  transition: background 0.2s, border 0.2s;
}
#section-nav a.active,
#section-nav a:hover {
  background: #007aff;
}


/* Tooltip for social media */

[data-tooltip] {
  position: relative;
  cursor: pointer;
}
[data-tooltip]:hover::after, [data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  background: #23272a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
  opacity: 1;
  pointer-events: none;
  z-index: 10010;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-tooltip]:not(:hover):not(:focus)::after {
  opacity: 0;
  pointer-events: none;
  content: "";
}

/* Personalized Greeting */

.personal-greeting {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #888;
  letter-spacing: 0.5px;
}
body.dark-mode .personal-greeting {
  color: #fff;
  font-weight: 300;
}

/* Contact Form progress bar */
#form-progress-bar-container {
  width: 100%;
  height: 8px;
  
  border-radius: 6px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
#form-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #007aff 0%, #00438a 100%);
  border-radius: 6px;
  transition: width 0.3s;
}

/* Confetti Canvas Styling */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none;
  z-index: 10050;
  display: none;
  transition: opacity 0.3s ease-in-out;
}