@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Orbitron:wght@400;700;900&display=swap');

:root {
  /* primary colors */
  --color-cyan: #00FFFF;
  --color-magenta: #FF00FF;
  --color-purple: #9D00FF;
  
  /* background colors */
  --color-bg-dark: #0a0a0f;
  --color-bg-card: #0a0a0fcc;
  --color-bg-overlay: #ffffff0d;
  --color-bg-footer: #000000f2;
  --color-bg-gradient-1: #1a003380;
  --color-bg-gradient-2: #00082080;
  
  /* text color */
  --color-text: #e0e0ff;
  
  /* transparent variants (30% opacity) */
  --color-cyan-alpha: #00ffff4d;
  --color-magenta-alpha: #ff00ff4d;
  --color-purple-alpha: #9d00ff4d;
  
  /* fonts */
  --font-primary: 'Orbitron', sans-serif;
  --font-retro: 'VT323', monospace;
  
  /* spacing */
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --spacing-section: clamp(60px, 10vh, 100px);
  --spacing-section-x: clamp(16px, 5vw, 80px);
  
  /* border radius */
  --radius-sm: 15px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --radius-full: 50%;
  
  /* transitions */
  --transition-fast: 0.3s;
  
  /* shadows */
  --shadow-glow: 0 0 20px var(--color-cyan), 0 0 40px var(--color-magenta);
  
  /* z-index layers */
  --z-navbar: 1000;
  --z-hamburger: 1001;
}

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

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

body {
  font-family: var(--font-primary), var(--font-retro), monospace;
  background: var(--color-bg-dark);
  background-image: 
    linear-gradient(var(--color-cyan-alpha) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-magenta-alpha) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 60px);
}

/* mobile-first */
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 10px 5%;
  /* background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(26, 0, 51, 0.5) 50%,
    rgba(0, 8, 32, 0.6) 100%
  ); */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid transparent;
  /* border-image: linear-gradient(
    90deg,
    var(--color-cyan-alpha),
    var(--color-magenta-alpha),
    var(--color-purple-alpha),
    var(--color-cyan-alpha)
  ) 1; */
  /* border-bottom: 1px solid; */
  box-shadow: 
    0 8px 32px rgba(0, 255, 255, 0.1),
    0 4px 16px rgba(255, 0, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z-navbar);
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.navbar .logo {
  display: flex;
  align-items: center;
  z-index: var(--z-hamburger);
}

.navbar .logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar .logo img:hover {
  filter: drop-shadow(0 0 20px var(--color-cyan)) drop-shadow(0 0 30px var(--color-magenta));
}

/* hamburger menu */
.menu-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-hamburger);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-cyan);
  transition: var(--transition-fast);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--color-cyan);
}

.hamburger:hover span {
  background: var(--color-magenta);
  box-shadow: 0 0 15px var(--color-magenta), 0 0 25px var(--color-cyan);
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 5px);
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

/* hamburger */
.nav-menu {
  position: fixed;
  right: -280px;
  top: 55px;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(26, 0, 51, 0.65) 50%,
    rgba(0, 8, 32, 0.75) 100%
  );
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  width: min(250px, 85vw);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: 0.3s ease-in-out;
  padding: 20px 0;
  list-style: none;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu-toggle:checked ~ .nav-menu {
  right: 20px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  padding: 12px 25px;
  border-left: 3px solid transparent;
  letter-spacing: 1px;
}

.nav-menu li a::before {
  content: '> ';
  opacity: 0;
  margin-right: 5px;
  transition: var(--transition-fast);
}

.nav-menu li:hover a::before,
.nav-menu li.active a::before {
  opacity: 1;
}

.nav-menu li:hover a,
.nav-menu li.active a {
  color: var(--color-cyan);
  background: var(--color-cyan-alpha);
  border-left-color: var(--color-magenta);
}

/* mobile home */
.home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 5% 40px;
  gap: 30px;
  overflow: hidden;
  color: var(--color-text);
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
  animation-delay: 0.8s;
}

.home-info {
  text-align: center;
  order: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up-fade 1s ease-out forwards;
  animation-delay: 1.2s;
}

