/* ================================
   Google Fonts
================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;500&family=Fira+Code&display=swap');

/* ================================
   Base Styling
================================== */
:root {
  --bg-color: #0a0a0a;
  --text-color: #e0e0e0;
  --accent-color: #00ffff;
  --accent-secondary: #00bfff;
  --border-color: #1a1a1a;
  --muted-text: #bcbcbc;
  --section-padding: 80px;
}

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


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ================================
   Custom Cursor Glow
================================ */
body {
  cursor: none; 
}

*, a, button {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--accent-color);
  transition: transform 0.1s ease-out, background 0.3s;
  z-index: 9999;
  mix-blend-mode: normal;
}
/* Hide cursor-dot on touch devices (mobiles/tablets) */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* ================================
   Scroll Progress Bar
================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  box-shadow: 0 0 10px var(--accent-color);
  z-index: 10000;
  transition: width 0.15s ease-out;
  opacity: 0;
}

/* ================================
   Global Elements
================================== */
header, section, footer {
  padding: 20px;
  text-align: center;
}

header {
  background-color: #111;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 0 10px #00ffff22;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  margin-top: 0;
}

h2 {
  color: var(--accent-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 8px var(--accent-color);
}

ul {
  list-style-type: none;
  padding: 0;
}

/* ================================
   NAVBAR (Refined)
================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* LOGO */
.nav-logo a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-logo a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 12px var(--accent-secondary);
}

.nav-logo span {
  color: var(--accent-secondary);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Glowing underline effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================================
   MOBILE RESPONSIVENESS
================================== */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 30px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
  }
}

/* ================================
   SCROLL EFFECT (Optional)
================================== */
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.12);
}

/* ================================
   Hero Section
================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) 20px;
  min-height: 100vh;
  
  position: relative;
}

.hero {
  background: linear-gradient(135deg, #0a0a0a, #0f1c1c, #001f1f);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Subtle glowing line behind photo */
.hero::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Profile photo */
.photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  z-index: 1;
}

.profile-photo {
  width: clamp(280px, 20vw, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
}

/* Name and title */
.hero-name {
  font-size: 2.6rem;
  color: var(--accent-color);
  margin: 10px 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.hero-title {
  font-size: 1.2rem;
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

/* Description text */
.hero-text {
  font-size: 1rem;
  max-width: 600px;
  color: #cfcfcf;
  line-height: 1.6;
  margin: 0 15px;
}

/* ================================
   Subtle Fade-In Animation
================================== */
.hero, .photo-container, .hero-name, .hero-title, .hero-text {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.photo-container { animation-delay: 0.2s; }
.hero-name { animation-delay: 0.4s; }
.hero-title { animation-delay: 0.6s; }
.hero-text { animation-delay: 0.8s; }

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

/* ================================
   Responsive
================================== */
@media (max-width: 600px) {
  .hero-name {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 1rem;
  }
  .hero-text {
    font-size: 0.9rem;
  }
}

/* ================================
   Section Divider (Between Hero & About)
================================== */
.section-divider {
  width: 80%;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, #00ffff80, transparent);
  box-shadow: 0 0 10px #00ffff44;
  border-radius: 2px;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}



/* ================================
   About Section
================================== */
.about {
  background-color: #0c0c0c;
  padding: var(--section-padding) 20px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  box-shadow: inset 0 0 20px #00ffff11;
}

.about h2 {
  font-family: 'Orbitron', sans-serif;
  color: #00bfff;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
  position: relative;
}

/* Accent line under heading */
.about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00ffff, #00bfff);
  margin: 10px auto 30px;
  border-radius: 3px;
  box-shadow: 0 0 10px #00ffff88;
}

.about p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.3px;
  text-align: justify;
  text-align-last: center; 
}

/* ================================
   Smooth Scroll Appearance
================================== */
.about {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.5s;
}

/* ===== BLOG SECTION ===== */
#blogs {
  padding: var(--section-padding) 20px;
  background: #0b0b0b;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  box-shadow: inset 0 0 15px #00ffff08;
}

#blogs a {
  font-weight: 600;
}

#blogs h2 {
  color: var(--accent-secondary);
}

/* ================================
   MEDIUM BLOG SECTION
================================== */
#medium-articles {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.medium-post {
  background-color: #111;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #1f1f1f;
  box-shadow: 0 0 10px #00ffff11;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medium-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffff33;
}

.medium-post h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.medium-post p {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.medium-post .read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: none;
}

.medium-post .read-more:hover {
  text-shadow: 0 0 8px var(--accent-color);
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 50px 0;
  font-family: 'Fira Code', monospace;
  margin-right: 5px;
}

#contact a {
  color: #00ffc8;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

footer::before {
  content: "";
  display: block;
  height: 2px;
  width: 80%;
  margin: 0 auto 20px;
  background: linear-gradient(to right, transparent, #00ffff88, transparent);
}

/* ================================
   Cyber Grid Background
================================== */
.network-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(0,255,255,0.04) 0%, transparent 80%);
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

/* Moving network grid */
.network-bg::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    repeating-linear-gradient(60deg, rgba(0,255,255,0.05) 0px, rgba(0,255,255,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-60deg, rgba(0,255,255,0.05) 0px, rgba(0,255,255,0.05) 1px, transparent 1px, transparent 40px);
  animation: Grid 45s linear infinite;
  transform: translate(-25%, -25%);
  opacity: 0.5;
}

/* Optional glowing data dots */
.network-bg::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,255,255,0.08) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: fadeDots 6s ease-in-out infinite alternate;
  border-radius: 50%;
}

@keyframes fadeDots {
  from { opacity: 0.15; }
  to { opacity: 0.35; }
}

/* Ensure hero content sits above grid */
.hero {
  position: relative;
  z-index: 1;
}
