/*
Theme Name: Waseem Portfolio
Theme URI: https://github.com/muhammadwaseem
Author: Muhammad Waseem
Author URI: https://muhammadwaseem.com
Description: Professional Full Stack Developer Portfolio Theme — Dark UI with gradient accents, smooth animations, and modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waseem-portfolio
Tags: portfolio, dark, one-page, responsive, custom-theme
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:        #080B14;
  --surface:   #0D1120;
  --border:    #1A2035;
  --accent:    #00D4FF;
  --accent2:   #7B2FFF;
  --text:      #E8EDF5;
  --muted:     #8892A4;
  --green:     #10B981;
  --radius:    16px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 10px;
}

::selection { background: rgba(0,212,255,0.3); color: #fff; }

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--bg);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 50%, var(--accent) 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.4);
  color: var(--bg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(0,212,255,0.5);
  color: var(--accent);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header.left { text-align: left; }
.section-header.left .section-subtitle { margin: 0; }

.grid-bg {
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Card base */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.gradient-border {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(123,47,255,0.2), rgba(0,212,255,0.1));
  z-index: -1;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  transition: all 0.5s ease;
}
#site-header.scrolled {
  background: rgba(8,11,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
  transition: box-shadow 0.3s ease;
}
.site-logo:hover .logo-icon {
  box-shadow: 0 4px 30px rgba(0,212,255,0.5);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8,11,20,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 16px;
}
.hero-role {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  margin-bottom: 28px;
}
.hero-role #typewriter {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--muted);
}
.cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
.hero-desc {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-desc span { color: var(--accent); font-weight: 600; }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-socials .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-socials .divider {
  width: 32px; height: 1px;
  background: var(--border);
}
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  transition: all 0.3s ease;
}
.social-icon:hover {
  color: var(--accent);
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.05);
}

/* Hero right — avatar */
.hero-visual { display: flex; justify-content: flex-end; }
.avatar-wrap {
  position: relative;
  width: 380px; height: 380px;
}
.avatar-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0.2;
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
}
.avatar-card {
  width: 100%; height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, var(--surface), var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.avatar-initials {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,212,255,0.3);
  margin-bottom: 16px;
}
.avatar-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
/* floating badges */
.badge-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.badge-float .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.badge-float .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.badge-top { top: -16px; right: -16px; animation: float 6s ease-in-out infinite; }
.badge-top .val { color: var(--accent); }
.badge-bot { bottom: -16px; left: -16px; animation: float 6s ease-in-out infinite 2s; }
.badge-bot .val { color: var(--accent2); }

/* Stats row */
.hero-stats {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { padding: 112px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.code-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.15);
  background: linear-gradient(135deg, var(--surface), var(--bg));
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px;
}
.code-snippet {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: rgba(0,212,255,0.3);
  width: 100%;
  position: absolute;
  top: 32px; left: 32px;
  right: 32px;
  user-select: none;
}
.code-snippet .kw  { color: rgba(123,47,255,0.5); }
.code-snippet .str { color: rgba(16,185,129,0.5); }
.code-snippet .num { color: rgba(0,212,255,0.5); }
.code-initials {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,212,255,0.3);
  position: relative;
  z-index: 1;
}
.available-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.available-dot {
  width: 10px; height: 10px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.about-content { }
.about-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .hl { color: var(--accent); font-weight: 500; }
.highlights { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}
.highlight-item .check {
  color: var(--accent);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.about-btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  padding: 112px 0;
  background: rgba(13,17,32,0.5);
}
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: all 0.3s ease;
  cursor: default;
}
.tech-badge:hover {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.05);
  color: var(--text);
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 64px;
}
.skill-item {}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.skill-name { font-weight: 500; font-size: 14px; color: var(--text); }
.skill-pct { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated { transform: scaleX(1); }

.skill-bottom-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skill-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(123,47,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.skill-card:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(123,47,255,0.07));
  transform: translateY(-4px);
}
.skill-card-icon { font-size: 32px; margin-bottom: 12px; }
.skill-card-name { font-weight: 600; font-size: 13px; color: var(--text); }

