/* ===================================
   Sreng Portfolio - Main Styles
   Dark Mode Theme
   =================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #f5f5f5;
  color: #0a0a0a;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================
   Header
   =================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #888;
  transition: color 0.2s;
}

nav a:hover {
  color: #f5f5f5;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: #f5f5f5;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #f5f5f5;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.nav-mobile.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-mobile a {
  font-size: 1.125rem;
  font-weight: 400;
  color: #f5f5f5;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.hero-content {
  max-width: 600px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.greeting {
  font-size: 1rem;
  font-weight: 500;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.hero p {
  font-size: 1.125rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 1px solid #f5f5f5;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.hero-btn:hover {
  background: #f5f5f5;
  color: #0a0a0a;
}

/* ===================================
   Sections
   =================================== */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 2rem;
}

/* ===================================
   About Section
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 4px;
}

.about-text h2 {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #aaa;
  font-weight: 300;
  line-height: 1.8;
}

/* ===================================
   Hopes Section
   =================================== */
.hopes {
  background: #111;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.quote-card {
  text-align: center;
  padding: 3rem 0;
}

.quote-image {
  margin: 0 auto 2rem;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quote-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.quote-text {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
  min-height: 4.5rem;
}

.quote-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.quote-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  background: none;
  color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}

.quote-btn:hover {
  border-color: #f5f5f5;
}

.quote-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: #f5f5f5;
}

/* ===================================
   Footer
   =================================== */
footer {
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: #f5f5f5;
  transform: scale(1.1);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: 0.75rem;
  color: #666;
}

.secret-hint {
  font-size: 0.65rem;
  color: #555;
  margin-top: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: help;
}

.secret-hint:hover {
  opacity: 1;
  color: #888;
}

/* ===================================
   Music Toggle
   =================================== */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: 1px solid #333;
  border-radius: 50%;
  background: #1a1a1a;
  color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
  border-color: #f5f5f5;
  transform: scale(1.05);
}

.music-toggle.playing {
  background: #f5f5f5;
  border-color: #f5f5f5;
}

.music-toggle svg {
  width: 20px;
  height: 20px;
  fill: #f5f5f5;
  transition: all 0.2s;
}

.music-toggle.playing svg {
  fill: #0a0a0a;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 200px;
    margin: 0 auto;
  }

  #nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile {
    display: flex;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .music-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* ===================================
   🎮 Easter Eggs
   =================================== */

/* Confetti */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall 3s ease-in-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #f5f5f5;
  color: #0a0a0a;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Party Mode */
.party-mode {
  animation: rainbow-bg 0.5s linear infinite;
}

@keyframes rainbow-bg {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.party-mode .logo-icon {
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   🎨 Visual Effects
   =================================== */

/* Typing Effect */
.typing {
  display: inline-block;
  border-right: 2px solid #f5f5f5;
  padding-right: 4px;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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