/*
Theme Name: Ione Erber Portfolio
Theme URI: https://www.ioneart.com
Author: Ione Erber
Author URI: https://www.ioneart.com
Description: A custom portfolio theme for artist Ione Erber featuring drawings, paintings, ceramics, and sculpture.
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ione-theme
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #E91E63;
    --dark: #1a1a1a;
    --light: #fafafa;
    --gray: #666;
    --gold: #D4AF37;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(10px);
}

nav.solid-nav {
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--light);
}

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

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ============================================
   HOMEPAGE - HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease;
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #999;
    animation: fadeUp 1s ease 0.2s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Floating Art */
.floating-art {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.floating-art:hover {
    opacity: 1;
    transform: scale(1.05);
}

.floating-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-1 { top: 15%; left: 5%; width: 200px; height: 250px; transform: rotate(-8deg); }
.art-2 { top: 20%; right: 8%; width: 180px; height: 220px; transform: rotate(5deg); }
.art-3 { bottom: 20%; left: 10%; width: 240px; height: 300px; transform: rotate(3deg); }
.art-4 { bottom: 15%; right: 5%; width: 190px; height: 240px; transform: rotate(-5deg); }

/* ============================================
   HOMEPAGE - FEATURED SECTION
   ============================================ */
.featured {
    padding: 8rem 4rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.category-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.category-overlay p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.view-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.category-card:hover .view-btn::after {
    transform: translateX(5px);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    padding: 10rem 4rem 4rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-header h1 span {
    color: var(--accent);
    font-style: italic;
}

.page-header p {
    color: #888;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   GALLERY - MASONRY LAYOUT (Drawings & Paintings)
   ============================================ */
.gallery {
    padding: 2rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.art-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #2a2a2a;
}

.art-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.art-item:hover img {
    transform: scale(1.03);
}

.art-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.art-item:hover .art-info {
    transform: translateY(0);
}

.art-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.art-info p {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.art-info .medium {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.art-info .dimensions {
    color: #666;
    font-size: 0.7rem;
    margin-top: 0.3rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 600px;
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: #888;
    font-size: 0.9rem;
}

.lightbox-info .desc {
    color: #aaa;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding: 10rem 4rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.photo-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.photo-frame.childhood {
    grid-column: 1;
}

.photo-frame.current {
    grid-column: 2;
    margin-top: 3rem;
}

.photo-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--accent);
    font-style: italic;
}

.tagline {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
}

/* Bio Sections */
.bio-content {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bio-section {
    margin-bottom: 3rem;
}

.bio-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bio-section h2::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.bio-section p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Artist Statement */
.artist-statement {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    text-align: center;
}

.artist-statement h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.statement-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 2;
    color: #ccc;
    font-style: italic;
}

.statement-text::before,
.statement-text::after {
    content: '"';
    color: var(--accent);
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

.currently {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid #333;
}

.currently p {
    color: #888;
    font-size: 1.1rem;
}

.currently .school {
    color: var(--light);
    font-weight: 500;
}

/* ============================================
   CERAMICS & SCULPTURE PAGE - Alternating Cards
   ============================================ */
.sculptures {
    padding: 2rem 4rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sculpture-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid #333;
}

.sculpture-card:nth-child(even) {
    direction: rtl;
}

.sculpture-card:nth-child(even) > * {
    direction: ltr;
}

.sculpture-card:last-child {
    border-bottom: none;
}

/* Carousel */
.carousel-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #2a2a2a;
}

.carousel {
    position: relative;
    aspect-ratio: 4/5;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

.angle-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #aaa;
}

/* Sculpture Info */
.sculpture-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sculpture-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sculpture-info .medium {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.sculpture-info p {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sculpture-info .dimensions {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   BELLE RAY PROJECT PAGE
   ============================================ */
.project-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #1a1a1a 100%);
}

.project-hero .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}

.project-hero .hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-hero .hero-text h1 span {
    color: var(--gold);
    font-style: italic;
}

.project-hero .hero-text .subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-hero .hero-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.project-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Project Details */
.project-details {
    padding: 5rem 4rem;
    background: #1f1f1f;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.project-details .detail-item h3 {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.project-details .detail-item p {
    font-size: 1.1rem;
    color: var(--light);
}

/* Story Section */
.story-section {
    padding: 5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.story-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 2;
    color: #bbb;
    margin-bottom: 1.5rem;
}

/* Elements Showcase */
.elements-section {
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.elements-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.elements-section .intro {
    text-align: center;
    color: #888;
    margin-bottom: 3rem;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.element-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.element-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.element-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.element-card p {
    color: #888;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem;
    background: linear-gradient(180deg, var(--dark) 0%, #1f1f1f 100%);
}

.gallery-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.large img {
    aspect-ratio: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 0.85rem;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid #333;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .categories {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .category-card { height: 400px; }
    .masonry { column-count: 2; }
    .about-hero {
        grid-template-columns: 1fr;
        padding: 8rem 2rem 2rem;
    }
    .hero-photos {
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-text h1 { font-size: 3rem; }
    .sculpture-card, .sculpture-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .project-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    .elements-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    nav { padding: 1rem 2rem; }
    .nav-links { gap: 1rem; font-size: 0.75rem; }
    .hero h1 { font-size: 3rem; }
    .floating-art { display: none; }
    .featured { padding: 4rem 2rem; }
    .page-header { padding: 8rem 2rem 2rem; }
    .page-header h1 { font-size: 2.5rem; }
    .gallery { padding: 2rem; }
    .masonry { column-count: 1; }
    .bio-content { padding: 2rem; }
    .artist-statement { padding: 3rem 2rem; }
    .sculptures { padding: 2rem; }
    .sculpture-info h2 { font-size: 1.8rem; }
    .project-hero { padding: 8rem 2rem 4rem; }
    .project-hero .hero-text h1 { font-size: 2.5rem; }
    .elements-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
}
