:root {
    /* Blue Theme (Default) */
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="green"] {
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: var(--transition);
    white-space: nowrap;
}

.logo:hover {
    color: var(--accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Resume Button */
.navbar .resume-button {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: var(--bg-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.navbar .resume-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Theme Controls */
.theme-switch {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.theme-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-btn.blue { background: #3b82f6; }
.theme-btn.green { background: #10b981; }
.theme-btn:hover { transform: scale(1.3); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.bio {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.tech-stack span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Personal Page Specifics */
.personal-page {
    padding-top: 180px;
    padding-bottom: 100px;
}

.personal-header {
    margin-bottom: 100px;
}

.personal-section {
    margin-bottom: 120px;
}

.personal-note {
    margin-top: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 0.95rem;
}

/* Stock Grid */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stock-card {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: var(--transition);
}

.stock-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stock-card .ticker {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stock-card .desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.photo-item {
    aspect-ratio: 1 / 1;
    background: #111; /* Placeholder */
    overflow: hidden;
    border-radius: 4px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.photo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pet-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pet-item:hover {
    transform: scale(1.02);
}

.pet-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.pet-item img:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pet-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.pet-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        padding: 2rem 0;
    }

    .hero-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 300px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .pets-grid {
        grid-template-columns: 1fr;
    }
}
