/* ===============================================
   GOWSHIK S - Professional Developer Portfolio
   Fresh Modern Design with Live Project Previews
   =============================================== */

/* ====== FONT IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'CerebriSans';
  src: url('https://db.onlinewebfonts.com/t/666ef30c6ad3ac84c4b9f02b2c61f031.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'CerebriSans';
  src: url('https://db.onlinewebfonts.com/t/666ef30c6ad3ac84c4b9f02b2c61f031.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'CerebriSans';
  src: url('https://db.onlinewebfonts.com/t/666ef30c6ad3ac84c4b9f02b2c61f031.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* ====== CSS VARIABLES ====== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0c0c0c;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-elevated: #222222;
  --bg-glass: rgba(26, 26, 26, 0.8);

  /* Accent Colors - Neutral */
  --accent-primary: #ffffff;
  --accent-secondary: #e0e0e0;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
  --accent-glow: rgba(255, 255, 255, 0.15);

  /* Warm Accent */
  --warm-primary: #ffffff;
  --warm-secondary: #e0e0e0;
  --warm-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b2b2b2;
  --text-muted: #666666;
  --text-accent: #ffffff;

  /* Borders & Effects */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(255, 255, 255, 0.1);

  /* Layout */
  --nav-height: 72px;
  --container-max: 1280px;
  --section-gap: 120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #EDF1FE;
  --bg-secondary: #FBFCF6;
  --bg-card: #ffffff;
  --bg-elevated: #f5f7ff;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --text-accent: #1a1a2e;

  --accent-primary: #1a1a2e;
  --accent-secondary: #4a4a6a;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 203, 110, 0.15) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

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

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ====== TYPOGRAPHY ====== */
.font-cerebri {
  font-family: 'CerebriSans', 'Inter', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'CerebriSans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: var(--warm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== LAYOUT ====== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* ====== NAVIGATION ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'CerebriSans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

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

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: 'CerebriSans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* Nav Actions */
.nav-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

/* Mobile Menu */
.nav-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.nav-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ====== HERO SECTION ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00d26a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(0, 210, 106, 0);
  }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '✨';
  position: absolute;
  top: -10px;
  right: -35px;
  font-size: 0.5em;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

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

  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.8;
  }
}

.hero-role {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

/* Hero Description */
.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'CerebriSans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* Social Links */
.hero-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
  transform: translateY(-4px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-card-subtitle {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'CerebriSans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating Elements */
.floating-badge {
  position: absolute;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge.top-right {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge.bottom-left {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}

@keyframes floatBadge {

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

  50% {
    transform: translateY(-10px);
  }
}

/* ====== SECTIONS BASE ====== */
.section {
  padding: var(--section-gap) 0;
  scroll-margin-top: var(--nav-height);
}

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

.section-label {
  font-family: 'CerebriSans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ====== PROJECTS SECTION ====== */
.projects-grid {
  display: grid;
  gap: 32px;
}

.project-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-8px);
}

.project-item.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.project-item.featured:nth-child(even) {
  grid-template-columns: 1fr 1.4fr;
}

.project-item.featured:nth-child(even) .project-preview {
  order: 2;
}

/* Project Preview (iframe) */
.project-preview {
  position: relative;
  background: var(--bg-elevated);
  min-height: 450px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-card) 100%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-item:hover .project-preview::before {
  opacity: 1;
}

/* Browser Mockup */
.browser-frame {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  z-index: 2;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.browser-dots span:nth-child(1) {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28ca42;
}

.browser-url {
  flex: 1;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
}

.project-iframe-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.project-iframe-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: none;
  display: block;
  transition: transform var(--transition-normal);
}

.project-iframe-wrapper a:hover .project-image {
  transform: scale(1.05);
}

/* Project Content */
.project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  width: fit-content;
  margin-bottom: 16px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.project-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.project-link.primary {
  background: var(--accent-gradient);
  color: white;
}

.project-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.project-link.secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.project-link.secondary:hover {
  border-color: var(--border-hover);
}

.project-link svg {
  width: 18px;
  height: 18px;
}

/* Small Project Cards */
.projects-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.project-card-small {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

.project-card-small:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.project-card-small .project-badge {
  margin-bottom: 12px;
}

.project-card-small .project-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-card-small .project-description {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ====== SERVER SECTION ====== */
.server-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-fast);
  position: relative;
}

.server-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.server-card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.server-card-icon svg {
  width: 28px;
  height: 28px;
}

.server-card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.server-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.server-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.server-info-list li:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* Highlighted Server Stats Card */
.server-card.highlighted {
  border-color: var(--border-hover);
}

/* LIVE Badge */
.live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid rgba(0, 210, 106, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #00d26a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00d26a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Server Stats Grid */
.server-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.server-stat-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.server-stat-value {
  display: block;
  font-family: 'CerebriSans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.server-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.server-last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.server-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Server CTA */
.server-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .server-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Stats card appears first on mobile */
  .server-card.highlighted {
    order: -1;
  }
}

/* ====== SKILLS SECTION ====== */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-fast);
}

.skill-category:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.skill-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.skill-icon svg {
  width: 28px;
  height: 28px;
}

.skill-category-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-item:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ====== CONTACT SECTION ====== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding-right: 48px;
}

.contact-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
}

.contact-item-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-content span,
.contact-item-content a {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-social {
  display: flex;
  gap: 12px;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'CerebriSans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

/* ====== FOOTER ====== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

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

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

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

/* Footer Status */
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-status:hover {
  color: var(--text-primary);
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

.footer-status.online .footer-status-dot {
  background: #00d26a;
}

.footer-status.online .footer-status-text {
  color: #00d26a;
}

.footer-status.offline .footer-status-dot {
  background: #ff5f57;
}

.footer-status.offline .footer-status-text {
  color: #ff5f57;
}

/* ====== ANIMATIONS ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .project-item.featured {
    grid-template-columns: 1fr;
  }

  .project-item.featured:nth-child(even) .project-preview {
    order: 0;
  }

  .project-preview {
    min-height: 280px;
  }

  .project-image {
    object-fit: contain;
    object-position: center center;
    height: auto;
    min-height: 100%;
  }

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

  .contact-info {
    padding-right: 0;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    flex-direction: column;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .nav-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .projects-small-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
  }

  .floating-badge {
    display: none;
  }
}