/* ==========================================================================
   ANKIT CHANDRA PORTFOLIO — DENNIS SNELLENBERG AESTHETIC (AWWWARDS STYLE)
   Editorial minimalism, magnetic cursor, huge typography, infinite marquee,
   and signature curved footer.
   ========================================================================== */

:root {
  --bg-dark: #1c1d20;
  --bg-darker: #141516;
  --text-light: #ffffff;
  --text-muted: #999d9e;
  --accent-blue: #455ce9;
  --accent-blue-hover: #334bd3;
  --border-hairline: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

/* Custom Magnetic Follower Cursor (Dennis Snellenberg Style) */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--text-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              opacity 0.2s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

#custom-cursor.cursor-active {
  opacity: 1;
}

#custom-cursor.cursor-hover {
  width: 70px;
  height: 70px;
  background-color: var(--text-light);
  opacity: 0.9;
}



/* Hero Portrait Monochromatic Filter & Full Original Color on Hover */
.hero-photo {
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

#hero-photo-card:hover .hero-photo {
  filter: grayscale(0%) contrast(1) !important;
}

/* Interactive Hero Optical Magnifying Lens */
#hero-lens-zoom img {
  filter: grayscale(0%) contrast(1) !important;
  max-width: none !important;
}

#custom-cursor.cursor-drag {
  width: 90px;
  height: 90px;
  background-color: var(--accent-blue);
  mix-blend-mode: normal;
}

#custom-cursor.cursor-hidden {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0) !important;
  pointer-events: none !important;
}

/* Dennis Snellenberg Header */
.ds-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: difference;
}

@media (max-width: 768px) {
  .ds-header {
    padding: 1.5rem 1.5rem;
  }
}

/* Magnetic Elements Container */
.magnetic-wrap {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Infinite Marquee Ticker (Dennis Signature) */
.ticker-wrap {
  width: 100vw;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.ticker-move {
  display: inline-flex;
  animation: marquee 65s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-text {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ticker-bullet {
  display: inline-block;
  width: clamp(1rem, 2.5vw, 2.5rem);
  height: clamp(1rem, 2.5vw, 2.5rem);
  border-radius: 50%;
  background-color: var(--accent-blue);
  vertical-align: middle;
}

/* Dennis Work List / Experience Rows */
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5fr 3fr 1fr;
  align-items: center;
  padding: 2.75rem 2rem;
  border-top: 1px solid var(--border-hairline);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
  cursor: pointer;
}

.work-row:last-child {
  border-bottom: 1px solid var(--border-hairline);
}

.work-row:hover {
  padding-left: 3rem;
  padding-right: 3rem;
  background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .work-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem 1rem;
  }
  .work-row:hover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Hover Floating Modal Card (Dennis Signature Cursor Follower) */
#floating-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 220px;
  border-radius: 1.25rem;
  overflow: hidden;
  pointer-events: none !important;
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85);
  background-color: #212226;
}

#floating-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Experience Detail Modal (Dennis Snellenberg Style) */
#exp-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

#exp-modal-backdrop.show #exp-modal-card {
  transform: scale(1);
  opacity: 1;
}

#floating-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Giant Round Magnetic Action Button (Dennis Snellenberg Trademark) */
.giant-round-btn {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(69, 92, 233, 0.35);
}

.giant-round-btn:hover {
  background-color: var(--accent-blue-hover);
}

.giant-round-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.giant-round-btn:hover::after {
  opacity: 1;
}

/* Dennis Snellenberg Signature Curved Footer Transition */
.curved-footer-wrap {
  position: relative;
  background-color: var(--bg-dark);
}

.curved-svg-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-98%);
  pointer-events: none;
}

.curved-svg-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

@media (min-width: 1024px) {
  .curved-svg-top svg {
    height: 140px;
  }
}

.footer-content {
  background-color: var(--bg-darker);
  position: relative;
  z-index: 10;
}

/* Dennis Pill Tags */
.ds-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  font-size: 0.85rem;
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.ds-tag:hover {
  background-color: #ffffff;
  color: #141516;
  border-color: #ffffff;
}

/* Toast */
#ds-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background-color: #ffffff;
  color: #141516;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#ds-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Dennis Snellenberg Editorial Input Underline Fields */
.ds-input-group {
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

.ds-input-group:focus-within {
  border-color: #ffffff;
}

.ds-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.5rem 0;
}

.ds-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

/* Case Study & Architecture Cards */
.ds-case-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-case-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

/* Metric Strip Cards */
.ds-metric-box {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-hairline);
  transition: background-color 0.3s ease;
}

.ds-metric-box:last-child {
  border-right: none;
}

.ds-metric-box:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1024px) {
  .ds-metric-box {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }
  .ds-metric-box:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   MOBILE PHONES OPTIMIZATION (< 768px)
   On smartphones:
   - Completely remove desktop follower cursor (no motionless dot on phones!)
   - Remove desktop floating hover preview modal
   - Disable hover magnifying lens (tap to switch photo works directly)
   - Show vibrant original colors naturally on mobile screens
   ========================================================================== */
@media (max-width: 767px) {
  #custom-cursor {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #floating-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #hero-lens {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body {
    cursor: auto !important;
  }

  .hero-photo {
    filter: grayscale(0%) contrast(1) !important;
  }
}
