:root {
  --bg: #07111f;
  --bg-2: #0d1628;
  --text: #e8eefc;
  --muted: #9fb0d2;
  --stroke: rgba(255,255,255,.12);
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.12);
  --accent: #73f0ff;
  --accent-2: #8b5cf6;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

html {
  scroll-behavior: smooth;
}

body.futuristic-body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(115,240,255,.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(139,92,246,.18), transparent 25%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 14px 14px;
  z-index: 1;
}

.frontend-flash-stack {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1006;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
}

.frontend-flash {
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.frontend-flash-success {
  background: linear-gradient(135deg, rgba(19, 144, 104, .92), rgba(24, 210, 110, .82));
}

.frontend-flash-error {
  background: linear-gradient(135deg, rgba(184, 42, 74, .94), rgba(237, 60, 13, .84));
}

#header,
main,
footer,
#hero {
  position: relative;
  z-index: 2;
}

.section-space {
  padding: 90px 0;
}

.glass-panel,
.futuristic-card,
.header-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.futuristic-header {
  position: fixed !important;
  top: 18px;
  left: 0;
  width: 100%;
  padding: 0;
  background: transparent !important;
  z-index: 1005 !important;
}

#header.futuristic-header.header-scrolled {
  padding: 0;
  background: transparent !important;
}

.header-glass {
  border-radius: 22px;
  padding: 14px 22px;
}

.futuristic-logo {
  color: #fff;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(115,240,255,.22), rgba(139,92,246,.32));
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 800;
}

.logo-text {
  font-weight: 700;
  letter-spacing: .02em;
}

#navbar a {
  color: rgba(255,255,255,.82);
}

#navbar a:hover,
#navbar .active {
  color: #fff;
}

/* =========================
   HERO
========================= */

.futuristic-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-inner {
  width: 100%;
}

.hero-row {
  min-height: calc(100vh - 200px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.2));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.2));
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .5;
  z-index: 1;
}

.orb-1 {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -60px;
  background: rgba(115,240,255,.28);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: 8%;
  background: rgba(139,92,246,.28);
}

.hero-panel {
  border-radius: 28px;
  padding: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(115,240,255,.08);
  border: 1px solid rgba(115,240,255,.18);
}

.hero-title,
.section-title,
.panel-title,
.w-title,
.s-title,
.title-left,
.title-a {
  color: #fff !important;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .95;
  font-weight: 800;
}

.hero-lead {
  color: #dbe7ff;
  font-size: 1.1rem;
  max-width: 56ch;
}

.hero-subtitle,
.section-copy,
.futuristic-text,
.subtitle-a {
  color: var(--muted) !important;
}

.hero-stats {
  border-radius: 28px;
  padding: 26px;
  display: grid;
  gap: 18px;
  height: fit-content;
}

.floating-card {
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.stat-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  color: var(--muted);
}

.btn-glow,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  transition: .35s ease;
  text-decoration: none;
}

.btn-glow {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), #c9fbff);
  box-shadow: 0 10px 30px rgba(115,240,255,.25);
}

.btn-glow:hover {
  transform: translateY(-3px);
  color: #07111f;
}

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

.btn-ghost:hover {
  color: #fff;
  transform: translateY(-3px);
  background: rgba(255,255,255,.11);
}

/* =========================
   GENERAL PANELS
========================= */

.profile-card,
.about-copy-card,
.contact-panel,
.copyright-box {
  border-radius: 28px;
  padding: 32px;
}

.profile-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.modern-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}

.modern-list span {
  color: #a5b7da;
}

.modern-list strong {
  color: #fff;
  text-align: right;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 14px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

.section-intro {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.futuristic-card {
  border-radius: 26px;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.futuristic-card:hover {
  transform: translateY(-10px);
  border-color: rgba(115,240,255,.35);
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}

.work-img-wrap {
  overflow: hidden;
}

.project-slider-wrap,
.project-card-slider {
  position: relative;
}

.project-card-slider .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin-top: 0;
}

.project-card-slider .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.5);
}

.project-card-slider .swiper-pagination-bullet-active {
  background-color: #fff;
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .7s ease;
}

.futuristic-card:hover .portfolio-image {
  transform: scale(1.08);
}

.work-content {
  padding: 24px;
}

