/* =============================================
   RESET & ROOT VARIABLES
============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

:root {
  /* BACKGROUND */
  --bg-primary: #0A0E17;
  --bg-secondary: #0D1421;

  /* SURFACE / ELEVATION */
  --surface-1: #111826;
  --surface-2: #161F30;
  --surface-3: #1C2740;

  /* BRAND ACCENT */
  --accent-orange: #FF7A32;
  --accent-orange-hover: #FF8F52;
  --accent-orange-soft: rgba(255, 122, 50, 0.12);
  --accent-orange-glow: rgba(255, 122, 50, 0.18);

  /* TEXT */
  --text-primary: #F5F2ED;
  --text-secondary: #B8C0CC;
  --text-muted: #7F8A99;
  --text-disabled: #4F5865;

  /* BORDERS */
  --border-subtle: rgba(245, 242, 237, 0.06);
  --border-default: rgba(245, 242, 237, 0.08);
  --border-strong: rgba(245, 242, 237, 0.14);

  /* SEMANTIC COLOURS */
  --success: #4ADE80;
  --warning: #FBBF24;
  --error: #F87171;
  --info: #60A5FA;

  /* SHADOWS */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.20);
  --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.28);

  --fh: 'Exo 2', sans-serif;
  --fb: 'Barlow', sans-serif;
  --r: 25px;
  --t: 0.3s ease;
}

/* =============================================
   UTILITY
============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.accent {
  color: var(--accent-orange);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: var(--fh);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Section divider — center circle with lines (inspired by Image 1) */
.sec-div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.sec-div::before,
.sec-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.sec-div-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* Marquee band */
.marquee-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 0.55rem 0;
  overflow: hidden;
}

.marquee-band marquee {
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Back to top */
.btt {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  transform: translateY(10px);
}

.btt.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btt:hover {
  background: var(--accent-orange-hover);
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-default);
  transition: padding var(--t);
  border-radius: 0 0 30px 30px;


}

.navbar.slim {
  padding: 0.6rem 5%;
}

.logo {
  font-family: var(--fh);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--t);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-orange);
}

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

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--t);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   GREYBOX NAVBAR CTA
============================================= */

.nav-links .nav-greybox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  padding: 0.65rem 0.9rem;
  margin-left: 0.2rem;

  /* NORMAL = TRANSPARENT */
  color: var(--accent-orange);
  background: transparent;
  border: 1px solid var(--accent-orange);
  border-radius: 50px;

  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;

  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;

  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.nav-links .nav-greybox-btn::after {
  display: none;
}

/* CURSOR HOVER = ORANGE */
.nav-links .nav-greybox-btn:hover {
  color: #000;
  background: var(--accent-orange);
  border-color: var(--accent-orange);

  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(255, 126, 0, 0.25);
}

.nav-links .nav-greybox-btn i {
  font-size: 0.7rem;
}


/* =============================================
   MOBILE GREYBOX CTA
============================================= */

.mob-nav .mob-greybox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  width: 100%;
  box-sizing: border-box;

  margin-top: 0.85rem;
  padding: 0.75rem 1rem;

  /* NORMAL = TRANSPARENT */
  color: var(--accent-orange);
  background: transparent;
  border: 1px solid var(--accent-orange);
  border-radius: 50px;

  font-family: var(--fh);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;

  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;

  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.mob-nav .mob-greybox-btn::after {
  display: none;
}

/* HOVER / TOUCH = ORANGE */
.mob-nav .mob-greybox-btn:hover {
  color: #000;
  background: var(--accent-orange);
  border-color: var(--accent-orange);

  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(255, 126, 0, 0.25);
}

.mob-nav .mob-greybox-btn i {
  font-size: 0.75rem;
}


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

@media (max-width: 480px) {

  .mob-nav .mob-greybox-btn {
    width: 100%;
    max-width: 100%;

    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }

}


/* =============================================
   VERY SMALL DEVICES
============================================= */

@media (max-width: 360px) {

  .mob-nav .mob-greybox-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }

}


/* Mobile nav */
.mob-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.99);
  border-bottom: 1px solid var(--border-default);
  padding: 1.5rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}

.mob-nav.open {
  display: flex;
}

.mob-nav a {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--t), padding-left var(--t);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mob-nav a:hover {
  color: var(--accent-orange);
  padding-left: 0.75rem;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 5% 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  /* background-image: url('../assert/project_image/shadow_blue.jpeg'); */
  background-image: url('../assert/project_image/background.png');

  /* Indha 3 lines dynamic-a fit panni tharum */
  background-size: cover;
  /* Screen full-a fill aagum, cut aagaadhu */
  background-position: center;
  /* Image center position-il irukkum */
  background-repeat: no-repeat;
  /* Image thirumba thirumba repeat aagaadhu */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 14, 23, 0.95) 35%, rgba(10, 14, 23, 0.2) 80%),
    linear-gradient(to top, rgba(10, 14, 23, 0.85) 0%, transparent 10%);
  z-index: 1;
}

/* Background glow blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange-soft) 0%, transparent 65%);
  /* background-image: url('assert/project_image/full_logo.png'); */
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange-soft) 0%, transparent 65%);
  /* background-image: url('/Maran_portfolio/assert/project_image/full_logo.png');  */
  pointer-events: none;
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-left {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--border-subtle);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

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

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

.hero-name {
  font-family: var(--fh);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 0.6rem;
}

.hero-name span {
  color: var(--accent-orange);
}

.hero-role {
  font-family: var(--fh);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1.25rem;
}

/* STATIC */

.static-text {

  color: var(--text-primary);
}

/* TYPING */

.typing-text {

  color: var(--accent-orange);

  position: relative;
}

/* CURSOR */

.typing-text::after {

  content: '';

  position: absolute;

  right: -8px;

  top: 50%;

  transform:
    translateY(-50%);

  width: 2px;

  height: 1.1em;

  background: var(--accent-orange);

  animation:
    blink 0.7s infinite;
}

/* BLINK */

@keyframes blink {

  50% {
    opacity: 0;
  }
}


.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Stat counters (inspired by Image 5 Foliar) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-n {
  font-family: var(--fh);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-orange);
  display: block;
  line-height: 1;
}

.stat-l {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: block;
  margin-top: 0.2rem;
}

.hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hbtn {
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.8rem 1.7rem;
  border-radius: 25px;
  letter-spacing: 0.06em;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  text-transform: uppercase;
}

.hbtn-pri {
  background: var(--accent-orange);
  color: var(--bg-primary);
  border: 2px solid var(--accent-orange);
}

.hbtn-pri:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  transform: translateY(-2px);
}

.hbtn-sec {
  background: transparent;
  color: var(--accent-orange);
  border: 2px solid var(--border-default);
}

.hbtn-sec:hover {
  background: var(--accent-orange-soft);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 0.7rem;
}

.hero-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--t);
}

.hero-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
  transform: translateY(-3px);
}

/* Profile image with rings (inspired by Image 11) */
.hero-right {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--accent-orange);
  position: relative;
  z-index: 3;
}

.ring {
  position: absolute;
  border-radius: 50%;
}

.ring-a {
  width: 310px;
  height: 310px;
  border: 1.5px solid var(--border-default);
  z-index: 2;
}

.ring-b {
  width: 362px;
  height: 362px;
  border: 1px dashed var(--border-default);
  z-index: 1;
  animation: spinRing 14s linear infinite;
}

.ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

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

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

.img-badge {
  position: absolute;
  bottom: 62px;
  right: 12px;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.72rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  white-space: nowrap;
}

/* =============================================
   HERO PROFILE HUD — decorative layers only
============================================= */
.profile-hud {
  width: clamp(280px, 30vw, 390px);
  height: auto;
  aspect-ratio: 1;
  isolation: isolate;
  --hud-outer-x: 0px;
  --hud-outer-y: 0px;
  --hud-inner-x: 0px;
  --hud-inner-y: 0px;
}

.profile-hud .profile-img {
  width: 70%;
  height: 70%;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 122, 50, 0.12), 0 0 50px rgba(255, 122, 50, 0.06);
  z-index: 3;
  transition: box-shadow 400ms ease;
}

.profile-hud:hover .profile-img {
  box-shadow: 0 0 26px rgba(255, 122, 50, 0.18), 0 0 56px rgba(255, 122, 50, 0.08);
}

.hud-motion,
.hud-ring,
.hud-ticks,
.hud-orbit,
.hud-status {
  position: absolute;
  pointer-events: none;
}

.hud-motion {
  inset: 0;
  z-index: 1;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hud-motion-outer {
  transform: translate(var(--hud-outer-x), var(--hud-outer-y));
}

.hud-motion-inner {
  transform: translate(var(--hud-inner-x), var(--hud-inner-y));
}

.hud-ring {
  border-radius: 50%;
}

.hud-ring-inner {
  inset: 10.5%;
  border: 1px solid rgba(245, 242, 237, 0.14);
}

.hud-ring-dashed {
  inset: 3%;
  border: 1px dashed rgba(184, 192, 204, 0.28);
  animation: hudSpinReverse 30s linear infinite;
}

.hud-ring-segments {
  inset: -8%;
  background: repeating-conic-gradient(from 12deg, rgba(184, 192, 204, 0.32) 0deg 1deg, transparent 1deg 15deg);
  -webkit-mask: radial-gradient(transparent 67%, #000 68% 70%, transparent 71%);
  mask: radial-gradient(transparent 67%, #000 68% 70%, transparent 71%);
  animation: hudSpin 22s linear infinite;
}

.hud-ring-outer {
  inset: -15%;
  border: 1px solid rgba(184, 192, 204, 0.12);
}

.hud-ring-outer::before,
.hud-ring-outer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.hud-ring-outer::before {
  inset: -1px;
  border-top-color: var(--accent-orange);
  border-right-color: rgba(255, 122, 50, 0.45);
  transform: rotate(34deg);
  animation: hudActivePulse 3.2s ease-in-out infinite;
}

.hud-ring-outer::after {
  inset: 5%;
  border-bottom-color: rgba(184, 192, 204, 0.24);
  transform: rotate(-72deg);
}

.hud-ticks {
  inset: -15%;
  width: 130%;
  height: 130%;
  animation: hudSpin 22s linear infinite;
}

.hud-ticks circle {
  fill: none;
  transform-origin: center;
  transform: rotate(-90deg);
}

.hud-ticks-base {
  stroke: rgba(184, 192, 204, 0.38);
  stroke-width: 0.55;
  stroke-dasharray: 1 5.05;
}

.hud-ticks-active {
  stroke: var(--accent-orange);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 5 72 3 62 4 143;
  animation: hudActivePulse 3.2s ease-in-out infinite;
}

.hud-orbit {
  inset: -9%;
  z-index: 4;
  animation: hudOrbit 13s linear infinite;
}

.hud-orbit span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 122, 50, 0.42);
  transform: translate(-50%, -50%);
}

.hud-orbit-two {
  inset: 0;
  animation-duration: 16s;
  animation-direction: reverse;
}

.hud-orbit-two span {
  width: 5px;
  height: 5px;
  background: rgba(245, 242, 237, 0.72);
  box-shadow: none;
}

.hud-status {
  top: 12%;
  left: -9%;
  z-index: 4;
  padding: 0.34rem 0.48rem 0.34rem 0.58rem;
  border-left: 2px solid rgba(255, 122, 50, 0.72);
  border-radius:25px;
  
  background: rgba(10, 14, 23, 0.48);
  color: var(--text-muted);
  font-family: var(--fh);
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  
}

.hud-status span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: hudActivePulse 3.2s ease-in-out infinite;
}

.hud-status b {
  color: var(--text-secondary);
  font-size: 0.54rem;
}

.profile-hud .img-badge {
  bottom: 7%;
  right: -4%;
  z-index: 5;
}

@keyframes hudSpin {
  to { transform: rotate(360deg); }
}

@keyframes hudSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes hudOrbit {
  to { transform: rotate(360deg); }
}

@keyframes hudActivePulse {
  50% { opacity: 0.56; }
}

/* =============================================
   ABOUT SECTION
============================================= */
.about-sec {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

/* .about-sec{background:url(/Maran_portfolio/assert/project_image/wall_blue.jpeg);padding:5rem 0;} */
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border-default);
  position: relative;
  z-index: 2;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: calc(100% - 16px);
  max-width: 320px;
  height: calc(100% - 16px);
  border: 1.5px solid var(--border-default);
  border-radius: 16px;
  z-index: 1;
  bottom: -16px;
  right: -16px;
  width: auto;
}

.about-tag {
  position: absolute;
  bottom: -10px;
  right: 0;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.32rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 3;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.25rem;
}

.about-text h3 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

/* ROLE ANIMATION */

#changing-role {

  display: inline-block;

  position: relative;

  animation:
    fadeRole 0.5s ease;
}

/* FADE */

@keyframes fadeRole {

  from {

    opacity: 0;

    transform:
      translateY(10px);
  }

  to {

    opacity: 1;

    transform:
      translateY(0px);
  }
}

.about-text p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