.home-info h1 {
  font-size: clamp(28px, 8vw, 55px);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-magenta), var(--color-purple), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px var(--color-cyan)) drop-shadow(0 0 40px var(--color-magenta));
  font-family: var(--font-primary);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.8);
  animation: scale-in-glow 0.8s ease-out forwards;
  animation-delay: 1.4s;
}

.home-info h2 {
  display: inline-block;
  font-size: clamp(18px, 5vw, 32px);
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-primary);
  font-weight: 700;
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 1.8s;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: .7px var(--color-magenta);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
  filter: drop-shadow(0 0 5px var(--color-magenta-alpha));
}

@keyframes display-text {
  25%, 100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 3px solid var(--color-cyan);
  color: var(--color-cyan);
  white-space: nowrap;
  overflow: hidden;
  animation: scan-text 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 8px var(--color-cyan));
  text-shadow: 
    0 0 10px var(--color-cyan),
    0 0 20px var(--color-cyan),
    0 0 30px var(--color-cyan-alpha);
}

@keyframes scan-text {
  0%, 10% {
    width: 0;
    border-right-color: var(--color-cyan);
    filter: drop-shadow(0 0 8px var(--color-cyan));
  }
  
  15% {
    border-right-color: var(--color-cyan);
    filter: drop-shadow(0 0 15px var(--color-cyan)) drop-shadow(0 0 25px var(--color-cyan-alpha));
  }
  
  50%, 70% {
    width: 100%;
    border-right-color: var(--color-magenta);
    filter: drop-shadow(0 0 8px var(--color-magenta));
  }
  
  72%, 75% {
    width: 100%;
    border-right-color: transparent;
    filter: drop-shadow(0 0 12px var(--color-cyan));
  }
  
  77%, 80% {
    width: 100%;
    border-right-color: transparent;
    filter: drop-shadow(0 0 8px var(--color-cyan));
  }
  
  90%, 100% {
    width: 0;
    border-right-color: var(--color-purple);
    filter: drop-shadow(0 0 8px var(--color-purple));
  }
}

.home-info p {
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.8;
  margin: var(--spacing-sm) 0 25px;
  font-family: var(--font-retro);
  font-weight: 300;
  max-width: 600px;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 2.2s;
}

.home-info .btn-sci {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 2.6s;
}

.btn {
  display: inline-block;
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 35px);
  background: transparent;
  border: 2px solid var(--color-cyan);
  border-radius: var(--radius-lg);
  font-size: clamp(14px, 2vw, 18px);
  font-family: var(--font-primary);
  color: var(--color-cyan);
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-cyan-alpha);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-cyan);
  color: var(--color-bg-dark);
  box-shadow: var(--shadow-glow);
}

.home-info .btn-sci .sci {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.home-info .btn-sci .sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-magenta);
  border-radius: var(--radius-full);
  font-size: 20px;
  color: var(--color-magenta);
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--color-magenta-alpha);
}

.home-info .btn-sci .sci a:hover {
  background: var(--color-magenta);
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px var(--color-magenta), 0 0 40px var(--color-cyan);
  transform: translateY(-3px);
}

.home-img {
  order: 1;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  animation: image-entrance 1.2s ease-out forwards;
  animation-delay: 1s;
}

.home-img .img-box {
  position: relative;
  width: clamp(150px, 40vw, 300px);
  height: clamp(150px, 40vw, 300px);
  max-width: 180px;
  max-height: 180px;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 
    0 0 30px #00FFFF,
    0 0 60px #FF00FF,
    0 0 90px #9D00FF,
    inset 0 0 20px #00ffff33;
  animation: neon-pulse 2s ease-in-out infinite alternate;
  animation-delay: 2.2s;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 50deg,
    #00FFFF 70deg,
    #00FFFF 90deg,
    #0DFFDD 100deg,
    transparent 120deg,
    transparent 170deg,
    #FF00FF 190deg,
    #FF00FF 210deg,
    #DD00FF 220deg,
    transparent 240deg,
    transparent 290deg,
    #9D00FF 310deg,
    #9D00FF 330deg,
    #7700FF 340deg,
    transparent 360deg
  );
  filter: blur(6px) brightness(2);
  transform: rotate(0deg);
  animation: rotate-border 4s linear infinite;
  border-radius: 50%;
}

