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

/* Brighter Minimalist Dot Grid */
.dot-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -1;
  overflow: hidden;
}

.dot-grid-bg::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;

  /* Combination: Subtle Lines + Dots (Lowered Opacity) */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 60px 60px;

  /* The 'Curly' Magic - Distortion filter */
  filter: url(#mesh-distortion);

  transform: rotate(10deg);
  animation: floatDots 60s linear infinite;
  opacity: 0.6;
}

@keyframes floatDots {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 400px 800px;
  }
}

:root {
  --bg-main: #000000;
  --bento-bg: #0c0c0c;
  --card-bg: #111111;
  --accent: #ffffff;
  --text-main: #ffffff;
  --text-muted: #888888;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: "Jost", sans-serif;
}

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

/* Animated Character Cursor */
.character-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 48px; height: 48px;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
}

.character-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: characterBob 1.5s ease-in-out infinite, characterWobble 4s linear infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
}

body:hover .character-cursor {
    opacity: 1;
}

/* Character Animations */
@keyframes characterBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes characterWobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Cursor Interaction */
.cursor-hover .character-cursor {
    transform: translate(-50%, -50%) scale(1.3);
}

.cursor-hover .character-cursor img {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

@media (max-width: 1024px) {
    .character-cursor {
        display: none !important;
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Physically moved it higher towards the logo */
}

.splash-logo {
    height: 120px;
    width: auto;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-loader {
    width: 250px; /* Spread it out wider */
    height: 6px; /* Made it taller/higher */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: loaderFlow 1.5s infinite;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2) drop-shadow(0 0 20px rgba(99, 102, 241, 0.3)); }
}

@keyframes loaderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout */
.layout-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px 120px 40px;
  min-height: 100vh;
}

/* Sidebar Widget */
.sidebar-widget {
  flex: 0 0 350px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 120px);
}

.sidebar-inner {
  background: var(--bento-bg);
  border-radius: 40px;
  padding: 30px;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap to save vertical space */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  height: 100%;
  overflow: hidden; /* Prevent internal scroll, handle by shrinking */
}

.logo-container {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20; /* Ensure it stays above the profile image on mobile */
}

.side-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

.side-logo:hover {
  transform: scale(1.05);
}

.profile-image-container {
  width: 100%;
  flex: 1; /* Allow image to grow and shrink to fit available space */
  min-height: 250px; /* Bare minimum height */
  max-height: 480px; /* Maximum height on large screens */
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.card-overlay-details {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  z-index: 10;
  text-align: center;
}

.card-overlay-details h2 {
  font-size: clamp(1.5rem, 3vh, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #b05cff, #721fd1, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 2px;
  letter-spacing: -1px;
  animation: flow 5s ease infinite;
}

.card-overlay-details p {
  font-size: clamp(0.8rem, 1.5vh, 0.95rem);
  color: #bbb;
  margin-bottom: 15px;
  line-height: 1.2;
}

.card-hire-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid #fff;
  position: relative;
  overflow: hidden;
}

.card-hire-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
  z-index: 1;
}

.card-hire-btn:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.card-hire-btn:hover::after {
  left: 100%;
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%);
  transition: 0.5s ease;
}

.sidebar-inner:hover .profile-image-container img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.card-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.card-socials a {
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: 0.3s;
}

.card-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.profile-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

.location-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.location-line i {
  margin-right: 5px;
}

.side-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 5px;
}

.side-socials a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: 0.3s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.copyright {
  text-align: center;
  margin-top: 5px;
}

