/* ======================
   THEME VARIABLES
====================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --card-bg: #1b1b1b;
  --text-primary: #ffffff;
  --text-secundary: #ffffff;
  --accent-magenta: #ff2fb3;
  --accent-purple: #7a3cff;
  --accent-blue: #3ca6ff;
  --accent-yellow: #ffd84d;
  --border-color: #2a2a2a;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f3f3;
  --card-bg: #f5f5f5;
  --text-primary: #111111;
  --text-secundary: #ffffff;
  --border-color: #dcdcdc;

  /* stronger decorative colors for light mode */
  --accent-magenta: #d1007a;
  --accent-purple: #5a1fd1;
  --accent-blue: #0066cc;
  --accent-yellow: #e6b800;
}

/* increase visibility of card decorations in light theme */
[data-theme="light"] .card::before,
[data-theme="light"] .card::after,
[data-theme="light"] .nav-card::before,
[data-theme="light"] .nav-card::after,
[data-theme="light"] .project-card::before,
[data-theme="light"] .contact-card::before {
  opacity: 1;
  font-weight: bold;
  font-size: 12px; /* slightly larger so the suit symbols stand out in light mode */
  filter: saturate(1.3); /* intensifies color appearance */
}

/* ======================
   GLOBAL
====================== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--accent-magenta);
}
a {
  color: inherit;
}
a:visited {
  color: inherit;
}

a:hover {
  opacity: 0.7;
}

a:active {
  opacity: 0.5;
}
.contact-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;

  border-radius: 6px;
  border: 1px solid var(--card-border);

  font-size: 0.9rem;

  transition: all 0.2s ease;
}

.contact-link:hover {
  background: var(--card-bg);
  transform: translateY(-2px);
}
/* ======================
   Wave Decoration
====================== */
.wave-section {
  position: relative;
}

.wave-bg {
  position: absolute;
  left: 0;
  top: 0;

  width: 70%;
  height: 100%;

  display: block;
}

.wave-section .container {
  position: relative;
  z-index: 1;
}
.wave-section-right {
  position: relative;
  overflow: hidden;
}

.wave-bg-right {
  position: absolute;
  top: 0;
  right: 0;

  width: 70%;
  height: 100%;

  display: block;

  z-index: 0;
}

.wave-section-right .container {
  position: relative;
  z-index: 1;
}
/* ======================
   BASE CARD COMPONENT
====================== */
.card {
  position: relative;
  background: var(--card-bg);
  border: 5px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  margin-top: 50px;
}

.card::before,
.card::after {
  position: absolute;
  font-size: 10px;
  color: var(--accent-magenta);
  opacity: 0.6;
}

.card::before {
  content: "◆";
  top: 8px;
  left: 10px;
}

.card::after {
  content: "◆";
  bottom: 8px;
  right: 10px;
  transform: rotate(180deg);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* ======================
   NAVIGATION CARDS
====================== */
.navbar {
  position: sticky;
  margin-inline-end: 20px;
  top: 0;
  z-index: 1000;
  padding: 25px 0;
  padding-bottom: 2px;
  background: var(--bg-primary);
  box-shadow: 0 8px 32px var(--bg-primary);
  backdrop-filter: blur(10px);
}
.navbar a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.nav-card {
  position: relative;
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  background: var(--card-bg);
  border: 3px solid var(--border-color);
  cursor: pointer;
  font-weight: 500;
}

.nav-card::before {
  content: "♠";
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  color: var(--accent-purple);
  opacity: 0.7;
}

.nav-card::after {
  content: "♠";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  transform: rotate(180deg);
  color: var(--accent-purple);
  opacity: 0.7;
}

.nav-card:hover {
  border-color: var(--accent-magenta);
}
.menu-toggle {
  display: none;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ======================
   HERO
====================== */
.hero {
  text-align: center;
  padding: 120px 0 60px;
  margin-bottom: 120px;
}

.hero-title {
  font-size: 2.8rem;
}

.hero-subtitle {
  margin-top: 12px;
  color: var(--accent-magenta);
}

/* ======================
   GRID
====================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ======================
   SKILL TAG
====================== */
.skill-tag {
  display: inline-block;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 6px;
  color: var(--text-secundary);
  background: var(--accent-magenta);
  font-size: 0.8rem;
}

/* ======================
   PROJECT CARD
====================== */
.project-card {
  position: relative;
}
.project-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
}

.project-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.project-card::before {
  content: "♥";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: var(--accent-magenta);
  opacity: 0.7;
}

/* ======================
   CONTACT CARD
====================== */
.contact-card::before {
  content: "♣";
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  color: var(--accent-blue);
}

/* ======================
   THEME BUTTON
====================== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: 2px solid var(--border-color);

  background: var(--card-bg);
  color: var(--text-primary);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  cursor: pointer;
  z-index: 1001;

  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-magenta);
  transform: scale(1.05);
}
/* ======================
   RESPONSIVE DESIGN
====================== */

/* Tablets */
@media (max-width: 900px) {
  .hero {
    padding: 100px 0 40px;
    margin-bottom: 80px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }
  .navbar {
    margin-inline-end: 0px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .hero {
    padding: 80px 0 40px;
    margin-bottom: 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 50px 0;
  }

  .card {
    padding: 18px;
    margin-top: 30px;
  }

  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-toggle {
    top: 15px;
    right: 15px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .navbar {
    margin-inline-end: 0px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    margin-inline-end: 0px;
  }
}
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
    margin-bottom: 10px;
  }

  .nav-grid {
    display: none;
    grid-template-columns: 1fr;
  }

  .nav-grid.active {
    display: grid;
  }
  .navbar {
    margin-inline-end: 0px;
  }
}
