/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px var(--card-shadow);
}

.theme-toggle i {
    transition: transform 0.5s var(--ease-out-expo), opacity 0.3s ease;
}

.theme-toggle .sun {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
    border-radius: 0px 0px 20px 20px;
}
.navbar.scrolled {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    width: 120px;
}
.nav-brand span {
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-quart);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 1rem 2rem;
    border-radius: 3rem;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(201, 169, 98, 0.25);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* Mobile Navigation */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}