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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #ff6b9d;
    --accent-color: #6c63ff;
    --light-bg: #f8f9fa;
    --text-color: #2d3436;
    --light-text: #636e72;
    --border-color: #e1e8ed;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --hero-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --section-bg: #ffffff;
}

/* Dark mode variables */
body.dark-mode {
    --primary-color: #e8e8f0;
    --text-color: #e4e4e7;
    --light-text: #a1a1aa;
    --light-bg: #27272a;
    --border-color: #3f3f46;
    --bg-color: #18181b;
    --card-bg: #27272a;
    --hero-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    --section-bg: #27272a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header and Navigation */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.logo h1 .highlight {
    font-weight: 900;
    background: linear-gradient(90deg, #ff6b9d, #6c63ff, #ff6b9d, #6c63ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.page-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 20px;
    color: #ff6b9d;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

nav ul li a.active {
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--hero-bg);
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #6c63ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Content Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.painting-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.painting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.painting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
}

.painting-card:hover::before {
    opacity: 0.03;
}

.painting-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.painting-card:hover .painting-image {
    transform: scale(1.02);
}

.painting-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.painting-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.painting-info .details {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.painting-info .price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    background: var(--gradient-2);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

footer a:hover {
    color: #ff8fb9;
    text-decoration: underline;
}

/* Impressum */
.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Info Boxes */
.info-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .page-tag {
        display: block;
        pointer-events: none;
    }

    .dark-mode-toggle {
        order: 2;
        margin-left: 0.5rem;
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    nav {
        order: 4;
    }

    nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: none;
        padding: 1rem;
        border-radius: 0;
    }

    nav ul li a.active {
        display: block;
        background: var(--gradient-2);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    nav.active ul li a {
        display: block;
    }

    /* Hide the nav highlight on mobile */
    .nav-highlight {
        display: none !important;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .painting-image {
        height: 250px;
    }

    .btn {
        width: 100%;
    }
}

/* Disabled smooth scroll to prevent page load animations */
html {
    scroll-behavior: auto;
}

/* Selection color */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: white;
}

/* Dark Mode Toggle Slider */
.dark-mode-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
    border: none;
    padding: 0;
}

.dark-mode-toggle:hover {
    background: var(--light-text);
}

body.dark-mode .dark-mode-toggle {
    background: var(--accent-color);
}

body.dark-mode .dark-mode-toggle:hover {
    background: #8680ff;
}

.dark-mode-toggle .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dark-mode-toggle .toggle-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .dark-mode-toggle .toggle-slider {
    transform: translateX(24px);
}

/* Feature cards */
.feature-card {
    background: var(--card-bg);
}

.feature-title {
    color: var(--text-color);
}

.feature-text {
    color: var(--light-text);
}

.about-section {
    background: var(--card-bg);
}

/* Info sections with static backgrounds */
.info-section {
    background: var(--light-bg);
}

.info-section h3,
.info-section h4 {
    color: var(--text-color);
}

.info-section p {
    color: var(--text-color);
}

.info-section .muted-text {
    color: var(--light-text);
}
