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

:root {
  /* Colors */
  --bg: #1a1f2e;
  --bg2: #232937;
  --bg3: #2d3748;
  --card: #2d3748;
  --card2: #374151;
  --blue: #3b82f6;
  --blue-d: #2563eb;
  --cyan: #06b6d4;
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --border2: rgba(59, 130, 246, 0.25);

  /* Spacing */
  --r: 14px;
  --r2: 22px;
  --container-padding: 2.5rem;

  /* Typography */
  --ff: "Outfit", sans-serif;
  --fm: "Space Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a,
a:link,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--blue);
  text-decoration: none;
}

.text-blue {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  font-weight: 700;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease,
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
}

body:has(a:hover, button:hover) .cursor-follower {
  width: 56px;
  height: 56px;
  border-color: rgba(59, 130, 246, 0.8);
}

/* ============================================================
   LOADER
============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-map {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  animation: spin 3s linear infinite;
}

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

.loader-map circle {
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

.loader-map circle:nth-child(1) {
  animation-delay: 0s;
}
.loader-map circle:nth-child(2) {
  animation-delay: 0.3s;
}
.loader-map circle:nth-child(3) {
  animation-delay: 0.6s;
}
.loader-map circle:nth-child(4) {
  animation-delay: 0.9s;
}
.loader-map circle:nth-child(5) {
  animation-delay: 1.2s;
}
.loader-map line {
  animation: fadeIn 1.5s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loader-text {
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--text2);
  letter-spacing: 0.1em;
}

.loader-dots {
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION
============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--ff);
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -2px;
  margin-right: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-a {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
  letter-spacing: 0.01em;
}

.nav-a:hover,
.nav-a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-hire {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
}

.nav-hire:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.open span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(26, 31, 46, 0.98);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

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

.nav-mob-a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mob-a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .nav-menu,
  .nav-hire {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Background Grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    black 40%,
    transparent 100%
  );
}

/* Glow Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.22) 0%,
    transparent 70%
  );
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 70%
  );
  bottom: -80px;
  right: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  top: 40%;
  left: 50%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(20px, -20px);
  }
  66% {
    transform: translate(-15px, 15px);
  }
}

/* Map Nodes */
.map-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: nodeFade 3s ease-in-out infinite alternate;
}

.node:nth-child(2) {
  animation-delay: 0.7s;
}
.node:nth-child(3) {
  animation-delay: 1.4s;
}
.node:nth-child(4) {
  animation-delay: 2.1s;
}

@keyframes nodeFade {
  from {
    opacity: 0.3;
    transform: translateY(0);
  }
  to {
    opacity: 0.9;
    transform: translateY(-4px);
  }
}

.node-dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(59, 130, 246, 0.8),
    0 0 24px rgba(59, 130, 246, 0.4);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.pulse-big {
  width: 16px;
  height: 16px;
  background: var(--cyan);
  box-shadow:
    0 0 20px rgba(6, 182, 212, 0.9),
    0 0 40px rgba(6, 182, 212, 0.5);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
  }
  50% {
    transform: scale(1.3);
    box-shadow:
      0 0 20px rgba(59, 130, 246, 1),
      0 0 40px rgba(59, 130, 246, 0.5);
  }
}

