/* ---------- Global Styles ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --skin-color: #ffd700;
  --mirage-color: #2a0d4b;
  --title-color: #fff;
  --text-color: #eaeaea;
  --body-color: #1a0033;
  --box-color: #2d1b4e;
  --scroll-box-color: #4a3575;
  --scroll-thumb-color: #7c3aed;
  
  /* Fonts */
  --body-font: 'Poppins', sans-serif;
  
  /* Font sizes */
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;
  
  /* Font weight */
  --font-medium: 500;
  --font-bold: 600;
  
  /* Margin bottom */
  --mb025: .25rem;
  --mb05: .5rem;
  --mb075: .75rem;
  --mb1: 1rem;
  --mb15: 1.5rem;
  --mb2: 2rem;
  --mb25: 2.5rem;
  --mb3: 3rem;
  
  /* Z-index */
  --z-fixed: 10;
  --z-modal: 100;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, button, input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background: #4b2fa5;
  color: var(--text-color);
}

body.dark {
  background: #201587;
  color: var(--text-color);
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
}

button, input {
  border: none;
  outline: none;
}

.hero {
  background: linear-gradient(135deg, #5a3df0, #3b2bbf);
}

.container {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
}

.button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--skin-color);
  color: #000;
  padding: 0.75rem 1.4rem;
  border-radius: .25rem;
  font-weight: var(--font-medium);
  position: relative;
  z-index: 1;
  transition: .4s;
}

.button::after {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #7c3aed;
  z-index: -1;
  transform-origin: center;
  transform: scale(0);
  border-radius: .25rem;
  transition: .3s;
}

.button:hover::after {
  transform: scale(1);
}

/* ===== Unified Section Layout ===== */
.section {
  max-width: 1100px;      /* flexible but consistent width */
  margin: 0 auto;         /* center content */
  padding: 6.5rem 20px 2rem; /* top | sides | bottom */
}

.section-title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb3);
}

.section-title::before {
  content: attr(data-heading);
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--skin-color);
}

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-box-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px; /* hidden by default */
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #4b2fa5, #2e1b6b);
  z-index: 1001;
  transition: left 0.35s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

/* Show sidebar */
.sidebar.show {
  left: 0;
}

/* Sidebar nav */
.nav-list {
  padding: 80px 20px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 14px 20px;
  color: #fff;
  border-radius: 10px;
  transition: background 0.3s;
  list-style: none;
}

.nav-link:hover,
.nav-link.active-link {
  background: rgba(255,255,255,0.15);
}

/* Close button */
.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: #ffd700;
  cursor: pointer;
}

/* Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--skin-color);
  text-align: center;
  margin: auto;
}

.nav-logo-text {
  font-size: 1.125rem;
  color: #000;
  font-weight: var(--font-bold);
  line-height: 40px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}

.menu {
  display: flex;
  flex-direction: column;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  margin-bottom: 0;
}

.nav-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--title-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: .3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
  color: var(--skin-color);
}

.nav-toggle {
  height: 32px;
  width: 36px;
  cursor: pointer;
  position: fixed;
  left: 1.5rem;
  top: 1.5rem;
  font-size: 1.2rem;
  border-radius: .25rem;
  background-color: var(--skin-color);
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 101;
}

.nav-close {
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  cursor: pointer;
  display: none;
  color: #ffd700;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.sidebar.show .nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-close:hover {
  color: #fff;
}

.nav-link.active-link {
  color: var(--skin-color);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 98;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Main - Home */

.main {
  margin-left: 100px;
}

