/* ═══════════════════════════════════════════════════════════
   INDEX.CSS — Styles for the main landing page only
   ═══════════════════════════════════════════════════════════ */

/* ── LOADING SCREEN ─────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  height: 60px;
  width: auto;
  margin-bottom: 30px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: #111111;
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  animation: loading 1.5s ease-out forwards;
}

@keyframes loading {
  0% { width: 0%; }
  30% { width: 30%; }
  60% { width: 60%; }
  80% { width: 80%; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* ── HERO SECTION ──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 60px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-heading {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 9.5vw, 128px);
  line-height: 0.88;
  text-align: center;
  width: 100%;
}

.hero-line {
  /* color and background handled in shared.css */
  opacity: 0;
  text-shadow: 0 0 60px rgba(147, 51, 234, 0.4);
}

#hero.animating .hero-line-top {
  animation: slideFromTop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

#hero.animating .hero-line-bottom {
  animation: slideFromBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes slideFromTop {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromBottom {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: var(--grey);
  font-size: 12px;
  max-width: 260px;
  line-height: 1.9;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  z-index: 2;
}

#hero.animating .hero-subtitle {
  animation: slideFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-cta {
  position: absolute;
  bottom: 60px;
  right: 60px;
  opacity: 0;
  z-index: 2;
}

#hero.animating .hero-cta {
  animation: slideFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.9s;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── ABOUT SECTION ─────────────────────────────────────── */
#about {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 60px;
  text-align: center;
}

.about-heading {
  font-size: clamp(64px, 8vw, 110px);
  clip-path: inset(0 0% 0 0);
}

.about-body {
  max-width: 580px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin: 32px auto 48px;
  font-family: 'Space Mono', monospace;
}

/* Corner emoji icons */
.corner-icon {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.icon-tl {
  top: 80px;
  left: 80px;
  animation-delay: -1s;
}

.icon-tr {
  top: 80px;
  right: 80px;
  animation-delay: -2s;
}

.icon-bl {
  bottom: 80px;
  left: 80px;
  animation-delay: -3s;
}

.icon-br {
  bottom: 80px;
  right: 80px;
  animation-delay: -4s;
}

/* ── SERVICES SECTION ──────────────────────────────────── */
#price {
  padding: 100px 60px;
  background: transparent;
}

.services-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 28px;
  padding: 72px 80px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.9),
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.services-heading {
  font-size: clamp(56px, 7vw, 96px);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 24px;
  clip-path: inset(0 0% 0 0);
}

.service-row {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #1a1a1a;
  align-items: flex-start;
}

.service-num {
  font-size: 72px;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
  min-width: 80px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.service-desc {
  font-size: 13px;
  color: #666;
  font-family: 'Space Mono', monospace;
  line-height: 1.8;
}

/* ── PROJECTS PREVIEW SECTION ──────────────────────────── */
#projects-preview {
  padding: 100px 60px;
}

.projects-main-title {
  font-size: clamp(64px, 8vw, 110px); /* Matches About Me size */
  text-align: center;
  margin-bottom: 20px;
  line-height: 0.9;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-heading {
  font-size: clamp(48px, 6vw, 72px);
  margin-bottom: 60px;
  text-align: center;
}

.project-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 22px;
  padding: 36px;
  margin-bottom: 32px;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(150px);
  filter: none !important;
  scale: 1 !important;
}

.reveal-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: rgba(147, 51, 234, 0.3);
  /* Hover shadow removed as per "remove all animation" request */
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-num {
  font-size: 72px;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
  line-height: 1;
}

.project-type {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  margin-bottom: 4px;
}

.project-name {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.arati-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 28px;
}

.arati-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  /* Transitions removed as per "remove all animation" request */
}



.arati-img-1 {
  grid-column: 1;
  grid-row: 1;
}

.arati-img-2 {
  grid-column: 2;
  grid-row: 1;
}

.arati-img-3 {
  grid-column: 1;
  grid-row: 2;
}

.arati-img-4 {
  grid-column: 2;
  grid-row: 2;
}

.project-thumb {
  height: 130px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
  will-change: transform;
  object-fit: cover;
}

.project-thumb:hover {
  transform: scale(1.03);
}

.project-thumb-tall {
  height: 100%;
  min-height: 272px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
  will-change: transform;
  object-fit: cover;
}

.portfolio-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.portfolio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  /* Transitions removed */
}



/* Mobile responsive updates */
@media (max-width: 768px) {
  .portfolio-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .portfolio-img {
    height: 160px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — index page
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #hero {
    padding: 120px 24px 80px;
    justify-content: flex-start; /* Move heading up slightly on mobile */
    padding-top: 160px;
  }

  .hero-heading {
    margin-bottom: 40px;
  }

  .hero-subtitle {
    position: relative;
    bottom: auto;
    left: auto;
    text-align: center;
    margin: 0 auto 32px;
    max-width: 420px; /* Increased further for 2-line wrap */
    font-size: 13px;
    opacity: 0;
    line-height: 1.6;
  }

  .hero-cta {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin: 0 auto;
    opacity: 0;
  }

  #hero.animating .hero-subtitle {
    animation: slideUpMobile 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
  }

  #hero.animating .hero-cta {
    animation: slideUpMobile 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #about {
    padding: 80px 24px;
  }

  .corner-icon {
    display: none;
  }

  #price {
    padding: 60px 24px;
  }

  .services-card {
    padding: 36px 28px;
  }

  .service-row {
    flex-direction: column;
    gap: 12px;
  }

  .service-num {
    font-size: 48px;
  }

  #projects-preview {
    padding: 60px 24px;
  }

  .project-top {
    flex-direction: column;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  .arati-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .arati-img {
    height: 150px;
  }

  .project-thumb-tall {
    min-height: 180px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX MODAL
   ═══════════════════════════════════════════════════════════ */
#lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: white;
  transform: rotate(90deg);
}

.lightbox-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 80px;
}

#lightbox-img {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

#lightbox-modal.active #lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  z-index: 10000;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(147, 51, 234, 0.8);
  border-color: rgba(147, 51, 234, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(147, 51, 234, 0.4);
}

.lightbox-hint {
  position: absolute;
  bottom: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10000;
}

.arati-images img {
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox-content-wrapper {
    padding: 0 16px;
  }
  #lightbox-img {
    max-width: 100%;
    max-height: 80vh;
  }
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
  .lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 36px;
  }
}
