/* ========================================= */
/*       PREMIUM THEME STYLES                */
/*       (About, Projects, Contact)          */
/* ========================================= */

:root {
  --slate-950: #020617;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.2);
}

.about-section-new,
.skills-section-new,
.projects-section-new,
.contact-section-new {
  position: relative;
  height: 100vh;
  /* Force full viewport height */
  width: 100%;
  padding: 0 2rem;
  /* Remove vertical padding, rely on flex gap/centering */
  overflow: hidden;
  background-color: var(--slate-950);
  color: white;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Flex centering */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Changed from center to flex-start */
  padding-top: 120px;
  /* Added top padding to account for fixed navbar */
}

.skills-section-new {
  background-color: #000000;
  padding-top: 60px;
  /* Reduced from 120px to move content up */
}

/* Background Grid Pattern (Shared) */
.premium-bg-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000, var(--slate-950), #000);
  z-index: 0;
  pointer-events: none;
}

.premium-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, #1f1f1f 1px, transparent 1px),
    linear-gradient(to bottom, #1f1f1f 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 70%, transparent 100%);
  opacity: 0.2;
}

/* Container */
.premium-container {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
}

/* Headings */
.premium-label {
  display: inline-block;
  color: var(--slate-500);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* About Section specific styles removed */

/* Interests Grid (Reused for general cards) */
.premium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

/* Expandable Grid Styles */
.expanding-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .expanding-grid {
    flex-direction: row;
    height: 320px;
    /* Reduced from 400px */
    /* Fixed height for alignment */
    align-items: stretch;
  }
}

.expanding-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  /* Reduced from 1.5rem */
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .expanding-card {
    flex: 1;
    /* Default equal width */
    justify-content: center;
  }

  .expanding-card:hover {
    flex: 2;
    /* Expand on hover */
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

.card-icon-wrapper {
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.expanding-card:hover .card-icon-wrapper {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  /* Keep title on one line if possible */
}

.card-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

/* Detailed content hidden by default */
.card-detail-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  font-size: 0.95rem;
  color: var(--slate-300);
  line-height: 1.6;
  text-align: center;
  margin-top: 0;
}

@media (min-width: 768px) {
  .expanding-card:hover .card-detail-text {
    max-height: 200px;
    /* Reveal content */
    opacity: 1;
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .premium-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-highlight);
  background: rgba(30, 41, 59, 0.6);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* ----------------------------------------- */
/* PROJECTS SECTION SPECIFICS                */
/* ----------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card-modern {
  padding: 0;
  /* Override padding for image */
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card-modern:hover {
  transform: translateY(-10px) scale(1.03);
  z-index: 10;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity 0.3s;
}

.project-card-modern:hover .project-overlay {
  opacity: 0;
}

.project-content-modern {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: var(--slate-300);
}

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

.project-btn {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.project-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ----------------------------------------- */
/* CONTACT SECTION SPECIFICS                 */
/* ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
}

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

.contact-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Minimalist: No background/border */
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.3s;
}

.contact-item-modern:hover {
  transform: translateX(10px);
}

.contact-icon-box {
  /* Minimalist: No gradient background */
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  border-radius: 50%;
}

.contact-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.contact-form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 3rem;
}

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

.form-label-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-300);
  margin-left: 0.5rem;
}

.form-input-modern {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input-modern:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--blue-500);
}

.form-input-modern::placeholder {
  color: var(--slate-600);
}

textarea.form-input-modern {
  min-height: 150px;
  resize: vertical;
}