.about-text strong {
  color: var(--text-primary);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.acard {
  background: var(--surface-1);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  transition: var(--t);
}

.acard:hover {
  background: var(--surface-2);
  box-shadow: -3px 0 14px var(--shadow-soft);
}

.acard h4 {
  font-family: var(--fh);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.acard p {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

/* Abstract portrait treatment — isolated to the About photo module. */
.about-portrait-module {
  width: min(100%, 410px);
  min-height: 500px;
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
  --about-back-x: 0px;
  --about-back-y: 0px;
  --about-ribbon-x: 0px;
  --about-ribbon-y: 0px;
  --about-photo-x: 0px;
  --about-photo-y: 0px;
}

.about-portrait-module::before {
  content: none;
}

.about-blob-motion,
.about-blob-outline,
.about-tech-grid,
.about-tech-label,
.about-signature {
  position: absolute;
  pointer-events: none;
}

.about-blob-motion {
  inset: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-blob-motion-back {
  transform: translate(var(--about-back-x), var(--about-back-y));
  z-index: 0;
}

.about-blob-motion-ribbon {
  transform: translate(var(--about-ribbon-x), var(--about-ribbon-y));
  z-index: 1;
}

.about-blob-back,
.about-blob-ribbon,
.about-blob-outline {
  position: absolute;
  inset: 5% -7% 1% -8%;
  border-radius: 44% 56% 39% 61% / 53% 35% 65% 47%;
}

.about-blob-back {
  background: linear-gradient(145deg, rgba(28, 39, 64, 0.98), rgba(10, 14, 23, 0.9));
  border: 1px solid rgba(245, 242, 237, 0.09);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), inset 0 1px rgba(245, 242, 237, 0.04);
  animation: aboutBlobFloat 9s ease-in-out infinite;
}

.about-blob-ribbon {
  inset: 0 2% 7% -9%;
  border-radius: 60% 40% 63% 37% / 38% 57% 43% 62%;
  background: linear-gradient(135deg, transparent 25%, rgba(255, 122, 50, 0.1) 42%, rgba(255, 122, 50, 0.9) 53%, rgba(217, 91, 32, 0.56) 63%, transparent 79%);
  filter: drop-shadow(0 14px 26px rgba(255, 122, 50, 0.12));
  transform: rotate(-13deg);
  animation: aboutRibbonFloat 10s ease-in-out infinite;
}

.about-blob-outline {
  inset: 8% -5% 0 -5%;
  z-index: 1;
  border: 1px solid rgba(255, 122, 50, 0.45);
  border-left-color: transparent;
  border-bottom-color: rgba(245, 242, 237, 0.12);
  border-radius: 37% 63% 55% 45% / 61% 40% 60% 39%;
  transform: rotate(14deg);
}

.about-photo-motion {
  position: relative;
  z-index: 3;
  width: 82%;
  margin: 0 auto;
  padding-top: 2.5rem;
  transform: translate(var(--about-photo-x), var(--about-photo-y));
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 237, 0.14);
  border-radius: 28px;
  background: var(--surface-1);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 400ms ease;
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  border-right-color: rgba(255, 122, 50, 0.9);
  border-bottom-color: rgba(255, 122, 50, 0.5);
  pointer-events: none;
}

.about-portrait-module .about-img {
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.about-tech-grid {
  right: -3%;
  bottom: 10%;
  z-index: 2;
  width: 115px;
  height: 115px;
  opacity: 0.56;
  background-image: radial-gradient(circle, var(--accent-orange) 1px, transparent 1.5px);
  background-size: 15px 15px;
}

.about-tech-label {
  top: 16%;
  right: -10%;
  z-index: 4;
  color: var(--text-muted);
  font-family: var(--fh);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-tech-label span {
  color: var(--text-secondary);
}

.about-tech-label i {
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--accent-orange);
}

.about-signature {
  bottom: 6%;
  left: -1%;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-family:  "Corinthia", cursive;
  
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.about-portrait-module .about-tag {
  right: -1%;
  bottom: 6%;
  z-index: 5;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
}

.about-portrait-module:hover .about-photo-frame {
  transform: translateY(-2px);
  box-shadow: 0 27px 56px rgba(0, 0, 0, 0.4);
}

.about-portrait-module:hover .about-photo-frame::after {
  border-right-color: var(--accent-orange-hover);
  border-bottom-color: var(--accent-orange);
}

/* =============================================
   BEYOND CODE — BOOKS & GREY BOX
============================================= */
.beyond-sec {
  position: relative;
  overflow: hidden;
  padding: 5.8rem 0;
  background: var(--bg-primary);
}

.beyond-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: linear-gradient(rgba(184, 192, 204, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 192, 204, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
}

.beyond-decor,
.beyond-decor span {
  position: absolute;
  pointer-events: none;
}

.beyond-decor { inset: 0; }
.beyond-decor::before {
  content: '';
  position: absolute;
  right: -7%;
  top: 14%;
  width: 46%;
  height: 72%;
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 50% 40% 55% 42%;
  transform: rotate(-16deg);
}
.beyond-decor::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: -35%;
  width: 55%;
  height: 70%;
  border: 1px solid rgba(255, 122, 50, 0.15);
  border-radius: 50%;
}
.beyond-decor span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-orange); box-shadow: 0 0 10px rgba(255, 122, 50, 0.35); animation: beyondParticle 12s ease-in-out infinite; }
.beyond-decor span:nth-child(1) { top: 20%; left: 10%; }
.beyond-decor span:nth-child(2) { top: 68%; right: 12%; animation-delay: -4s; }
.beyond-decor span:nth-child(3) { top: 38%; right: 28%; animation-delay: -8s; }

.beyond-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.beyond-title { margin-bottom: 2rem; }
.beyond-kicker { display: block; margin-bottom: 0.45rem; color: var(--accent-orange); font-family: var(--fh); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.beyond-title small { display: block; max-width: 580px; margin: 0.65rem auto 0; color: var(--text-muted); font-size: 0.8rem; }

.beyond-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.beyond-card { display: flex; flex-direction: column; min-height: 545px; padding: 1.75rem; overflow: hidden; border: 1px solid rgba(245, 242, 237, 0.08); border-radius: 24px; background: radial-gradient(circle at 87% 13%, rgba(255, 122, 50, 0.08), transparent 34%), radial-gradient(circle at 12% 88%, rgba(79, 70, 229, 0.07), transparent 42%), rgba(17, 24, 38, 0.72); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(25px); transition: opacity 700ms ease-out, transform 400ms ease-out, border-color 400ms ease-out, box-shadow 400ms ease-out; }
.beyond-card.reveal { opacity: 1; transform: translateY(0); }
.beyond-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 50, 0.24); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); }
.beyond-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; color: var(--text-secondary); font-family: var(--fh); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.beyond-card-head span i { margin-right: 0.45rem; color: var(--accent-orange); }
.beyond-card-head b { color: var(--text-muted); font-size: 0.7rem; }
.book-content, .greybox-content { display: grid; grid-template-columns: 38% 1fr; flex: 1; gap: 1.35rem; align-items: center; }
.book-cover-placeholder { position: relative; display: grid; place-items: center; width: 100%; max-width: 190px; aspect-ratio: 2 / 3; margin: 0 auto; overflow: hidden; border: 1px solid rgba(245, 242, 237, 0.13); border-radius: 7px 13px 13px 7px; background: linear-gradient(145deg, #1c2740, #0d1421); box-shadow: -10px 14px 28px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 122, 50, 0.08); color: var(--accent-orange); animation: bookFloat 8s ease-in-out infinite; }
.book-cover-placeholder::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255, 122, 50, 0.28); border-radius: 3px 8px 8px 3px; }
.book-cover-image { position: absolute; inset: 0; z-index: 1; display: none; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.book-cover-image[src]:not([src=""]) { display: block; }
.book-cover-image[src]:not([src=""]) + .book-cover-fallback { display: none; }
.book-cover-fallback { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.book-cover-fallback i { font-size: 2.1rem; }
.book-cover-fallback span { margin-top: 0.8rem; color: var(--text-secondary); font-family: var(--fh); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.6; text-align: center; text-transform: uppercase; }
.book-info{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;height:100%}.feature-label{margin:0 0 1.15rem;color:var(--accent-orange);font-family:var(--fh);font-size:.66rem;font-weight:700;line-height:1;letter-spacing:.12em;text-transform:uppercase}
.book-info h3{margin:0 0 .75rem;color:var(--text-primary);font-family:var(--fh);font-size:1.45rem;font-weight:800;line-height:1.18;letter-spacing:-.025em;max-width:520px}
.book-subtitle{margin:0 0 1rem;padding:0;color:var(--text-secondary);font-size:.83rem;line-height:1.65;max-width:520px;text-align:left;text-indent:0}.feature-desc{margin:0 0 1rem;padding:0;color:var(--text-secondary);font-size:.79rem;line-height:1.6;letter-spacing:.01em;max-width:520px;text-align:left}
.feature-tags{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:0 0 1.15rem;max-width:520px}.feature-tags span{display:inline-flex;align-items:center;min-height:30px;padding:.3rem .58rem;border:1px solid rgba(245,242,237,.08);border-radius:999px;background:rgba(245,242,237,.04);color:var(--text-secondary);font-size:.61rem;line-height:1;white-space:nowrap}
.feature-tags span { padding: 0.28rem 0.52rem; border: 1px solid rgba(245, 242, 237, 0.08); border-radius: 999px; background: rgba(245, 242, 237, 0.04); color: var(--text-secondary); font-size: 0.61rem; }
.beyond-primary, .beyond-secondary { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 42px; padding: 0.62rem 0.95rem; border-radius: 25px; font-family: var(--fh); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: var(--t); }
.beyond-primary { background: var(--accent-orange); color: var(--bg-primary); }
.beyond-secondary { border: 1px solid rgba(255, 122, 50, 0.6); color: var(--accent-orange); }
.beyond-primary:hover { background: var(--accent-orange-hover); transform: translateY(-2px); }
.beyond-secondary:hover { background: var(--accent-orange); color: var(--bg-primary); transform: translateY(-2px); }
.beyond-primary i, .beyond-secondary i { transition: transform var(--t); }
.beyond-primary:hover i, .beyond-secondary:hover i { transform: translateX(3px); }
.greybox-info { display:flex;flex-direction:column;height:100%; }
.greybox-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; padding: 1rem; border: 1px solid rgba(245, 242, 237, 0.08); border-radius: 16px; background: rgba(10, 14, 23, 0.48); text-align: center; transition: transform var(--t), border-color var(--t); }
.greybox-card:hover .greybox-visual { transform: scale(1.02); border-color: rgba(255, 122, 50, 0.2); }
.greybox-mark { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 0.7rem; overflow: hidden; border: 0.85px solid rgba(245, 242, 237, 0.15); border-radius: 12px; background: rgba(17, 24, 38, 0.7); }
.greybox-mark img { width: 100%; height: 100%; object-fit: contain; padding: 0.3rem; border-radius: 25px; }
.greybox-visual strong { color: var(--text-primary); font-family: var(--fh); font-size: 0.88rem; text-transform: uppercase; }
.greybox-visual span { margin-top: 0.35rem; color: var(--text-muted); font-family: var(--fh); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.services-label { margin: 1rem 0 0.65rem;}
.service-list {  display: flex; flex-direction: column; gap: 0.48rem;width: 100%;}
.service-list > div {  display: flex; align-items: center; gap: 0.6rem; min-height: 30px;width: 100%;}
.service-list > div > i { display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid rgba(255,122,50,.2);border-radius:7px;background:rgba(255,122,50,.06);color:var(--accent-orange);font-size:.65rem; }.service-list p { margin: 0; }
.service-list strong, .service-list span { display: block; }
.service-list strong { color: var(--text-primary); font-size: 0.72rem; line-height: 1.2; }
.service-list span { margin-top: 0; color: var(--text-muted); font-size: 0.7rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.greybox-actions { margin-top: auto; padding-top: 1rem; }
.service-list > div { display:flex;align-items:flex-start;gap:.6rem;width:100%;min-width:0; }
.service-list > div > p { flex:1;min-width:0;margin:0;overflow:hidden; }
.service-list > div > p strong { display:block;color:var(--text-primary);font-size:.72rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.service-list > div > p span { display:block;margin-top:.12rem;color:var(--text-muted);font-size:.63rem;line-height:1.35;white-space:normal;overflow:hidden;text-overflow:ellipsis; }
@keyframes bookFloat { 50% { transform: translateY(-5px); } }
@keyframes beyondParticle { 50% { opacity: 0.5; transform: translateY(-5px); } }
@media(max-width:768px){.service-list > div > p strong,.service-list > div > p span{white-space:normal;}.service-list > div > p span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}}
@media (max-width: 1023px) {
  .beyond-card { min-height: 570px; padding: 1.4rem; }
  .book-content, .greybox-content { grid-template-columns: 35% 1fr; gap: 1rem; }
  .book-cover-placeholder { max-width: 155px; }
}

@media (max-width: 768px) {
  .beyond-sec { padding: 4.5rem 0; }
  .beyond-grid { grid-template-columns: 1fr; }
  .beyond-card { min-height: auto; }
}

@media (max-width: 480px) {
  .beyond-inner { padding: 0 6%; }
  .beyond-title { margin-bottom: 2rem; }
  .beyond-title small { font-size: 0.73rem; }
  .beyond-card { padding: 1.25rem; border-radius: 20px; }
  .book-content, .greybox-content { grid-template-columns: 1fr; }
  .book-cover-placeholder { max-width: 170px; margin: 0 auto 0.2rem; }
  .book-info, .greybox-info { text-align: center; }
  .feature-tags { justify-content: center; }
  .beyond-primary { margin: 0 auto; }
  .greybox-visual { min-height: 165px; }
  .service-list { text-align: left; }
  .greybox-actions .beyond-secondary { width: 100%; justify-content: center; }
  .beyond-decor { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .beyond-card, .book-cover-placeholder, .beyond-decor span, .beyond-primary, .beyond-secondary, .greybox-visual {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.book-route-placeholder {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-primary);
  text-align: center;
}

.book-route-placeholder p { margin: 0; color: var(--accent-orange); font-family: var(--fh); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.book-route-placeholder h1 { margin: 0 0 0.5rem; color: var(--text-primary); font-family: var(--fh); }
.book-route-placeholder .beyond-primary { justify-self: center; }

/* Subtle technical grid: Education through Contact keeps each section's own background. */
.tl-sec,
.skills-sec,
.proj-sec,
.cert-sec,
.contact-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tl-sec::before,
.skills-sec::before,
.proj-sec::before,
.contact-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 192, 204, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Dotted curves add a quiet AI/technical flow over the grid. */
.tl-sec::after,
.skills-sec::after,
.proj-sec::after,
.contact-sec::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-50 470 C180 330 290 580 530 410 S870 200 1250 90' fill='none' stroke='%23FF7A32' stroke-opacity='.34' stroke-width='1.2' stroke-dasharray='1 9' stroke-linecap='round'/%3E%3Cpath d='M-30 160 C210 40 370 310 610 185 S955 65 1240 215' fill='none' stroke='%23B8C0CC' stroke-opacity='.2' stroke-width='1' stroke-dasharray='1 11' stroke-linecap='round'/%3E%3C/svg%3E") center / cover no-repeat;
}

/* Slightly warmer grid in the main navy sections; cooler grid in secondary navy sections. */
.tl-sec.bg-main::before,
.proj-sec::before,
.contact-sec::before {
  background-image:
    linear-gradient(rgba(255, 122, 50, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.028) 1px, transparent 1px);
}

/* Certification already uses both pseudo-elements for ambient glows, so its grid lives on the section background. */
.cert-sec {
  background-image:
    linear-gradient(rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-50 470 C180 330 290 580 530 410 S870 200 1250 90' fill='none' stroke='%23FF7A32' stroke-opacity='.22' stroke-width='1.2' stroke-dasharray='1 9' stroke-linecap='round'/%3E%3Cpath d='M-30 160 C210 40 370 310 610 185 S955 65 1240 215' fill='none' stroke='%23B8C0CC' stroke-opacity='.16' stroke-width='1' stroke-dasharray='1 11' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 48px 48px, 48px 48px, cover;
  background-position: center;
  background-repeat: repeat, repeat, no-repeat;
}

.tl-sec > .container,
.skills-sec > .sk-inner,
.proj-sec > .proj-inner,
.cert-sec > .cert-inner,
.contact-sec > .contact-grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .tl-sec::before,
  .skills-sec::before,
  .proj-sec::before,
  .contact-sec::before {
    background-size: 34px 34px;
    opacity: 0.72;
  }

  .cert-sec {
    background-size: 34px 34px;
  }
}

/* Kept last so the certification card section's base background cannot override its grid. */
.cert-sec {
  background-image:
    linear-gradient(rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-50 470 C180 330 290 580 530 410 S870 200 1250 90' fill='none' stroke='%23FF7A32' stroke-opacity='.22' stroke-width='1.2' stroke-dasharray='1 9' stroke-linecap='round'/%3E%3Cpath d='M-30 160 C210 40 370 310 610 185 S955 65 1240 215' fill='none' stroke='%23B8C0CC' stroke-opacity='.16' stroke-width='1' stroke-dasharray='1 11' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 48px 48px, 48px 48px, cover;
  background-position: center;
  background-repeat: repeat, repeat, no-repeat;
}

@media (max-width: 480px) {
  .cert-sec { background-size: 34px 34px, 34px 34px, cover; }
}

@keyframes aboutBlobFloat {
  50% { transform: translateY(-6px) rotate(-7deg) scale(1.04); }
}

@keyframes aboutRibbonFloat {
  50% { transform: translateY(-5px) rotate(-11deg); }
}

/* =============================================
   TIMELINE (EDUCATION + EXPERIENCE)
============================================= */
.tl-sec {
  padding: 5rem 0;
}

.tl-sec.bg-alt {
  background: var(--bg-secondary);
}

/* .tl-sec{background:url(/Maran_portfolio/assert/project_image/wall_blue.jpeg);padding:5rem 0;} */
.tl-sec.bg-main {
  background: var(--bg-primary);
}

.tl-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5%;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.52rem;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange) 0%, var(--border-default) 70%, transparent 100%);
  border-radius: 2px;
}

.ti {
  position: relative;
  margin-bottom: 1.9rem;
}

.ti:last-child {
  margin-bottom: 0;
}

.ti::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 1.6rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--accent-orange-glow);
  z-index: 10;
  pointer-events: none;
  animation: timelinePulse 3s ease-in-out infinite;

  
}

.tc {
  position: relative;
  z-index: 1;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(255, 122, 50, 0.075),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018),
      transparent 42%
    ),
    var(--surface-1);

  border: 1px solid rgba(245, 242, 237, 0.065);
  border-left: 3px solid var(--accent-orange);

  border-radius: 0 var(--r) var(--r) 0;

  padding: 1.4rem 1.7rem;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);

  transition:
    transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 400ms ease,
    box-shadow 400ms ease,
    background 500ms ease;
}

