/* ========== GLOBAL RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0a0a0f;
  color: #eef5ff;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:root {
  --primary-red: #ff003c;
  --primary-blue: #00d4ff;
  --dark-bg: #0a0a0f;
  --card-bg: rgba(12, 12, 22, 0.85);
  --glow-red: rgba(255, 0, 60, 0.4);
  --glow-blue: rgba(0, 212, 255, 0.4);
}

/* ========== CYBER BACKGROUND LAYERS ========== */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 30% 10%, #0f0a16, #020108);
}
.cyber-bg::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: repeating-linear-gradient(0deg, rgba(255, 0, 60, 0.08) 0px, rgba(255, 0, 60, 0.08) 2px, transparent 2px, transparent 8px);
  animation: scanMove 14s linear infinite;
  pointer-events: none;
}
.cyber-bg::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: repeating-linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0px, rgba(0, 212, 255, 0.05) 2px, transparent 2px, transparent 12px);
  animation: scanMoveHorizontal 18s linear infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}
@keyframes scanMoveHorizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

/* ========== FLOATING PARTICLES ========== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  filter: blur(1px);
}
.particle.red {
  background: radial-gradient(circle, #ff4d6d, #ff003c);
  box-shadow: 0 0 12px #ff003c;
}
.particle.blue {
  background: radial-gradient(circle, #5ee0ff, #00d4ff);
  box-shadow: 0 0 12px #00d4ff;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* ========== GLITCH TEXT ANIMATION ========== */
@keyframes glitchShift {
  0%, 100% { text-shadow: -2px 0 #ff003c, 2px 0 #00d4ff; }
  33% { text-shadow: 2px 0 #ff003c, -2px 0 #00d4ff; }
  66% { text-shadow: -2px 0 #00d4ff, 2px 0 #ff003c; }
}
.glitch-text {
  animation: glitchShift 2.2s infinite ease-in-out;
}

/* ========== LAYOUT CONTAINER ========== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.8rem 2rem 2rem;
}

/* ========== NAVBAR (PREMIUM) ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(8, 8, 18, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 80px;
  padding: 0.7rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 0, 60, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 212, 255, 0.2);
}
.logo {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff003c, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: #eef5ff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
  font-size: 1rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff003c, #00d4ff);
  transition: 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #00d4ff;
  text-shadow: 0 0 6px #ff003c;
}
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 0.5rem;
}
.social-icons a {
  color: #bbbbff;
  font-size: 1.3rem;
  transition: 0.2s;
}
.social-icons a:hover {
  color: #00d4ff;
  transform: translateY(-3px);
  text-shadow: 0 0 8px #ff003c;
}

/* ========== SECTIONS & TITLES ========== */
section {
  margin-bottom: 5rem;
  scroll-margin-top: 100px;
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) backwards;
}
.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-left: 6px solid #ff003c;
  padding-left: 1.3rem;
  background: linear-gradient(90deg, #ff003c, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
}
.highlight-red {
  color: #ff003c;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}
.highlight-blue {
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.hero-tag {
  background: rgba(255, 0, 60, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.6rem;
  border-radius: 40px;
  font-weight: 500;
  margin: 1rem 0;
  border: 1px solid #ff003c;
  backdrop-filter: blur(4px);
  animation: borderPulseRed 2.4s infinite;
}
@keyframes borderPulseRed {
  0% { border-color: #ff003c; box-shadow: 0 0 0px #ff003c; }
  50% { border-color: #00d4ff; box-shadow: 0 0 14px #00d4ff; }
  100% { border-color: #ff003c; }
}
.btn-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.btn-primary-red {
  background: #ff003c;
  color: #fff;
  box-shadow: 0 0 14px #ff003c;
  border: none;
}
.btn-primary-red:hover {
  transform: translateY(-4px);
  background: #ff2a55;
  box-shadow: 0 0 28px #ff003c;
}
.btn-outline-blue {
  border: 1.5px solid #00d4ff;
  color: #00d4ff;
  background: transparent;
}
.btn-outline-blue:hover {
  background: rgba(0, 212, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.profile-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 0, 60, 0.9);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5), 0 0 15px rgba(255, 0, 60, 0.4);
  transition: transform 0.4s, border-color 0.2s;
  background: #101018;
}
.profile-photo:hover {
  transform: scale(1.02);
  border-color: #00d4ff;
  box-shadow: 0 0 48px #00d4ff;
}
.photo-container {
  text-align: center;
}

/* ========== ABOUT & CARDS ========== */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 2rem;
  border: 1px solid rgba(255, 0, 60, 0.3);
}
.terminal-window {
  background: #07070fe6;
  padding: 1rem;
  border-radius: 18px;
  font-family: 'Monaco', 'Courier New', monospace;
  margin-top: 1rem;
  border-left: 4px solid #ff003c;
  font-size: 0.85rem;
  color: #b3f0ff;
}

/* ========== SKILLS BARS ========== */
.skillset {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.skill-bar {
  background: #1e1e2e;
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px #00000055;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff003c, #00d4ff);
  width: 0%;
  border-radius: 20px;
  transition: width 1.2s cubic-bezier(0.22, 0.97, 0.36, 1);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ========== PORTFOLIO & BLOG GRID ========== */
.portfolio-grid, .blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.port-card, .blog-card {
  background: rgba(12, 12, 22, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 1.7rem;
  border: 1px solid rgba(255, 0, 60, 0.35);
  transition: 0.25s;
  cursor: pointer;
}
.port-card:hover, .blog-card:hover {
  transform: translateY(-8px);
  border-color: #00d4ff;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.25);
  background: rgba(18, 18, 32, 0.85);
}
.badge {
  background: rgba(255, 0, 60, 0.2);
  color: #ff7b9c;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== CONTACT SECTION ========== */
.contact-card {
  background: rgba(8, 8, 20, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border: 1px solid #ff003c;
}
.contact-links a {
  color: #ccddf8;
  font-size: 1.9rem;
  margin: 0 10px 0 0;
  display: inline-block;
  transition: 0.2s;
}
.contact-links a:hover {
  color: #00d4ff;
  transform: translateY(-5px);
}

/* ========== FOOTER ========== */
footer {
  margin-top: 4rem;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px 50px 30px 30px;
  padding: 2rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 0, 60, 0.3);
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4, .footer-col h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col p, .footer-col ul {
  font-size: 0.9rem;
  opacity: 0.85;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}
.footer-col ul li a:hover {
  color: #00d4ff;
  padding-left: 5px;
}
.footer-social a {
  color: #ddd;
  font-size: 1.4rem;
  margin-right: 1rem;
  transition: 0.2s;
  display: inline-block;
}
.footer-social a:hover {
  color: #ff003c;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 60, 100, 0.3);
  padding-top: 1.5rem;
  font-size: 0.8rem;
}
.red-text { color: #ff003c; }
.blue-text { color: #00d4ff; }
.read-more {
  color: #00d4ff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 860px) {
  .navbar { flex-direction: column; border-radius: 2rem; }
  .nav-links { justify-content: center; margin-top: 8px; }
  .hero-content h1 { font-size: 2.5rem; }
  .container { padding: 1rem; }
  .profile-photo { width: 210px; height: 210px; }
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
}
/* Center contact section content */
.contact-card {
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.contact-card > div:first-child {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-links a {
  margin: 0;
}