.submit-btn-modern {
  background: white;
  color: black;
  padding: 1.25rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.submit-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  background: black;
  color: white;
  border-color: white;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* ----------------------------------------- */
/* TECH MARQUEE ANIMATION                    */
/* ----------------------------------------- */
.tech-marquee-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  width: 100%;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee-wrapper {
  display: flex;
}

.tech-marquee-track {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
  /* Gap compensation */
  /* Move from left (-50% because we duplicate content) to right (0) */
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.tech-pill-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tech-pill-large:hover {
  background: white;
  color: black;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
  border-color: white;
}

.tech-pill-large svg,
.tech-pill-large img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Scroll Animation (Left to Right) */
/* Requires content to be duplicated. 
   Start at -50% (showing 2nd set) and move to 0% (showing 1st set) */
@keyframes marquee-scroll {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* Hover to pause */
.tech-marquee-track:hover {
  animation-play-state: paused;
}


/* ----------------------------------------- */
/* CONTACT REDESIGN STYLES                   */
/* ----------------------------------------- */

.contact-section-new {
  height: auto !important;
  /* Allow growing */
  min-height: 100vh;
  overflow: visible !important;
  /* Allow scrolling if content overflows */
  padding-bottom: 4rem;
  /* Add bottom padding for better spacing */
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  /* Reduced gap from 3rem */
  margin-top: 2rem;
  /* Reduced margin from 4rem */
  padding-top: 0;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.5fr 4fr;
    /* Make form much wider (approx 70-75%) and profile narrower */
    gap: 3rem;
    align-items: start;
    /* Align to top */
  }
}

.contact-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  /* Centering everything */
  width: 100%;
}

/* Force left align on all screens if requested, or at least reset centering */

.contact-profile-img {
  width: 120px;
  /* Smaller profile image */
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
}

.contact-details-row {
  display: flex;
  flex-direction: row;
  /* Side by side */
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.social-links-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  /* Center align always */
  justify-content: center;
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: white;
  /* Make buttons white visible immediately */
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  /* Black icons on white btn */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: black;
  color: white;
  border-color: white;
  transform: translateY(-5px);
}

.social-btn svg,
.social-btn img {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: all 0.3s ease;
}

.social-btn:hover img {
  filter: invert(1);
}

/* ========================================= */
/*       PROCESS SECTION (SCROLLYTELLING)    */
/* ========================================= */

.process-section-wrapper {
  position: relative;
  background-color: var(--slate-950);
  /* No fixed height, relies on inner track */
  z-index: 20;
  /* Scroll snap handled by individual triggers, not wrapper */
}

.process-track {
  height: 500vh;
  /* 5 steps x 100vh deep */
  position: relative;
}

.process-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  /* Added padding to push content down from navbar */
}

.process-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .process-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
  }
}

/* Left Side: Number & Progress */
.process-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  position: relative;
  justify-content: center;
  /* Center on mobile */
}

@media (min-width: 1024px) {
  .process-left {
    justify-content: flex-start;
  }
}

.process-number {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .process-number {
    font-size: 15rem;
    -webkit-text-stroke: 4px rgba(255, 255, 255, 0.2);
  }
}

.process-progress-track {
  width: 4px;
  height: 15rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
  display: none;
  /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .process-progress-track {
    display: block;
  }
}

.process-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  /* JS updates this */
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: height 0.1s linear;
}

/* Right Side: Content Steps */
.process-right {
  position: relative;
  height: 400px;
  /* Fixed height container */
  display: flex;
  align-items: center;
}

.process-step {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) translateY(50px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-step.active {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  pointer-events: auto;
}

.process-step-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

@media (min-width: 768px) {
  .process-step-title {
    font-size: 4rem;
  }
}

.process-step-desc {
  font-size: 1.1rem;
  color: var(--slate-400);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.process-tools-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.process-tool-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  /* Circle */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.process-tool-icon:hover {
  background: white;
  transform: translateY(-5px);
}

.process-tool-icon:hover svg,
.process-tool-icon:hover i {
  color: black;
  filter: invert(1);
}

.process-tool-icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}


/* REFACTORED PROCESS SECTION */
.process-section-wrapper {
  position: relative;
  /* Ensure no overflow restrictions */
  overflow: visible;
}

.process-track {
  height: 500vh;
  width: 100%;
  position: relative;
  z-index: 20;
}

.process-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 30;
  /* Adding background to prevent bleed-through if needed, 
       but transparent is fine if background is on wrapper */
}

