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

/* Dark Mode Variables */
:root {
  --bg-primary: #f2f4f7;
  --bg-secondary: #ffffff;
  --text-primary: #333;
  --text-secondary: #666;
  --accent: #0077cc;
  --border: #ddd;
}

[data-theme="dark"] {
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --accent: #63b3ed;
  --border: #4a5568;
}

/* Body w only vars */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.4s ease;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1rem;
    color: var(--text-secondary);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

section {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: auto;
    position: relative;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease;
}

section:hover {
    backdrop-filter: blur(2px);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.project {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.skills-list li {
    background-color: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

footer blockquote {
    font-style: italic;
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* link thingy */
.fancy-link {
    position: relative;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.fancy-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.fancy-link:hover {
    filter: brightness(0.8);
}

.fancy-link:hover::after {
    transform: scaleX(1);
}

/* Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

.moon { display: none; }

[data-theme="dark"] .sun { display: none; }
[data-theme="dark"] .moon { display: block; }

@media(max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}
