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

/* ==========================================
   CYBERPUNK DESIGN SYSTEM
   ========================================== */
:root {
  /* Neon Palette */
  --color-bg-deep: #02020a;
  --color-bg-dark: #050510;
  --color-bg-card: rgba(10, 10, 20, 0.6);

  --color-neon-cyan: #00f3ff;
  --color-neon-magenta: #bc13fe;
  --color-neon-blue: #4d4dff;

  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0b0;
  --color-text-dim: #606070;

  /* Gradients */
  --gradient-cyber: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-blue));
  --gradient-glow: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
  --gradient-border: linear-gradient(90deg, var(--color-neon-cyan), var(--color-neon-magenta));

  /* Effects */
  --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.5);
  --glow-magenta: 0 0 20px rgba(188, 19, 254, 0.5);
  --glass-effect: blur(20px);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography Overrides */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1.glitch-text {
  font-size: 5rem;
  line-height: 1;
  position: relative;
  text-shadow: 2px 2px 0px var(--color-neon-magenta), -2px -2px 0px var(--color-neon-cyan);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    text-shadow: 2px 2px 0px var(--color-neon-magenta), -2px -2px 0px var(--color-neon-cyan);
  }

  25% {
    text-shadow: -2px 2px 0px var(--color-neon-magenta), 2px -2px 0px var(--color-neon-cyan);
  }

  50% {
    text-shadow: 2px -2px 0px var(--color-neon-magenta), -2px 2px 0px var(--color-neon-cyan);
  }

  75% {
    text-shadow: -2px -2px 0px var(--color-neon-magenta), 2px 2px 0px var(--color-neon-cyan);
  }

  100% {
    text-shadow: 2px 2px 0px var(--color-neon-magenta), -2px -2px 0px var(--color-neon-cyan);
  }
}

/* ==========================================
   FLOATING NAVBAR (New)
   ========================================== */
.navbar-floating {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  gap: 2rem;
}

.nav-pill {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-pill:hover,
.nav-pill.active {
  color: var(--color-neon-cyan);
  text-shadow: 0 0 10px var(--color-neon-cyan);
}

.nav-pill.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon-cyan);
}

/* ==========================================
   HERO SECTION (Cyberpunk)
   ========================================== */
.hero-cyber {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0a20 0%, #02020a 100%);
}

/* Background Grid Overlay */
.cyber-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  perspective: 500px;
  transform: rotateX(60deg) scale(1.5);
  transform-origin: top;
  opacity: 0.3;
  pointer-events: none;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 1000px;
  }
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  z-index: 2;
  max-width: 1400px;
  padding: 0 2rem;
}

.hero-text {
  flex: 1;
}

.cyber-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-neon-cyan);
  background: rgba(0, 243, 255, 0.1);
  color: var(--color-neon-cyan);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 2rem 0;
  border-left: 2px solid var(--color-neon-magenta);
  padding-left: 1rem;
}

/* 3D Avatar Container */
.hero-avatar {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.avatar-frame {
  width: 400px;
  height: 500px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.avatar-frame:hover {
  transform: rotateY(-10deg) rotateX(10deg);
}

.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neon-magenta);
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
  filter: grayscale(20%) contrast(110%);
}

/* Cyber Buttons */
.btn-cyber {
  position: relative;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--color-neon-cyan);
  border: 1px solid var(--color-neon-cyan);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-right: 1rem;
}

.btn-cyber:hover {
  background: var(--color-neon-cyan);
  color: #000;
  box-shadow: 0 0 30px var(--color-neon-cyan);
}

.btn-cyber-filled {
  background: var(--color-neon-magenta);
  color: #fff;
  border: none;
}

.btn-cyber-filled:hover {
  background: #d45fff;
  box-shadow: 0 0 30px var(--color-neon-magenta);
}


/* ==========================================
   BENTO GRID (General)
   ========================================== */
.bento-section {
  padding: var(--spacing-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
}

.section-head h2 {
  font-size: 4rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  text-transform: uppercase;
  opacity: 0.5;
}

.section-head span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--color-text-primary);
  text-shadow: 0 0 10px var(--color-neon-blue);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}

.bento-box {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bento-box:hover {
  border-color: var(--color-neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
  z-index: 10;
}

/* Grid Spans */
.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.row-2 {
  grid-row: span 2;
}

/* ==========================================
   SKILLS - TECH CHIPS
   ========================================== */
.tech-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  color: var(--color-neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.tech-chip:hover {
  background: var(--color-neon-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--color-neon-cyan);
}

/* ==========================================
   PORTFOLIO MASONRY
   ========================================== */
.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  group: project;
}

.project-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
  filter: grayscale(100%);
}

.project-card:hover .project-bg {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, #000, transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: 0.3s;
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-cyber {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cyber-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  color: #fff;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  transition: 0.3s;
}

.cyber-input:focus {
  outline: none;
  border-color: var(--color-neon-magenta);
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
  background: rgba(188, 19, 254, 0.05);
}

/* Response for Mobile */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column-reverse;
    /* Avatar on top */
    text-align: center;
    padding-top: 6rem;
  }

  .hero-desc {
    margin: 2rem auto;
    border-left: none;
    border-top: 2px solid var(--color-neon-magenta);
    padding-top: 1rem;
    padding-left: 0;
  }

  .bento-grid,
  .portfolio-bento {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .span-2,
  .span-4 {
    grid-column: span 1;
  }

  .navbar-floating {
    width: 90%;
    justify-content: space-between;
    bottom: 1rem;
    padding: 1rem;
  }
}