/* ============================================================
   WARGH.IN — Premium Portfolio CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --red: #ff0033;
  --red-dark: #cc0026;
  --red-glow: rgba(255, 0, 51, 0.3);
  --gold: #ffd700;
  --bg: #070709;
  --bg2: #0d0d12;
  --bg3: #111118;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-red: rgba(255,0,51,0.25);
  --text: #f0f0f5;
  --text-muted: #888899;
  --text-dim: #555566;
  --font: 'Outfit', sans-serif;
  --mono: 'Space Mono', monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::selection {
  background: var(--red);
  color: #fff;
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

#cursor-ring {
  width: 35px;
  height: 35px;
  border: 2px solid rgba(255,0,51,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s;
}

#cursor-ring.hover {
  width: 55px;
  height: 55px;
  border-color: var(--gold);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===== UTILITY ===== */
.red { color: var(--red); }
.text-center { text-align: center; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  padding: 20px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,0,51,0.3));
  transition: var(--transition);
}
.logo:hover {
  filter: drop-shadow(0 0 16px rgba(255,0,51,0.6));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active-nav {
  color: #fff;
}
.nav-link:hover::after, .nav-link.active-nav::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(255,0,51,0.3);
}
.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,0,51,0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  z-index: 8999;
  padding: 100px 40px;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border-red);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { margin-bottom: 30px; }
.mobile-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  transition: color 0.3s;
}
.mobile-menu ul li a:hover { color: var(--red); }

/* ===== HERO SECTION ===== */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,0,51,0.1);
  border: 1px solid var(--border-red);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.hero-sub {
  font-size: 16px;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--mono);
}

.hero-title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.name-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--red) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-wrapper {
  display: block;
  color: var(--text-muted);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 400;
  margin-top: 8px;
}

#typed-text {
  color: var(--gold);
  font-weight: 700;
}

.cursor-blink {
  color: var(--red);
  animation: blink 0.8s infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(255,0,51,0.35);
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,0,51,0.55);
  background: var(--red-dark);
}
.btn-primary.full-btn { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  cursor: default;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  font-family: var(--mono);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-red);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ===== SECTION COMMONS ===== */
section {
  padding: 100px 0;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--mono);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

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

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 20px;
}

.about-img-wrap {
  position: relative;
  perspective: 1000px;
}

.img-3d-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  cursor: pointer;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.img-3d-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,51,0.15), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.img-3d-wrap img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.img-3d-wrap:hover img {
  transform: scale(1.04);
}

.img-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 30px rgba(255,0,51,0.1);
  border: 1px solid var(--border-red);
  pointer-events: none;
  z-index: 2;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(10,10,15,0.9);
  border: 1px solid var(--border-red);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.floating-badge i { color: var(--red); }
.badge-1 {
  bottom: 30px;
  right: -20px;
  animation: float 3s ease-in-out infinite;
}
.badge-2 {
  top: 30px;
  left: -20px;
  animation: float 3s ease-in-out infinite 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Skill Bars */
.skill-bars-section {
  margin: 30px 0;
}
.skill-bar-item {
  margin-bottom: 20px;
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.skill-pct { color: var(--red); }
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Tabs */
#tab-titles {
  display: flex;
  gap: 40px;
  margin: 30px 0 20px;
}
.tab-links {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s;
  padding-bottom: 8px;
}
.tab-links::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s;
}
.tab-links.active-link {
  color: #fff;
}
.tab-links.active-link::after {
  width: 100%;
}
.tab-links:hover { color: #fff; }

.tab-contents { display: none; }
.tab-contents.active-tab { display: block; }
.tab-contents ul { list-style: none; }
.tab-contents ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.tab-contents ul li span {
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ===== SERVICES SECTION ===== */
#services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--border-red);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,0,51,0.1);
}

.featured-card {
  border-color: var(--border-red);
  background: linear-gradient(135deg, rgba(255,0,51,0.05), var(--card-bg));
  box-shadow: 0 0 40px rgba(255,0,51,0.1);
}
.featured-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 3D Icon */
.service-icon-3d {
  perspective: 600px;
  margin-bottom: 24px;
  width: 70px;
}
.icon-cube {
  width: 65px;
  height: 65px;
  background: rgba(255,0,51,0.08);
  border: 1px solid rgba(255,0,51,0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--red);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, background 0.3s;
}
.service-card:hover .icon-cube {
  transform: rotateY(20deg) rotateX(10deg);
  background: rgba(255,0,51,0.15);
}
.red-cube {
  background: rgba(255,0,51,0.12);
  border-color: rgba(255,0,51,0.4);
}

.service-number {
  font-size: 60px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--mono);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}
.service-card:hover .service-number {
  color: rgba(255,0,51,0.08);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}
.service-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-features li i {
  color: #00ff88;
  font-size: 12px;
  flex-shrink: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 50px;
  transition: var(--transition);
}
.service-card:hover .service-tags span {
  border-color: var(--border-red);
  color: var(--red);
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
  background: var(--bg2);
}

.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-btn.active-filter {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,0,51,0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.portfolio-card:hover {
  border-color: var(--border-red);
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,0,51,0.1);
}
.portfolio-card.hidden {
  display: none;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.overlay-icons {
  display: flex;
  gap: 16px;
}
.overlay-btn {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
  transform: scale(0.7);
}
.portfolio-card:hover .overlay-btn {
  transform: scale(1);
}
.overlay-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.portfolio-info {
  padding: 24px;
}
.portfolio-category {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 10px;
}
.portfolio-info h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.portfolio-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-tech span {
  background: rgba(255,0,51,0.08);
  border: 1px solid rgba(255,0,51,0.2);
  color: var(--red);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,0,51,0.08);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  background: var(--red);
  color: #fff;
}
.ci-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--red); }

