/* ===== VARIABLES ===== */
:root {
  --pure-white: #ffffff;
  --pure-black: #000000;
  --grey-lightest: #f5f5f5;
  --grey-darker: #666666;
  --accent-red: #ff0000;
  --rainbow: linear-gradient(45deg, #ffffff, #666666, #000000);
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --card-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #666666;
  --card-bg: rgba(0, 0, 0, 0.05);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: main;
}
@font-face {
  font-family: main;
  src: url(../assets/fonts/matricha.ttf);
}
body {
  font-family: main;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Dot Grid Background */
.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--text-secondary) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

/* ===== HEADER STYLES ===== */
.header {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  width: 100%;
  max-width: 400px;
  z-index: 1000;
}

.nav-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  margin: 0 16px;
  height: 48px;
}

.nav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  height: 100%;
  align-items: center;
}

.nav-button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-button.rainbow:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.1);
}

.logo {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

/* ===== SLIDE MENU STYLES ===== */
.slide-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--text-secondary);
  z-index: 2000;
  transition: right 0.3s ease;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.slide-menu.active {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--text-secondary);
}

.menu-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section .section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  padding: 12px 15px;
  background: var(--card-bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item:hover {
  border-color: var(--text-secondary);
  transform: translateX(5px);
}

/* ===== SECTION STYLES ===== */
.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 20px;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* About Section */
.about {
  background: var(--bg-primary);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Languages Section */
.languages {
  background: var(--bg-secondary);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
}

.language-item {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid var(--text-secondary);
  text-align: center;
}

.language-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.language-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.language-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.language-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
  background: var(--bg-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.portfolio-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  background: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 3rem;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-description {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* PC Specs Section */
.pc-specs {
  background: var(--bg-secondary);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.spec-item {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--text-secondary);
}

.spec-category {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.spec-value {
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-info {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  font-size: 1.2rem;
  width: 20px;
}

.contact-label {
  color: var(--text-secondary);
}

.contact-value {
  font-weight: 500;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--text-secondary);
  padding: 60px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link.rainbow:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.1);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .languages-grid,
  .portfolio-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .slide-menu {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .slide-menu {
    width: 280px;
  }
}
/* ===== DESKTOP HEADER STYLES ===== */
@media (min-width: 769px) {
  .header {
    max-width: 500px;
  }

  .nav-container {
    height: 60px;
  }

  .nav-button {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .logo {
    font-size: 22px;
  }
}

/* ===== MENU TOGGLE FIX ===== */
.slide-menu {
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
