/* Critical CSS - Optimized & Minified */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --cyber-cyan: #00ffde;
  --cyber-blue: #0ea5e9;
  --cyber-pink: #ff0064;
  --cyber-green: #00ff41;
  --font-main: 'Poppins', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: 0 0;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05), transparent 70%),
    linear-gradient(180deg, #0a0a0f 0, #14141e 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, rgba(0, 255, 222, 0.02) 1px, transparent 2px, transparent 80px),
    repeating-linear-gradient(90deg, transparent 0, rgba(0, 255, 222, 0.02) 1px, transparent 2px, transparent 80px);
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--cyber-cyan);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--cyber-blue);
  top: 50%;
  right: 10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--cyber-pink);
  bottom: 20%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(40px, 40px) scale(1.05);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyber-cyan);
}

.brand-bracket {
  color: var(--cyber-blue);
}

.brand-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  background: 0 0;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 100%;
  height: 3px;
  background: var(--cyber-blue);
  transition: all 0.3s;
  border-radius: 2px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all 0.3s;
  border-radius: 8px;
  position: relative;
}

.nav-link:hover {
  color: var(--cyber-cyan);
  background: rgba(0, 255, 222, 0.1);
}

.nav-link.active {
  color: var(--cyber-cyan);
  background: rgba(0, 255, 222, 0.15);
}

.nav-number {
  color: var(--cyber-blue);
  font-size: 0.85rem;
}

.main-content {
  min-height: calc(100vh - 180px);
  padding: 2rem 0;
}

.footer {
  margin-top: 4rem;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.glass-effect {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-panel {
  background: rgba(20, 20, 30, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
}

.neon-text {
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px currentColor;
}

.cyber-cyan {
  color: var(--cyber-cyan);
}

.cyber-blue {
  color: var(--cyber-blue);
}

.cyber-pink {
  color: var(--cyber-pink);
}

.mono {
  font-family: var(--font-mono);
}

.cyber-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--cyber-blue);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cyber-button:hover {
  border-color: var(--cyber-cyan);
  background: rgba(0, 255, 222, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 222, 0.3);
}

.cyber-button.primary {
  border-color: var(--cyber-cyan);
  background: rgba(0, 255, 222, 0.15);
}

.cyber-button.secondary {
  border-color: var(--cyber-blue);
}

.button-icon {
  font-size: 1.2rem;
}

.button-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 222, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.cyber-button:hover .button-glow {
  transform: translateX(100%);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.title-bracket {
  color: var(--cyber-blue);
  font-size: 3.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.hero-section {
  padding: 4rem 0;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--cyber-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text.glitch-active::before {
  opacity: 0.8;
  color: var(--cyber-pink);
  animation: glitch1 0.3s infinite;
}

.glitch-text.glitch-active::after {
  opacity: 0.8;
  color: var(--cyber-cyan);
  animation: glitch2 0.3s infinite;
}

@keyframes glitch1 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, -2px);
  }
  80% {
    transform: translate(2px, 2px);
  }
}

@keyframes glitch2 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, -2px);
  }
  80% {
    transform: translate(-2px, 2px);
  }
}

.hero-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  flex-wrap: wrap;
}

.role-bracket {
  color: var(--cyber-blue);
  font-size: 1.75rem;
}

.role-text {
  font-weight: 500;
}

.role-separator {
  color: var(--text-muted);
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 2rem;
}

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

.highlight {
  color: var(--cyber-cyan);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tech-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyber-cyan);
  transition: all 0.3s;
}

.tech-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 255, 222, 0.4);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-card {
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 222, 0.15);
  border: 2px solid var(--cyber-cyan);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.skill-name {
  font-size: 1.5rem;
  color: var(--cyber-cyan);
}

.skill-level {
  margin-bottom: 1.5rem;
}

.level-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-blue));
  border-radius: 4px;
  transition: width 1.5s ease;
}

.level-text {
  font-family: var(--font-mono);
  color: var(--cyber-blue);
  font-size: 0.9rem;
}

.skill-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

.learning-section {
  margin-top: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--text-primary);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.learning-card {
  padding: 2rem;
  transition: all 0.3s;
}

.learning-card:hover {
  transform: translateY(-5px);
}

.learning-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.learning-name {
  font-size: 1.3rem;
  color: var(--cyber-cyan);
  margin-bottom: 1rem;
}

.learning-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.learning-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-cyan));
  border-radius: 3px;
  transition: width 1s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.project-title {
  font-size: 1.5rem;
  color: var(--cyber-cyan);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid var(--cyber-blue);
  border-radius: 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--cyber-blue);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.project-link:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--cyber-blue);
}

.contacts-section {
  padding: 2rem 0;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 2rem;
}

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

.intro-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.status-dot-large {
  width: 12px;
  height: 12px;
  background: var(--cyber-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text-large {
  color: var(--cyber-green);
  font-weight: 500;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 222, 0.3);
}

.contact-icon-wrapper {
  position: relative;
}

.contact-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  font-size: 2rem;
}

.icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 255, 222, 0.3), transparent);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover .icon-glow {
  opacity: 1;
}

.contact-content {
  flex: 1;
}

.contact-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--cyber-cyan);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-arrow {
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

.response-info {
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.response-icon {
  font-size: 2rem;
}

.response-title {
  font-size: 1.3rem;
  color: var(--cyber-cyan);
}

.response-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.response-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.response-item:last-child {
  border-bottom: none;
}

.response-label {
  color: var(--text-secondary);
}

.response-value {
  font-weight: 600;
}

.additional-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-card {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-title {
  color: var(--cyber-cyan);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-value {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-detail {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-cta {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border-radius: 20px;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(14, 165, 233, 0.3);
    padding: 2rem;
    gap: 1rem;
    transition: right 0.3s;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .hero-role {
    font-size: 1.2rem;
  }
  
  .hero-description {
    padding: 1.5rem;
  }
  
  .tech-icons {
    gap: 0.75rem;
  }
  
  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 0.95rem;
  }
  
  .skills-grid,
  .projects-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cyber-button {
    width: 100%;
  }
  
  .additional-info {
    grid-template-columns: 1fr;
  }
}