:root {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --accent-color: #64ffda;
  --link-hover: #00e5ff;
  --font-family: 'Space Grotesk', Arial, sans-serif;
  --poe-gold: #c8a758;
  --osrs-orange: #ff981f;
  --poe-card-bg: rgba(40, 40, 55, 0.6);
  --poe-card-hover: rgba(50, 50, 70, 0.8);
}

/* Base & Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
}

.container {
  flex: 1;
  max-width: min(700px, 90%);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Header & Navigation */
header.header-nav {
  position: sticky;
  top: 0;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.nav-container {
  background-color: #111;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 20px;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

.hamburger.active .hamburger-inner {
  background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.nav-button {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
  background-color: var(--link-hover);
  color: #000;
}

/* Mobile Menu */
media (max-width: 768px) {
  .nav-container {
    justify-content: flex-end;
    background-color: transparent;
    padding: 0 1rem;
  }

  .nav-buttons {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #111;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  .nav-buttons.active {
    right: 0;
  }
}

/* Sections */
section {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

section.active {
  display: flex;
}

/* Home Section */
#home-section .profile-image {
  width: min(200px, 40vw);
  height: min(200px, 40vw);
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  margin-bottom: 1rem;
  object-fit: cover;
}

#home-section .subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.kauotic-logo {
  width: min(200px, 50vw);
  height: auto;
  margin-top: 1rem;
}

/* About Section */
#about-section p {
  max-width: 600px;
  font-size: 1.2rem;
  margin: 0 auto 2rem;
}

.game-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .game-stats-grid {
    grid-template-columns: 1fr;
  }
}

.game-stats-container {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#poe-stats-container {
  border-left: 3px solid var(--poe-gold);
}

#osrs-stats-container {
  border-left: 3px solid var(--osrs-orange);
}

/* PoE Characters */
.poe-characters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

.poe-character-card {
  background: var(--poe-card-bg);
  border-radius: 6px;
  padding: 12px;
  transition: all 0.2s ease;
  border-top: 2px solid var(--poe-gold);
}

.poe-character-card:hover {
  transform: translateY(-3px);
  background: var(--poe-card-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.poe-character-card.standard {
  border-top-color: #666;
  opacity: 0.95;
}

.character-name {
  color: var(--poe-gold);
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.poe-character-card.standard .character-name {
  color: #ddd;
}

.character-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  font-size: 0.95em;
}

.character-detail-label {
  color: #aaa;
  font-weight: 500;
}

.character-detail-value {
  color: #fff;
}

.pinnable-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--poe-gold);
  color: #121212;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: bold;
}

.league-header {
  color: var(--poe-gold);
  grid-column: 1 / -1;
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--poe-gold);
  font-size: 1.1em;
  font-weight: 600;
  text-align: left;
}

.league-header.standard {
  color: #aaa;
  border-bottom-color: #666;
}

/* OSRS Table */
#osrs-stats-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

#osrs-stats-container th {
  padding: 8px;
  background: rgba(40, 40, 55, 0.6);
  color: var(--osrs-orange);
}

#osrs-stats-container td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#osrs-stats-container tr:hover {
  background: rgba(50, 50, 70, 0.4);
}

/* Projects & Contact */
#projects-section h1,
#contact-section h1 {
  margin-bottom: 1rem;
}

#projects-section ul,
#contact-section ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

#projects-section li,
#contact-section li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#projects-section a,
#contact-section a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#projects-section a:hover,
#contact-section a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

#contact-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

#contact-section i {
  margin-right: 8px;
}

/* Footer */
footer.footer {
  flex-shrink: 0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  background-color: #111;
}

/* Social Buttons */
.social-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-buttons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.social-buttons a:hover {
  transform: scale(1.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-buttons {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #111;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }
  
  .nav-buttons.active {
    right: 0;
  }
  
  .nav-button {
    width: 80%;
    padding: 1rem;
    font-size: 1.2rem;
  }
  
  .social-buttons {
    bottom: 15px;
    right: 15px;
  }
  
  .social-buttons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .social-buttons {
    bottom: 10px;
    right: 10px;
  }
  
  .social-buttons a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
