:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #3b82f6;
    --text: #1f2937;
    --light-bg: #f9fafb;
    --border: #e5e7eb;
    --hero-bg: url('../gallery/gallery-2.png');
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light-bg);
}

/* Navigation */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

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

.has-submenu {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    display: none;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.has-submenu:hover .sub-menu {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.tagline {
    color: #e5e7eb;
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn.primary:hover {
    background: #333;
}

/* Sections */
.section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-bubble {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-bubble:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.expand-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.skill-bubble.active .expand-btn {
    transform: rotate(45deg);
}

.skill-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 0.95rem;
    color: #4b5563;
}

.skill-bubble.active .skill-details {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

/* Experience List */
.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.experience-item h3 {
    font-size: 1.5rem;
}

/* Contact */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

/* Cars Page Tabs */
.tab-container {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--light-bg);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.card {
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.build-label {
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        border: 1px solid var(--border);
    }

    .nav-links.show {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: 60vh;
    }

    .tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .nav-links {
        width: 100%;
        text-align: center;
    }

    /* NEW MOBILE IMAGE FIXES */
    .gallery-grid, .hentai-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .gallery-grid img, .hentai-grid img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        border-radius: 8px;
    }
}