/* Ensure premium container inside behaves */
.process-sticky-container .premium-container {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

/* REFACTORED SNAP & STICKY STRUCTURE */

.process-section-wrapper {
  position: relative;
  width: 100%;
  /* Let the track determine height */
}

.process-track {
  position: relative;
  /* Contains sticky content + ghost triggers */
}

.process-sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
  /* Let clicks pass through to triggers if needed, though they are under */
}

/* Re-enable pointer events for actual content */
.process-content {
  pointer-events: auto;
}

.process-trigger {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Invisible triggers */
  /* border: 1px solid red; /* Debugging */
  position: relative;
  z-index: 5;
}

/* Adjust sticky container to sit *behind* the triggers or parallel? 
   Actually, if content is sticky, it stays in view.
   The triggers are flow content that scroll behind/under/over it.
   We want sticky content to be on TOP visually but triggers to be the scroll targets.
*/
.process-sticky-content {
  z-index: 20;
  /* Above triggers */
}

/* Triggers need to be layout siblings */

/* ADJUSTMENTS FOR STICKY HEADER AND TRIGGERS */

.process-sticky-content .premium-container {
  /* Ensure flex column works */
  flex-direction: column;
}

/* Adjust header spacing inside sticky */
.process-sticky-content .mb-8 {
  margin-bottom: 2rem;
  padding-top: 150px;
  /* Increased from 2rem to clear Navbar */
}

/* Make triggers taller or more robust if needed */
.process-trigger {
  height: 100vh;
  /* 100vh is standard for full screen snap */
}

/* Ensure global scroll snap behavior doesn't conflict */
/* The html scroll-snap-type is 'mandatory', which is strict. 
   'proximity' might feel looser, but user wants 'stop like main section'.
   'mandatory' is correct for that.
*/

/* Add buffer to bottom of track to allow scrolling out */
.process-track {
  margin-bottom: 0;
}

/* Hero Section Split Layout */
.hero-left {
  position: absolute;
  top: 50%;
  left: 4rem;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  z-index: 50;
}

.hero-right {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-welcome-text {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-welcome-text {
    font-size: 3.5rem;
  }
}

/* Hero Text Updates */
.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-namaste {
  font-size: 40px;
  font-weight: 700;
  /* Bold */
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-welcome {
  font-size: 20px;
  font-weight: 400;
  /* Regular */
  color: var(--slate-300);
}

/* Glass Navbar Styles */
.glass-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-navbar:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  /* Center links as requested implicity by design vibes, or typical for portfolio */
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--slate-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a:hover {
  color: white;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .glass-navbar {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
}


/* Hero Loader */
.hero-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  /* Below text (50) but above background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  color: var(--slate-400);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

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


/* Updated Hero Typography */
.hero-text-container {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-namaste {
  font-family: 'Space Mono', monospace !important;
  font-size: 5rem !important;
  /* reduced from 6rem */
  font-weight: 700 !important;
  color: white !important;
  margin-bottom: 0.5rem !important;
  line-height: 1 !important;
  letter-spacing: -2px !important;
}

.hero-welcome {
  font-size: 1.5rem !important;
  /* reduced from 2rem */
  font-weight: 400 !important;
  color: white !important;
  opacity: 1 !important;
}

/* ----------------------------------------- */
/* FIXES & OVERRIDES                         */
/* ----------------------------------------- */

/* Anchor tag reset for project cards */
a.project-card-modern {
  text-decoration: none;
  color: inherit;
  display: flex; /* Ensure it stays flex */
  cursor: pointer;
}

/* Fix Hover Specificity Conflict */
/* Ensure hover wins over reveal-on-scroll */
.project-card-modern:hover,
.project-card-modern.is-visible:hover {
  transform: translateY(-10px) scale(1.03);
  z-index: 20;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

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

.project-card-modern:hover .project-overlay {
    opacity: 0;
}