.copyright p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.side-socials a:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section {
  padding-top: 40px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.intro-badge i {
  color: var(--accent);
}

.accent-text {
  background: linear-gradient(135deg, #6366f1, #a855f7, #484bec, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: flow 5s ease infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
}

.stats-row {
  display: flex;
  gap: 40px;
}

.stat-item h2 {
  font-size: 3rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Milestones */
.milestones-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.milestone-card {
  background: var(--bento-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 20px;
  position: relative;
  transition: 0.3s;
}

.milestone-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.milestone-card.active {
  border-color: var(--accent);
}

.milestone-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.milestone-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.milestone-org {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.milestone-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.skill-category {
  background: var(--bento-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.skill-category h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tags span {
  background: var(--card-bg);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: 0.3s;
}

.skill-tags span:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Projects */
.project-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-main);
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--bento-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.project-img-wrapper {
  width: 100%;
  height: 220px;
  background: #0a0a0a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px; /* Clean Dev Grid */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Aura behind icon */
.project-img-wrapper::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.123) 0%,
    transparent 70%
  ); /* indigo glow */
  z-index: 1;
  transition: 0.5s;
}

.project-card:hover .project-img-wrapper::before {
  background: radial-gradient(
    circle,
    rgb(30, 33, 187) 0%,
    transparent 70%
  ); /* pink hover glow */
  width: 200px;
  height: 200px;
}

.project-bg-img {
  display: none; /* Removed messy screenshot background */
}

/* Glass Shine Effect */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  z-index: 6;
  transform: translateX(-100%);
  transition: 0.6s;
}

.project-card:hover .card-shine {
  transform: translateX(100%);
}

.project-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03); /* Frosted Glass Base */
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-logo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.project-card:hover .project-logo-overlay {
  transform: translate(-50%, -55%) scale(1.1);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(59, 130, 246, 0.1);
}

.project-details {
  padding: 25px;
  flex: 1;
}

.project-details h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #fff;
}

.project-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.view-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: 0.3s;
}

.project-card:hover .view-indicator {
  opacity: 1;
  gap: 12px;
}

.status-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.status-live {
  color: var(--accent);
}
.status-wip {
  color: #888;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.input-group label span {
  color: var(--accent);
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: var(--bento-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent);
  background: var(--card-bg);
}

.submit-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-main);
  width: fit-content;
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
  z-index: 1;
}

.submit-btn:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.submit-btn:hover::after {
  left: 100%;
}

/* Floating Navigation */
.floating-bottom-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 25px;
  border-radius: 50px;
  display: flex;
  gap: 30px;
  border: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: 0.3s;
  opacity: 0.7;
}

.nav-icon.active .nav-logo-icon {
  opacity: 1;
}

.nav-icon:hover {
  color: #fff;
}

.nav-icon.active {
  color: var(--accent);
}

/* Tools Float */
.tools-float {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: none; /* Hide by default, show on mobile */
}

.tool-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tool-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: #fff;
  color: #000;
  border-color: #fff;
}

