/* Modern UI Overhaul Variables */
:root {
  --bg-dark: #070B14;
  --bg-glass: rgba(17, 25, 40, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00d9ff;
  --accent-yellow: #e2cc08;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 8px 32px rgba(0, 217, 255, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Spinner CSS */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid var(--border-glass);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Abstract Background Orb */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 10% 40%, rgba(0, 217, 255, 0.08), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(226, 204, 8, 0.05), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Hero text entrance animation */
.hero-text-animate {
  animation: heroFadeUp 0.9s ease forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 30px)) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

.card-enter {
  animation: cardIn 0.6s ease forwards;
}

/* Content section slide fade */
.content-fade {
  animation: contentFade 0.5s ease forwards;
}

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

/* =========================================
   HERO SECTION (PREMIUM)
   ========================================= */
.home-page-top {
  text-align: center;
  padding: 16vh 5% 0;
  position: relative;
  min-height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Floating dots backdrop */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 217, 255, 0.4), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  animation: float 8s infinite ease-in-out alternate;
}

.hero-dot-1 { top: 15%; left: 15%; width: 150px; height: 150px; }
.hero-dot-2 { bottom: 30%; right: 10%; width: 250px; height: 250px; animation-delay: 1s; background: radial-gradient(circle at center, rgba(226, 204, 8, 0.2), transparent 70%); }
.hero-dot-3 { top: 40%; left: 80%; width: 100px; height: 100px; animation-delay: 2s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

.hero-text-animate {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

.welcomeHeader {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0;
}

.hero-outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-yellow);
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.welcomeDescription {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.hero-btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.hero-btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.hero-btn-ghost {
  background: rgba(255,255,255,0.03);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats {
  margin-top: 5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: rgba(14, 20, 38, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: 1.5rem 3rem;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-header {
  text-align: center;
  padding: 4rem 5% 1rem;
  max-width: 700px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.gradient-word {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Filter pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.5rem 5%;
  max-width: 1400px;
  width: 100%;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-pill:hover {
  background: rgba(0, 217, 255, 0.07);
  border-color: rgba(0, 217, 255, 0.25);
  color: var(--text-main);
}

.filter-pill.active {
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.4);
  color: var(--accent-cyan);
  font-weight: 600;
}

.filter-count {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

/* Projects grid */
.projects-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  padding: 1rem 5% 5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Premium Project Card */
.project-card {
  background: rgba(14, 20, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0, 217, 255, 0.08);
}

/* Card image + overlay */
.card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.project-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(12px);
  transition: transform 0.35s ease;
}

.project-card:hover .card-overlay-content {
  transform: translateY(0);
}

.card-view-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.card-view-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Card footer */
.card-footer {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card-footer h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-live { color: #00ff88; }
.card-live i { animation: pulse 1.8s infinite; }
.card-done { color: var(--accent-cyan); }

.card-stack-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* Navigation (Glassmorphism) */
.navigation {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.Logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.Logo:hover {
  color: var(--accent-cyan);
}

.Logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  pointer-events: none;
}

.navigation ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navigation ul li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.navigation ul li::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-cyan);
  transition: var(--transition);
}

.navigation ul li:hover {
  color: var(--text-main);
}

.navigation ul li:hover::after {
  width: 100%;
}

/* Contact Us */
.contact-us {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-us h2 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-us > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-us ul {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 450px;
  margin: 0 auto 3rem;
}

.contact-us li {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.contact-us li a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.contact-us li a:hover {
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.social-media-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-media-links a {
  color: var(--text-muted);
  font-size: 1.8rem;
  transition: var(--transition);
  background: rgba(255,255,255,0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
}

.social-media-links a:hover {
  color: var(--accent-yellow);
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 5px 15px rgba(226, 204, 8, 0.2);
}

/* Interactive Map */
.map-container {
  margin-top: 3rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

/* Home Content Section */
.content {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.leftToRight {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mainText {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.descriptionImg {
  flex: 1;
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background: var(--bg-glass);
  padding: 10px;
}

/* Footer */
/* =========================================
   TWO-COLUMN MODAL LAYOUT
   ========================================= */
.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  max-height: 88vh;
}

.modal-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.modal-hero {
  position: relative;
  flex: 1;
  min-height: 0;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,11,20,0.7) 0%, transparent 60%);
}

/* Stats panel under image */
.modal-stats {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.5rem;
  gap: 0.9rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.modal-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.stat-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-val {
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-live { color: #00ff88; }
.stat-done { color: var(--accent-cyan); }

/* Right scrollable content */
.modal-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 255, 0.2) transparent;
}
.modal-right::-webkit-scrollbar { width: 3px; }
.modal-right::-webkit-scrollbar-thumb { background: rgba(0, 217, 255, 0.2); border-radius: 10px; }

.modal-right .modal-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow), var(--accent-cyan));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  flex-shrink: 0;
}

.modal-body {
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  flex: 1;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0;
}

.modal-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(0, 217, 255, 0.22);
}

.modal-tech-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Dual CTA buttons */
.modal-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.primary-cta {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.05));
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.primary-cta:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.15);
  transform: translateY(-1px);
}

.secondary-cta {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.secondary-cta:hover {
  background: rgba(0, 217, 255, 0.07);
  color: var(--accent-cyan);
  border-color: rgba(0, 217, 255, 0.25);
}

footer {
  background: rgba(7, 11, 20, 0.9);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  margin-top: auto;
  font-size: 1rem;
}

/* Scroll To Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: none;
}

.scroll-top.visible {
  display: block;
}

.scroll-top div {
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.scroll-top div:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
}

.scroll-top div i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

/* Mobile Menu Icon */
.menu-icon {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-icon .line {
  width: 30px;
  height: 3px;
  background-color: var(--text-main);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Ultra-Premium: Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9998;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Advanced UX: Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  mix-blend-mode: screen;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.custom-cursor.hovering {
  width: 60px;
  height: 60px;
  background: rgba(226, 204, 8, 0.4);
  box-shadow: 0 0 30px rgba(226, 204, 8, 0.6);
  backdrop-filter: blur(4px);
}

/* =========================================
   PROJECT MODAL - Premium Dialog Design
   ========================================= */
.project-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 820px;
  width: calc(100% - 3rem);
  max-height: 88vh;
  border-radius: 24px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 25px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(0, 217, 255, 0.06);
  animation: modalIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-dialog::backdrop {
  background: rgba(3, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease forwards;
}

.modal-inner {
  background: linear-gradient(160deg, rgba(14, 20, 38, 0.99) 0%, rgba(7, 11, 20, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 217, 255, 0.25) transparent;
}
.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb { background: rgba(0, 217, 255, 0.25); border-radius: 10px; }

/* Hero section */
.modal-hero {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.modal-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 24px 24px 0 0;
}

.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(7, 11, 20, 0.5) 50%,
    rgba(7, 11, 20, 0.97) 100%
  );
  border-radius: 24px 24px 0 0;
}

.modal-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 2;
}

.modal-meta-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.category-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.status-live {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
}

.status-done {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--accent-cyan);
}

.status-live i { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin: 0;
}

/* Shimmer bar */
.modal-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow), var(--accent-cyan));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  flex-shrink: 0;
}

/* Body content */
.modal-body {
  padding: 1.8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-body > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(0, 217, 255, 0.2);
}

/* Tech section */
.modal-tech-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(0, 217, 255, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 217, 255, 0.18);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(0, 217, 255, 0.14);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.15);
}

/* CTA */
.modal-cta {
  margin-top: 0.5rem;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(0, 217, 255, 0.05));
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.modal-cta-btn:hover {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 217, 255, 0.1));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2), inset 0 0 20px rgba(0, 217, 255, 0.05);
  transform: translateY(-2px);
}