.tc::after {
  content: '';
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 88% 0%,
      rgba(255, 122, 50, 0.11),
      transparent 34%
    );

  opacity: 0;
  transform: translateX(20px);

  transition:
    opacity 500ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);

  z-index: -1;
  pointer-events: none;
}

.tc:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.tc:hover {
  transform: translateY(-4px);

  border-color: rgba(255, 122, 50, 0.28);

  box-shadow:
    -5px 0 24px rgba(255, 122, 50, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.tc::before {
  content: '';
  position: absolute;

  top: -1px;
  left: -20%;
  width: 42%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 50, 0.55),
    transparent
  );

  filter: blur(0.4px);

  opacity: 0;
  transform: translateX(-20%);

  animation: tcAmbientLight 8s ease-in-out infinite;

  pointer-events: none;
  z-index: 2;
}

.tc:hover::before {
  opacity: 1;
}

@keyframes tcAmbientLight {
  0% {
    transform: translateX(-20%);
    opacity: 0;
  }

  25% {
    opacity: 0.75;
  }

  50% {
    transform: translateX(250%);
    opacity: 0.45;
  }

  75% {
    opacity: 0.18;
  }

  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

.tc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.tc-role h3 {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.22rem;
}

.tc-role h4 {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.tc-date {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--border-subtle);
  border: 1px solid var(--border-default);
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tc p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.7rem;
}

.tc ul {
  padding: 0;
}

.tc ul li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 0.28rem 0 0.28rem 1.2rem;
  position: relative;
  line-height: 1.6;
}

.tc ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 0.72rem;
  top: 0.38rem;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.9rem;
}

.tc-tags span {
  position: relative;

  font-family: var(--fb);
  font-size: 0.7rem;
  font-weight: 500;

  color: var(--accent-orange);

  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 50, 0.075),
      rgba(255, 255, 255, 0.018)
    );

  border: 1px solid rgba(245, 242, 237, 0.085);

  padding: 0.2rem 0.62rem;

  border-radius: 15px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    transform 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    background 300ms ease;
}

.tc-tags span:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 122, 50, 0.38);

  background: rgba(255, 122, 50, 0.10);

  box-shadow:
    0 5px 14px rgba(255, 122, 50, 0.08);
}

/* =============================================
   SKILLS SECTION
============================================= */
.skills-sec {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

/* .skills-sec{background:url(/Maran_portfolio/assert/project_image/wall_blue.jpeg);padding:5rem 0;} */
.sk-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.sk-cat {
  margin-bottom: 2.8rem;
}

.sk-cat:last-child {
  margin-bottom: 0;
}

.sk-cat-label {
  font-family: var(--fh);
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.sk-cat-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* Circle skill badges — clean same size (user requested) */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 1.2rem;
}

.sk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  cursor: default;
}

.sk-circ {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-orange);
  transition: var(--t);
  flex-shrink: 0;
}

.sk-item:hover .sk-circ {
  border-color: var(--accent-orange);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-soft);
}

.sk-lbl {
  font-family: var(--fb);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* Stack bundles */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem;
}

.s-card {
  background: var(--surface-1);
  border-radius: var(--r);
  padding: 1.2rem;
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--accent-orange);
  transition: var(--t);
}

.s-card:hover {
  background: var(--surface-2);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.s-card h4 {
  font-family: var(--fh);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}

.s-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.s-tags span {
  font-family: var(--fb);
  font-size: 0.72rem;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  padding: 0.18rem 0.58rem;
  border-radius: 4px;
}

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem;
}

.c-card {
  background: var(--surface-1);
  border-radius: var(--r);
  padding: 1.2rem;
  border: 1px solid var(--border-default);
  transition: var(--t);
}

.c-card:hover {
  border-color: var(--border-default);
}

.c-card h4 {
  font-family: var(--fh);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-default);
}

.c-card ul {
  padding: 0;
}

.c-card ul li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative;
  line-height: 1.5;
}

.c-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 0.68rem;
  top: 0.38rem;
}

/* =============================================
   PROJECTS SECTION
============================================= */
.proj-sec {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.proj-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.4rem;
}

.proj-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(255, 122, 50, 0.075),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.018),
      transparent 42%
    ),
    var(--surface-1);

  border: 1px solid rgba(245, 242, 237, 0.065);
  border-radius: var(--r);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);

  display: flex;
  flex-direction: column;

  transition:
    transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 400ms ease,
    box-shadow 450ms ease;
}

/* Moving ambient light */
.proj-card::before {
  content: '';
  position: absolute;

  top: 0;
  left: -35%;

  width: 38%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 50, 0.65),
    transparent
  );

  opacity: 0;

  animation: projectAmbientLight 9s ease-in-out infinite;

  pointer-events: none;
  z-index: 5;
}

/* Soft corner glow */
.proj-card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;

  width: 230px;
  height: 230px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 122, 50, 0.08),
    transparent 68%
  );

  opacity: 0.45;

  pointer-events: none;
  z-index: 0;
}

.proj-card:hover {
  transform: translateY(-7px);

  border-color: rgba(255, 122, 50, 0.28);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(255, 122, 50, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

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

@keyframes projectAmbientLight {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  20% {
    opacity: 0.65;
  }

  50% {
    transform: translateX(330%);
    opacity: 0.4;
  }

  75% {
    opacity: 0.12;
  }

  100% {
    transform: translateX(380%);
    opacity: 0;
  }
}
.proj-thumb {
  position: relative;
  height: 188px;
  overflow: hidden;

  background: var(--surface-2);

  border-bottom: 1px solid rgba(245, 242, 237, 0.055);
}

.proj-thumb::after {
  content: '';
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 255, 255, 0.035) 48%,
      transparent 70%
    );

  transform: translateX(-100%);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);

  pointer-events: none;
}

.proj-card:hover .proj-thumb::after {
  transform: translateX(100%);
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1);
  transition:
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 700ms ease;
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.055);
  filter: brightness(1.04) saturate(1.03);
}

.proj-thumb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 58%;

  background:
    linear-gradient(
      to top,
      var(--surface-1) 0%,
      rgba(17, 24, 38, 0.78) 28%,
      transparent 100%
    );

  pointer-events: none;
}

.proj-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 3;

  background:
    linear-gradient(
      135deg,
      var(--accent-orange),
      #ff914f
    );

  color: var(--bg-primary);

  font-family: var(--fh);
  font-size: 0.63rem;
  font-weight: 800;

  padding: 0.23rem 0.58rem;

  border-radius: 5px;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  box-shadow:
    0 5px 16px rgba(255, 122, 50, 0.18);

  transition:
    transform 300ms ease,
    box-shadow 300ms ease;
}

.proj-card:hover .proj-badge {
  transform: translateY(-2px);

  box-shadow:
    0 7px 20px rgba(255, 122, 50, 0.26);
}

.proj-body {
  position: relative;
  z-index: 2;

  padding: 1.35rem;

  flex: 1;

  display: flex;
  flex-direction: column;
}

.proj-title {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.proj-tag {
  font-size: 0.8rem;
  color: var(--accent-orange);
  margin-bottom: 0.7rem;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.33rem;
  margin-bottom: 0.7rem;
}

.proj-stack span {
  position: relative;

  font-family: var(--fb);
  font-size: 0.68rem;
  font-weight: 500;

  color: var(--accent-orange);

  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 50, 0.075),
      rgba(255, 255, 255, 0.018)
    );

  border: 1px solid rgba(245, 242, 237, 0.085);

  padding: 0.18rem 0.53rem;

  border-radius: 4px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    transform 300ms ease,
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 300ms ease;
}

.proj-stack span:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 122, 50, 0.35);

  background: rgba(255, 122, 50, 0.095);

  box-shadow:
    0 5px 13px rgba(255, 122, 50, 0.075);
}

.proj-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1.2rem;
  flex: 1;
}

.proj-btns {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pbtn {
  position: relative;
  overflow: hidden;

  font-family: var(--fh);
  font-size: 0.71rem;
  font-weight: 600;

  color: var(--accent-orange);

  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 50, 0.025),
      transparent
    );

  border: 1px solid rgba(245, 242, 237, 0.09);

  padding: 0.4rem 0.82rem;

  border-radius: 25px;

  transition:
    background 300ms ease,
    color 300ms ease,
    border-color 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;

  display: inline-flex;
  align-items: center;
  gap: 0.3rem;

  min-height: 36px;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pbtn:hover {
  background: var(--accent-orange);

  color: var(--bg-primary);

  border-color: var(--accent-orange);

  transform: translateY(-2px);

  box-shadow:
    0 7px 18px rgba(255, 122, 50, 0.16);
}

