/* ==========================================================================
   FS STUDIO - MOBILE APP DEVELOPMENT STUDIO
   Design System & Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Root Color Variables & Design Tokens --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-main: #060913;
  --bg-nav: rgba(6, 9, 19, 0.82);
  --bg-card: rgba(15, 22, 38, 0.65);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --bg-input: rgba(12, 18, 32, 0.8);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #7928ca;
  --accent-pink: #ff0080;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7928ca 100%);
  --grad-accent: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --grad-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(121, 40, 202, 0.2));
  --grad-text: linear-gradient(135deg, #ffffff 30%, #00f2fe 70%, #4facfe 100%);

  --text-white: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(0, 242, 254, 0.4);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-neon-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --shadow-neon-violet: 0 0 25px rgba(121, 40, 202, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Ambient Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  top: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00f2fe 0%, rgba(121, 40, 202, 0) 70%);
}

.glow-2 {
  top: 40%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7928ca 0%, rgba(255, 0, 128, 0) 70%);
}

.glow-3 {
  bottom: 10%;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #10b981 0%, rgba(0, 242, 254, 0) 70%);
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Section Common Styles */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #060913;
  font-weight: 700;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.1rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* --- HEADER & NAV --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #060913;
  box-shadow: var(--shadow-neon-cyan);
}

.logo-text span {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-white);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 140px;
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(121, 40, 202, 0.12);
  border: 1px solid rgba(121, 40, 202, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: #c084fc;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- HERO IPHONE MOCKUP & INTERACTIVE SWITCHER --- */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass Glow behind phone */
.mockup-glow {
  position: absolute;
  width: 320px;
  height: 550px;
  background: var(--grad-primary);
  border-radius: 60px;
  filter: blur(50px);
  opacity: 0.35;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.25; filter: blur(45px); transform: scale(0.95); }
  100% { opacity: 0.45; filter: blur(60px); transform: scale(1.05); }
}

/* iPhone Device Frame */
.iphone-frame {
  width: 310px;
  height: 630px;
  background: #000000;
  border-radius: 50px;
  border: 4px solid #2a2f3d;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              inset 0 0 4px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iphone-frame:hover {
  transform: translateY(-8px) rotate(1deg);
}

/* Dynamic Island Notch */
.iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(0, 242, 254, 0.6);
}

/* Screen Content Area */
.iphone-screen {
  width: 100%;
  height: 100%;
  background: #090d16;
  padding: 50px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  color: var(--text-white);
  overflow: hidden;
  position: relative;
}

/* Individual App Screen Layouts */
.app-screen {
  display: none;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  animation: fadeInScreen 0.4s ease forwards;
}

.app-screen.active {
  display: flex;
}

@keyframes fadeInScreen {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Header inside Phone Screen */
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.phone-app-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Mock Cards inside Phone Screen */
.phone-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
}

.balance-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border: 1px solid rgba(121, 40, 202, 0.4);
}

.balance-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.phone-graph {
  height: 70px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-top: 10px;
}

.graph-bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.phone-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Phone Screen Navigation Switcher Buttons */
.screen-switcher-bar {
  position: absolute;
  bottom: -60px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 22, 38, 0.9);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.switch-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.switch-btn.active, .switch-btn:hover {
  background: var(--grad-primary);
  color: #060913;
  font-weight: 700;
}

/* Floating Stat Badges around Mockup */
.floating-badge {
  position: absolute;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 22, 38, 0.85);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 3;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 15%;
  left: -40px;
}

.badge-bottom-right {
  bottom: 18%;
  right: -30px;
  animation-delay: -2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

.badge-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  color: #060913;
  transform: scale(1.1) rotate(4deg);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* --- APP PORTFOLIO / SHOWCASE SECTION --- */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-primary);
  color: #060913;
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-neon-cyan);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.app-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card-thumb {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #0d1322;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.app-card:hover .app-card-thumb-bg {
  transform: scale(1.08);
  opacity: 1;
}