.home-img .img-box::after {
  animation-delay: -2s;
  filter: blur(15px) brightness(1.8);
  opacity: 0.8;
}

@keyframes neon-pulse {
  0% {
    box-shadow: 
      0 0 20px #00FFFF,
      0 0 40px #FF00FF,
      0 0 60px #9D00FF,
      inset 0 0 15px #00ffff33;
  }
  100% {
    box-shadow: 
      0 0 40px #00FFFF,
      0 0 80px #FF00FF,
      0 0 120px #9D00FF,
      inset 0 0 25px #00ffff4d;
  }
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('./public/cyber.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid #00FFFF;
  box-shadow: 
    inset 0 0 20px #00ffff4d,
    inset 0 0 40px #ff00ff33,
    0 0 10px #00FFFF;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 20px;
  display: block;
  width: 100%;
  object-fit: cover;
}

.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.bars-animation .bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #0a0a0f, 
    #00ffff1a, 
    #ff00ff1a, 
    #9d00ff1a, 
    #0a0a0f
  );
  box-shadow: 
    inset 0 0 50px #00ffff0d,
    inset 0 0 30px #ff00ff0d;
  transform: translateY(-100%);
  animation: show-bars .5s ease-in-out forwards;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
  100% {
    transform: translateY(0%);
  }
}

@media (min-width: 768px) {
  .home-info p {
    margin-left: 0;
    margin-right: 0;
  }
  .home-img .img-box {
    max-width: 280px;
    max-height: 280px;
  }
  .home-img .img-box::before,
  .home-img .img-box::after {
    width: 350px;
    height: 350px;
  }
}

@media (min-width: 1024px) {
  .home-img .img-box {
    max-width: 300px;
    max-height: 300px;
  }
  .home-img .img-box::before,
  .home-img .img-box::after {
    width: 400px;
    height: 400px;
  }
}

/* section styles - def mobile */
.section-title {
  font-size: clamp(28px, 6vw, 40px);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-cyan);
  font-family: var(--font-primary);
  font-weight: 900;
  text-shadow: var(--shadow-glow);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: neon-flicker 3s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% {
    text-shadow: 0 0 20px var(--color-cyan), 0 0 40px var(--color-magenta), 0 0 60px var(--color-cyan);
  }
  50% {
    text-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-magenta), 0 0 30px var(--color-cyan);
  }
}

/* about */
.about {
  padding: var(--spacing-section) var(--spacing-section-x);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('./public/space1.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about-text h3 {
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: var(--spacing-md);
  color: var(--color-magenta);
  font-family: var(--font-primary);
  font-weight: 700;
  text-shadow: 0 0 15px var(--color-magenta);
  letter-spacing: 2px;
}

.about-text p {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-retro);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

/* skills - grid */
.skills {
  padding: var(--spacing-section) var(--spacing-section-x);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-gradient-1), var(--color-bg-gradient-2));
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--color-bg-overlay);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-align: center;
}

.skill-item:hover {
  border-color: var(--color-cyan);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--color-cyan-alpha), 0 0 30px var(--color-magenta-alpha);
}

.skill-item img {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  margin-bottom: 15px;
  object-fit: contain;
}

.skill-item span {
  font-size: clamp(12px, 2vw, 16px);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 1px;
}

/* projects - flexbox */
.projects {
  padding: var(--spacing-section) var(--spacing-section-x);
  min-height: 100vh;
  background-image: url('./public/space_run.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.project-card {
  background: var(--color-bg-card);
  padding: 25px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-purple-alpha);
  transition: var(--transition-fast);
}

.project-card:hover {
  border-color: var(--color-magenta);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--color-magenta-alpha), 0 0 30px var(--color-cyan-alpha);
}

.project-card h3 {
  font-size: clamp(18px, 3.5vw, 24px);
  margin-bottom: var(--spacing-sm);
  color: var(--color-magenta);
  font-family: var(--font-primary);
  font-weight: 700;
  text-shadow: 0 0 10px var(--color-magenta);
  letter-spacing: 1.5px;
}

.project-card p {
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-retro);
  font-weight: 300;
  color: var(--color-text);
}

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

