/* Performance Optimized CSS v2.0 */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --primary: #10b981;
  --primary-dark: #059669;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --container: 1280px;
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.hidden {
  display: none !important;
}
.text-primary {
  color: var(--primary);
}
.relative {
  position: relative;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-sm {
  width: 20px;
  height: 20px;
}
.icon-lg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}
.icon-primary {
  color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.2s, padding 0.2s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}
.logo-group:hover .logo-icon {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  line-height: 1;
  transition: color 0.2s;
}
.logo-group:hover .logo-text h1 {
  color: var(--primary);
}
.logo-text span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 2px;
}

.desktop-menu {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
  }
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  padding: 0.5rem 0;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav-link:hover::after {
  width: 100%;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  display: block;
}
.menu-btn:hover {
  color: #fff;
}
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(9, 9, 11, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.mobile-link:hover {
  color: var(--primary);
  background: rgba(39, 39, 42, 0.5);
}

/* Language Switcher - Desktop */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.flag-icon {
  display: inline-block;
  line-height: 1;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  vertical-align: middle;
}

/* Language Switcher - Mobile */
.lang-switcher-mobile {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.lang-btn-mobile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn-mobile:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.lang-btn-mobile.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.lang-btn-mobile .flag-icon {
  font-size: 1.25rem;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  scroll-margin-top: 7rem;
  position: relative;
  z-index: 10;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .hero-wrapper {
    flex-direction: row;
    gap: 5rem;
  }
}

.hero-content {
  flex: 1;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

/* Badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.badge-dot-container {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
}
.badge-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Hero Typography */
.hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem 0;
  color: #fff;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wave-emoji {
  display: inline-block;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 2rem auto;
}
@media (min-width: 1024px) {
  .hero-desc {
    margin-left: 0;
  }
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Tech Stack */
.tech-stack {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
@media (min-width: 1024px) {
  .tech-stack {
    text-align: left;
  }
}
.tech-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.tech-list:hover {
  opacity: 1;
}
@media (min-width: 1024px) {
  .tech-list {
    justify-content: flex-start;
  }
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #d4d4d8;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.dot.blue {
  background: #3b82f6;
}
.dot.yellow {
  background: #eab308;
}
.dot.cyan {
  background: #06b6d4;
}
.dot.gray {
  background: #71717a;
}
.dot.red {
  background: #ef4444;
}
.dot.green {
  background: #22c55e;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  width: 100%;
  max-width: 500px;
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.profile-bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
}
.profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}
.profile-circle:hover .profile-img {
  opacity: 1;
  filter: grayscale(0%);
}
.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    transparent,
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
}

/* Terminal Box */
.terminal-box {
  position: absolute;
  bottom: -3rem;
  right: -1rem;
  background: rgba(24, 24, 27, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 20;
  width: 280px;
  transition: transform 0.2s, border-color 0.2s;
}
@media (min-width: 768px) {
  .terminal-box {
    right: 0;
  }
}
.terminal-box:hover {
  transform: scale(1.05);
  border-color: rgba(16, 185, 129, 0.3);
}
.terminal-dots {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.terminal-dots .dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  opacity: 0.8;
}
.terminal-content {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.terminal-content p {
  margin: 0;
}
.arrow {
  color: var(--primary);
  margin-right: 0.5rem;
}
.val-green {
  color: #4ade80;
  margin-left: 0.5rem;
}
.val-yellow {
  color: #fef08a;
  margin-left: 0.5rem;
}
.val-primary {
  color: var(--primary);
  margin-left: 0.5rem;
}

/* Sections */
.section-focus,
.section-blog,
.section-projects,
.section-certs,
.section-contact {
  padding: 6rem 0;
  scroll-margin-top: 7rem;
  position: relative;
}
.section-focus {
  background: rgba(24, 24, 27, 0.3);
}
.section-blog {
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}
.section-projects {
  background: rgba(24, 24, 27, 0.2);
}
.section-certs {
  overflow: hidden;
}
.section-contact {
  background: linear-gradient(to bottom, var(--bg), rgba(24, 24, 27, 0.5));
  overflow: hidden;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 42rem;
}
.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header.no-margin {
  margin-bottom: 0;
}

.sub-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}
.main-title {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.5rem 0;
}
@media (min-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  .section-contact .main-title {
    font-size: 3rem;
  }
}
.section-desc {
  color: var(--muted);
  font-size: 1.125rem;
}
.section-desc.centered-desc {
  margin: 0 auto;
}

/* Grids */
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.05);
  transform: translateY(-0.25rem);
}
.card-icon-box {
  width: 3rem;
  height: 3rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background 0.2s, color 0.2s;
}
.card:hover .card-icon-box {
  background: var(--primary);
  color: #000;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: #fff;
  margin: 0 0 0.75rem 0;
}
.card-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Blog */
.blog-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .blog-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.link-external {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.link-external:hover {
  color: var(--primary);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-card {
    flex-direction: row;
  }
}
.blog-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 20px -10px rgba(16, 185, 129, 0.1);
}

.blog-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  color: var(--dim);
}
.blog-card:hover .blog-icon {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--primary);
}