.pbtn i {
  transition: transform 300ms ease;
}

.pbtn:hover i {
  transform: translateX(2px);
}

.pbtn:hover {
  background: var(--accent-orange);
  color: var(--bg-primary);
  border-color: var(--accent-orange);
}
.proj-title {
  transition: color 300ms ease;
}

.proj-card:hover .proj-title {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {

  .proj-card,
  .proj-card::before,
  .proj-card::after,
  .proj-thumb img,
  .proj-thumb::after,
  .proj-badge,
  .proj-stack span,
  .pbtn,
  .pbtn i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

}
/* =============================================
   CERTIFICATIONS
============================================= */
.cert-sec {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.cert-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.2rem;
}

.ccard {
  background: var(--surface-1);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: var(--t);
}

.ccard:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
}

.ccard-img {
  height: 152px;
  overflow: hidden;
  background: var(--surface-2);
}

.ccard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ccard:hover .ccard-img img {
  transform: scale(1.05);
}

.ccard-body {
  padding: 1.2rem;
}

.ccard-body h3 {
  font-family: var(--fh);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.28rem;
  line-height: 1.3;
}

.ccard-body h4 {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--accent-orange);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.ccard-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 0.95rem;
}

.cbtn {
  font-family: var(--fh);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent-orange);
  padding: 0.43rem 0.95rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: var(--t);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 36px;
}

.cbtn:hover {
  background: var(--accent-orange-hover);
}

/* =============================================
   CONTACT SECTION
   (Inspired by Image 7: bold "GET IN TOUCH" + dark form)
============================================= */
.contact-sec {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ct-left h2 {
  font-family: var(--fh);
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.ct-left h2 em {
  display: block;
  font-style: normal;
  color: var(--accent-orange);
}

/* Dash line + subtitle */
.ct-dash {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.ct-dash-bar {
  width: 48px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.ct-dash p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Contact info list */
.ct-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.ct-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ct-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 0.92rem;
  flex-shrink: 0;
  transition: var(--t);
}

.ct-item:hover .ct-icon {
  background: var(--accent-orange-soft);
  border-color: var(--accent-orange);
}

.ct-txt h4 {
  font-family: var(--fh);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.12rem;
}

.ct-txt a,
.ct-txt p {
  font-size: 0.86rem;
  color: var(--text-primary);
  transition: color var(--t);
}

.ct-txt a:hover {
  color: var(--accent-orange);
}

/* Social row */
.ct-social {
  display: flex;
  gap: 0.65rem;
}

.ct-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--t);
}

.ct-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
}

/* Form box */
.ct-form {
  background: var(--surface-1);
  border-radius: var(--r);
  padding: 1.85rem;
  border: 1px solid var(--border-default);
}

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

.fg {
  margin-bottom: 1.05rem;
}

.fg label {
  display: block;
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.38rem;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  min-height: 60px;

  padding: 0 3rem 0 1.35rem;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #0D1421;
  color: var(--text-secondary);

  border: 1px solid rgba(245, 242, 237, 0.09);
  border-radius: 30px;

  font-family: var(--fb);
  font-size: 1rem;

  outline: none;
  cursor: pointer;

  transition:
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.fg textarea {
  min-height: 118px;
  resize: vertical;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--accent-orange);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--text-muted);
}

.fg select {
  background: rgba(10, 14, 23, 0.85);
  color: var(--text-secondary);
  cursor: pointer;
}

.fg select option {
  background: var(--surface-1);
}

.send-btn {
  width: 100%;
  font-family: var(--fh);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bg-primary);
  background: var(--accent-orange);
  border: none;
  border-radius: 25px;
  padding: 0.9rem;
  cursor: pointer;
  transition: var(--t);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  margin-top: 0.4rem;
}

.send-btn:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER
============================================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-default);
  padding: 3rem 5% 1.5rem;
}

.ft-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.ft-logo {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ft-logo span {
  color: var(--accent-orange);
}

.ft-role {
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.72rem;
}

.ft-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 1.65rem;
  line-height: 1.7;
}

.ft-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.ft-nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--t);
}

.ft-nav a:hover {
  color: var(--accent-orange);
}

.ft-social {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.65rem;
}

.ft-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: var(--t);
}

.ft-social a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-orange-soft);
}

.ft-hr {
  height: 1px;
  background: var(--surface-2);
  margin-bottom: 1.2rem;
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ft-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ft-loc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ft-quote {
  font-size: 0.78rem;
  color: var(--accent-orange);
  font-style: italic;
}

/* =============================================
   RESPONSIVE — Mobile-first
============================================= */

/* Mobile: ≤480px */
@media(max-width:480px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-wrap {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

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

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

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

  .hero-right {
    width: 240px;
    height: 240px;
  }

  .profile-img {
    width: 168px;
    height: 168px;
  }

  .ring-a {
    width: 194px;
    height: 194px;
  }

  .ring-b {
    width: 230px;
    height: 230px;
  }

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

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

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

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

  .ct-left h2 {
    font-size: 2.75rem;
    letter-spacing: -1px;
  }

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

  .ft-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sk-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* Keep the 4-per-row skill circles from crowding/overflowing on very
   narrow phones — shrink first, then drop to 3 columns if still tight. */
@media (max-width: 400px) {
  .sk-grid {
    gap: 0.8rem 0.6rem;
  }

  .sk-circ {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
  }
}

@media (max-width: 340px) {
  .sk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 481px–768px */
@media(min-width:481px) and (max-width:768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-wrap {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

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

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

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

  .hero-right {
    width: 300px;
    height: 300px;
  }

  .profile-img {
    width: 215px;
    height: 215px;
  }

  .ring-a {
    width: 246px;
    height: 246px;
  }

  .ring-b {
    width: 290px;
    height: 290px;
  }

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

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

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

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

  .ft-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Desktop: ≥1024px */
@media(min-width:1024px) {
  .hero-wrap {
    flex-direction: row ;
  }

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

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

/* Large: ≥1200px — extra breathing room */
@media(min-width:1200px) {
  html {
    font-size: 17px;
  }
}


/* CUSTOM CURSOR CSS */

/* MAIN CURSOR */

.cursor {
  position: fixed;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  pointer-events: none;
  z-index: 999999;

  transform: translate(-50%, -50%);

  backdrop-filter: blur(3px);

  background:
    radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.16),
      var(--accent-orange-soft));

  border:
    1.5px solid var(--border-default);

  box-shadow:
    0 0 12px var(--accent-orange-glow),
    inset 0 0 10px var(--border-subtle);

  animation: cursorPulse 2s infinite;
}

/* CENTER GLOW */

.cursor::before {
  content: '';

  position: absolute;

  top: 50%;
  left: 50%;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #FF6B2B;

  transform: translate(-50%, -50%);

  box-shadow:
    0 0 10px #FF6B2B,
    0 0 25px var(--accent-orange-glow);
}

/* OUTER ROTATE RING */

.cursor::after {
  content: '';

  position: absolute;

  inset: -8px;

  border-radius: 50%;

  border:
    1px dashed var(--border-default);

  animation: rotateRing 8s linear infinite;
}

/* PULSE */

@keyframes cursorPulse {

  0% {
    box-shadow:
      0 0 10px var(--accent-orange-soft);
  }

  50% {
    box-shadow:
      0 0 25px var(--accent-orange-glow);
  }

  100% {
    box-shadow:
      0 0 10px var(--accent-orange-soft);
  }
}

/* ROTATION */

@keyframes rotateRing {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
/* =============================================
   CUSTOM CURSOR - TOUCH DEVICE CONTROL
   ============================================= */

/* Desktop / Mouse devices
   → Custom cursor works normally
*/

/* Mobile / Tablet / Touch devices
   → Completely disable custom cursor
*/
@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

/* Extra protection for devices that don't support
   mouse hover at all */
@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

/* =========================================
   CERTIFICATE POPUP
========================================= */

.certificate-popup {

  position: fixed;

  inset: 0;

  background:
    rgba(10, 14, 23, 0.92);

  backdrop-filter:
    blur(12px);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 999999;

  opacity: 0;

  visibility: hidden;

  transition: 0.4s ease;
}

/* ACTIVE */

.certificate-popup.active {

  opacity: 1;

  visibility: visible;
}

/* =========================================
   IMAGE
========================================= */

.certificate-popup img {

  width: auto;

  height: auto;

  max-width: 90vw;

  max-height: 88vh;

  object-fit: contain;

  border-radius: 20px;

  box-shadow:

    0 0 40px var(--shadow-medium),

    0 0 80px rgba(0, 0, 0, 0.5);

  transform:
    scale(0.85);

  transition: 0.4s ease;
}

/* ACTIVE */

.certificate-popup.active img {

  transform:
    scale(1);
}

/* POPUP CONTAINER */

.certificate-popup {

  padding: 30px;

  overflow: auto;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.close-popup {

  position: absolute;

  top: 35px;
  right: 40px;

  width: 50px;
  height: 50px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 24px;

  color: white;

  cursor: pointer;

  background:
    var(--border-subtle);

  border:
    1px solid var(--border-default);

  backdrop-filter:
    blur(10px);

  transition: 0.3s ease;
}

/* HOVER */

.close-popup:hover {

  transform:
    rotate(90deg);

  background:
    var(--accent-orange-soft);

  color: var(--accent-orange);
}

/* Popup background overlay */
.certificate-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  /* Dark background */
  display: flex;
  align-items: center;
  /* Vertically center background */
  justify-content: center;
  /* Horizontally center background */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Active state to show popup */
.certificate-popup.active {
  opacity: 1;
  pointer-events: auto;
}

/* 🌟 VERTICAL IMAGE FIX IS HERE 🌟 */
#popupImage {
  max-width: 90%;
  /* Mobile screen width ulla adangum */
  max-height: 80vh;
  /* Vertical height cut aagama thadukum */
  width: auto;
  /* Aspect ratio maarathu */
  height: auto;
  /* Image stretch aagathu */
  object-fit: contain;
  /* Full image clear ah theriyum */
}

/* Close button style */
.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* MOBILE */

@media(max-width:768px) {

  .certificate-popup {

    padding: 15px;
  }

  .certificate-popup img {

    max-width: 95vw;

    max-height: 80vh;

    border-radius: 14px;
  }

  .close-popup {

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    font-size: 20px;
  }
}


/* =========================================
   CERTIFICATE POPUP LAYOUT
========================================= */

/* 1. Normal layout updates */
.certificate-popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  /* Dark backdrop for the popup */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Certificate image sizing */
.certificate-popup img {
  max-width: 90%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  -webkit-user-drag: auto;
  user-select: auto;
}

/* 3. INVISIBLE OVERLAY: absolute top image mela ukaara vaikanum */
.certificate-popup::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  /* Image size ku etha maari */
  height: 80vh;
  z-index: 10;
  /* Image-uku mela click thaduka */
  background: rgba(255, 255, 255, 0.001);
  /* Super transparent mask */
}

/* 4. WATERMARK PATTERN: Center-la mattum இல்லாம, cross lines full-ah repeat aagra maari grid pattern */
.certificate-popup::before {
  content: none;
  position: absolute;
  inset: -50%;
  transform: rotate(-25deg);
  font-size: 2.5rem;
  /* Chinna size, full screen full-ah varum */
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  /* Romba light ah background screen full-ah repeat aagum */
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 40px;
}

/* 5. Website-a yaravathu print (Ctrl+P) eduka try panna image vanish aagidnum */
/* Keep timeline content above its hover-fill layer. */
.tc > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {

  .tc,
  .tc::before,
  .tc::after,
  .tc-tags span,
  .ti::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

}
/* The animated role is inside an <ins>; remove its default underline. */
.hero-role ins {
  text-decoration: none;
}

/* Reconcile the legacy certificate-modal rules above into one stable state. */
.certificate-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.certificate-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.certificate-popup img,
#popupImage {
  width: auto;
  height: auto;
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.certificate-popup.active img {
  transform: scale(1);
}

/* Certificates remain fully interactive and printable. */
.certificate-popup::before,
.certificate-popup::after {
  content: none;
}

.close-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 11;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text-primary);
}

/* Make keyboard navigation visibly usable. */
a:focus-visible,
button:focus-visible,
.burger:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

/* Respect operating-system motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor {
    display: none;
  }
}

/* The former breakpoints skipped the 769–1023px range. */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
  }

  .hero-wrap,
  .about-grid,
  .contact-grid {
    gap: 2.5rem;
  }

  .hero-right {
    width: 300px;
    height: 300px;
  }

  .profile-img {
    width: 215px;
    height: 215px;
  }

  .ring-a {
    width: 246px;
    height: 246px;
  }

  .ring-b {
    width: 290px;
    height: 290px;
  }
}

/* Keep the HUD compact around the existing mobile profile size. */
@media (max-width: 768px) {
  .profile-hud .hud-ring-outer,
  .profile-hud .hud-ticks {
    inset: -9%;
  }

  .profile-hud .hud-ring-segments {
    inset: -4%;
  }

  .profile-hud .hud-status {
    display: none;
  }

  .profile-hud .hud-orbit-two {
    display: none;
  }

  .profile-hud .img-badge {
    right: -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-hud .hud-ring,
  .profile-hud .hud-ticks,
  .profile-hud .hud-orbit,
  .profile-hud .hud-status span {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .about-portrait-module {
    width: min(88vw, 360px);
    min-height: 440px;
  }

  .about-portrait-module .about-photo-motion {
    width: 80%;
    padding-top: 1.8rem;
  }

  .about-portrait-module .about-tech-label {
    display: none;
  }

  .about-portrait-module .about-tech-grid {
    width: 84px;
    height: 84px;
    right: 0;
  }

  .about-portrait-module .about-signature {
    left: 3%;
    bottom: 8%;
  }

  .about-portrait-module .about-tag {
    right: 1%;
    bottom: 8%;
    padding: 0.5rem 0.72rem;
  }
}

@media (max-width: 480px) {
  .about-portrait-module {
    min-height: 400px;
  }

  .about-portrait-module .about-blob-outline {
    display: none;
  }

  .about-portrait-module .about-tech-grid {
    width: 68px;
    height: 68px;
    background-size: 13px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait-module *,
  .about-portrait-module:hover .about-photo-frame {
    animation: none !important;
    transform: none !important;
  }
}

/* =============================================
   CREATIVE WAVE FOOTER — isolated footer redesign
============================================= */
.footer {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 5% 1.4rem;
  background:
    radial-gradient(circle at 80% 48%, rgba(255, 122, 50, 0.06), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(70, 60, 180, 0.05), transparent 35%),
    var(--bg-primary);
  border-top: 1px solid var(--border-default);
}

.footer-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-waves svg {
  width: 110%;
  height: 100%;
  margin-left: -5%;
  overflow: visible;
}

.wave {
  fill: none;
  stroke-width: 1.1;
  animation: footerWave 16s ease-in-out infinite;
}

.wave-indigo {
  stroke: rgba(93, 104, 184, 0.2);
  animation-duration: 18s;
}

.wave-purple {
  stroke: rgba(127, 91, 164, 0.17);
  animation-duration: 14s;
  animation-direction: reverse;
}

.wave-orange {
  stroke: rgba(255, 122, 50, 0.56);
  filter: drop-shadow(0 0 12px rgba(255, 122, 50, 0.18));
  animation-duration: 20s;
}

.wave-neutral {
  stroke: rgba(245, 242, 237, 0.11);
  animation-duration: 17s;
  animation-direction: reverse;
}

.footer-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 242, 237, 0.22);
  animation: footerParticle 11s ease-in-out infinite;
}

.footer-particles span:nth-child(1) { left: 8%; bottom: 19%; }
.footer-particles span:nth-child(2) { left: 17%; bottom: 39%; animation-delay: -4s; }
.footer-particles span:nth-child(3) { left: 28%; bottom: 12%; animation-delay: -8s; }
.footer-particles span:nth-child(4) { left: 39%; bottom: 31%; animation-delay: -2s; }
.footer-particles span:nth-child(5) { left: 57%; bottom: 17%; animation-delay: -6s; }
.footer-particles span:nth-child(6) { left: 68%; bottom: 43%; animation-delay: -9s; }
.footer-particles span:nth-child(7) { left: 79%; bottom: 24%; animation-delay: -3s; }
.footer-particles span:nth-child(8) { left: 90%; bottom: 44%; animation-delay: -7s; }
.footer-particles span:nth-child(9) { left: 47%; bottom: 52%; background: var(--accent-orange); box-shadow: 0 0 9px rgba(255, 122, 50, 0.36); }
.footer-particles span:nth-child(10) { left: 83%; bottom: 61%; background: var(--accent-orange); box-shadow: 0 0 9px rgba(255, 122, 50, 0.36); animation-delay: -5s; }

.ft-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.ft-main {
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 1.08fr;
  align-items: start;
}

.ft-brand,
.ft-links,
.ft-cta {
  min-height: 215px;
}

.ft-links,
.ft-cta {
  padding-left: clamp(1.5rem, 3vw, 3.3rem);
  border-left: 1px solid rgba(245, 242, 237, 0.07);
}

.ft-logo {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  line-height: 1.1;
}

.ft-role {
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.ft-desc {
  max-width: 310px;
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.7;
}

.ft-social {
  justify-content: flex-start;
  margin: 0;
}

.ft-social a {
  width: 42px;
  height: 42px;
}

.ft-links h2 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ft-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: 0.55rem 1.1rem;
  margin: 0;
}

.ft-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.ft-nav a::before {
  content: '→';
  color: var(--accent-orange);
  transition: transform var(--t);
}

.ft-nav a:hover {
  color: var(--text-primary);
}

.ft-nav a:hover::before {
  transform: translateX(4px);
}

.ft-quote {
  margin: -0.2rem 0 0.8rem;
  color: var(--text-primary);
  font-family: var(--fh);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.24;
}

.ft-quote-line {
  display: block;
  width: 38px;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--accent-orange);
}

.ft-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent-orange);
  border-radius: 999px;
  color: var(--accent-orange);
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t), transform var(--t);
}