.project-link {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--color-purple);
  border-radius: var(--radius-md);
  color: var(--color-purple);
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: 0 0 5px var(--color-purple-alpha);
  letter-spacing: 1px;
}

.project-link:hover {
  background: var(--color-purple);
  color: var(--color-bg-dark);
  box-shadow: 0 0 15px var(--color-purple);
}

/* contact */
.contact {
  padding: var(--spacing-section) var(--spacing-section-x);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-gradient-2), var(--color-bg-gradient-1));
}

.contact-content {
  text-align: center;
}

.contact-content > p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-retro);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--color-cyan);
  border-radius: var(--radius-lg);
  color: var(--color-cyan);
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 700;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--color-cyan-alpha);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-btn:hover {
  background: var(--color-cyan);
  color: var(--color-bg-dark);
  box-shadow: var(--shadow-glow);
}

.contact-btn i {
  font-size: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid var(--color-magenta);
  border-radius: var(--radius-full);
  font-size: 22px;
  color: var(--color-magenta);
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--color-magenta-alpha);
}

.social-links a:hover {
  background: var(--color-magenta);
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px var(--color-magenta), 0 0 40px var(--color-cyan);
  transform: translateY(-3px);
}

/* blog - grid */
.blog {
  padding: var(--spacing-section) var(--spacing-section-x);
  min-height: 100vh;
  background-image: url('./public/blackhole.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.blog-card {
  background: var(--color-bg-card);
  padding: 25px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-purple-alpha);
  transition: var(--transition-fast);
}

.blog-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--color-cyan-alpha), 0 0 30px var(--color-magenta-alpha);
}

.blog-card h3 {
  font-size: clamp(18px, 3.5vw, 24px);
  margin-bottom: var(--spacing-xs);
  color: var(--color-cyan);
  font-family: var(--font-primary);
  font-weight: 700;
  text-shadow: 0 0 10px var(--color-cyan);
  letter-spacing: 1.5px;
}

.blog-date {
  color: var(--color-purple-alpha);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-retro);
  font-size: 16px;
  letter-spacing: 1px;
}

.blog-card p {
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-retro);
  font-weight: 300;
  color: var(--color-text);
}

.read-more {
  color: var(--color-purple);
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition-fast);
  text-shadow: 0 0 5px var(--color-purple);
  letter-spacing: 1px;
}

.read-more:hover {
  text-decoration: underline;
}

/* footer */
.footer {
  padding: var(--spacing-lg) 5%;
  background: var(--color-bg-footer);
  text-align: center;
  border-top: 1px solid var(--color-cyan-alpha);
  box-shadow: 0 -5px 20px var(--color-magenta-alpha);
}

.footer p {
  color: var(--color-text);
  font-family: var(--font-retro);
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 1px;
}