.home {
  background: linear-gradient(135deg, #1e3a8a, #561bbc);
  background-size: cover;
  background-position: center center;
    /* cancel sidebar margin */
  margin-left: -100px;
  height: 100vh;
  position: relative; /* allows the gradient to be positioned absolute relative to this section */
  overflow: visible;  /* let gradient overflow if needed */
}

.home-container {
  position: relative;
  height: 100%;
  align-items: center;
}

.home-social {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 50;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(255, 215, 0, 0.08));
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-social-follow {
  font-weight: 700;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd700, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-social-follow::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #00ffff, #ffd700);
  right: -2rem;
  top: 50%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.home-social-links {
  display: inline-flex;
  gap: 0.8rem;
}

.home-social-link {
  font-size: 1.3rem;
  color: var(--skin-color);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
}

.home-social-link:hover {
  transform: translateY(-6px) scale(1.15);
  color: #ffd700;
  background: rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 10px 25px rgba(255, 215, 0, 0.2);
}

.home-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #7c3aed;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 8px rgba(124, 58, 237, 0.25);
  margin: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-title {
  font-size: var(--biggest-font-size);
}

.home-subtitle {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb075);
}

.home-description {
  max-width: 450px;
  margin-bottom: var(--mb2);
}

.my-info {
  display: flex;
  column-gap: 1.8rem;
  position: absolute;
  left: 0;
  bottom: 1.8rem;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-title,
.info-subtitle {
  font-size: var(--small-font-size);
}

.info-title {
  font-weight: var(--font-medium);
}

.info-icon {
  font-size: 1.8rem;
  color: var(--skin-color);
  margin-right: var(--mb075);
}

/* ---------- Sections ---------- */

.section h2 {
  font-size: var(--h1-font-size);
  color: var(--skin-color);
  margin-bottom: var(--mb3);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 10px 18px;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #5e20b2;
}

.btn.outline {
  background: transparent;
  border: 2px solid #7c3aed;
  color: #fff;
}

.btn.outline:hover {
  background: #7c3aed;
}

.center-button {
  text-align: center; /* centers inline elements like links/buttons */
  margin-top: 20px;   /* optional spacing */
}


/* ---------- Projects ---------- */
/* Slideshow base */
.slideshow-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

/* Slides */
.slides-wrapper {
  display: flex;
}

.slides-wrapper {
  display: flex;
  transition: transform 10s ease-in-out;
}

.slide-item {
  min-width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.slide-item img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.slide-item img:hover {
  transform: scale(1.05);
  border-color: #ffd700;
}

/* Image wrapper */
.project-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

/* Project image */
.project-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

/* Overlay layer */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 40, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Overlay text */
.project-overlay span {
  color: #ffd700;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 18px;
  border: 2px solid #ffd700;
  border-radius: 999px;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .project-image-wrapper:hover img {
    transform: scale(1.06);
  }

  .project-image-wrapper:hover .project-overlay {
    opacity: 1;
  }
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.project-actions .button {
  flex: 1;
  text-align: center;
}

.button.outline {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
}

.button.outline:hover {
  background: #ffd700;
  color: #1e1b4b;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 24px; /* slightly larger for balance */
  margin-bottom: 10px;
  color: #ffd700;
}

.project-card p {
  font-size: 17px; /* slightly larger */
  margin-bottom: 12px;
}

.project-links a {
  text-decoration: none;
  color: #00ffff;
  font-weight: bold;
  margin-right: 5px;
}

    /* Desktop arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 138, 0.75);
  color: #ffd700;
  border: none;
  padding: 12px 16px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.dots {
  text-align: center;
  margin-top: 14px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #7c3aed;
}

/* ---------- Photo Gallery ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 15px;
}

/* Image container behavior */
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {
  .photo-gallery img:hover {
    transform: scale(1.05);
    border-color: #ffd700;
  }
}

@media (hover: hover) {
  .project-image-wrapper::after {
    content: "Click to Preview";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
  }

  .project-image-wrapper:hover::after {
    opacity: 1;
  }
}

/* ---------- Contact ---------- */
.contact-section {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #4169e1, #7c3aed);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Optional brand hover glow */
.contact-icon.facebook:hover { background: #1877f2; }
.contact-icon.github:hover { background: #333; }
.contact-icon.linkedin:hover { background: #0a66c2; }
.contact-icon.instagram:hover {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}
.contact-icon.email:hover { background: #ea4335; }


.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #ffd700;
}

.home,
.section,
.project-card,
.resume-info,
.resume-view,
.activity-card,
.internship-intro {
  position: relative;
  overflow: hidden;
}

/* Ensure content stays above gradient */
.home-container,
.section > *,
.project-card > *,
.resume-info > *,
.resume-view > *,
.activity-card > *,
.internship-intro > * {
  position: relative;
  z-index: 1;
}

/* Moving Gradient Background */
.moving-gradient {
  position: absolute;  /* absolute positioning */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    270deg,
    #4169e1,
    #7c3aed,
    #5e20b2,
    #00ffff
  );
  background-size: 800% 800%;
  animation: gradientMoveBackground 30s ease infinite;
  z-index: 0;          /* behind the content */
  filter: blur(60px);
  opacity: 1;
  pointer-events: none; /* prevent blocking clicks */
}

.home-content {
  position: relative;   /* so content sits above the gradient */
  z-index: 1;
}

/* Gradient animation */
@keyframes gradientMoveBackground {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Blur & Opacity utilities */
.blur-3xl {
  filter: blur(60px);
}

.opacity-40 {
  opacity: 0.4;
}

/* Animated Gradient Text */
.animated-text {
  font-weight: bold;
  font-size: 36px;
  background: linear-gradient(90deg, #ffd700, #00ffff, #ffd700);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMoveText 20s linear infinite;
}

@keyframes gradientMoveText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== SECTION STYLES ========== */

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
}

.section-title::after {
  content: attr(data-heading);
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.1);
  white-space: nowrap;
}

/* Resume Section */
.resume-container {
  gap: 3rem;
  align-items: stretch;
}

.resume-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.resume-info h3 {
  color: var(--skin-color);
  margin-bottom: 1rem;
  font-size: var(--h3-font-size);
}

.resume-info p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.resume-view {
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

/* Internship Section */
.internship-container {
  max-width: 1000px;
  margin: 0 auto;
}

.internship-intro {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--skin-color);

  max-width: 800px;      /* keeps it readable */
  margin: 0 auto 2rem;   /* centers the box */
  
  text-align: center;    /* centers text */
}

/* Academic Section */
.academic-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.academic-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--skin-color);
  background: rgba(255, 255, 255, 0.08);
}

.project-card img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}

.project-card h4 {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.project-card p {
  color: #d4d4d8;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Reflections Section */
.reflections-container {
  max-width: 1100px;
  margin: 0 auto;
}

.reflections-container h4 {
  color: var(--skin-color);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.reflections-container p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #d4d4d8;
}

.reflections-container ul {
  padding-left: 2rem;
}

.reflections-container li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  color: #d4d4d8;
  line-height: 1.8;
}

/* Experiential Section */
.experiential-container {
  max-width: 900px;
  margin: 0 auto;
}

.activity-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  margin-bottom: 2rem;
}

.activity-card h4 {
  color: var(--skin-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.activity-card p {
  color: #a0a0a0;
  margin-bottom: 1rem;
}

.activity-card ul {
  padding-left: 2rem;
}

.activity-card li {
  list-style-type: disc;
  color: #d4d4d8;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a, #561bbc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--skin-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #561bbc, #7c3aed);
}

/* Button Styles */
.button {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a, #561bbc);
  color: var(--skin-color);
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--skin-color);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background: transparent;
  color: var(--skin-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

/* Footer */
footer {
  display: none;
}

/* Fade-on-scroll Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  animation: fadeInUp 0.6s ease forwards;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Full Mobile-Responsive Overrides ---------- */
/* ---------- Mobile & Tablet Responsive ---------- */
@media screen and (max-width: 768px) {

  .moving-gradient {
    filter: blur(45px);
    opacity: 0.75;
    background-size: 1000% 1000%;
  }

  .photo-gallery {
    gap: 12px;
  }

  .photo-gallery img {
    border-radius: 10px;
    border-width: 1.5px;
    transform: none;
  }

  .home,
  .section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Sidebar */
  .sidebar {
    width: 0;
  }

  .sidebar.show {
    width: 220px;
  }

  .nav-toggle {
    left: 1rem;
    top: 1rem;
    z-index: 102;
  }

  /* Main layout */
  .main {
    margin-left: 0;
  }

  .section {
    padding: 3.5rem 15px;
  }

  /* Home behaves like a section */
  .home {
    height: auto;
    min-height: 100vh;
    margin-left: 0;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 600px;
    padding: 0;
  }

  /* Image */
  .home-img {
    width: 180px;
    height: 180px;
    margin-bottom: 1rem;
  }

  /* Text */
  .home-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .home-subtitle {
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .home-description {
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
  }

  /* Buttons */
  .home-buttons {
    margin-bottom: 2rem;
  }

  .button {
    min-width: 160px;
  }

  /* Social */
  .home-social {
    position: relative;
    top: auto;
    left: auto;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .home-social-follow::after {
    display: none;
  }

  /* Info cards */
  .my-info {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

   .modal-content {
    max-width: 100vw;
    max-height: 85vh;
  }

  .close {
    font-size: 32px;
    top: 12px;
    right: 16px;
  }

  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(20, 10, 40, 0.75),
      rgba(20, 10, 40, 0.15)
    );
  }

  .project-overlay span {
    font-size: 16px;
  }
}

/* Smaller devices (<480px) */
@media screen and (max-width: 480px) {

  .moving-gradient {
    filter: blur(35px);
    opacity: 0.65;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .home-title {
    font-size: 1.35rem;
  }

  .home-subtitle {
    font-size: 0.9rem;
  }

  .home-description {
    font-size: 0.9rem;
  }

  .home-img {
    width: 160px;
    height: 160px;
  }

  .button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}