/* ============================================================
   SERVICES
   ============================================================ */
#services { padding: 112px 0; position: relative; overflow: hidden; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(123,47,255,0.03));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(123,47,255,0.1));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.6));
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}
.service-card:hover .service-title { color: var(--accent); }
.service-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,212,255,0.7);
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 50px;
  padding: 4px 12px;
}
.services-cta { text-align: center; margin-top: 48px; }
.services-cta p { color: var(--muted); margin-bottom: 20px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio {
  padding: 112px 0;
  background: rgba(13,17,32,0.5);
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: rgba(0,212,255,0.4); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.1);
}
.project-card.hidden { display: none; }
.project-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 56px;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,11,20,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.overlay-btn.primary {
  background: rgba(0,212,255,0.2);
  border: 1px solid rgba(0,212,255,0.4);
  color: var(--accent);
}
.overlay-btn.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.overlay-btn:hover { transform: scale(1.1); }
.project-body { padding: 20px; }
.project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card:hover .project-title { color: var(--accent); }
.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 3px 8px;
}
.portfolio-cta { text-align: center; margin-top: 48px; }
.portfolio-cta p { color: var(--muted); margin-bottom: 20px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { padding: 112px 0; position: relative; overflow: hidden; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(13,17,32,0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.stars { display: flex; gap: 4px; margin-bottom: 20px; }
.stars span { color: var(--accent); font-size: 14px; }
.testimonial-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 14px; color: var(--text); }
.author-role { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ============================================================
   CTA
   ============================================================ */
#cta { padding: 80px 0; }
.cta-box {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 80px 64px;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(13,17,32,1) 50%, rgba(123,47,255,0.15));
}
.cta-grid { position: absolute; inset: 0; }
.cta-line-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
}
.cta-line-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,0.5), transparent);
}
.cta-content { position: relative; z-index: 1; }
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,11,20,0.6);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cta-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.4);
  transition: all 0.3s ease;
}
.btn-whatsapp:hover { background: rgba(34,197,94,0.1); }
.cta-trust {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(136,146,164,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 112px 0;
  background: rgba(13,17,32,0.5);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 20px;
}
.contact-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contact-item-value {
  font-weight: 500;
  color: var(--text);
  font-size: 15px;
  transition: color 0.2s;
}
.contact-item-value:hover { color: var(--accent); }
.contact-social-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.contact-socials { display: flex; gap: 12px; }
.contact-social {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all 0.3s ease;
}
.contact-social:hover {
  color: var(--accent);
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.05);
}

/* Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(123,47,255,0.1));
  z-index: -1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(136,146,164,0.4); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  background: rgba(0,212,255,0.03);
}
.form-textarea { resize: none; min-height: 140px; }
.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 50%, var(--accent) 100%);
  background-size: 200% auto;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.form-submit:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.4);
}
.form-success {
  text-align: center;
  padding: 48px 0;
  display: none;
}
.form-success.show { display: block; }
.form-success .success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}
.form-success p { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.footer-top {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: all 0.3s ease;
}
.footer-social:hover {
  color: var(--accent);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.05);
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: rgba(136,146,164,0.5); }
.footer-made { font-family: var(--font-mono); font-size: 12px; color: rgba(136,146,164,0.5); }
.footer-made span { color: #ef4444; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-family: var(--font-mono); font-size: 12px; color: rgba(136,146,164,0.5); transition: color 0.2s; }
.footer-legal a:hover { color: var(--muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; order: -1; }
  .avatar-wrap { width: 280px; height: 280px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .skill-bottom-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, #site-header .btn-primary { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .skill-bottom-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .about-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
  .skill-bottom-cards { grid-template-columns: 1fr 1fr; }
  .avatar-wrap { width: 240px; height: 240px; }
}
