/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg: #080808;
  --bg2: #131313;
  --text: #ffffff;
  --pink: #e235da;
  --pink-glow: rgba(226, 53, 218, 0.35);
}

html { font-size: 62.5%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== HEART CANVAS ===== */
#heartCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Allow mouse interaction on canvas */
#heartCanvas {
  pointer-events: auto;
  cursor: default;
}

/* Ensure content is above the canvas */
.header,
.hero,
.software-section,
.footer {
  position: relative;
  z-index: 2;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 2.2rem 8%;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 53, 218, 0.12);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo span { color: var(--pink); }

/* ===== NAVBAR ===== */
.navbar { 
  display: flex; 
  align-items: center; 
  gap: 3.5rem; 
}

.navbar a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width 0.3s ease;
}
.navbar a:hover,
.navbar a.active { color: var(--pink); }
.navbar a:hover::after,
.navbar a.active::after { width: 100%; }

/* ===== HAMBURGER MENU ===== */
.menu-icon {
  background: none;
  border: none;
  color: var(--pink);
  cursor: pointer;
  display: none;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.hamburger-svg {
  width: 3.2rem;
  height: 3.2rem;
  stroke: currentColor;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.menu-icon:hover .hamburger-svg {
  stroke: var(--pink);
}

.menu-icon.active .hamburger-svg {
  stroke: var(--pink);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: 11rem 8% 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-content h1 {
  font-size: clamp(5rem, 7vw, 8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.hero-content h1 span { color: var(--pink); }

.text-animation {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 2.2rem;
  min-height: 4.5rem;
}
.text-animation span { color: var(--pink); position: relative; }
.text-animation span::before {
  content: "Web Developer";
  color: var(--pink);
  animation: words 20s infinite;
}
.text-animation span::after {
  content: "";
  background: var(--bg);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to { border-left: 2px solid var(--pink); }
}
@keyframes words {
  0%, 20%  { content: "Project Manager"; }
  21%, 40% { content: "System Analyst"; }
  41%, 60% { content: "Frontend Designer"; }
  61%, 80% { content: "Web Developer"; }
  81%,100% { content: "Graphic Designer"; }
}
@keyframes typing {
  10%,15%,30%,35%,50%,55%,70%,75%,90%,95% { width: 0; }
  5%,20%,25%,40%,45%,60%,65%,80%,85% { width: calc(100% + 8px); }
}

.hero-content p {
  font-size: 1.45rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
}

/* Social icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pink);
  border-radius: 50%;
  width: 4.8rem;
  height: 4.8rem;
  transition: 0.3s ease;
  cursor: pointer;
  color: var(--pink);
}

.social-svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: currentColor;
  transition: 0.3s ease;
}

.social-btn:hover {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 25px var(--pink);
  transform: scale(1.15);
}

.footer-email-badge {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.9rem 2rem;
  color: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 5rem;
  transition: 0.3s ease;
  cursor: default;
}
.footer-email-badge:hover {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 20px var(--pink-glow);
  transform: scale(1.05);
}

.hero-img {
  flex-shrink: 0;
}
.hero-img img {
  width: clamp(260px, 30vw, 400px);
  height: clamp(260px, 30vw, 400px);
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--pink), 0 0 60px var(--pink-glow);
  transition: 0.4s ease;
}
.hero-img img:hover {
  box-shadow: 0 0 40px var(--pink), 0 0 80px var(--pink), 0 0 120px var(--pink-glow);
}

/* ===== SOFTWARE SECTION ===== */
.software-section {
  padding: 6rem 8% 8rem;
  text-align: center;
}

.software-heading {
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 4rem;
  line-height: 1;
}
.sw-pink {
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  text-shadow: 0 0 20px var(--pink-glow);
}
.sw-white { color: var(--text); }

.software-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  border: 2px solid var(--pink);
  border-radius: 2rem;
  padding: 4rem 5rem;
  background: rgba(226, 53, 218, 0.04);
  box-shadow: 0 0 40px rgba(226, 53, 218, 0.08), inset 0 0 40px rgba(226, 53, 218, 0.04);
}

.sw-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  cursor: default;
  transition: transform 0.3s ease;
}

.sw-item img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  border-radius: 1.5rem;
  transition: 0.35s ease;
  filter: drop-shadow(0 0 0px var(--pink));
}

.sw-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 8rem;
  height: 8rem;
  border: 2px solid var(--pink);
  border-radius: 1.5rem;
  justify-content: center;
  color: var(--pink);
  font-size: 3rem;
  transition: 0.3s ease;
}
.sw-fallback span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.sw-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--bg2);
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.4rem;
  border-radius: 3rem;
  border: 1px solid var(--pink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.sw-item:hover {
  transform: translateY(-8px);
}
.sw-item:hover img {
  filter: drop-shadow(0 0 15px var(--pink));
}
.sw-item:hover .sw-fallback {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 20px var(--pink-glow);
}
.sw-item:hover .sw-fallback span { color: #000; }
.sw-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  padding: 4rem 8% 2.5rem;
  border-top: 1px solid rgba(226,53,218,0.15);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--pink); }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

.footer-fb-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: var(--pink);
}

.footer-svg {
  width: 2.6rem;
  height: 2.6rem;
  fill: currentColor;
  transition: 0.3s ease;
}

.footer-fb-icon:hover {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 20px var(--pink-glow);
}

.footer-email-badge {
  font-size: 1.25rem;
  color: var(--text);
  border: 2px solid var(--pink);
  border-radius: 3rem;
  padding: 0.6rem 1.6rem;
  transition: 0.3s;
  cursor: default;
}
.footer-email-badge:hover {
  background: var(--pink);
  color: #000;
}

.footer-copy {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 3.2rem;
  background: var(--pink);
  border-radius: 5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 20px var(--pink-glow);
}
.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px var(--pink);
}

/* ===== ADDITIONAL PAGE STYLES ===== */
.page-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(8rem, 20vw, 25rem);
  font-weight: 700;
  color: rgba(220,220,220,0.9);
  line-height: 1;
  padding: 12rem 8% 0;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .menu-icon { display: block; }

  .navbar {
    position: absolute;
    top: 100%; 
    right: 0;
    width: 55%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8,8,8,0.95);
    backdrop-filter: blur(20px);
    padding: 2rem 3rem;
    border-left: 2px solid var(--pink);
    border-bottom: 2px solid var(--pink);
    border-bottom-left-radius: 2rem;
    display: none;
  }
  .navbar.open { display: flex; }
  .navbar a { 
    font-size: 1.8rem; 
    padding: 1.2rem 0; 
    width: 100%; 
    border-bottom: 1px solid rgba(255,255,255,0.07); 
  }
  .navbar a::after { display: none; }

  .hero {
    flex-direction: column-reverse;
    padding-top: 13rem;
    text-align: center;
    gap: 4rem;
  }
  .hero-content { max-width: 100%; }
  .social-icons { justify-content: center; }
  .hero-img img {
    width: clamp(200px, 55vw, 300px);
    height: clamp(200px, 55vw, 300px);
  }
  
  .software-box { gap: 2.5rem; padding: 3rem; }
  .sw-item img, .sw-fallback { width: 6rem; height: 6rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { align-items: flex-start; }
}