.project-pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--accent);
  background: rgba(115,240,255,.08);
  border: 1px solid rgba(115,240,255,.18);
}

.w-more,
.s-description,
.counter-text,
.contact-list li,
.copyright {
  color: var(--muted);
}

.service-box {
  padding: 30px 24px;
  text-align: center;
}

.ico-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(115,240,255,.14), rgba(139,92,246,.18));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: none !important;
}

.section-counter {
  margin: 30px 0;
  padding: 70px 0;
  background: transparent;
}

.section-counter .overlay-mf {
  background: linear-gradient(135deg, rgba(115,240,255,.08), rgba(139,92,246,.12));
  opacity: 1;
}

.counter-box {
  text-align: center;
  padding: 24px;
}

.counter {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
}

.contact-section {
  padding-top: 40px;
}

.futuristic-input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}

.futuristic-input:focus {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(115,240,255,.45);
  box-shadow: 0 0 0 .25rem rgba(115,240,255,.12);
}

.futuristic-input::placeholder {
  color: #a0b4d8;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list i {
  color: var(--accent);
}

.futuristic-socials .ico-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.futuristic-footer {
  padding: 0 0 50px;
}

.back-to-top {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .futuristic-header {
    top: 12px;
  }

  .futuristic-hero {
    min-height: auto;
    padding: 120px 0 70px;
    align-items: flex-start;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-panel,
  .hero-stats,
  .profile-card,
  .about-copy-card,
  .contact-panel,
  .copyright-box {
    padding: 24px;
  }

  .hero-stats {
    margin-top: 6px;
    animation: none;
  }

  .header-glass {
    border-radius: 18px;
  }

  .logo-text {
    display: none;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .frontend-flash-stack {
    top: 82px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .futuristic-header {
    top: 10px;
  }

  .futuristic-hero {
    min-height: auto;
    padding: 105px 0 55px;
  }

  .hero-content,
  .hero-inner {
    width: 100%;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.02;
  }

  .hero-lead {
    font-size: .98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .hero-actions .btn-glow,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .hero-stats {
    padding: 18px;
    border-radius: 22px;
    gap: 12px;
    margin-top: 0;
  }

  .stat-item {
    padding: 14px;
    border-radius: 16px;
  }

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

  .section-space {
    padding: 70px 0;
  }

  #about.section-space {
    padding-top: 55px;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .modern-list p {
    flex-direction: column;
  }

  .orb-1 {
    width: 180px;
    height: 180px;
    left: -50px;
    top: 8%;
  }

  .orb-2 {
    width: 210px;
    height: 210px;
    right: -70px;
    bottom: 10%;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .futuristic-header {
    top: 8px;
  }

  .futuristic-hero {
    padding: 98px 0 48px;
  }

  .hero-panel,
  .hero-stats {
    padding: 18px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .eyebrow {
    font-size: .72rem;
    letter-spacing: .09em;
    padding: 7px 12px;
  }

  .btn-glow,
  .btn-ghost {
    min-height: 48px;
    padding: 0 18px;
  }
  /* ===== FINAL MOBILE HERO OVERRIDE ===== */

#hero.futuristic-hero {
  height: auto !important;
  min-height: 100vh !important;
  display: block !important;
  padding: 130px 0 80px !important;
  overflow: hidden !important;
}

#hero.futuristic-hero .hero-shell {
  position: relative !important;
  z-index: 2 !important;
}

#hero.futuristic-hero .row {
  min-height: auto !important;
}

#hero.futuristic-hero .hero-panel,
#hero.futuristic-hero .hero-stats {
  position: relative !important;
  z-index: 2 !important;
}

#about {
  position: relative !important;
  z-index: 3 !important;
  margin-top: 0 !important;
}

.about-mf,
.sect-pt4,
.route,
.section-space {
  margin-top: 0 !important;
}

@media (max-width: 991px) {
  #hero.futuristic-hero {
    height: auto !important;
    min-height: auto !important;
    padding: 120px 0 70px !important;
  }

  #hero.futuristic-hero .hero-stats {
    margin-top: 18px !important;
    animation: none !important;
  }
}