.blog-content {
  flex: 1;
  min-width: 0;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.blog-card:hover .blog-title {
  color: var(--primary);
}
.blog-platform {
  color: var(--dim);
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
}

.badge {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}
.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.badge-yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.2);
}
.badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}
.badge-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.2);
}
.badge-gray {
  background: var(--surface-hover);
  color: var(--muted);
  border-color: var(--border);
}
.badge-green-light {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-text {
  color: var(--muted);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.blog-action {
  display: flex;
  align-items: center;
}

.btn-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}
@media (min-width: 768px) {
  .btn-small {
    width: auto;
  }
}
.btn-small:hover {
  background: var(--surface-hover);
}
.btn-small .icon {
  transition: transform 0.2s;
}
.btn-small:hover .icon {
  transform: translateX(4px);
}

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Project Blue Theme (Security Headers Checker) */
.project-blue:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}
.project-blue .project-icon {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
.project-blue:hover .project-icon {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.1);
}
.project-blue:hover .project-title {
  color: #3b82f6;
}
.project-blue .tech-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.project-blue:hover .tech-tag {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Project Orange Theme (Secure Vault) */
.project-orange:hover {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
}
.project-orange .project-icon {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #f97316;
}
.project-orange:hover .project-icon {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.15);
  transform: scale(1.1);
}
.project-orange:hover .project-title {
  color: #f97316;
}
.project-orange .tech-tag {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.project-orange:hover .tech-tag {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
}

.project-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.project-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}
.project-title {
  font-size: 1.375rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s;
}

.project-text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.tech-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.project-action {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}
.project-action .btn-small {
  width: 100%;
  justify-content: center;
}

/* Certificates */
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}
.cert-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cert-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid;
  transition: transform 0.2s;
}
.cert-card:hover .cert-icon {
  transform: scale(1.1);
}

.icon-red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}
.icon-orange {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.2);
}
.icon-green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}
.icon-blue {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.cert-content {
  flex: 1;
  min-width: 0;
}
.cert-title {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.cert-card:hover .cert-title {
  color: var(--primary);
}
.cert-subtitle {
  font-size: 0.875rem;
  color: var(--dim);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
  display: inline-block;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Social */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.social-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.social-icon {
  margin-bottom: 1.25rem;
  color: var(--dim);
  transition: transform 0.2s, color 0.2s;
}
.social-card:hover .social-icon {
  transform: scale(1.1);
}

.social-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  transition: color 0.2s;
}
.social-label {
  font-size: 0.875rem;
  color: var(--dim);
  margin-top: 0.5rem;
  font-weight: 500;
}

.hover-blue:hover {
  border-color: rgba(59, 130, 246, 0.5);
}
.hover-blue:hover .social-icon,
.hover-blue:hover .social-name {
  color: #3b82f6;
}
.hover-white:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.hover-white:hover .social-icon,
.hover-white:hover .social-name {
  color: #fff;
}
.hover-gray:hover {
  border-color: rgba(228, 228, 231, 0.5);
}
.hover-gray:hover .social-icon,
.hover-gray:hover .social-name {
  color: #e4e4e7;
}
.hover-primary:hover {
  border-color: rgba(16, 185, 129, 0.5);
}
.hover-primary:hover .social-icon,
.hover-primary:hover .social-name {
  color: var(--primary);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #000;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}
.footer p {
  color: var(--dim);
  font-size: 0.875rem;
  margin: 0;
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #52525b;
  font-size: 0.75rem;
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.footer-badge .icon {
  color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .terminal-box {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
  }
  .hero-visual {
    max-width: 280px;
  }
  .profile-circle {
    max-width: 280px;
  }
  .tech-list {
    justify-content: center;
    gap: 1rem;
  }
  .tech-item {
    font-size: 0.75rem;
  }
  .main-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 1rem;
  }
  .card {
    padding: 1.25rem;
  }
  .blog-card {
    flex-direction: column;
    padding: 1.25rem;
  }
  .blog-icon {
    width: 3rem;
    height: 3rem;
  }
  .project-card {
    padding: 1.5rem;
  }
  .project-icon {
    width: 3rem;
    height: 3rem;
  }
  .project-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .project-title {
    font-size: 1.125rem;
  }
  .project-text {
    font-size: 0.875rem;
  }
  .blog-title {
    font-size: 1rem;
    white-space: normal;
  }
  .blog-action {
    width: 100%;
  }
  .btn-small {
    width: 100%;
  }
  .cert-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }
  .cert-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 0.75rem;
  }
  .cert-content {
    text-align: center;
  }
  .cert-title {
    font-size: 1rem;
    white-space: normal;
  }
  .cert-subtitle {
    white-space: normal;
  }
  .cert-status {
    align-items: center;
  }
  .social-card {
    padding: 1.5rem 1rem;
  }
  .social-icon .icon {
    width: 36px;
    height: 36px;
  }
  .social-name {
    font-size: 1rem;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .badge-pill {
    margin-bottom: 1.5rem;
  }
  .badge-text {
    font-size: 0.625rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .terminal-box {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0;
  }
  .hero-visual {
    max-width: 350px;
  }
  .cert-card {
    flex-wrap: wrap;
  }
  .cert-title,
  .cert-subtitle {
    white-space: normal;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .terminal-box {
    right: 0;
    bottom: -2rem;
    width: 260px;
  }
  .hero-visual {
    max-width: 400px;
  }
  .cert-title,
  .cert-subtitle {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-focus,
  .section-blog,
  .section-projects,
  .section-certs,
  .section-contact {
    padding: 4rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .navbar-container {
    flex-wrap: nowrap;
  }
  .logo-text h1 {
    font-size: 0.875rem;
  }
  .logo-text span {
    font-size: 9px;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  .hero-section,
  .section-focus,
  .section-blog,
  .section-projects,
  .section-certs,
  .section-contact {
    scroll-margin-top: 5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