/* App Phone Screen Mockup Inside Thumbnail */
.app-card-mockup-phone {
  width: 120px;
  height: 210px;
  background: #000;
  border: 2px solid #333;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.app-card:hover .app-card-mockup-phone {
  transform: translateY(5px);
}

.app-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.app-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.app-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.app-tags {
  display: flex;
  gap: 0.4rem;
}

.app-modal-trigger {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.app-modal-trigger:hover {
  gap: 0.7rem;
}

/* --- INTERACTIVE APP COST ESTIMATOR SECTION --- */
.estimator-wrapper {
  background: linear-gradient(135deg, rgba(15, 22, 38, 0.9), rgba(10, 15, 28, 0.95));
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #060913;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.option-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.option-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.option-card.selected {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

/* Feature Checkboxes Grid */
.features-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feature-check-item:hover, .feature-check-item.selected {
  background: rgba(121, 40, 202, 0.15);
  border-color: rgba(121, 40, 202, 0.5);
}

.feature-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #060913;
  transition: all var(--transition-fast);
}

.feature-check-item.selected .feature-checkbox {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.feature-title {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Estimator Result Box */
.estimator-result-box {
  background: rgba(6, 9, 19, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-neon-cyan);
  position: relative;
  overflow: hidden;
}

.estimator-result-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2), transparent 70%);
}

.result-header {
  margin-bottom: 1.5rem;
}

.result-header h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cost-display {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.timeline-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent-emerald);
  margin-top: 0.5rem;
  font-weight: 600;
}

.result-breakdown-list {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px dashed var(--border-glass-bright);
  border-bottom: 1px dashed var(--border-glass-bright);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.breakdown-row .label { color: var(--text-muted); }
.breakdown-row .val { color: var(--text-white); font-weight: 600; }

/* --- TECH STACK SECTION --- */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.tech-tab-btn.active, .tech-tab-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.tech-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
}

.tech-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
}

.tech-item-card:hover .tech-icon-wrapper {
  transform: scale(1.15) rotate(6deg);
}

.tech-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tech-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- DEVELOPMENT PROCESS SECTION --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--transition-normal);
}

.process-step-card:hover .process-step-number {
  color: var(--accent-cyan);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  color: var(--accent-amber);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  font-size: 1.1rem;
}

.client-details h5 {
  font-size: 1rem;
  font-weight: 700;
}

.client-details p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- CONTACT & INQUIRY SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-text h5 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-text p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(18, 26, 44, 0.9);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-success-msg {
  display: none;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  color: var(--accent-emerald);
  font-weight: 600;
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  background: #04060b;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- CASE STUDY MODAL --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  background: #0b111e;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 0, 128, 0.3);
  color: var(--accent-pink);
}

.modal-header {
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  padding: 2.5rem;
}

/* --- RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS --- */

@media (max-width: 1200px) {
  .floating-badge {
    display: none !important;
  }

  .hero-mockup-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .iphone-frame {
    max-width: 90vw;
  }

  .screen-switcher-bar {
    max-width: 92vw;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass-bright);
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10001;
  }

  .mobile-toggle:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #060913;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    padding: 2rem;
    border-top: 1px solid var(--border-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    z-index: 10000;
  }

  .nav-menu.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .status-pill {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .floating-badge {
    display: none;
  }

  .iphone-frame {
    width: 290px;
    height: 580px;
  }

  .mockup-glow {
    width: 270px;
    height: 480px;
  }

  .screen-switcher-bar {
    bottom: -50px;
    gap: 4px;
    padding: 4px 8px;
  }

  .switch-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .portfolio-grid, .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .estimator-wrapper {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .features-check-grid {
    grid-template-columns: 1fr;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .modal-container {
    max-height: 85vh;
  }

  .modal-header {
    padding: 1.75rem 1.5rem 1rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .option-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-display {
    font-size: 2.2rem;
  }
}

@media (max-width: 360px) {
  .iphone-frame {
    transform: scale(0.88);
    transform-origin: center top;
  }

  .hero-mockup-wrapper {
    height: 520px;
  }
}