.ft-work-btn i {
  transition: transform var(--t);
}

.ft-work-btn:hover {
  background: var(--accent-orange);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.ft-work-btn:hover i {
  transform: translateX(4px);
}

.ft-loc {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.ft-loc i {
  margin-right: 0.4rem;
  color: var(--accent-orange);
}

.ft-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(245, 242, 237, 0.07);
}

.ft-copy,
.ft-designed,
.ft-build {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.73rem;
}

.ft-designed {
  text-align: center;
}

.ft-designed strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ft-designed span {
  margin-left: 0.38rem;
  color: var(--accent-orange);
}

.ft-build {
  text-align: right;
}

@keyframes footerWave {
  50% { transform: translate(30px, -5px); }
}

@keyframes footerParticle {
  50% { opacity: 0.45; transform: translateY(-5px); }
}

/* =============================================
   FOOTER — RESPONSIVE ALIGNMENT
   Desktop design remains unchanged
============================================= */

@media (max-width: 768px) {

  .footer {
    padding: 3.5rem 6% 1.25rem;
  }

  .ft-inner {
    width: 100%;
    max-width: 100%;
  }

  /* Main footer becomes a clean vertical flow */
  .ft-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.75rem;
    width: 100%;
  }

  /* Remove desktop column separators */
  .ft-brand,
  .ft-links,
  .ft-cta {
    width: 100%;
    min-height: auto;
    padding-left: 0;
    border-left: 0;
  }

  /* Brand */
  .ft-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-logo {
    margin-bottom: 0.55rem;
  }

  .ft-role {
    margin-bottom: 0.8rem;
  }

  .ft-desc {
    max-width: 420px;
    margin-bottom: 1.25rem;
  }

  .ft-social {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  /* Quick Links */
  .ft-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-links h2 {
    margin-bottom: 0.95rem;
  }

  .ft-nav {
    width: 100%;
    max-width: 360px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.65rem 1.25rem;

    margin: 0;
  }

  .ft-nav a {
    min-width: 0;
    line-height: 1.45;
  }

  /* CTA / Quote */
  .ft-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-quote {
    max-width: 430px;
    margin: 0 0 0.85rem;

    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    line-height: 1.25;
  }

  .ft-quote-line {
    width: 38px;
    height: 2px;
    margin-bottom: 1.15rem;
  }

  .ft-work-btn {
    min-height: 44px;
    padding: 0.65rem 1rem;
  }

  .ft-loc {
    margin-top: 1rem;
    line-height: 1.5;
  }

  /* Bottom copyright area */
  .ft-bottom {
    display: grid;
    grid-template-columns: 1fr;

    justify-items: start;

    gap: 0.55rem;

    margin-top: 2.5rem;
    padding-top: 1.15rem;
  }

  .ft-copy,
  .ft-designed,
  .ft-build {
    width: 100%;
    text-align: left;
    line-height: 1.5;
  }

  /* Keep decorative waves behind content */
  .footer-waves {
    opacity: 0.65;
  }

  .footer-waves svg {
    width: 150%;
    margin-left: -25%;
  }

  /* Reduce decorative particles on mobile */
  .footer-particles span:nth-child(n + 7) {
    display: none;
  }
}


/* =============================================
   SMALL MOBILE — ≤480px
============================================= */

@media (max-width: 480px) {

  .footer {
    padding: 3rem 6% 1.15rem;
  }

  .ft-main {
    gap: 2.5rem;
  }

  .ft-logo {
    font-size: 1.45rem;
  }

  .ft-role {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
  }

  .ft-desc {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .ft-social a {
    width: 42px;
    height: 42px;
  }

  .ft-nav {
    width: 100%;
    max-width: 100%;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.65rem 0.85rem;
  }

  .ft-nav a {
    font-size: 0.76rem;
  }

  .ft-quote {
    font-size: 1.35rem;
    line-height: 1.28;
  }

  .ft-work-btn {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .ft-loc {
    font-size: 0.75rem;
  }

  .ft-bottom {
    gap: 0.5rem;
    margin-top: 2.25rem;
  }

  .ft-copy,
  .ft-designed,
  .ft-build {
    font-size: 0.7rem;
  }
}


/* =============================================
   VERY SMALL MOBILE — ≤360px
============================================= */

@media (max-width: 360px) {

  .footer {
    padding-left: 5.5%;
    padding-right: 5.5%;
  }

  .ft-main {
    gap: 2.25rem;
  }

  .ft-nav {
    gap: 0.6rem 0.7rem;
  }

  .ft-nav a {
    font-size: 0.72rem;
  }

  .ft-quote {
    font-size: 1.25rem;
  }

  .ft-work-btn {
    width: 100%;
    justify-content: center;
  }

  .ft-loc {
    font-size: 0.72rem;
  }

  .wave-indigo,
  .wave-purple,
  .footer-particles span:nth-child(n + 7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer .wave,
  .footer-particles span,
  .footer .ft-work-btn,
  .footer .ft-work-btn i,
  .footer .ft-nav a::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* About portrait proportion and layering polish. */
.about-portrait-module {
  width: min(100%, 440px);
  min-height: 535px;
}

.about-blob-back,
.about-blob-outline {
  inset: 3% -10% 2% -11%;
}

.about-blob-back {
  transform: rotate(-8deg) scale(1.04);
  animation-duration: 8s;
}

.about-blob-ribbon {
  inset: -1% -4% 8% -12%;
  background: linear-gradient(142deg, transparent 24%, rgba(255, 122, 50, 0.08) 38%, rgba(255, 122, 50, 0.76) 50%, rgba(217, 91, 32, 0.56) 61%, transparent 77%);
  filter: drop-shadow(0 0 18px rgba(255, 122, 50, 0.14));
}

.about-photo-motion {
  width: 82%;
  max-width: 380px;
  padding-top: 1.8rem;
}

.about-photo-frame {
  overflow: visible;
  border-radius: 24px;
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0.02), rgba(10, 14, 23, 0.16));
  pointer-events: none;
}

.about-portrait-module .about-img {
  position: relative;
  z-index: 0;
  border-radius: inherit;
  object-position: center 23%;
}

.about-tech-label {
  right: -5%;
  z-index: 2;
}

.about-tech-grid {
  right: -6%;
  bottom: 12%;
}

.about-signature {
  bottom: 11%;
  left: 0;
  z-index: 4;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.about-portrait-module .about-photo-frame .about-tag {
  position: absolute;
  right: -12px;
  bottom: -17px;
  z-index: 3;
  padding: 0.7rem 1rem;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.about-portrait-module:hover .about-blob-ribbon {
  filter: drop-shadow(0 0 22px rgba(255, 122, 50, 0.2));
}

@media (max-width: 768px) {
  .about-portrait-module {
    width: min(88vw, 390px);
    min-height: 485px;
  }

  .about-portrait-module .about-photo-motion {
    width: 80%;
    max-width: 330px;
  }

  .about-portrait-module .about-photo-frame .about-tag {
    right: -6px;
    bottom: -13px;
    padding: 0.58rem 0.78rem;
  }

  .about-portrait-module .about-signature {
    bottom: 10%;
  }
}

@media (max-width: 480px) {
  .about-portrait-module {
    width: min(86vw, 350px);
    min-height: 425px;
  }

  .about-portrait-module .about-photo-motion {
    width: 82%;
    max-width: 290px;
    padding-top: 1.4rem;
  }

  .about-portrait-module .about-signature {
    bottom: 7%;
    font-size: 1rem;
  }
}

/* =============================================
   CERTIFICATION CARDS — GRADIENT GLASS
============================================= */
.cert-sec {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cert-sec::before,
.cert-sec::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  animation: certAmbient 16s ease-in-out infinite;
}

.cert-sec::before {
  top: 8%;
  right: -14%;
  background: radial-gradient(circle, rgba(255, 122, 50, 0.08), transparent 67%);
}

.cert-sec::after {
  bottom: -20%;
  left: -12%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08), transparent 67%);
  animation-delay: -8s;
}

.cert-inner {
  position: relative;
  z-index: 1;
}

/* =============================================
   CERTIFICATION CARDS — RESPONSIVE SAFE
   Design preserved — layout only fixed
============================================= */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;

  /* Keep desktop visual height, but allow expansion */
  height: auto;
  min-height: 490px;

  overflow: hidden;
  border: 1px solid rgba(245, 242, 237, 0.09);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 122, 50, 0.1),
      transparent 35%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(79, 70, 229, 0.07),
      transparent 40%
    ),
    rgba(17, 24, 38, 0.65);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 400ms ease-out,
    border-color 400ms ease-out,
    box-shadow 400ms ease-out,
    background 400ms ease-out;
}

.ccard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.055),
    transparent 35%
  );
  pointer-events: none;
}

.ccard:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 50, 0.28);

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 122, 50, 0.14),
      transparent 37%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(79, 70, 229, 0.09),
      transparent 42%
    ),
    rgba(17, 24, 38, 0.72);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.ccard-top,
.ccard-body {
  position: relative;
  z-index: 1;
}

