/* ==================================================================================
   PORTFOLIO STYLESHEET — MATCHING MHRRONY.COM PATTERN & STRUCTURE
   Owner: MD Maruf Khan — Fullstack Web Developer & Bug Bounty Hunter
   Typography: Orbitron (Headings), Exo 2 (Body), JetBrains Mono (Code/Mono)
   Color System: Dynamic Accent Switcher + Dark / Light Modes
================================================================================== */

/* Local Fonts */
@font-face {
  font-family: "Orbitron";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/orbitron-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/orbitron-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/orbitron-latin-900-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Exo 2";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/exo-2-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Exo 2";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/exo-2-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Exo 2";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/exo-2-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ==========================================================================
   CSS VARIABLES & THEME DEFINITIONS
   ========================================================================== */
:root {
  --primary: #00d2d3;
  --primary-rgb: 0, 210, 211;
  --primary-hover: #00b4b5;
  --primary-glow: rgba(0, 210, 211, 0.4);

  --f-heading: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", monospace;
  --f-script: "Brush Script MT", "Segoe Script", "Pacifico", cursive, sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

/* Dark Theme (Pure Black Default - matches user requirement & screenshot) */
[data-bs-theme="dark"],
:root {
  color-scheme: dark;
  --bg-body: #000000;
  --bg-surface: #06070a;
  --bg-card: rgba(10, 13, 18, 0.82);
  --bg-card-hover: rgba(18, 22, 30, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(var(--primary-rgb), 0.55);

  --text-primary: #f0f3f6;
  --text-secondary: #9da7b3;
  --text-muted: #6e7781;

  --dot-color: rgba(var(--primary-rgb), 0.12);
  --header-bg: rgba(0, 0, 0, 0.88);
  --header-border: rgba(255, 255, 255, 0.06);
  --dropdown-bg: #0c0f14;

  --sun-shadow: 0 0 50px rgba(var(--primary-rgb), 0.35);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Light Theme */
[data-bs-theme="light"] {
  color-scheme: light;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(var(--primary-rgb), 0.6);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --dot-color: rgba(var(--primary-rgb), 0.2);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(0, 0, 0, 0.06);
  --dropdown-bg: #ffffff;

  --sun-shadow: 0 0 40px rgba(var(--primary-rgb), 0.4);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dotted Background (Iconic mhrrony.com aesthetic) */
.dotted-background {
  background-image: radial-gradient(circle, var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  background-position: 0 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: var(--bg-body);
  background-image: radial-gradient(circle, var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.text-loader {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  display: flex;
  gap: 0.15em;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.text-loader span {
  display: inline-block;
  animation: preloaderBounce 1.4s infinite ease-in-out;
}

.text-loader span:nth-child(1) {
  animation-delay: 0.0s;
}

.text-loader span:nth-child(2) {
  animation-delay: 0.1s;
}

.text-loader span:nth-child(3) {
  animation-delay: 0.2s;
}

.text-loader span:nth-child(4) {
  animation-delay: 0.3s;
}

.text-loader span:nth-child(5) {
  animation-delay: 0.4s;
}

.text-loader span:nth-child(6) {
  animation-delay: 0.5s;
}

.text-loader span:nth-child(7) {
  animation-delay: 0.6s;
}

.text-loader span:nth-child(8) {
  animation-delay: 0.7s;
}

.text-loader span:nth-child(9) {
  animation-delay: 0.8s;
}

.text-loader span:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes preloaderBounce {

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

  40% {
    transform: translateY(-16px);
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 25px var(--primary);
  }
}

/* ==========================================================================
   CONTAINER & LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  padding-right: clamp(1rem, 3vw, 1.75rem);
}

.section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
}

/* Section Header (Matches mhrrony.com heading structure) */
.section-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  display: inline-block;
}

.heading-title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.heading-separator {
  width: 3px;
  height: 40px;
  background-color: var(--primary);
  margin: 0 auto;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--primary-glow);
  display: block;
}

/* Typography Helpers */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.heading-font {
  font-family: var(--f-heading);
}

.mono-font {
  font-family: var(--f-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: #0b0d10;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #0b0d10;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  padding: 1.1rem 0;
  background-color: transparent;
}

.header.is-sticky {
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  padding: 0.75rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: var(--f-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

/* Primary Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
  font-weight: 500;
  font-size: 1.02rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-primary);
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown-item:hover {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.08);
  padding-left: 1.5rem;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.4rem 0;
}

/* Nav Actions (Socials + Theme Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn,
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.social-icon-btn:hover,
.theme-toggle-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Fiverr Active Pulse Dot */
.pulse-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #09b850;
  border-radius: 50%;
  border: 2px solid var(--bg-body);
}

.pulse-badge::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #09b850;
  animation: pulseDot 1.8s infinite ease-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

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

/* Mobile Hamburger Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
  z-index: 1005;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-list a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* ==========================================================================
   HERO & SOLAR SYSTEM SECTION (mhrrony.com Signature)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(80px + 2rem);
  padding-bottom: 4rem;
  position: relative;
}

.hero-subtitle-top {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

.hero-col-left {
  text-align: right;
}

.hero-col-right {
  text-align: left;
}

.hero-title-role {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* SOLAR SYSTEM CONTAINER */
.solar-system-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Sun / Portrait */
.sun {
  position: relative;
  z-index: 10;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--sun-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sun:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px var(--primary);
}

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

/* Orbits */
.orbit {
  position: absolute;
  border: 1px dashed rgba(var(--primary-rgb), 0.25);
  border-radius: 50%;
  animation: rotate linear infinite;
  pointer-events: none;
}

.orbit-1 {
  width: 265px;
  height: 265px;
  animation-duration: 20s;
}

.orbit-2 {
  width: 295px;
  height: 295px;
  animation-duration: 25s;
}

.orbit-3 {
  width: 325px;
  height: 325px;
  animation-duration: 30s;
}

.orbit-4 {
  width: 350px;
  height: 350px;
  animation-duration: 22s;
  animation-direction: reverse;
}

.orbit-5 {
  width: 375px;
  height: 375px;
  animation-duration: 27s;
  animation-direction: reverse;
}

.orbit-6 {
  width: 405px;
  height: 405px;
  animation-duration: 33s;
  animation-direction: reverse;
}

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

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

/* Orbiting Planets / Tech Icons */
.planet {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  pointer-events: all;
  cursor: pointer;
}

/* Planet Styles */
.planet-python {
  background: rgba(55, 118, 171, 0.15);
  border: 2px solid #3776ab;
  color: #ffd43b;
}

.planet-python:hover {
  transform: translateX(-50%) scale(1.35);
  background: #3776ab;
  color: #fff;
  box-shadow: 0 0 25px #3776ab;
}

.planet-node {
  background: rgba(51, 153, 51, 0.15);
  border: 2px solid #339933;
  color: #339933;
}

.planet-node:hover {
  transform: translateX(-50%) scale(1.35);
  background: #339933;
  color: #fff;
  box-shadow: 0 0 25px #339933;
}

.planet-js {
  background: rgba(247, 223, 30, 0.15);
  border: 2px solid #f7df1e;
  color: #f7df1e;
}

.planet-js:hover {
  transform: translateX(-50%) scale(1.35);
  background: #f7df1e;
  color: #000;
  box-shadow: 0 0 25px #f7df1e;
}

.planet-react {
  background: rgba(97, 218, 251, 0.15);
  border: 2px solid #61dafb;
  color: #61dafb;
}

.planet-react:hover {
  transform: translateX(-50%) scale(1.35);
  background: #61dafb;
  color: #000;
  box-shadow: 0 0 25px #61dafb;
}

.planet-database {
  background: rgba(71, 162, 72, 0.15);
  border: 2px solid #47a248;
  color: #47a248;
}

.planet-database:hover {
  transform: translateX(-50%) scale(1.35);
  background: #47a248;
  color: #fff;
  box-shadow: 0 0 25px #47a248;
}

.planet-shield {
  background: rgba(220, 53, 69, 0.15);
  border: 2px solid #dc3545;
  color: #dc3545;
}

.planet-shield:hover {
  transform: translateX(-50%) scale(1.35);
  background: #dc3545;
  color: #fff;
  box-shadow: 0 0 25px #dc3545;
}

/* Giant Signature Display Name */
.hero-signature-name {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.logo-script {
  font-family: "Brush Script MT", "Segoe Script", "Pacifico", cursive, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffc107;
  letter-spacing: 0.02em;
  text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.grok-style-text {
  font-family: var(--f-heading);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: transparent !important;
  -webkit-text-stroke: 1.5px var(--primary);
  text-stroke: 1.5px var(--primary);
  filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.45));
  white-space: nowrap;
  line-height: 1.05;
}

/* Floating WhatsApp Quick Contact Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 85px;
  right: 26px;
  width: 48px;
  height: 48px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 991;
  transition: var(--transition);
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Vertical Scroll Down Arrow Indicator */
.scroll-down-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3.5rem;
  text-decoration: none;
}

.scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 2px;
  animation: scrollDownPulse 2s infinite ease-in-out;
}

@keyframes scrollDownPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  50.1% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ==========================================================================
   ABOUT SECTION & COUNTERS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.about-intro-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.about-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
}

.about-body-text {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Counters Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-number {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.25;
  font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION (Numbered Cards 01-06)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px var(--primary-glow);
}

.service-number {
  font-family: var(--f-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.service-card:hover .service-number {
  color: var(--primary);
  opacity: 0.65;
  transform: scale(1.05);
}

.service-title {
  font-family: var(--f-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.service-link:hover {
  letter-spacing: 0.03em;
}

/* ==========================================================================
   PROJECTS / PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--f-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #0b0d10;
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

/* Project Card & Hover Scroll (mhrrony signature) */
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 280px;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.project-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 3.5s cubic-bezier(0.2, 0, 0.3, 1);
}

/* Smooth Image Scroll Effect */
.project-card:hover .project-image-wrapper img {
  transform: translateY(calc(-100% + 280px));
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.project-title {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-category {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.project-tag {
  font-size: 0.75rem;
  font-family: var(--f-mono);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   CLIENT SPEAK / TESTIMONIALS SECTION
   ========================================================================== */
.testimonial-container {
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  position: relative;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.testimonial-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  border: 3px solid var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.testimonial-role {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
}

/* Client Logos Infinite Ticker */
.client-logos-ticker {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: tickerSlide 26s linear infinite;
}

@keyframes tickerSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--f-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.client-logo-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   JOURNEY / TIMELINE SECTION
   ========================================================================== */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
  border-left: 2px dashed rgba(var(--primary-rgb), 0.35);
  list-style: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: translateX(-50%);
}

.timeline-time {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.badge-current {
  background: rgba(9, 184, 80, 0.2);
  color: #09b850;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.35rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--f-body);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover,
.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.65rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.35rem;
}

/* ==========================================================================
   "LET'S TALK" CALLOUT BANNER
   ========================================================================== */
.talk-banner {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.talk-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.talk-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  object-fit: cover;
}

.talk-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info-title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item-val {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  color: #09b850;
}

.form-status.error {
  display: block;
  color: #dc3545;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2.5rem 0;
  text-align: center;
  position: relative;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 1.05rem;
}

.footer-social-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

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

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

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #0b0d10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 990;
  cursor: pointer;
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* ==========================================================================
   COLOR SWITCHER WIDGET (mhrrony.com Signature)
   ========================================================================== */
.styles-switcher {
  position: fixed;
  top: 140px;
  left: -210px;
  width: 210px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1002;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px);
}

.styles-switcher.active {
  left: 0;
}

.switcher-title {
  font-family: var(--f-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.color-dot:hover,
.color-dot.active {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Palette Swatches */
.dot-yellow {
  background-color: #ffc107;
}

.dot-cyan {
  background-color: #0dcaf0;
}

.dot-blue {
  background-color: #0d6efd;
}

.dot-purple {
  background-color: #6f42c1;
}

.dot-indigo {
  background-color: #6610f2;
}

.dot-green {
  background-color: #198754;
}

.dot-teal {
  background-color: #20c997;
}

.dot-red {
  background-color: #dc3545;
}

.dot-pink {
  background-color: #d63384;
}

.dot-orange {
  background-color: #fd7e14;
}

.switcher-toggle-btn {
  position: absolute;
  top: 0;
  right: -42px;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.switcher-toggle-btn:hover {
  color: var(--primary);
}

.switcher-toggle-btn svg {
  animation: rotateGear 6s linear infinite;
}

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

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

/* ==========================================================================
   MODALS (PRIVACY & TERMS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--f-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-content {
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-content h4 {
  font-family: var(--f-heading);
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199px) {
  .solar-system-container {
    width: 340px;
    height: 340px;
  }

  .sun {
    width: 180px;
    height: 180px;
  }

  .orbit-1 {
    width: 220px;
    height: 220px;
  }

  .orbit-2 {
    width: 250px;
    height: 250px;
  }

  .orbit-3 {
    width: 275px;
    height: 275px;
  }

  .orbit-4 {
    width: 295px;
    height: 295px;
  }

  .orbit-5 {
    width: 315px;
    height: 315px;
  }

  .orbit-6 {
    width: 340px;
    height: 340px;
  }

  .planet {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-col-left,
  .hero-col-right {
    text-align: center;
  }

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

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

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

@media (max-width: 767px) {
  .solar-system-container {
    width: 290px;
    height: 290px;
  }

  .sun {
    width: 155px;
    height: 155px;
  }

  .orbit-1 {
    width: 190px;
    height: 190px;
  }

  .orbit-2 {
    width: 215px;
    height: 215px;
  }

  .orbit-3 {
    width: 235px;
    height: 235px;
  }

  .orbit-4 {
    width: 255px;
    height: 255px;
  }

  .orbit-5 {
    width: 272px;
    height: 272px;
  }

  .orbit-6 {
    width: 290px;
    height: 290px;
  }

  .planet {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

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

  .grok-style-text {
    font-size: 2.6rem;
    white-space: normal;
  }
}