@media (max-width: 767px) {
  #hero.futuristic-hero {
    height: auto !important;
    min-height: auto !important;
    padding: 105px 0 110px !important;
  }

  #hero.futuristic-hero .container {
    position: relative !important;
  }

  #hero.futuristic-hero .hero-panel {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  #hero.futuristic-hero .hero-stats {
    padding: 18px !important;
    border-radius: 22px !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }

  #hero.futuristic-hero .stat-item {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #hero.futuristic-hero .stat-value {
    font-size: 1.6rem !important;
  }

  #hero.futuristic-hero .hero-title {
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
  }

  #hero.futuristic-hero .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #hero.futuristic-hero .hero-actions .btn-glow,
  #hero.futuristic-hero .hero-actions .btn-ghost {
    width: 100% !important;
  }

  #about {
    padding-top: 60px !important;
  }
}

@media (max-width: 480px) {
  #hero.futuristic-hero {
    padding: 95px 0 120px !important;
  }

  #hero.futuristic-hero .hero-title {
    font-size: 2.1rem !important;
  }

  #hero.futuristic-hero .hero-panel,
  #hero.futuristic-hero .hero-stats {
    padding: 18px !important;
  }

  #about {
    padding-top: 70px !important;
  }
}
/* ===== FINAL MOBILE NAV FIX ===== */

.futuristic-navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.futuristic-navbar > ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.futuristic-navbar a {
  text-decoration: none;
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
}

.futuristic-navbar a:hover,
.futuristic-navbar .active,
.futuristic-navbar li:hover > a {
  color: #fff !important;
}

.mobile-nav-toggle {
  color: #fff !important;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 1;
}

/* desktop */
@media (min-width: 992px) {
  .futuristic-navbar > ul {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .futuristic-navbar li {
    position: relative;
  }

  .futuristic-navbar a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .futuristic-navbar a:hover,
  .futuristic-navbar .active {
    background: rgba(255,255,255,.08);
  }
}

/* mobile */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block !important;
    z-index: 1002;
    position: relative;
  }

  .futuristic-navbar > ul {
    display: none !important;
  }

  .navbar-mobile {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    padding: 80px 16px 24px !important;
    background: rgba(4, 8, 20, 0.72) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto !important;
    z-index: 1000 !important;
  }

  .navbar-mobile > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(38,44,77,.92), rgba(27,31,61,.92)) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 24px !important;
    padding: 18px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.35) !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  .navbar-mobile li {
    width: 100% !important;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover > a {
    color: #07111f !important;
    background: linear-gradient(135deg, var(--accent), #c9fbff) !important;
    border-color: transparent !important;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: absolute !important;
    top: 26px !important;
    right: 22px !important;
    color: #fff !important;
    font-size: 30px !important;
    z-index: 1003 !important;
  }

  #header.futuristic-header {
    z-index: 1001 !important;
  }

  .header-glass {
    position: relative;
    z-index: 1002;
  }
}
/* ===== TABLET RESPONSIVE FIX ===== */

.hero-shell {
  width: 100%;
}

.hero-main-row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-main-row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #hero.futuristic-hero {
    padding: 120px 0 70px !important;
    min-height: auto !important;
    height: auto !important;
  }

  #hero.futuristic-hero .hero-shell {
    max-width: 100% !important;
  }

  .hero-main-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-panel,
  .hero-stats {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-panel {
    padding: 30px !important;
    border-radius: 24px !important;
  }

  .hero-stats {
    padding: 22px !important;
    border-radius: 24px !important;
    margin-top: 0 !important;
    animation: none !important;
  }

  .hero-title {
    font-size: 3.2rem !important;
    line-height: 1.05 !important;
  }

  .hero-lead {
    font-size: 1.05rem !important;
    max-width: 100% !important;
  }

  .hero-actions {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .hero-actions .btn-glow,
  .hero-actions .btn-ghost {
    min-width: 190px;
  }
}
/* ===== GLOBAL TABLET WIDTH IMPROVEMENT ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .section-space {
    padding: 80px 0 !important;
  }

  .profile-card,
  .about-copy-card,
  .contact-panel,
  .futuristic-card,
  .copyright-box {
    width: 100% !important;
  }

  .row.g-4 > [class*="col-"],
  .row.gy-4 > [class*="col-"] {
    width: 100%;
  }
}
}
