/* ============================================
   FHEWN STUDIO — REFERENCE FAITHFUL REDESIGN
   ============================================ */

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

:root {
  --bg-deep: #020408;
  --bg-navy: #050a1b;
  /* Matches Jasmina background */
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --accent-pink: #f472b6;
  --accent-purple: #8b5cf6;
  --accent-green: #4ade80;
  --border-glass: rgba(255, 255, 255, 0.1);
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Pacifico', cursive;
  --font-sans: 'Space Grotesk', sans-serif;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Vignette Effect */
.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 1000;
  background: rgba(2, 4, 8, 0.5);
  backdrop-filter: blur(10px);
}

.nav-logo .logo-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  background: linear-gradient(to right, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta-outline {
  text-decoration: none;
  color: var(--text-white);
  padding: 0.6rem 2rem;
  border: 1px solid var(--text-white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.nav-cta-outline:hover {
  background: white;
  color: black;
}

/* ====== HERO ====== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a1329 0%, var(--bg-deep) 80%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.hero-text-left,
.hero-text-right {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 15rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
  /* Solid white for guaranteed visibility */
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
  z-index: 10;
  position: relative;
}

.hero-text-left:hover,
.hero-text-right:hover {
  letter-spacing: 0.15em;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.hero-statue-container {
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-statue {
  width: 130%;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
  animation: floatStatue 6s ease-in-out infinite;
}

@keyframes floatStatue {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-taglines {
  text-align: left;
  position: absolute;
  bottom: 15%;
  left: 10%;
}

.tagline-p {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tagline-sub {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  font-weight: 400;
}

/* ====== PROJECTS ====== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 10rem 0;
  cursor: grab;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 3rem;
  padding: 0 10%;
  transition: transform 0.1s linear;
}

.project-card {
  min-width: 450px;
  height: 600px;
  border-radius: 40px;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.project-card:hover {
  box-shadow: 0 60px 150px rgba(0, 0, 0, 0.6);
}

.project-card.purple {
  background-color: #7c3aed;
}

.project-card.dark {
  background-color: #1a1a1a;
}

.project-card.green {
  background-color: #a3e635;
}

.card-top-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  width: fit-content;
}

.card-icon-main {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2rem;
  color: inherit;
}

.project-card.green .card-title,
.project-card.green .btn-discover {
  color: #000;
}

.card-desc {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.btn-discover {
  padding: 0.8rem 2.5rem;
  border-radius: 10px;
  border: none;
  background: white;
  color: black;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
}

.btn-discover.light {
  background: #f1f5f9;
}

.drag-indicator {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  font-size: 0.9rem;
  color: white;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s ease;
}

/* ====== HİZMETLERİM (PREMIUM GRID) ====== */
.section-services {
  padding: 12rem 0;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 5% 5%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 95% 95%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.services-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.service-item-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-item:hover .service-item-glow {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: all 0.5s ease;
}

.service-icon i {
  width: 32px;
  height: 32px;
  stroke-width: 1.5px;
}

.service-item:hover .service-icon {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-pink);
}

.service-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.service-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.service-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s, gap 0.3s;
}

.service-item:hover .service-link {
  color: var(--accent-pink);
  gap: 0.8rem;
}

.service-item.featured {
  border-color: rgba(244, 114, 182, 0.2);
  background: rgba(244, 114, 182, 0.02);
}

.service-item.featured .service-icon {
  background: rgba(244, 114, 182, 0.05);
  border-color: rgba(244, 114, 182, 0.15);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.1);
}

/* ====== DESTEK VE İLETİŞİM ====== */
.section-contact {
  padding: 10rem 0 15rem;
  position: relative;
  z-index: 2;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 48px;
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--x, 50%) var(--y, 50%), rgba(244, 114, 182, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.contact-card:hover .contact-card-glow {
  opacity: 1;
}

.contact-desc {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 3.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  margin-bottom: 4rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.contact-btn i {
  width: 24px;
  height: 24px;
}

.contact-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #94a3b8;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.social-item i {
  width: 20px;
  height: 20px;
}

.social-item.instagram:hover {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.3);
  background: rgba(225, 48, 108, 0.05);
}

.social-item.linkedin:hover {
  color: #0077B5;
  border-color: rgba(0, 119, 181, 0.3);
  background: rgba(0, 119, 181, 0.05);
}

.social-item.github:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.social-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .contact-container {
    padding: 0 2rem;
  }

  .contact-card {
    padding: 4rem 2rem;
  }

  .social-links {
    gap: 1rem;
  }
}


/* ====== HAMBURGER MENU ====== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* ====== MOBILE RESPONSIVE OVERHAUL ====== */
@media (max-width: 900px) {
  .navbar {
    padding: 0 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: rgba(2, 4, 8, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .hero-text-left,
  .hero-text-right {
    font-size: 4rem;
    letter-spacing: 0.05em;
  }

  .hero-statue-container {
    width: 250px;
    height: 250px;
    margin: 1rem 0;
  }

  .hero-statue {
    width: 140%;
  }

  .hero-taglines {
    position: static;
    margin-top: 3rem;
    text-align: center;
    padding: 0 2rem;
  }

  /* Projects Mobile */
  .project-card {
    min-width: 85vw;
    height: 500px;
    padding: 2.5rem;
  }

  .card-title {
    font-size: 2.5rem;
  }

  .drag-indicator {
    display: none;
  }

  /* Services Mobile */
  .services-grid-premium {
    grid-template-columns: 1fr;
  }

  .services-container {
    padding: 0 2rem;
  }

  .service-item {
    padding: 3rem 2rem;
  }

  /* Contact Mobile */
  .contact-container {
    padding: 0 1.5rem;
  }

  .contact-card {
    padding: 4rem 1.5rem;
  }

  .social-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .social-item {
    width: 100%;
    justify-content: center;
  }

  .modal-box {
    width: 95%;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {

  .hero-text-left,
  .hero-text-right {
    font-size: 3rem;
  }

  .hero-statue-container {
    width: 200px;
    height: 200px;
  }
}

/* ====== ENHANCED MODAL STYLES ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.modal-box {
  background: #020408;
  width: 800px;
  max-width: 90%;
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 4rem;
  position: relative;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-pink);
  transform: rotate(90deg);
}

.modal-main-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.modal-main-desc {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.modal-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
}

.modal-info-box.full-width {
  grid-column: span 2;
}

.modal-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-pink);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.modal-info-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

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

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.modal-footer {
  text-align: left;
}

.modal-cta-btn {
  display: inline-block;
  background: #fff;
  color: #000 !important;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

.modal-cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-info-box.full-width {
    grid-column: span 1;
  }

  .modal-main-title {
    font-size: 2.2rem;
  }

  .modal-box {
    padding: 3rem 1.5rem;
  }
}

/* ============================================
   DIGITAL SHOWCASE MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-box {
  background: #020408;
  width: 1200px;
  max-width: 95%;
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  transform: scale(0.95) translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-flex-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* --- Content Side --- */
.modal-text-side {
  flex: 1.2;
  padding: 5rem;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-main-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.1;
}

.modal-main-desc {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 4rem;
  font-weight: 300;
}

.modal-story-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.story-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-pink);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-weight: 300;
}

.modal-info-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.info-text {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

.modal-cta-btn {
  display: inline-block;
  background: #fff;
  color: #000 !important;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

/* --- Showcase Side --- */
.modal-visual-side {
  flex: 1;
  background: #050a1b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem;
}

.showcase-label {
  position: absolute;
  top: 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: #000;
  border: 12px solid #1a1a1a;
  border-radius: 50px;
  position: relative;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: translateY(-10px) rotateY(5deg);
}

.phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #050a1b;
  position: relative;
}

.browser-mockup {
  width: 100%;
  max-width: 550px;
  background: #0a0f1d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s ease;
}

.browser-mockup:hover {
  transform: translateY(-10px) scale(1.02);
}

.browser-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dots {
  display: flex;
  gap: 8px;
}

.browser-header .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.browser-header .url-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  height: 24px;
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: monospace;
}

.browser-body {
  height: 340px;
  background: #020408;
  padding: 30px;
  position: relative;
}

/* --- Mockup Content Enhancements --- */
.safety-grid {
  display: flex;
  gap: 20px;
  height: 100%;
}

.cam-feed {
  flex: 2;
  background: #000 url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=500&auto=format&fit=crop') center/cover;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cam-feed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 15px #4ade80;
  animation: scanline 3s linear infinite;
  z-index: 2;
}

.cam-feed::after {
  content: "REC";
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ff4444;
  font-size: 10px;
  font-weight: 800;
  animation: blink 1s infinite;
  z-index: 3;
}

.detection-box {
  border: 2px solid #4ade80;
  padding: 12px;
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  animation: pulse-simple 2s infinite;
}

.safety-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.stat-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background: var(--accent-pink);
  animation: statGrow 2s ease-out forwards;
}

.ar-scene {
  height: 100%;
  background: #000 url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?q=80&w=500&auto=format&fit=crop') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ar-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
}

.ar-pointer {
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pulse 2s infinite, movePointer 8s ease-in-out infinite;
}

.ar-pointer::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.furniture-label {
  position: absolute;
  bottom: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s 0.5s ease forwards;
}

.dashboard-mock {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-mock {
  height: 150px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.1), transparent);
  border-bottom: 2px solid var(--accent-pink);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.chart-mock::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--accent-pink), transparent);
  opacity: 0.2;
  animation: chartWave 4s ease-in-out infinite;
}

.chart-mock::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 255, 255, 0.05) 40px, rgba(255, 255, 255, 0.05) 41px);
}

.grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.grid-mock span {
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: float-elements 3s ease-in-out infinite;
}

.grid-mock span:nth-child(2) {
  animation-delay: 0.2s;
}

.grid-mock span:nth-child(3) {
  animation-delay: 0.4s;
}

.firework-mock {
  font-size: 4rem;
  animation: floatStatue 3s ease-in-out infinite;
  text-shadow: 0 0 30px var(--accent-pink), 0 0 60px var(--accent-purple);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.abstract-shape {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, var(--accent-purple), transparent),
    radial-gradient(circle at 70% 70%, var(--accent-pink), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(25px);
  animation: morph 8s ease-in-out infinite, rotateShape 15s linear infinite;
  opacity: 0.7;
}

/* --- New Animations --- */
@keyframes scanline {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes pulse-simple {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes statGrow {
  from {
    width: 0;
  }

  to {
    width: 75%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes movePointer {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -20px);
  }

  50% {
    transform: translate(-20px, 30px);
  }

  75% {
    transform: translate(-30px, -10px);
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes chartWave {

  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(-10px) scaleY(1.1);
  }
}

@keyframes float-elements {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes morph {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  33% {
    border-radius: 70% 30% 50% 50% / 50% 50% 30% 70%;
  }

  66% {
    border-radius: 50% 50% 30% 70% / 70% 30% 50% 50%;
  }
}

@keyframes rotateShape {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Mobile Fix for Showcase --- */
@media (max-width: 1000px) {
  .modal-box {
    flex-direction: column;
    width: 95%;
    max-height: 95vh;
  }

  .modal-flex-container {
    flex-direction: column;
  }

  .modal-text-side {
    padding: 3rem 2rem;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .modal-visual-side {
    padding: 4rem 1.5rem;
    min-height: 450px;
  }

  .modal-main-title {
    font-size: 2.5rem;
  }

  /* Scale down mockups for smaller screens */
  .phone-mockup {
    width: 240px;
    height: 490px;
  }

  .browser-mockup {
    width: 100%;
    transform: scale(0.9);
  }

  .visual-viewport.focus-mode {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .modal-text-side {
    padding: 2.5rem 1.5rem;
  }

  .modal-main-title {
    font-size: 1.8rem;
  }

  .phone-mockup {
    width: 200px;
    height: 410px;
  }

  .browser-mockup {
    transform: scale(0.8);
  }

  .hud-corner {
    width: 15px;
    height: 15px;
  }

  .hud-data-tag {
    font-size: 8px;
  }

  .gauge-svg {
    transform: scale(0.8) rotate(-90deg);
  }
}

/* --- ADVANCED INTERACTION: HOTSPOTS & 3D --- */
.visual-viewport {
  cursor: crosshair;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visual-viewport.focus-mode {
  position: absolute;
  inset: 0%;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(2, 4, 8, 0.98);
  backdrop-filter: blur(40px);
  padding: 5rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: help;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hotspot-pulse 2s infinite;
  transition: all 0.3s ease;
}

.hotspot:hover {
  background: var(--accent-pink);
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-pink);
}

.hotspot::after {
  content: "+";
  font-size: 14px;
  color: #fff;
}

.hotspot-tooltip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 12px;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 201;
}

.hotspot-tooltip h4 {
  font-size: 0.8rem;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hotspot-tooltip p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
  font-weight: 300;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes hotspot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* --- ULTRA PREMIUM HUD & DATA ELEMENTS --- */
.hud-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hud-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.3;
}

.hud-data-tag {
  position: absolute;
  font-family: monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.data-stream {
  position: absolute;
  right: 20px;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.stream-line {
  height: 2px;
  background: var(--accent-pink);
  width: 50px;
  opacity: 0.5;
  animation: stream-flow 2s infinite ease-in-out;
}

@keyframes stream-flow {

  0%,
  100% {
    width: 30px;
    opacity: 0.3;
  }

  50% {
    width: 60px;
    opacity: 0.8;
  }
}

/* Advanced Gauge */
.hud-gauge {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 80px;
  height: 80px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-pink);
  stroke-width: 4;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 5px var(--accent-pink));
}

/* Glass Progress Rail */
.progress-rail {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  box-shadow: 0 0 15px var(--accent-pink);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scanning Overlay */
.scan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(139, 92, 246, 0.05) 50%,
      transparent 100%);
  background-size: 100% 200%;
  animation: scan-move 4s linear infinite;
  pointer-events: none;
}

@keyframes scan-move {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* Phone/Browser Refresh */
.visual-viewport {
  perspective: 2000px;
}

.phone-mockup,
.browser-mockup {
  background: #020408 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
}

.browser-header {
  background: rgba(10, 15, 29, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.url-bar {
  background: rgba(0, 0, 0, 0.5) !important;
  color: #64748b !important;
}

/* Custom Icons */
.hud-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-pink);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px var(--accent-pink));
}