:root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --accent-color: #bb86fc;
    --secondary-color: #03dac6;
    --card-bg: #1e1e1e;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
#app {
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed header */
    display: flex;
    flex-direction: column;
}

.view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    flex: 1;
}

.view.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
#home-view {
    display: none; /* Handled by JS */
    height: 100vh;
    margin-top: -80px; /* Offset header padding */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
}

/* Override .view display for home since it uses flex */
#home-view.active {
    display: flex;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
    font-weight: 300;
}

#hero-cta {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#hero-cta:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Works Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    font-weight: 300;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.work-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.work-info {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.work-desc {
    font-size: 0.9rem;
    color: #aaa;
}

/* Work Detail Section */
#back-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 1rem;
}

#work-header {
    margin-bottom: 3rem;
    text-align: center;
}

#work-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    columns: 3 300px;
    column-gap: 1.5rem;
}

.gallery-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.expand-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* About Section */
.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding-top: 4rem;
}

.about-image {
    flex: 1;
}

#about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%; /* Circle profile */
    border: 2px solid #333;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.about-text {
    flex: 1.5;
}

#about-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#about-bio {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.contact-link {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Footer */
#main-footer {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: auto;
    border-top: 1px solid #222;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        gap: 3rem;
        z-index: 1000;
    }

    .menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        columns: 1;
    }
}