.ccard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* IMPORTANT: allows status to move to next line */
  flex-wrap: wrap;

  gap: 0.65rem 0.75rem;

  min-height: 42px;
  padding: 1.7rem 1.7rem 0;

  min-width: 0;
}

.ccard-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  min-height: 42px;
  min-width: 0;

  padding: 0 0.85rem;

  border: 1px solid rgba(245, 242, 237, 0.12);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);

  color: var(--text-secondary);

  font-family: var(--fh);
  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  white-space: nowrap;
}

.ccard-kind i,
.ccard-footer span i {
  color: var(--accent-orange);
}

.ccard-complete {
  display: inline-flex;
  align-items: center;

  gap: 0.35rem;

  color: var(--text-primary);
  font-size: 0.72rem;

  white-space: nowrap;

  /* Prevent flex shrinking/collision */
  flex-shrink: 0;
}

.ccard-complete::before {
  content: '';

  width: 6px;
  height: 6px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--accent-orange);

  box-shadow: 0 0 8px rgba(255, 122, 50, 0.34);
}

.ccard-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;

  padding: 1.1rem 1.7rem 1rem;
}

.ccard-body h3 {
  /* REMOVED fixed min-height */
  min-height: 0;

  margin-bottom: 0.45rem;

  color: var(--text-primary);

  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 750;

  line-height: 1.28;

  overflow-wrap: anywhere;
}

.ccard-body h4 {
  display: flex;
  align-items: flex-start;

  min-height: 0;

  margin-bottom: 0.65rem;

  color: var(--accent-orange);

  font-size: 0.86rem;
  font-weight: 600;

  line-height: 1.45;

  overflow-wrap: anywhere;
}

.ccard-body p {
  /* REMOVED fixed height */
  height: auto;
  min-height: 0;

  margin-bottom: 0.75rem;

  color: var(--text-secondary);

  font-size: 0.86rem;
  line-height: 1.7;

  overflow-wrap: anywhere;
}

.ccard-tags {
  /* REMOVED fixed min-height */
  min-height: 0;

  display: flex;
  flex-wrap: wrap;

  gap: 0.42rem;

  margin-bottom: 0.75rem;

  min-width: 0;
}

.ccard-tags span {
  max-width: 100%;

  padding: 0.32rem 0.58rem;

  border: 1px solid rgba(245, 242, 237, 0.07);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.045);

  color: var(--text-secondary);

  font-size: 0.66rem;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.ccard-footer {
  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 0.75rem;

  margin-top: auto;
  padding-top: 0.75rem;

  border-top: 1px solid rgba(245, 242, 237, 0.08);

  color: var(--text-secondary);

  font-size: 0.74rem;

  min-width: 0;
}

.ccard-footer span {
  display: inline-flex;
  align-items: center;

  gap: 0.45rem;

  min-width: 0;

  overflow-wrap: anywhere;
}

/* =============================================
   TABLET — 481px to 1023px
============================================= */

@media (min-width: 481px) and (max-width: 1023px) {

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .ccard {
    /*
      No fixed height.
      Each card can grow naturally based on wrapped content.
    */
    min-height: 0;
  }

  .ccard-top {
    padding: 1.5rem 1.5rem 0;
  }

  .ccard-body {
    padding: 1rem 1.5rem 1.15rem;
  }
}

/* =============================================
   MOBILE — ≤480px
============================================= */

@media (max-width: 480px) {

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

  .ccard {
    width: 100%;
    min-height: 0;
  }

  .ccard-top {
    padding: 1.35rem 1.35rem 0;

    /*
      When width becomes very small,
      badge and completed status can safely wrap.
    */
    row-gap: 0.65rem;
  }

  .ccard-body {
    padding: 1.15rem 1.35rem 1.35rem;
  }

  .ccard-body h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .ccard-body h4 {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .ccard-body p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .ccard-tags {
    gap: 0.4rem;
  }

  .ccard-tags span {
    font-size: 0.64rem;
  }

  .ccard-footer {
    align-items: flex-start;
  }

  .ccard-footer span {
    line-height: 1.45;
  }
}

/* =============================================
   VERY SMALL DEVICES — ≤360px
============================================= */

@media (max-width: 360px) {

  .ccard-top {
    padding: 1.15rem 1.1rem 0;
  }

  .ccard-body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .ccard-kind {
    font-size: 0.57rem;
    padding: 0 0.7rem;
  }

  .ccard-complete {
    font-size: 0.68rem;
  }

  .ccard-body h3 {
    font-size: 1rem;
  }

  .ccard-body h4 {
    font-size: 0.79rem;
  }

  .ccard-body p {
    font-size: 0.79rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-sec::before,
  .cert-sec::after,
  .ccard {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Certification grid/curve must follow the section's base background declaration. */
.cert-sec {
  background-image:
    linear-gradient(rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.028) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-50 470 C180 330 290 580 530 410 S870 200 1250 90' fill='none' stroke='%23FF7A32' stroke-opacity='.22' stroke-width='1.2' stroke-dasharray='1 9' stroke-linecap='round'/%3E%3Cpath d='M-30 160 C210 40 370 310 610 185 S955 65 1240 215' fill='none' stroke='%23B8C0CC' stroke-opacity='.16' stroke-width='1' stroke-dasharray='1 11' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 48px 48px, 48px 48px, cover;
  background-position: center;
  background-repeat: repeat, repeat, no-repeat;
}

@media (max-width: 480px) {
  .cert-sec { background-size: 34px 34px, 34px 34px, cover; }
}


.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================
   PREMIUM MM LOGO REVEAL LOADER
========================================= */

#app-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(15, 40, 65, 0.45),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #02050a 0%,
      #03070d 50%,
      #010204 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#app-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* =========================================
   SCENE
========================================= */

.loader-scene {
  position: relative;

  width: min(100%, 520px);
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}


/* =========================================
   SPOTLIGHT
========================================= */

.loader-spotlight {
  position: absolute;

  top: -10%;
  left: 50%;

  width: 300px;
  height: 600px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      180deg,
      rgba(75, 145, 220, 0.25),
      rgba(40, 90, 140, 0.08),
      transparent
    );

  clip-path: polygon(
    38% 0,
    62% 0,
    100% 100%,
    0 100%
  );

  filter: blur(15px);

  animation: spotlightPulse 4s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}


/* =========================================
   LIGHT BEAMS
========================================= */

.light-beam {
  position: absolute;

  top: 10%;
  width: 2px;
  height: 48%;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 106, 0, 0.65),
    transparent
  );

  filter: blur(1px);

  opacity: 0.5;
}

.beam-1 {
  left: 28%;
}

.beam-2 {
  left: 50%;
  opacity: 0.75;
}

.beam-3 {
  right: 28%;
}

@keyframes beamGlow {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.9;
  }
}


/* =========================================
   LOGO AREA
========================================= */

.logo-stage {
  position: relative;

  width: 330px;
  height: 440px;

  margin-top: 7vh;

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


/* =========================================
   LOGO GLOW
========================================= */

.logo-glow {
  position: absolute;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background: rgba(255, 102, 0, 0.18);

  filter: blur(60px);

  animation: logoGlow 2.5s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}


/* =========================================
   MM LOGO
========================================= */

.loader-logo {
  position: relative;
  z-index: 5;

  width: 245px;
  height: 245px;

  object-fit: contain;

  opacity: 0;
  transform:
    translateY(70px)
    scale(0.45);

  filter:
    drop-shadow(0 0 12px rgba(255, 110, 0, 0.45))
    drop-shadow(0 0 35px rgba(255, 110, 0, 0.25));

  animation: logoReveal 1.8s cubic-bezier(.16, 1, .3, 1)
    0.2s forwards;
}

@keyframes logoReveal {

  0% {
    opacity: 0;
    transform:
      translateY(70px)
      scale(0.45);
  }

  55% {
    opacity: 1;
    transform:
      translateY(-8px)
      scale(1.08);
  }

  75% {
    transform:
      translateY(3px)
      scale(0.97);
  }

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


/* =========================================
   STAGE FLOOR
========================================= */

.stage-floor {
  position: absolute;

  bottom: 30px;
  left: 50%;

  width: 310px;
  height: 100px;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(255, 104, 0, 0.25),
      transparent 60%
    );

  perspective: 500px;
}


/* =========================================
   RINGS
========================================= */

.stage-ring {
  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  border: 2px solid rgba(255, 106, 0, 0.8);

  box-shadow:
    0 0 12px rgba(255, 106, 0, 0.7),
    inset 0 0 12px rgba(255, 106, 0, 0.3);
}

.ring-1 {
  bottom: 8px;

  width: 310px;
  height: 70px;
}

.ring-2 {
  bottom: 20px;

  width: 240px;
  height: 48px;

  opacity: 0.75;
}

.ring-3 {
  bottom: 31px;

  width: 165px;
  height: 30px;

  opacity: 0.55;
}

.stage-ring {
  animation: ringPulse 2s ease-in-out infinite;
}

.ring-2 {
  animation-delay: 0.2s;
}

.ring-3 {
  animation-delay: 0.4s;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}


/* =========================================
   BRAND
========================================= */

.loader-brand {
  position: relative;
  z-index: 10;

  margin-top: -5px;
}

.loader-brand h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(20px, 4vw, 27px);

  font-weight: 600;

  letter-spacing: 0.28em;

  white-space: nowrap;
}

.loader-brand p {
  margin: 12px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 12px;

  letter-spacing: 0.25em;

  white-space: nowrap;
}


/* =========================================
   ORANGE LINE
========================================= */

.brand-line {
  display: block;

  width: 130px;
  height: 3px;

  margin: 22px auto 0;

  background: #ff6a00;

  box-shadow:
    0 0 10px rgba(255, 106, 0, 0.9),
    0 0 25px rgba(255, 106, 0, 0.45);

  animation: lineReveal 1.2s ease forwards;
}

@keyframes lineReveal {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 130px;
    opacity: 1;
  }
}


/* =========================================
   TAGLINE
========================================= */

.loader-tagline {
  display: flex;
  flex-direction: column;
  gap: 6px;

  margin-top: 42px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 17px;

  letter-spacing: 0.08em;
}


/* =========================================
   PROGRESS AREA
========================================= */

.loader-progress-area {
  position: absolute;

  bottom: 14vh;

  width: 260px;
}


/* =========================================
   PERCENTAGE
========================================= */

.loader-percentage {
  margin-bottom: 14px;

  color: #ffffff;

  font-size: 21px;

  font-weight: 500;

  letter-spacing: 0.08em;
}

.loader-percentage span:last-child {
  color: #ff6a00;
}


/* =========================================
   PROGRESS TRACK
========================================= */

.progress-track {
  width: 100%;
  height: 4px;

  overflow: hidden;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.13);

  box-shadow:
    inset 0 0 5px rgba(0, 0, 0, 0.5);
}

#loader-progress {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    #ff5a00,
    #ff8a00
  );

  box-shadow:
    0 0 10px rgba(255, 106, 0, 0.9),
    0 0 22px rgba(255, 106, 0, 0.5);

  transition: width 0.12s linear;
}


/* =========================================
   STATUS
========================================= */

#loader-status {
  margin-top: 13px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 10px;

  letter-spacing: 0.22em;
}


/* =========================================
   FOOTER
========================================= */

.loader-footer {
  position: absolute;

  bottom: 4vh;

  color: rgba(255, 255, 255, 0.48);

  font-size: 10px;

  letter-spacing: 0.42em;

  white-space: nowrap;
}

.loader-footer span {
  color: #ff6a00;
}


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

@media (max-width: 600px) {

  .logo-stage {
    width: 300px;
    height: 380px;

    margin-top: 8vh;
  }

  .loader-logo {
    width: 205px;
    height: 205px;
  }

  .stage-floor {
    width: 280px;
  }

  .ring-1 {
    width: 280px;
  }

  .ring-2 {
    width: 215px;
  }

  .ring-3 {
    width: 150px;
  }

  .loader-brand h1 {
    font-size: 17px;
    letter-spacing: 0.2em;
  }

  .loader-brand p {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .loader-tagline {
    margin-top: 30px;
    font-size: 15px;
  }

  .loader-progress-area {
    bottom: 13vh;
    width: 220px;
  }

  .loader-footer {
    font-size: 8px;
    letter-spacing: 0.3em;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  #app-loader *,
  #app-loader {
    animation: none !important;
    transition: none !important;
  }

}
/* ================================================================
   PREMIUM MM APP LOADER
   First Launch Only
================================================================ */

#app-loader {

  position: fixed;
  inset: 0;

  width: 100%;
  height: 100dvh;

  z-index: 999999;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(18, 48, 78, 0.42),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #020509 0%,
      #03070d 50%,
      #010204 100%
    );

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.85s ease,
    visibility 0.85s ease;
}


/* =========================================
   HIDDEN STATE
========================================= */

#app-loader.loader-hidden {

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

}


/* =========================================
   SCENE
========================================= */

.loader-scene {

  position: relative;

  width: min(100%, 520px);
  height: 100%;

  display: flex;

  flex-direction: column;
  align-items: center;

  text-align: center;

}


/* =========================================
   SPOTLIGHT
========================================= */

.loader-spotlight {

  position: absolute;

  top: -10%;
  left: 50%;

  width: 300px;
  height: 620px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      180deg,
      rgba(70, 130, 190, 0.24),
      rgba(40, 85, 130, 0.08),
      transparent
    );

  clip-path: polygon(
    38% 0,
    62% 0,
    100% 100%,
    0 100%
  );

  filter: blur(15px);

  opacity: 0.7;

  animation:
    loaderSpotlightPulse 4s ease-in-out infinite;
}


@keyframes loaderSpotlightPulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.9;
  }

}


