:root {
  --blue: #1434fb;
  --deep-blue: #13204e;
  --near-black: #141718;
  --white: #fff;
  --card-bg: #181b22cc;
  --grey: #ececec;
  --navbar-height: 80px;
  --accent: #0077ff; /* Clean Klein-inspired blue */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--near-black);
  color: var(--white);
  min-height: 100vh;
}

body, p {
  font-family: 'Oxygen', sans-serif;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
  }

h2 {
  font-family: 'Ubuntu', sans-serif;
}

#rotating-word {
  transition: opacity 0.5s ease;
  color: var(--accent);
}
.fade-out {
  opacity: 0;
}


/* Navbar */

.logo {
  font-weight: bold;
  letter-spacing: 0.2em;
  font-size: 1.25rem;
}
/* Navbar Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(20, 23, 24, 0.85); /* near-black + transparency */
  border-bottom: 1px solid #23252b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 1rem 2rem;
  font-family: 'Ubuntu', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Navbar Brand */
nav span {
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Navbar Links */
nav ul {
  display: flex;
  gap: 2 rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

nav a {
  font-weight: 500;
  color: white;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Glowing underline effect */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  color: var(--accent);
  background: #1434fb;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Scroll offset fix (for anchor jump) */
html {
  scroll-padding-top: 80px; /* matches navbar height */
}


/* Section spacing */
section {
  padding: 7rem 0 3.5rem 0;
  position: relative;
  z-index: 1;
  
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + 2rem); /* or try 100px */
  overflow-y: auto; /* allows internal scroll if needed */
  padding-top: var(--navbar-height); /* Pushes content below the nav */
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  padding: 120px 1rem 2rem; 
  
}


.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.hero-section h1 {
  font-family: 'Annie Use Your Telescope', cursive;
  color: var(--accent);
}

/* About Section */
.about-section {
  background: var(--near-black);
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem
}
.about-card {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 6px 36px 0 #000c;
  text-align: justify;
}
.about-card h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 2.2rem;
}

#word-flash {
  transition: opacity 0.5s ease;
  color: var(--accent);
}


/* Projects Section */
.projects-section {
  background: var(--deep-blue);
  color: var(--white);
  padding-bottom: 5rem;
}
.projects-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  box-shadow: 0 3px 18px #0007;
  text-align: center;
  display: block;
  flex-direction: column;
  gap: 1rem;
    color: inherit;
  text-decoration: none;
  height: 100%;
}


.project-card:hover {
  background-color: #222;
  cursor: pointer;
  transform: translateY(-3px);
  transition: all 0.3s ease;
}
.contact-section {
  background: var(--near-black) url('assets/hook-transparent.png') no-repeat center 60%;
  background-size: 90px auto;
  background-position: center 20%;
  padding-bottom: 1rem;
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.contact-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 6px 36px 0 #000c;
  max-width: 410px;
  margin: 2rem auto;
  width: 100%;
}
.contact-card h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-card input,
.contact-card textarea {
  background: #181b22;
  color: var(--white);
  border: 1.5px solid #23252b;
  border-radius: 0.6rem;
  padding: 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--blue);
}
.contact-card button {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0.6rem;
  padding: 1rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 3px 18px #0005;
}
.contact-card button:hover {
  background: #2465fa;
}

/* Footer */
footer {
  background: var(--near-black);
  color: var(--white);
  text-align: center;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .about-card, .contact-card {
    padding: 1.1rem 0.6rem;
  }
  section {
    padding: 5rem 0 2rem 0;
  }
  .navbar .container {
    padding: 0 1rem;
  }
}

/* Books Section */
.book-img {
  width: 160px;
  height: 240px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}
.my-books h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 2.2rem;
}

.book-img:hover {
  transform: scale(1.05);
}


.skills-section {
  background-color: var(--near-black);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.skills-section h2 {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
  color: var(--klein-blue);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-category {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: var(--klein-pink);
  font-size: 1.25rem;
}

.skill-category ul {
  list-style-type: none;
  padding: 0;
}

.skill-category li {
  margin: 0.5rem 0;
}


/* Resume Function */

#resumeButton {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#resumeButton:hover {
  background-color: #0056b3;
}

@keyframes leafDrift {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-40px) rotate(-10deg);
  }
  50% {
    transform: translateX(30px) rotate(8deg);
  }
  75% {
    transform: translateX(-20px) rotate(-6deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

#floatingResume {
  display: none;              /* Hidden by default, shown by JS */
  width: 120px !important;    /* Override Tailwind, keep it tidy */
  height: auto !important;
  max-width: 90vw;            /* Prevents overflow on mobile */
  max-height: 80vh;           /* Keeps it visible in the viewport */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: leafDrift 2s ease-in-out infinite;
  transition: top 2.2s ease-out, left 1.2s ease-in-out;
  z-index: 40;
  box-shadow: 0 8px 40px 0 #0007;
  border-radius: 0.7rem;
  background: #fff;
  object-fit: contain;
}


/* Hook image styling for Contact Me section*/
.hook-image {
  display: block;
  margin: 2rem auto 0 auto;
  width: 120px;
  opacity: 0.3;
  filter: sepia(0.6) hue-rotate(180deg) saturate(1.2);
  pointer-events: none;
}


.hook-background {
  background-image: url('assets/hook-transparent.png');
  background-size: 150px auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  width: 100%;
  height: 140px;
  margin-top: -1rem; /* Pulls hook up slightly to connect visually */
  opacity: 0.3;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

}



/* Drop-off animation for Contact Me section*/
@keyframes dropOff {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(60px) rotate(2deg);
  }
  100% {
    transform: translateY(160vh) rotate(12deg);
    opacity: 0;
  }
}

.fall-off {
  animation: dropOff 2.2s ease-in-out forwards;
  pointer-events: none;
}

/* Confetti Pooling in Contact Me section */

/*  Confetti pile simulation */
.confetti-pile {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url('confetti-layer.png'); /* ← create a PNG confetti strip or blurred color blob */
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Confett-o-meter */
.confetti-meter {
  width: 220px;
  height: 10px;
  background: #333;
  border-radius: 6px;
  margin: 1rem auto 0 auto;
  overflow: hidden;
  box-shadow: inset 0 0 4px #000;
  border: 1px solid #444;
  z-index: 2;
  position: relative;
}

.confetti-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #a78bfa, #f472b6);
  transition: width 0.4s ease-in-out;
}

/* Shake warning */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
}

@media (max-width: 600px) {
  #floatingResume {
    width: 70vw !important;
    max-width: 94vw;
    min-width: 60px;
    max-height: 50vw;
  }
}

#celebrationGif {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: 200px; /* Change this value! */
  height: auto;
  pointer-events: stroke; /* makes it click-through */
}