.social-links {
  display: flex;
  gap: 14px;
}
.social-btn {
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,0,51,0.3);
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(10px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255,0,51,0.12);
  background: rgba(255,0,51,0.03);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-success {
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: var(--radius-sm);
  color: #00ff88;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { width: 80px; opacity: 0.7; }
.footer-inner p {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-img-wrap { max-width: 420px; margin: 0 auto; }
  .badge-1 { right: 10px; }
  .badge-2 { left: 10px; }
}

/* ============================================================
   MOBILE — 768px and below
   ============================================================ */
@media (max-width: 768px) {

  /* --- Globals --- */
  html { scroll-padding-top: 70px; }
  section { padding: 80px 0; }
  .section-container { padding: 0 20px; }

  /* --- Navbar --- */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
  #navbar { padding: 16px 0; }

  /* --- Mobile Menu polish --- */
  .mobile-menu { width: 100%; border-left: none; border-bottom: 1px solid var(--border-red); }
  .mobile-menu ul li a { font-size: 20px; }

  /* --- Hero --- */
  .hero-scroll-hint { display: none; }
  .hero-content { padding: 0 16px; }
  .hero-badge { font-size: 11px; padding: 6px 16px; }
  .hero-sub { font-size: 12px; letter-spacing: 2px; }
  .hero-title { font-size: clamp(36px, 10vw, 52px); margin-bottom: 18px; }
  .typed-wrapper { font-size: clamp(22px, 6vw, 34px); }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }

  /* Hero buttons — stack vertically, full width */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 40px;
    padding: 0 10px;
  }
  .btn-primary, .btn-ghost {
    padding: 15px 28px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
  }

  /* Hero stats — side by side, tight */
  .hero-stats { gap: 0; justify-content: space-evenly; }
  .stat-item { padding: 0 10px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 10px; letter-spacing: 1px; }
  .stat-divider { height: 36px; }

  /* --- About --- */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 100%; }
  .badge-1 { right: 0; bottom: -10px; font-size: 11px; padding: 8px 14px; }
  .badge-2 { left: 0; top: -10px; font-size: 11px; padding: 8px 14px; }
  .section-title { font-size: clamp(26px, 8vw, 40px); }
  #tab-titles { gap: 24px; }
  .tab-links { font-size: 14px; }

  /* --- Services --- */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 28px 22px; border-radius: var(--radius-sm); }
  .service-card:hover { transform: none; } /* Disable hover 3D on mobile */
  .service-number { font-size: 44px; }
  .service-card h3 { font-size: 18px; }
  .featured-label { font-size: 10px; }

  /* --- Portfolio --- */
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-filters { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: 13px; }
  .portfolio-img-wrap { height: 200px; }
  /* Show overlay icons on touch — always visible on mobile */
  .portfolio-overlay { opacity: 1; background: rgba(0,0,0,0.45); }
  .overlay-btn { transform: scale(1); width: 44px; height: 44px; font-size: 15px; }
  .portfolio-info { padding: 18px; }
  .portfolio-info h3 { font-size: 16px; }
  .portfolio-info p { font-size: 13px; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; border-radius: var(--radius-sm); }
  .form-group input, .form-group textarea { font-size: 14px; padding: 12px 16px; }
  .contact-info h3 { font-size: 24px; }
  .contact-icon { width: 44px; height: 44px; font-size: 16px; }
  .social-btn { width: 44px; height: 44px; font-size: 16px; }

  /* --- Footer --- */
  .footer-inner { flex-direction: column; text-align: center; padding: 0 20px; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* --- Section headers --- */
  .section-desc { font-size: 15px; margin-bottom: 40px; }
  .section-label { font-size: 11px; }
}

/* ============================================================
   SMALL PHONES — 480px and below
   ============================================================ */
@media (max-width: 480px) {
  section { padding: 64px 0; }

  /* Shrink hero text even more on tiny screens */
  .hero-title { font-size: clamp(30px, 11vw, 42px); letter-spacing: -0.5px; }
  .typed-wrapper { font-size: clamp(18px, 7vw, 28px); }
  .hero-desc { font-size: 14px; line-height: 1.6; }

  /* Stats horizontal scroll on very small screens */
  .hero-stats { gap: 0; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 9px; }
  .stat-divider { height: 28px; }

  /* Buttons full width */
  .btn-primary, .btn-ghost { width: 100%; font-size: 14px; padding: 14px 20px; }

  /* Portfolio image slightly shorter */
  .portfolio-img-wrap { height: 180px; }

  /* Service cards minimal padding */
  .service-card { padding: 22px 18px; }
  .service-card h3 { font-size: 16px; }
  .service-features li { font-size: 12px; }
  .icon-cube { width: 56px; height: 56px; font-size: 24px; }

  /* Section title smaller */
  .section-title { font-size: clamp(24px, 9vw, 36px); }

  /* Contact form tighter */
  .contact-form { padding: 20px 16px; }

  /* Footer stack tighter */
  .footer-links { gap: 12px; }
  .footer-inner p { font-size: 12px; }
}