.modal-cta-btn i {
  font-size: 1.2rem;
  color: #25D366;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
  backdrop-filter: blur(12px);
}

.close-btn:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(90deg);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.2);
}


/* ============================================
   MODAL MOBILE FIX
   Add at the bottom of ResponsiveStyling.css
   ============================================ */

/* ---- Shared fix: dialog positioning ---- */
.project-dialog {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---- Tablet & Mobile: single-column stacked modal ---- */
@media (max-width: 760px) {

  /* Dialog: slide up from bottom as a sheet */
  .project-dialog {
    top: auto;
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    animation: modalSlideUp 0.38s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }

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

  /* Inner card matches sheet shape */
  .modal-inner {
    border-radius: 22px 22px 0 0;
    max-height: 92dvh;
  }

  /* Stack the two columns vertically */
  .modal-layout {
    display: flex;
    flex-direction: column;
  }

  /* Left panel: image + stats row */
  .modal-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: visible;
  }

  /* Image: shorter on mobile */
  .modal-hero img {
    height: 200px;
    border-radius: 0;
  }

  .modal-hero::after {
    border-radius: 0;
  }

  /* Stats: horizontal row instead of vertical list */
  .modal-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .modal-stat {
    flex: 1;
    min-width: 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
  }

  /* Right panel: comfortable mobile padding */
  .modal-right {
    overflow: visible;  /* parent modal-inner handles scroll */
  }

  .modal-body {
    padding: 1.4rem 1.2rem 2rem;
    gap: 1.2rem;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  /* CTA buttons: stacked full-width */
  .modal-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .modal-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.2rem;
  }

  /* Close button: slightly larger tap target */
  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .modal-hero img {
    height: 170px;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-body > p {
    font-size: 0.9rem;
  }
}



/* ============================================
   MODAL MOBILE FIX
   Add at the bottom of ResponsiveStyling.css
   ============================================ */

/* ---- Shared fix: dialog positioning ---- */
.project-dialog {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Drag handle pill — hidden on desktop, shown on mobile */
.modal-drag-handle {
  display: none;
}

@media (max-width: 760px) {
  .modal-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 12px auto 4px;
    flex-shrink: 0;
  }
}

/* ---- Tablet & Mobile: single-column stacked modal ---- */
@media (max-width: 760px) {

  /* Dialog: slide up from bottom as a sheet */
  .project-dialog {
    top: auto;
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    animation: modalSlideUp 0.38s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  }

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

  /* Inner card matches sheet shape */
  .modal-inner {
    border-radius: 22px 22px 0 0;
    max-height: 92dvh;
  }

  /* Stack the two columns vertically */
  .modal-layout {
    display: flex;
    flex-direction: column;
  }

  /* Left panel: image + stats row */
  .modal-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: visible;
  }

  /* Image: shorter on mobile */
  .modal-hero img {
    height: 200px;
    border-radius: 0;
  }

  .modal-hero::after {
    border-radius: 0;
  }

  /* Stats: horizontal row instead of vertical list */
  .modal-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .modal-stat {
    flex: 1;
    min-width: 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
  }

  /* Right panel: comfortable mobile padding */
  .modal-right {
    overflow: visible;  /* parent modal-inner handles scroll */
  }

  .modal-body {
    padding: 1.4rem 1.2rem 2rem;
    gap: 1.2rem;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  /* CTA buttons: stacked full-width */
  .modal-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .modal-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.2rem;
  }

  /* Close button: slightly larger tap target */
  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .modal-hero img {
    height: 170px;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-body > p {
    font-size: 0.9rem;
  }
}