/* =========================================
   LIGHT BEAMS
========================================= */

.light-beam {

  position: absolute;

  top: 9%;

  width: 2px;
  height: 48%;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255, 106, 0, 0.65),
      transparent
    );

  filter: blur(1px);

  opacity: 0.45;

  animation:
    loaderBeamPulse 3s ease-in-out infinite;
}


.beam-1 {
  left: 27%;
}


.beam-2 {

  left: 50%;

  opacity: 0.7;

  animation-delay: 0.5s;
}


.beam-3 {

  right: 27%;

  animation-delay: 1s;
}


@keyframes loaderBeamPulse {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.85;
  }

}


/* =========================================
   LOGO STAGE
========================================= */

.logo-stage {

  position: relative;

  width: 330px;
  height: 440px;

  margin-top: 7vh;

  display: flex;

  align-items: center;
  justify-content: center;

}


/* =========================================
   LOGO GLOW
========================================= */

.logo-glow {

  position: absolute;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background:
    rgba(255, 106, 0, 0.18);

  filter: blur(65px);

  animation:
    loaderLogoGlow 2.6s ease-in-out infinite;
}


@keyframes loaderLogoGlow {

  0%,
  100% {

    transform: scale(0.82);

    opacity: 0.45;

  }

  50% {

    transform: scale(1.12);

    opacity: 0.95;

  }

}


/* =========================================
   MM LOGO REVEAL
========================================= */

.loader-logo {

  position: relative;

  z-index: 5;

  width: 245px;
  height: 245px;

  object-fit: contain;

  opacity: 0;

  transform:
    translateY(75px)
    scale(0.42);

  filter:
    drop-shadow(
      0 0 12px
      rgba(255, 106, 0, 0.5)
    )
    drop-shadow(
      0 0 32px
      rgba(255, 106, 0, 0.25)
    );

  animation:
    loaderLogoReveal
    1.8s
    cubic-bezier(.16, 1, .3, 1)
    0.15s
    forwards;
}


@keyframes loaderLogoReveal {

  0% {

    opacity: 0;

    transform:
      translateY(75px)
      scale(0.42);

  }

  50% {

    opacity: 1;

    transform:
      translateY(-10px)
      scale(1.08);

  }

  72% {

    transform:
      translateY(3px)
      scale(0.97);

  }

  100% {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);

  }

}


/* =========================================
   STAGE FLOOR
========================================= */

.stage-floor {

  position: absolute;

  bottom: 28px;
  left: 50%;

  width: 310px;
  height: 100px;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(255, 106, 0, 0.24),
      transparent 64%
    );

}


/* =========================================
   STAGE RINGS
========================================= */

.stage-ring {

  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  border:
    2px solid
    rgba(255, 106, 0, 0.78);

  box-shadow:
    0 0 12px
    rgba(255, 106, 0, 0.65),

    inset 0 0 12px
    rgba(255, 106, 0, 0.25);

  animation:
    loaderRingPulse
    2s
    ease-in-out
    infinite;
}


.ring-1 {

  bottom: 8px;

  width: 310px;
  height: 70px;

}


.ring-2 {

  bottom: 20px;

  width: 240px;
  height: 48px;

  opacity: 0.72;

  animation-delay: 0.2s;

}


.ring-3 {

  bottom: 31px;

  width: 165px;
  height: 30px;

  opacity: 0.52;

  animation-delay: 0.4s;

}


@keyframes loaderRingPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

}


/* =========================================
   BRAND
========================================= */

.loader-brand {

  position: relative;

  z-index: 10;

  margin-top: -5px;

}


.loader-brand h1 {

  margin: 0;

  color: #ffffff;

  font-size:
    clamp(20px, 4vw, 27px);

  font-weight: 600;

  letter-spacing: 0.28em;

  white-space: nowrap;

}


.loader-brand p {

  margin: 12px 0 0;

  color:
    rgba(255, 255, 255, 0.68);

  font-size: 12px;

  letter-spacing: 0.25em;

  white-space: nowrap;

}


/* =========================================
   BRAND LINE
========================================= */

.brand-line {

  display: block;

  width: 130px;
  height: 3px;

  margin: 22px auto 0;

  background: #ff6a00;

  box-shadow:
    0 0 10px
    rgba(255, 106, 0, 0.9),

    0 0 24px
    rgba(255, 106, 0, 0.45);

  animation:
    loaderLineReveal
    1.2s
    ease
    forwards;
}


@keyframes loaderLineReveal {

  from {

    width: 0;
    opacity: 0;

  }

  to {

    width: 130px;
    opacity: 1;

  }

}


/* =========================================
   TAGLINE
========================================= */

.loader-tagline {

  display: flex;

  flex-direction: column;

  gap: 6px;

  margin-top: 40px;

  color:
    rgba(255, 255, 255, 0.88);

  font-size: 17px;

  letter-spacing: 0.08em;

}


/* =========================================
   PROGRESS AREA
========================================= */

.loader-progress-area {

  position: absolute;

  bottom: 14vh;

  width: 260px;

}


/* =========================================
   PERCENTAGE
========================================= */

.loader-percentage {

  margin-bottom: 14px;

  color: #ffffff;

  font-size: 21px;

  font-weight: 500;

  letter-spacing: 0.08em;

}


.loader-percentage span:last-child {

  color: #ff6a00;

}


/* =========================================
   PROGRESS TRACK
========================================= */

.progress-track {

  width: 100%;
  height: 4px;

  overflow: hidden;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 0 5px
    rgba(0, 0, 0, 0.5);

}


#loader-progress {

  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff5a00,
      #ff8a00
    );

  box-shadow:
    0 0 10px
    rgba(255, 106, 0, 0.9),

    0 0 22px
    rgba(255, 106, 0, 0.45);

  transition:
    width 0.12s linear;

}


/* =========================================
   STATUS
========================================= */

#loader-status {

  margin-top: 13px;

  color:
    rgba(255, 255, 255, 0.5);

  font-size: 10px;

  letter-spacing: 0.22em;

}


/* =========================================
   FOOTER
========================================= */

.loader-footer {

  position: absolute;

  bottom: 4vh;

  color:
    rgba(255, 255, 255, 0.45);

  font-size: 10px;

  letter-spacing: 0.42em;

  white-space: nowrap;

}


.loader-footer span {

  color: #ff6a00;

}


/* =========================================
   RESPONSIVE SYSTEM
   Mobile → Tablet → Laptop → Desktop
========================================= */

/* -----------------------------------------
   SMALL MOBILE
   320px – 374px
----------------------------------------- */

@media (max-width: 374px) {

  .loader-scene {
    width: 100%;
    padding: 0 16px;
  }

  .loader-spotlight {
    width: 220px;
    height: 520px;
  }

  .logo-stage {
    width: 270px;
    height: 340px;
    margin-top: 5vh;
  }

  .loader-logo {
    width: 175px;
    height: 175px;
  }

  .logo-glow {
    width: 170px;
    height: 170px;
  }

  .stage-floor {
    width: 245px;
    height: 82px;
    bottom: 20px;
  }

  .ring-1 {
    width: 245px;
    height: 58px;
  }

  .ring-2 {
    width: 190px;
    height: 42px;
  }

  .ring-3 {
    width: 135px;
    height: 28px;
  }

  .loader-brand {
    max-width: 100%;
  }

  .loader-brand h1 {
    font-size: clamp(14px, 4.5vw, 17px);
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .loader-brand p {
    font-size: 8px;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .brand-line {
    width: 95px;
    height: 2px;
    margin-top: 16px;
  }

  .loader-tagline {
    margin-top: 22px;
    font-size: 13px;
    gap: 4px;
  }

  .loader-progress-area {
    width: min(210px, calc(100vw - 48px));
    bottom: 12vh;
  }

  .loader-percentage {
    font-size: 18px;
    margin-bottom: 11px;
  }

  #loader-status {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .loader-footer {
    bottom: 3vh;
    max-width: calc(100vw - 32px);
    font-size: 7px;
    letter-spacing: 0.18em;
    text-align: center;
    white-space: normal;
  }

}


/* -----------------------------------------
   NORMAL MOBILE
   375px – 600px
----------------------------------------- */

@media (min-width: 375px) and (max-width: 600px) {

  .loader-scene {
    width: 100%;
    padding: 0 18px;
  }

  .loader-spotlight {
    width: 250px;
    height: 560px;
  }

  .logo-stage {
    width: min(300px, 90vw);
    height: 380px;
    margin-top: 6vh;
  }

  .loader-logo {
    width: min(205px, 58vw);
    height: min(205px, 58vw);
  }

  .logo-glow {
    width: min(210px, 60vw);
    height: min(210px, 60vw);
  }

  .stage-floor {
    width: min(280px, 84vw);
  }

  .ring-1 {
    width: min(280px, 84vw);
  }

  .ring-2 {
    width: min(215px, 65vw);
  }

  .ring-3 {
    width: min(150px, 46vw);
  }

  .loader-brand h1 {
    font-size: clamp(16px, 4.5vw, 19px);
    letter-spacing: 0.16em;
  }

  .loader-brand p {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .loader-tagline {
    margin-top: 26px;
    font-size: 14px;
  }

  .loader-progress-area {
    width: min(220px, calc(100vw - 60px));
    bottom: 13vh;
  }

  .loader-footer {
    font-size: 8px;
    letter-spacing: 0.25em;
    max-width: 90vw;
    text-align: center;
  }

}


/* -----------------------------------------
   TABLET
   601px – 900px
----------------------------------------- */

@media (min-width: 601px) and (max-width: 900px) {

  .loader-scene {
    width: min(100%, 560px);
  }

  .logo-stage {
    width: 340px;
    height: 450px;
    margin-top: 5vh;
  }

  .loader-logo {
    width: 225px;
    height: 225px;
  }

  .logo-glow {
    width: 230px;
    height: 230px;
  }

  .stage-floor {
    width: 320px;
  }

  .ring-1 {
    width: 320px;
  }

  .ring-2 {
    width: 250px;
  }

  .ring-3 {
    width: 170px;
  }

  .loader-brand h1 {
    font-size: 23px;
    letter-spacing: 0.23em;
  }

  .loader-brand p {
    font-size: 11px;
    letter-spacing: 0.21em;
  }

  .loader-tagline {
    margin-top: 34px;
    font-size: 16px;
  }

  .loader-progress-area {
    width: 270px;
    bottom: 12vh;
  }

}


/* -----------------------------------------
   LAPTOP / DESKTOP
   901px – 1440px
----------------------------------------- */

@media (min-width: 901px) and (max-width: 1440px) {

  .loader-scene {
    width: min(100%, 600px);
  }

  .logo-stage {
    width: 350px;
    height: 460px;
    margin-top: 5vh;
  }

  .loader-logo {
    width: 245px;
    height: 245px;
  }

  .loader-progress-area {
    width: 280px;
    bottom: 11vh;
  }

}


/* -----------------------------------------
   LARGE DESKTOP
   1441px+
----------------------------------------- */

@media (min-width: 1441px) {

  .loader-scene {
    width: min(100%, 680px);
  }

  .loader-spotlight {
    width: 360px;
    height: 700px;
  }

  .logo-stage {
    width: 390px;
    height: 500px;
    margin-top: 4vh;
  }

  .loader-logo {
    width: 275px;
    height: 275px;
  }

  .logo-glow {
    width: 280px;
    height: 280px;
  }

  .stage-floor {
    width: 360px;
    height: 110px;
  }

  .ring-1 {
    width: 360px;
    height: 78px;
  }

  .ring-2 {
    width: 280px;
    height: 52px;
  }

  .ring-3 {
    width: 190px;
    height: 32px;
  }

  .loader-brand h1 {
    font-size: 29px;
  }

  .loader-brand p {
    font-size: 13px;
  }

  .loader-tagline {
    font-size: 18px;
    margin-top: 42px;
  }

  .loader-progress-area {
    width: 300px;
    bottom: 10vh;
  }

  .loader-footer {
    font-size: 11px;
  }

}


/* -----------------------------------------
   LANDSCAPE MOBILE
----------------------------------------- */

@media (max-height: 600px) and (orientation: landscape) {

  .loader-scene {
    width: 100%;
  }

  .logo-stage {
    height: 230px;
    margin-top: 0;
  }

  .loader-logo {
    width: 135px;
    height: 135px;
  }

  .logo-glow {
    width: 140px;
    height: 140px;
  }

  .stage-floor {
    width: 210px;
    height: 60px;
    bottom: 8px;
  }

  .ring-1 {
    width: 210px;
    height: 45px;
  }

  .ring-2 {
    width: 160px;
    height: 34px;
    bottom: 14px;
  }

  .ring-3 {
    width: 110px;
    height: 24px;
    bottom: 21px;
  }

  .loader-brand {
    margin-top: -2px;
  }

  .loader-brand h1 {
    font-size: 15px;
    letter-spacing: 0.15em;
  }

  .loader-brand p {
    margin-top: 6px;
    font-size: 8px;
  }

  .brand-line {
    margin-top: 10px;
    height: 2px;
  }

  .loader-tagline {
    margin-top: 10px;
    font-size: 11px;
    gap: 2px;
  }

  .loader-progress-area {
    width: 190px;
    bottom: 7vh;
  }

  .loader-percentage {
    font-size: 16px;
    margin-bottom: 7px;
  }

  #loader-status {
    margin-top: 7px;
    font-size: 7px;
  }

  .loader-footer {
    display: none;
  }

}


/* -----------------------------------------
   VERY SHORT SCREENS
----------------------------------------- */

@media (max-height: 700px) and (orientation: portrait) {

  .logo-stage {
    margin-top: 1vh;
    transform: scale(0.82);
  }

  .loader-brand {
    margin-top: -55px;
  }

  .loader-tagline {
    margin-top: 18px;
  }

  .loader-progress-area {
    bottom: 9vh;
  }

  .loader-footer {
    bottom: 2vh;
  }

}


/* -----------------------------------------
   SAFE AREA — NOTCH / HOME INDICATOR
----------------------------------------- */

@supports (padding: env(safe-area-inset-bottom)) {

  #app-loader {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }

}


/* -----------------------------------------
   TOUCH DEVICES
----------------------------------------- */

@media (hover: none) and (pointer: coarse) {

  #app-loader {
    -webkit-tap-highlight-color: transparent;
  }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  #app-loader *,
  #app-loader {

    animation: none !important;
    transition: none !important;

  }

}
/* ================================================================
   FLOATING NETWORK STATUS
   Murasolimaran Portfolio PWA
================================================================ */