/* 600px - tablets */
@media (min-width: 600px) {
  .navbar .logo img {
    height: 48px;
  }

  .home {
    padding: 90px 6% 50px;
    gap: 35px;
  }

  .home-img .img-box {
    width: 45vw;
    height: 45vw;
    max-width: 220px;
    max-height: 220px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .skill-item img {
    width: 55px;
    height: 55px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .section-title {
    font-size: 32px;
  }
}

/* 768px - small laptops */
@media (min-width: 768px) {
  .navbar {
    padding: 12px 5%;
  }

  .navbar .logo img {
    height: 55px;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    right: auto;
    top: auto;
    flex-direction: row;
    background: transparent;
    width: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
  }

  .nav-menu li {
    margin: 0 clamp(8px, 1.5vw, 15px);
  }

  .nav-menu li a {
    font-size: clamp(14px, 1.5vw, 16px);
    padding: 0;
    border-left: none;
    display: inline-flex;
    align-items: center;
  }

  .nav-menu li:hover a,
  .nav-menu li.active a {
    background: transparent;
    border-left-color: transparent;
  }

  .home {
    flex-direction: row;
    padding: 80px 7% 40px;
    gap: 40px;
  }

  .home-info {
    text-align: left;
    order: 1;
    flex: 1;
  }

  .home-info h1 {
    font-size: 40px;
  }

  .home-info h2 {
    font-size: 24px;
  }

  .home-info p {
    font-size: 15px;
  }

  .home-info .btn-sci {
    flex-direction: row;
    gap: 20px;
  }

  .home-img {
    order: 2;
    flex: 0 0 auto;
  }

  .home-img .img-box {
    width: 32vw;
    height: 32vw;
    max-width: 260px;
    max-height: 260px;
  }

  .skills-grid {
    gap: 30px;
  }

  .skill-item img {
    width: 60px;
    height: 60px;
  }

  .projects-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
  }

  .about-text h3 {
    font-size: 26px;
  }

  .about-text p {
    font-size: 16px;
  }

  .contact-methods {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .blog-grid {
    gap: 30px;
  }

  .section-title {
    font-size: 36px;
  }
}

/* 1024px - desktops */
@media (min-width: 1024px) {
  .navbar {
    padding: 15px 5%;
  }

  .navbar .logo img {
    height: 60px;
  }

  .nav-menu li {
    margin: 0 clamp(15px, 2vw, 25px);
  }

  .nav-menu li a {
    font-size: clamp(16px, 1.5vw, 18px);
  }

  .home {
    padding: 60px 9% 0;
    gap: 50px;
  }

  .home-info h1 {
    font-size: 50px;
  }

  .home-info h2 {
    font-size: 28px;
  }

  .home-info p {
    font-size: 16px;
  }

  .home-img .img-box {
    width: 28vw;
    height: 28vw;
    max-width: 300px;
    max-height: 300px;
  }

  .section-title {
    font-size: 40px;
  }

  .about-text h3 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 17px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }

  .skill-item {
    padding: 30px;
  }

  .skill-item img {
    width: 70px;
    height: 70px;
  }

  .skill-item span {
    font-size: 16px;
  }

  .projects-grid {
    flex-wrap: wrap;
    gap: 30px;
  }

  .project-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card p {
    font-size: 16px;
  }

  .contact-content > p {
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-methods {
    gap: 40px;
  }

  .blog-grid {
    gap: 35px;
  }

  .blog-card h3 {
    font-size: 24px;
  }

  .blog-card p {
    font-size: 16px;
  }
}

/* 1200px - large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  .navbar {
    padding: 15px 3%;
  }

  .nav-menu li {
    margin: 0 clamp(20px, 2.5vw, 35px);
  }

  .nav-menu li a {
    font-size: clamp(18px, 1.5vw, 20px);
  }

  .home {
    padding: 60px 12% 0;
  }

  .home-info h1 {
    font-size: 55px;
  }

  .home-info h2 {
    font-size: 32px;
  }

  .home-img .img-box {
    width: 25vw;
    height: 25vw;
    max-width: 350px;
    max-height: 350px;
  }

  .section-title {
    font-size: 45px;
  }

  .skills-grid {
    gap: 40px;
  }

  .skill-item img {
    width: 80px;
    height: 80px;
  }

  .projects-grid {
    gap: 40px;
  }

  .project-card {
    flex: 1 1 calc(33.333% - 27px);
  }
}

/* landscape orientation - mobile & tablet */
@media (max-height: 500px) and (orientation: landscape) {
  .home {
    min-height: 0;
    padding: 100px 5% 60px;
    flex-direction: row;
    align-items: center;
  }

  .home-img .img-box {
    max-width: 180px;
    max-height: 180px;
    width: 30vh;
    height: 30vh;
  }

  .home-info {
    text-align: left;
  }

  .about,
  .skills,
  .projects,
  .contact,
  .blog {
    min-height: 0;
    padding: 60px 5%;
  }
}

/* auto-show animation */
.auto-show {
  animation: autoShowAnimation both;
  animation-timeline: view(70% 5%);
}

@keyframes autoShowAnimation {
  from {
    opacity: 0;
    transform: translateY(200px) scale(0.3);     
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* opening home animation keyframes */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in-glow {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 0 0px #00ffff99) drop-shadow(0 0 0px #ff00ff66);
  }
  50% {
    filter: drop-shadow(0 0 30px #00ffff99) drop-shadow(0 0 60px #ff00ff66);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 20px #00ffff99) drop-shadow(0 0 40px #ff00ff66);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes image-entrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
