/* style.css */
/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  background: #1a1a1a;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}

/* Hide custom cursor on touch/mobile */
@media (hover: none), (pointer: coarse) {
  #custom-cursor { display: none !important; }
  body { cursor: auto; }
}

/* hide the native cursor on all elements */
* {
  cursor: none !important;
}

/* Custom cursor container (hotspot = top-left) */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10002;
}
#custom-cursor img {
  width: 32px;
  height: 32px;
  filter:
    drop-shadow(0 0 4px #aa0f0f)
    drop-shadow(0 0 8px #aa0f0f)
    drop-shadow(0 0 16px #aa0f0f);
  transition: filter 0.2s ease;
}
body.clicking #custom-cursor img {
  filter:
    drop-shadow(0 0 8px #aa0f0f)
    drop-shadow(0 0 16px #aa0f0f)
    drop-shadow(0 0 32px #aa0f0f);
}

/* Hero content container */
.hero-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Particle canvas */
#particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Section base */
.section {
  padding: 100px 20px 60px;
  min-height: 50vh;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  background: linear-gradient(to bottom, #720000, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
}
.loaded .fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Logo & typing text */
.hero-logo {
  width: 600px;
  max-width: 100%;
  margin-bottom: 20px;
}
/* Typing text: responsive wrapping */
#hero-text {
  font-size: 1.2em;
  display: block;
  width: 100%;
  margin-bottom: 30px;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  line-height: 1.4;
}

/* Hero buttons */
.hero-buttons {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.btn {
  background: rgb(167, 0, 0);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 15px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}
.btn:hover {
  background-color: rgb(212, 0, 0);
  transform: translateY(-3px);
}

/* Projects */
.projects { background: #1a1a1a; }
.projects h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgb(255, 0, 0);
}
.projects-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 0 20px;
}
.project-column { flex: 1; min-width: 280px; }
/* Projects wrapper - centered layout */
.projects-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

/* Project column - centered with max width */
.project-column {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

/* Project grid - single column layout for full descriptions */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;  /* always one card per row */
  gap: 20px;
  width: 100%;
  max-width: 800px;
  justify-content: center;
}

.project-card {
  background: #2b2b2b;
  border: 2px solid rgb(255, 0, 0);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card h3 {
  color: rgb(255, 0, 0);
  margin-bottom: 10px;
  font-size: 1.3em;
}
.project-card p {
  color: #ccc;
  line-height: 1.5;
  font-size: 1em;
  margin: 0;
  word-wrap: break-word;
  hyphens: auto;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgb(255, 0, 0);
}

/* About */
.about {
  background: #1a1a1a;
}
.about h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgb(255, 0, 0);
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(43, 43, 43, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 3px solid rgb(255, 0, 0);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}
.about-text {
  flex: 1;
  min-width: 280px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.about-text p {
  margin-bottom: 20px;
  text-align: left;
  text-indent: 0;
}

.about-text p:last-child {
  margin-bottom: 0;
  text-align: left;
  letter-spacing: normal;
}

.about-text p:first-child {
  font-weight: 500;
  color: #ffffff;
}

.about-text p:nth-child(2) {
  color: #d0d0d0;
}

.about-text p:nth-child(3) {
  color: #c0c0c0;
  font-style: italic;
}

/* Social badges */
.social-badges {
  margin-top: 10px;
  display: inline-flex;
  gap: 10px;
}
.social-badges img {
  height: 24px;
}

/* Tap counter */
#tap-counter {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #aa0f0f;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 0 10px #aa0f0f;
  opacity: 0;
  transition: top 0.5s ease, opacity 0.5s ease;
  z-index: 10000;
}
#tap-counter.visible {
  top: 20px;
  opacity: 1;
}
#tap-counter.fade-out {
  opacity: 0;
}

/* Jump‑in keyframes */
@keyframes jumpIn {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Jump‑out keyframes */
@keyframes jumpOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100px);
    opacity: 0;
  }
}

/* Back to Top button base */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #aa0f0f;
  border: none;
  border-radius: 50%;
  display: none;             /* hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  /* start off-screen */
  transform: translateY(100px);
  opacity: 0;
}

/* When showing, run jumpIn */
#back-to-top.show {
  display: flex;
  animation: jumpIn 0.5s ease-out forwards;
}

/* When hiding, run jumpOut */
#back-to-top.hide {
  display: flex;             /* keep visible during animation */
  animation: jumpOut 0.5s ease-in forwards;
}

/* Hover state */
#back-to-top:hover {
  background: #f50d0d;
}


/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  border-top: 2px solid #aa0f0f;
  font-size: 0.9em;
}

.footer-link {
  color: #0faa86;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #0faa86;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