.mobile-hero-overlay {
  display: none;
}
.image-gradient-fade {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout-container {
    padding: 0;
    gap: 0;
    flex-direction: column;
  }

  .sidebar-widget {
    position: relative;
    top: 0;
    height: 65vh; /* Reduced height to remove black space */
    width: 100%;
    order: -1;
    background: #000;
    margin-bottom: 0;
  }

  .sidebar-inner {
    border: none;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    background: transparent;
    height: 65vh; /* Matches widget height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .logo-container {
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .side-logo {
    height: 40px; /* Smaller logo on mobile */
  }

  .profile-footer {
    display: none;
  }

  .card-socials {
    display: none;
  }

  .profile-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 11; /* Higher than main-content (z-index 10) */
    background: #000;
  }

  .profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
  }

  .image-gradient-fade {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Covers the bottom half of the image area */
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 60%,
      transparent 100%
    );
    z-index: 2;
  }

  .card-overlay-details {
    position: absolute;
    bottom: 30px; /* Reduced bottom spacing since container is smaller */
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 25;
    text-align: center;
    display: block;
  }

  .card-overlay-details h2 {
    font-size: 2.2rem; /* Further reduced size */
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flow 5s ease infinite;
    margin-bottom: 1px;
  }

  .card-overlay-details p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
  }

  /* Redundant card-socials hidden above */

  .card-hire-btn {
    background: #fff;
    color: #000;
    padding: 10px 25px;
    font-size: 0.95rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #fff;
    width: fit-content;
    margin: 0 auto;
  }

  .side-socials {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
    z-index: 5;
  }

  .side-socials a {
    border-color: transparent;
    color: #fff;
    font-size: 1.1rem;
  }

  .side-socials a:hover {
    background: transparent;
    color: #fff;
    border-color: transparent;
  }

  /* Main Content Area Overlap (Light Theme) */
  .main-content {
    background: #fff;
    color: #000;
    border-radius: 40px 40px 0 0;
    padding: 40px 25px 120px;
    margin-top: 0; /* Removed negative overlap so content starts under the image/buttons */
    position: relative;
    z-index: 10;
    gap: 20px;
  }

  .section {
    padding-top: 20px;
  }
  #home.section {
    padding-top: 10px;
  }

  /* Hide redundant desktop text */
  #home .hero-title,
  #home .hero-subtitle,
  #home .intro-badge {
    display: none;
  }

  /* Light Theme Adjustments for Overlaid Content */
  .section-title {
    color: #000;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .section-text {
    color: #444;
  }

  .stats-row {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
  }
  .stat-item h2 {
    font-size: 1.8rem;
    color: #000;
    font-weight: 800;
  }
  .stat-item p {
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
  }

  .skill-category {
    background: #f8f8f8;
    border-color: #eee;
    padding: 25px;
  }
  .skill-category h3 {
    color: #000;
  }
  .skill-tags span {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 500;
  }

  .milestone-card {
    background: #f8f8f8;
    border-color: #eee;
  }
  .milestone-card .milestone-title {
    color: #000;
  }
  .milestone-card .milestone-org {
    color: #000;
    font-weight: 700;
  }
  .milestone-card .milestone-desc {
    color: #444;
  }

  .project-card {
    background: #f8f8f8;
    border-color: #eee;
  }
  .project-details h3 {
    color: #000;
  }
  .project-details p {
    color: #555;
  }

  .tab-btn {
    color: #888;
  }
  .tab-btn.active {
    color: #000;
    font-weight: 600;
  }

  .intro-badge {
    display: none;
  } /* Simpler look on mobile */

  .input-group label {
    color: #000;
    font-weight: 600;
  }
  .input-group input,
  .input-group textarea {
    background: #f8f8f8;
    border-color: #ddd;
    color: #000;
  }
  .input-group input:focus,
  .input-group textarea:focus {
    background: #fff;
    border-color: #000;
  }

  .submit-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  .submit-btn:hover {
    background: transparent;
    color: #000;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-main);
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: 0.4s;
  padding: 30px 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 1);
}
@media (max-width: 768px) {
  .modal-content {
    padding: 40px 15px 30px;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .close-modal {
    top: 10px;
    right: 10px;
  }
  .modal-header {
    flex-direction: column;
    text-align: center;
  }
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--bento-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.close-modal:hover {
  background: #fff;
  color: #000;
}

.modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.modal-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  background: #111;
  padding: 10px;
}
.modal-title-area h2 {
  font-size: 2rem;
  color: #fff;
}
.modal-title-area p {
  color: var(--text-muted);
  margin-top: 5px;
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.modal-gallery {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
}
.gallery-img {
  height: 300px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  object-fit: contain;
  background: var(--card-bg);
  cursor: pointer;
  transition: 0.3s;
}
.gallery-img:hover {
  transform: scale(1.02);
}

.modal-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 1px solid #fff;
  font-family: var(--font-main);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.modal-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
  z-index: 1;
}

.modal-btn:hover::after {
  left: 100%;
}

.modal-btn.disabled {
  background: var(--bento-bg);
  color: var(--text-muted);
  pointer-events: none;
  border: 1px solid var(--border-color);
}

.modal-btn:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.modal-btn i {
  margin-right: 10px;
  font-size: 1.1rem;
  vertical-align: middle;
}

/* Socials Overlay Styles */
.socials-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.socials-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-content {
  width: 90%;
  max-width: 500px;
  text-align: center;
  transform: scale(0.8) translateY(50px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.socials-overlay.active .overlay-content {
  transform: scale(1) translateY(0);
}

.close-socials {
  position: absolute;
  top: -60px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
}

.close-socials:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.overlay-content h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.social-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link-item i {
  font-size: 2rem;
  transition: 0.3s;
}

.social-link-item span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-link-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-10px);
}

.social-link-item:hover i {
  transform: scale(1.2);
}

.hidden {
  display: none !important;
}

@media (max-width: 991px) {
  .tools-float {
    display: flex;
  }
}

@media (max-width: 480px) {
  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