.node-label {
  font-family: var(--fm);
  font-size: 0.62rem;
  color: var(--text2);
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid var(--border2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.node-lines {
  position: absolute;
  inset: 0;
}

.nline {
  stroke: rgba(59, 130, 246, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dash 4s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* Hero Content */
.hero-body {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-top: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 100vh;
}

.hero-left {
  flex: 1;
  max-width: 600px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.chip-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 1.25rem;
}

.ht-line {
  display: block;
}
.ht-blue {
  color: var(--blue);
}

.hero-sub {
  font-family: var(--fm);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  color: var(--cyan);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  display: inline-block;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
  font-family: var(--ff);
}

.btn-main:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hm-item {
  display: flex;
  flex-direction: column;
}
.hm-n {
  font-family: var(--ff);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.hm-l {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 2px;
}
.hm-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visualization */
.hero-right {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.geo-viz {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
}

.ring-spin {
  transform-origin: 200px 200px;
  animation: rotate 8s linear infinite;
}

.ring-spin-rev {
  transform-origin: 200px 200px;
  animation: rotate 12s linear infinite reverse;
}

@keyframes rotate {
  to {
    stroke-dashoffset: -360;
  }
}

.geo-globe {
  position: relative;
  z-index: 3;
  width: 200px;
  height: 200px;
  animation: float 6s ease-in-out infinite;
}

.globe-svg {
  width: 100%;
  height: 100%;
}

.globe-ping {
  animation: ping 2.5s ease-in-out infinite;
}

@keyframes ping {
  0%,
  100% {
    opacity: 0.3;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 5;
  }
}

.geo-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.geo-orbit-1 {
  width: 300px;
  height: 300px;
  animation: spin 10s linear infinite;
}

.geo-orbit-2 {
  width: 360px;
  height: 360px;
  animation: spin 16s linear infinite reverse;
}

.orbit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: -5px;
}

.od-blue {
  background: var(--blue);
  box-shadow:
    0 0 10px rgba(59, 130, 246, 0.9),
    0 0 20px rgba(59, 130, 246, 0.5);
}

.od-cyan {
  background: var(--cyan);
  box-shadow:
    0 0 10px rgba(6, 182, 212, 0.9),
    0 0 20px rgba(6, 182, 212, 0.5);
}

.geo-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid var(--border2);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.geo-card-tl {
  top: 28px;
  left: -10px;
  animation-delay: 0s;
}
.geo-card-tr {
  top: 55px;
  right: -10px;
  animation-delay: 1.3s;
}
.geo-card-br {
  bottom: 35px;
  right: 0px;
  animation-delay: 2.6s;
}

.gc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-icon i {
  color: var(--blue);
  font-size: 0.75rem;
}
.gc-text {
  display: flex;
  flex-direction: column;
}
.gc-text strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.gc-text span {
  font-size: 0.65rem;
  color: var(--text3);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll-hint span {
  font-family: var(--fm);
  font-size: 0.62rem;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
  animation-delay: var(--d, 0s);
}

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

@media (max-width: 960px) {
  .hero-body {
    flex-direction: column;
    padding-top: 100px;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-btns,
  .hero-meta {
    justify-content: center;
  }
  .hero-desc {
    margin: 0 auto 2rem;
  }
  .hero-sub {
    white-space: normal;
    opacity: 1;
    width: auto;
    max-width: 100%;
  }
  .geo-viz {
    width: 280px;
    height: 280px;
  }
  .geo-orbit-1 {
    width: 200px;
    height: 200px;
  }
  .geo-orbit-2 {
    width: 250px;
    height: 250px;
  }
  .geo-globe {
    width: 140px;
    height: 140px;
  }
  .geo-card {
    font-size: 0.7rem;
    padding: 0.45rem 0.7rem;
  }
  .geo-card-tl {
    top: 10px;
    left: -5px;
  }
  .geo-card-tr {
    top: 20px;
    right: -5px;
  }
  .geo-card-br {
    bottom: 15px;
    right: 0;
  }
  .map-nodes {
    display: none;
  }
}

/* ============================================================
   COMMON SECTION STYLES
============================================================ */
.section {
  padding: 7rem 0;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.s-label {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.s-label.light {
  color: var(--cyan);
}

.s-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 3.5rem;
  color: var(--text);
}

.s-title.light {
  color: #fff;
}
.text-blue {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  font-weight: 700;
}
.text-cyan {
  color: var(--cyan);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--fd, 0s);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-img-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-img-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r2);
  display: block;
  border: 1px solid var(--border);
}

.about-img-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--r2);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.15) inset;
  pointer-events: none;
}

.about-links {
  display: flex;
  gap: 0.6rem;
}

.alink {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.alink:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.about-text-col {
  padding-top: 0.5rem;
}

.about-p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.acard {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.1rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.acard:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.acard i {
  color: var(--blue);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.acard strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

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

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SKILLS SECTION
============================================================ */
.skills-section {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.75rem;
  transition:
    border-color 0.3s,
    transform 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  background: var(--card2);
}

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

.sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(6, 182, 212, 0.1)
  );
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sc-icon i {
  color: var(--blue);
  font-size: 1rem;
}

.skill-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.sc-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--text2);
  border-radius: 6px;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
.projects-section {
  background: var(--bg2);
}

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

.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  display: block;
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.15);
}

.proj-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proj-card:hover .proj-img-wrap img {
  transform: scale(1.06);
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(26, 31, 46, 0.9)
  );
}

.proj-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.proj-arrow i {
  color: #fff;
  font-size: 0.8rem;
}

.proj-card:hover .proj-arrow {
  opacity: 1;
  transform: scale(1);
}

.proj-body {
  padding: 1.5rem;
}

.proj-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.proj-body p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.65;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.proj-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
}

.proj-card:hover .proj-tags span {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.28);
}

/* ============================================================
   BLOGS SECTION
============================================================ */
.blogs-section {
  background: var(--bg);
}
.blogs-grid {
  display: grid;
  gap: 1.5rem;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-top: -2rem;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cinfo-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
  cursor: pointer;
}

.cinfo-item:hover {
  border-color: var(--border2);
  transform: translateX(4px);
}

.cinfo-item.no-link {
  cursor: default;
}

.cinfo-item.no-link:hover {
  transform: none;
}

.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-icon i {
  color: var(--blue);
  font-size: 1rem;
}

.cinfo-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.cinfo-item span {
  font-size: 0.88rem;
  color: var(--text);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.f-logo {
  font-family: var(--ff);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
}

.f-copy {
  font-size: 0.8rem;
  color: var(--text3);
}

.f-links {
  display: flex;
  gap: 0.6rem;
}

.f-links a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.f-links a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
