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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
    display: none;
}
body {
  background-color: #050509;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f1f2e;
  z-index: 1000;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #00f6ff;
  text-shadow: 0 0 10px #00f6ff;
}

.logo span {
  color: #7d00ff;
}

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

.nav-links a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: #00f6ff;
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #00f6ff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    width: 200px;
    border-left: 1px solid #1f1f2e;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ===================== HERO SECTION ===================== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-content h2 {
  font-size: 2.5rem;
}

.hero-content h2 span {
  color: #00f6ff;
}

.hero-content #typing {
  color: #7d00ff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.5rem;
  min-height: 1.6em;   /* reserve enough space for one line of text */
  display: inline-block;
}

.hero-content #typing::after {
  content: '|';
  margin-left: 4px;
  color: #00f6ff;
  animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
  to { opacity: 0; }
}


.hero-content p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #aaa;
}

.btn {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid #00f6ff;
  color: #00f6ff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.neon-glow:hover {
  background: #00f6ff;
  color: #000;
  box-shadow: 0 0 15px #00f6ff;
}

/* ===================== GENERAL SECTION STYLING ===================== */
section {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #00f6ff;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===================== ABOUT ===================== */
.about p {
  line-height: 1.8;
  color: #ccc;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 1rem;
}

.about {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 5rem;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* === Photo Frame Patch === */
.about-photo-frame {
  position: relative;
  width: 260px;
  height: 300px;
  border-radius: 16px;
  background: rgba(15, 15, 25, 0.85);
  border: 1px solid #1f1f2e;
  box-shadow: 0 0 20px rgba(0, 246, 255, 0.15);
  overflow: hidden;
  transition: 0.3s ease;
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00f6ff22, #7d00ff22);
  opacity: 0.7;
  pointer-events: none;
}

.about-photo-frame:hover {
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.35);
  transform: translateY(-5px);
}

/* === Actual Photo === */
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.95;
  transition: 0.3s ease;
}

.about-photo:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* === About Text === */
.about-text {
  max-width: 600px;
  color: #ccc;
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: left;
}

.about-text strong {
  color: #00f6ff;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-photo-frame {
    width: 220px;
    height: 260px;
  }

  .about-text {
    text-align: center;
  }
}

/* ===================== SKILLS SECTION ===================== */
.skills {
  text-align: center;
  padding: 8rem 2rem 5rem;
  z-index: 2;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  margin-top: 3rem;
}

.skill-card {
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid #1f1f2e;
  border-radius: 10px;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 180px;
  min-height: 160px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 246, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: #00f6ff;
  box-shadow: 0 0 25px rgba(0, 246, 255, 0.3);
}

/* Sharp style (no rounded background glow) */
.skill-card.sharp {
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 15, 0.9));
  box-shadow: inset 0 0 12px rgba(0, 246, 255, 0.1);
}

/* Skill Icon */
.skill-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon svg {
  width: 55px;
  height: 55px;
  transition: 0.3s ease;
  filter: drop-shadow(0 0 4px #00f6ff55);
}

.skill-card:hover .skill-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px #7d00ff);
}

/* Skill Label */
.skill-card p {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    width: 130px;
    height: 130px;
  }

  .skill-icon svg {
    width: 45px;
    height: 45px;
  }
}


/* ===================== PROJECTS ===================== */
.projects {
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  margin-top: 3rem;
  padding: 0 1rem;
}

.project-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.9), rgba(25, 25, 35, 0.9));
  border: 1px solid #1f1f2e;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.05);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.project-card {
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.9), rgba(25, 25, 35, 0.9));
  border: 1px solid #1f1f2e;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.05);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-3deg);
  border-color: #00f6ff;
  box-shadow: 0 0 25px rgba(0, 246, 255, 0.3);
}

/* Neon border light effect */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #00f6ff33, #7d00ff33);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 1;
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 100%;
  height: 160px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(circle, #0f0f15, #09090f);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
  opacity: 0.85;
}

.project-card:hover .card-icon img {
  transform: scale(1.05);
  opacity: 1;
}

.project-card h3 {
  color: #00f6ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.project-card p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Button */
.btn-card {
  display: inline-block;
  text-decoration: none;
  color: #00f6ff;
  border: 1px solid #00f6ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 0.9rem;
}

.btn-card:hover {
  background: #00f6ff;
  color: #000;
  box-shadow: 0 0 15px #00f6ff;
}

/* ===================== CONTACT ===================== */
.contact {
  text-align: center;
}

.contact-links a {
  display: inline-block;
  margin: 1rem;
  text-decoration: none;
  color: #00f6ff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.contact-links a:hover {
  color: #7d00ff;
  border-bottom: 1px solid #7d00ff;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 1rem;
  background: #050509;
  border-top: 1px solid #1f1f2e;
  color: #777;
  z-index: 2;
  position: relative;
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-in,
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== CANVAS BACKGROUND ===================== */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* stays behind everything */
}
