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

/* Font Face Declarations for faster loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-v12-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v12-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v12-latin-500.woff2') format('woff2');
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-brand h1 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #000;
    margin-bottom: 2px;
}

.runic-text {
    font-size: 14px;
    color: #333;
    letter-spacing: 1px;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 8px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #000;
}

/* Navigation Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    color: #666;
}

.lang-btn.active,
.lang-btn:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}

.social-icons a {
    color: #333;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #000;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: #000;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* Featured Section */
.featured-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.featured-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover .featured-image {
    transform: scale(1.05);
}

.featured-info {
    padding: 30px;
}

.featured-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.featured-info p {
    color: #666;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Page Content */
.page-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.page-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
    padding-top: 60px;
}

/* Artist Section */
.artist-section {
    padding: 60px 0 100px;
}

.artist-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
}

.bio-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.artist-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.exhibitions-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #000, #ccc);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 6px #000;
}

.timeline-year {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 0 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.03);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
}

.portfolio-info p {
    color: #666;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0 100px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-item strong {
    color: #000;
    margin-right: 10px;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #000;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.submit-btn {
    background-color: #000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* News Section */
.news-section {
    padding: 60px 0 100px;
}

.news-grid {
    max-width: 900px;
    margin: 0 auto;
}

.news-category {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.news-category h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #000;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.news-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.news-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #000;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 40px 0;
    margin-top: 100px;
}

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

.footer-left p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-right a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        margin-top: 10px;
    }

    .nav-right {
        gap: 15px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .artist-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 18px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .page-title {
        font-size: 24px;
        padding-top: 40px;
    }

    .contact-form-container {
        padding: 25px;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Email Popup Styles */
.email-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.email-popup.show .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #000;
}

.popup-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000;
}

.popup-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.popup-form input:focus {
    outline: none;
    border-color: #000;
}

.popup-form button {
    background: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.popup-form button:hover {
    background: #333;
}

/* Portfolio Navigation Active State */
.dropdown-menu a.active {
    background-color: #f0f0f0;
    color: #000;
    font-weight: 500;
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-content h3 {
        font-size: 20px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
}