/* ================================================================
   MAIN WIDGET
================================================================ */

.network-widget {

  position: fixed;

  /*
   * Back-to-top button-ku mela position.
   * Bottom value deliberately increased.
   */
  right:
    max(20px, env(safe-area-inset-right));

  bottom:
    max(88px, calc(88px + env(safe-area-inset-bottom)));

  z-index: 999990;

  width: auto;
  height: auto;

  font-family:
    "Inter",
    Arial,
    sans-serif;

  pointer-events: none;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(10px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;

}


/* ================================================================
   WIDGET VISIBLE
================================================================ */

.network-widget.widget-visible {

  opacity: 1;

  visibility: visible;

  transform:
    translateY(0);

}


/* ================================================================
   FLOATING CIRCLE BADGE
================================================================ */

.network-badge {

  position: relative;

  width: 48px;
  height: 48px;

  padding: 0;

  border:
    1px solid
    rgba(255, 106, 0, 0.32);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 106, 0, 0.10),
      rgba(10, 11, 15, 0.97) 62%
    );

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  pointer-events: auto;

  box-shadow:

    0 8px 24px
    rgba(0, 0, 0, 0.42),

    0 0 18px
    rgba(255, 106, 0, 0.12),

    inset 0 0 0 1px
    rgba(255, 255, 255, 0.025);

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);

  transition:

    transform 0.25s ease,

    box-shadow 0.25s ease,

    border-color 0.25s ease;

}


/* ================================================================
   BADGE HOVER
================================================================ */

.network-badge:hover {

  transform:
    translateY(-2px)
    scale(1.04);

}


.network-badge:active {

  transform:
    scale(0.93);

}


/* ================================================================
   OUTER RING
================================================================ */

.network-badge-ring {

  position: absolute;

  inset: 5px;

  border-radius: 50%;

  border:
    1.5px solid
    rgba(255, 106, 0, 0.85);

  box-shadow:

    0 0 8px
    rgba(255, 106, 0, 0.20);

  pointer-events: none;

  transition:

    border-color 0.3s ease,

    box-shadow 0.3s ease;

}


/* ================================================================
   NETWORK ICON BASE
================================================================ */

.network-icon {

  position: relative;

  z-index: 3;

  width: 21px;
  height: 21px;

  display: none;

  color: #ff6a00;

  filter:
    drop-shadow(
      0 0 5px
      rgba(255, 106, 0, 0.45)
    );

}


/* ================================================================
   ONLINE
================================================================ */

.network-widget.online
.network-icon-online {

  display: block;

}


.network-widget.online
.network-badge {

  border-color:
    rgba(34, 197, 94, 0.38);

  background:
    radial-gradient(
      circle at center,
      rgba(34, 197, 94, 0.10),
      rgba(10, 11, 15, 0.97) 65%
    );

  box-shadow:

    0 8px 24px
    rgba(0, 0, 0, 0.42),

    0 0 18px
    rgba(34, 197, 94, 0.12);

}


.network-widget.online
.network-badge-ring {

  border-color:
    #22c55e;

  box-shadow:

    0 0 9px
    rgba(34, 197, 94, 0.30);

}


.network-widget.online
.network-icon {

  color:
    #22c55e;

  filter:
    drop-shadow(
      0 0 5px
      rgba(34, 197, 94, 0.55)
    );

}


/* ================================================================
   OFFLINE
================================================================ */

.network-widget.offline
.network-icon-offline {

  display: block;

}


.network-widget.offline
.network-badge {

  border-color:
    rgba(255, 106, 0, 0.50);

  background:
    radial-gradient(
      circle at center,
      rgba(255, 106, 0, 0.12),
      rgba(10, 11, 15, 0.97) 65%
    );

  box-shadow:

    0 8px 24px
    rgba(0, 0, 0, 0.42),

    0 0 20px
    rgba(255, 106, 0, 0.15);

}


.network-widget.offline
.network-badge-ring {

  border-color:
    #ff6a00;

  box-shadow:

    0 0 10px
    rgba(255, 106, 0, 0.40);

}


.network-widget.offline
.network-icon {

  color:
    #ff6a00;

  filter:
    drop-shadow(
      0 0 6px
      rgba(255, 106, 0, 0.60)
    );

}


/* ================================================================
   CHECKING
================================================================ */

.network-widget.checking
.network-icon-checking {

  display: block;

  animation:
    networkChecking
    1s linear infinite;

}


.network-widget.checking
.network-badge {

  border-color:
    rgba(96, 165, 250, 0.40);

}


.network-widget.checking
.network-badge-ring {

  border-color:
    rgba(96, 165, 250, 0.80);

}


.network-widget.checking
.network-icon {

  color:
    #60a5fa;

  filter:
    drop-shadow(
      0 0 6px
      rgba(96, 165, 250, 0.55)
    );

}


/* ================================================================
   CHECKING ROTATION
================================================================ */

@keyframes networkChecking {

  from {

    transform:
      rotate(0deg);

  }

  to {

    transform:
      rotate(360deg);

  }

}


/* ================================================================
   NETWORK CARD
================================================================ */

.network-card {

  position: absolute;

  right: 0;

  /*
   * Badge 48px + 12px gap
   */
  bottom: 60px;

  width: 310px;

  padding: 18px;

  border-radius: 25px;

 background: rgba(9, 11, 15, 0.78);
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);

  border:
    3px solid
    rgba(255, 255, 255, 0.10);

  box-shadow:

    0 25px 70px
    rgba(0, 0, 0, 0.55),

    0 0 35px
    rgba(0, 0, 0, 0.20);

  backdrop-filter:
    blur(22px);

  -webkit-backdrop-filter:
    blur(22px);

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(12px)
    scale(0.94);

  transform-origin:
    bottom right;

  pointer-events: none;

  transition:

    opacity 0.28s ease,

    visibility 0.28s ease,

    transform 0.28s
    cubic-bezier(
      0.16,
      1,
      0.3,
      1
    );

}


/* ================================================================
   CARD OPEN
================================================================ */

.network-widget.card-open
.network-card {

  opacity: 1;

  visibility: visible;

  transform:
    translateY(0)
    scale(1);

  pointer-events: auto;

}


/* ================================================================
   CARD HEADER
================================================================ */

.network-card-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

}


.network-card-title-wrap {

  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;

}


/* ================================================================
   STATUS ICON CONTAINER
================================================================ */

.network-status-icon {

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

}


.network-status-dot {

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background:
    #999;

}


/* ================================================================
   ONLINE CARD ICON
================================================================ */

.network-widget.online
.network-status-icon {

  border-color:
    rgba(34, 197, 94, 0.25);

  background:
    rgba(34, 197, 94, 0.08);

}


.network-widget.online
.network-status-dot {

  background:
    #22c55e;

  box-shadow:
    0 0 12px
    rgba(34, 197, 94, 0.80);

}


/* ================================================================
   OFFLINE CARD ICON
================================================================ */

.network-widget.offline
.network-status-icon {

  border-color:
    rgba(255, 106, 0, 0.25);

  background:
    rgba(255, 106, 0, 0.08);

}


.network-widget.offline
.network-status-dot {

  background:
    #ff6a00;

  box-shadow:
    0 0 12px
    rgba(255, 106, 0, 0.80);

}


/* ================================================================
   CHECKING CARD ICON
================================================================ */

.network-widget.checking
.network-status-icon {

  border-color:
    rgba(96, 165, 250, 0.25);

  background:
    rgba(96, 165, 250, 0.08);

}


.network-widget.checking
.network-status-dot {

  background:
    #60a5fa;

  box-shadow:
    0 0 12px
    rgba(96, 165, 250, 0.80);

}


/* ================================================================
   CARD TITLE
================================================================ */

.network-card-title-content {

  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;

}


.network-card-title-content strong {

  color:
    #ffffff;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.2;

  white-space: nowrap;

}


.network-card-title-content span {

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 10px;

  line-height: 1.35;

}


/* ================================================================
   CLOSE BUTTON
================================================================ */

.network-close {

  position: relative;

  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.06);

  cursor: pointer;

  transition:

    background 0.2s ease,

    transform 0.2s ease;

}


.network-close:hover {

  background:
    rgba(255, 255, 255, 0.12);

  transform:
    rotate(90deg);

}


.network-close span {

  position: absolute;

  left: 8px;
  top: 14px;

  width: 14px;
  height: 1.5px;

  background:
    rgba(255, 255, 255, 0.70);

  border-radius: 2px;

}


.network-close span:first-child {

  transform:
    rotate(45deg);

}


.network-close span:last-child {

  transform:
    rotate(-45deg);

}


/* ================================================================
   DETAILS
================================================================ */

.network-details {

  margin-top: 18px;

  padding-top: 15px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.08);

  display: flex;

  flex-direction: column;

  gap: 11px;

}


.network-detail-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


.network-detail-row span {

  color:
    rgba(255, 255, 255, 0.48);

  font-size: 10px;

}


.network-detail-row strong {

  color:
    #ffffff;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.08em;

}


/* ================================================================
   FOOTER
================================================================ */

.network-card-footer {

  margin-top: 15px;

  padding-top: 13px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.06);

  display: flex;

  align-items: center;

  gap: 8px;

  color:
    rgba(255, 255, 255, 0.45);

  font-size: 9px;

}


.network-live-dot {

  width: 6px;
  height: 6px;

  flex: 0 0 6px;

  border-radius: 50%;

  background:
    #22c55e;

}


/* OFFLINE FOOTER */

.network-widget.offline
.network-live-dot {

  background:
    #ff6a00;

}


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

@media (max-width: 600px) {

  .network-widget {

    right:
      max(
        14px,
        env(safe-area-inset-right)
      );

    /*
     * Back-to-top button-ku mela
     */
    bottom:
      max(
        76px,
        calc(
          76px +
          env(safe-area-inset-bottom)
        )
      );

  }


  .network-badge {

    width: 46px;

    height: 46px;

  }


  .network-badge-ring {

    inset: 5px;

  }


  .network-icon {

    width: 20px;

    height: 20px;

  }


  .network-card {

    right: 0;

    bottom: 58px;

    width:
      min(
        310px,
        calc(100vw - 28px)
      );

    padding: 16px;

    border-radius: 25px;

  }


  .network-status-icon {

    width: 40px;

    height: 40px;

    flex-basis: 40px;

  }


  .network-card-title-content strong {

    font-size: 13px;

  }

}


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

@media (max-width: 360px) {

  .network-widget {

    right: 10px;

    bottom:
      max(
        72px,
        calc(
          72px +
          env(safe-area-inset-bottom)
        )
      );

  }


  .network-badge {

    width: 44px;

    height: 44px;

  }


  .network-icon {

    width: 19px;

    height: 19px;

  }


  .network-card {

    width:
      calc(100vw - 20px);

    bottom: 56px;

  }

}


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

@media (min-width: 601px)
and (max-width: 1024px) {

  .network-widget {

    right: 22px;

    bottom:
      max(
        90px,
        calc(
          90px +
          env(safe-area-inset-bottom)
        )
      );

  }


  .network-badge {

    width: 48px;

    height: 48px;

  }


  .network-card {

    width: 320px;

    bottom: 60px;

  }

}


/* ================================================================
   LARGE DESKTOP
================================================================ */

@media (min-width: 1440px) {

  .network-widget {

    right: 30px;

    bottom:
      max(
        94px,
        calc(
          94px +
          env(safe-area-inset-bottom)
        )
      );

  }


  .network-badge {

    width: 50px;

    height: 50px;

  }


  .network-card {

    width: 330px;

    bottom: 62px;

    padding: 20px;

  }

}


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

@media (
  max-height: 600px
)
and (
  orientation: landscape
) {

  .network-widget {

    right: 16px;

    bottom: 72px;

  }


  .network-badge {

    width: 44px;

    height: 44px;

  }


  .network-card {

    bottom: 56px;

    max-height:
      calc(100dvh - 90px);

    overflow-y: auto;

  }

}


/* ================================================================
   ACCESSIBILITY
================================================================ */

.network-badge:focus-visible,
.network-close:focus-visible {

  outline:
    2px solid
    #ff6a00;

  outline-offset: 3px;

}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

  .network-badge,
  .network-card,
  .network-close,
  .network-badge-ring,
  .network-icon {

    animation: none !important;

    transition: none !important;

  }

}
.network-widget.online .network-card {
  border-color: rgba(5, 78, 32, 0.688);
}

.network-widget.offline .network-card {
  border-color: rgba(220, 5, 5, 0.57);
}

.network-widget.checking .network-card {
  border-color: rgba(68, 146, 242, 0.4);
}