@import url('https://fonts.cdnfonts.com/css/coco-gothic');
@import url('https://fonts.cdnfonts.com/css/salmond');

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

:root {
    --midnight-blue: #0a1938;
    --midnight-blue-light: #0f2757;
    --silver: #E8E8E8;
    --silver-dark: #C0C0C0;
    --light-grey: #f8f8f8;
    --dark-grey: #333333;
    --text-dark: #222222;
    --accent-gold: #D4AF37;
    --white: #ffffff;
    --black: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Salmond', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family:  'Coco Gothic', sans-serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--midnight-blue);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

header.scrolled .logo-img {
    height: 30px;
}

.logo-text {
    font-family:  'Coco Gothic', sans-seri;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
}

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

/* Mobile menu button - visible on mobile by default */
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: block;  /* Changed from 'none' - now visible on mobile */
    z-index: 1001;
}

/* Navigation - hidden by default on mobile */
#mainNav {
    display: none;
    width: 100%;
    background-color: var(--midnight-blue);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* When menu is active - show it */
#mainNav.active {
    display: block;
}

/* Stack navigation items vertically on mobile */
#mainNav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#mainNav ul li {
    margin: auto;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#mainNav ul li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#mainNav ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

/* Desktop styles */
@media (min-width: 769px) {  /* Changed from 568px for better tablet handling */
    .mobile-menu-btn {
        display: none !important;  /* Hide button on desktop */
    }

    #mainNav {
        display: block !important;  /* Always visible on desktop */
        position: static;
        width: auto;
        background: none;
    }

    #mainNav ul {
        flex-direction: row;
    }

    #mainNav ul li {
        margin-left: 2rem;
        border: none;
        padding: 0;
    }

    #mainNav ul li:last-child {
        border-bottom: none;
    }

    #mainNav ul li a {
        display: inline-block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 25, 56, 0.95), rgba(10, 25, 56, 0.85)), url('../assets/images/gallery2.jpeg') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--silver);
}

.hero-actions,
.preview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--midnight-blue);
    /* border: 1px solid var(--midnight-blue); */
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    /* background-color: var(--white); */
    /* color: var(--midnight-blue); */
    transform: translateX(3px);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

.btn-filled {
    background-color: var(--white);
    color: var(--midnight-blue);
    border: 1px solid var(--white);
}

.btn-filled:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-stroke {
    /* border: 1px solid var(--midnight-blue); */
    background-color: var(--white)
}

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

.btn-whatsapp:hover {
    color: var(--midnight-blue);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--midnight-blue);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
}

.section-title.light h2 {
    color: var(--white);
}

.section-title.light p {
    color: var(--silver);
}

.page-header {
    background-color: var(--light-grey);
    padding: 6rem 0 3rem;
}

.page-header .section-title {
    margin-bottom: 1.5rem;
}

.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.search-bar {
    flex: 1;
    min-width: 250px;
}

.search-bar input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.filter-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--midnight-blue);
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--midnight-blue);
    color: var(--white);
}

.gallery-list {
    padding-top: 1rem;
}

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

.artwork-card,
.artist-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card a,
.artist-card a,
.other-artwork-card a {
    text-decoration: none;
    color: inherit;

}

.artwork-card:hover,
.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.artwork-img,
.artist-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
}

.artwork-info,
.artist-info {
    padding: 1rem;
}

.artwork-info h3,
.artist-info h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.artwork-info p,
.artist-info p {
    /* margin-bottom: 0.85rem; */
    color: var(--dark-grey);
}

.artwork-info .artist-name,
.artist-info .artist-alias {
    font-size: 0.95rem;
    color: var(--midnight-blue);
}

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

.artist-card .artist-copy {
    min-height: 180px;
}

.profile-artwork {
    height: 260px;
    background-size: cover;
    background-position: center;
}

.empty-state {
    display: none;
    padding: 60px 0;
    text-align: center;
    color: var(--midnight-blue);
    font-size: 1.1rem;
}

.artwork-detail-section {
    padding: 2rem 0 5rem;
}

.artwork-detail {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.artwork-detail-image {
     width: 100%;
    min-height: 520px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
}

.artwork-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artwork-detail-meta h1 {
    margin-bottom: 0.5rem;
    color: var(--midnight-blue);
}

.artwork-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1rem;
}

.artwork-meta span {
    display: block;
    font-weight: 600;
    color: var(--midnight-blue);
}

.artwork-detail-meta p {
    color: var(--dark-grey);
    line-height: 1.8;
    text-align: justify;
}

.other-works-header {
    margin-bottom: 1.5rem;
}

.other-artworks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.other-artwork-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.other-artwork-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.other-artwork-info {
    padding: 1rem;
}

.other-artwork-info h4 {
    margin-bottom: 0.75rem;
    color: var(--midnight-blue);
}

.other-artwork-info p {
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.other-artwork-info a {
    display: inline-block;
    text-decoration: none;
    color: var(--midnight-blue);
    font-weight: 600;
}

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

p.light {
    color: var(--silver);
}

/* About Page */
.about-hero {
    padding-top: 8rem;
}

.story-section {
    padding-top: 2rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.value-header h3 {
    margin: auto 0;
}

.value-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--midnight-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem; /* 🔥 smaller for inline */
    flex-shrink: 0;    /* prevents squishing */
}

.value-icon i {
    color: var(--white);
}

/* Gallery Preview */
.gallery-preview {
    text-align: center;
    background-color: var(--white);
}

.gallery-preview .section-title {
    margin-bottom: 2rem;
}

/* Collector Services */
.services-hero {
    /* background-color: var(--midnight-blue); */
    /* color: var(--white); */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 14px;
    transition: all 0.35s ease;
    overflow: hidden; /* 🔥 prevents image bleed on hover */
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-img {
    width: 100%;
    aspect-ratio: 4 / 3;     /* 🔥 forces 4:3 always */
    overflow: hidden;
    border-radius: 10px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* 🔥 fills container without distortion */
    display: block;
    transition: transform 0.5s ease;
}

.service-card h3 {
    margin: 1.2rem 0 0rem 0;
}

.service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
}

.service-img {
    position: relative;
}

.service-card:hover .service-img::after {
    background: rgba(0,0,0,0.08);
}

/* Artist Submissions */
.submissions-hero {
    background-color: var(--light-grey);
    text-align: justify;
}

.requirements h3 {
    margin: 1rem;
    letter-spacing: 0.02em;
}

.requirements ul {
    list-style: disc inside;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.requirements li {
    margin-bottom: 0.75rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

/* === New Homepage Sections === */
.auction-section {
    padding: 5rem 0;
}
.auction-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: justify;
}
.auction-text p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.collect-reasons {
    margin: 2rem 0;
    padding: 0; 
    background: none;
    color: inherit;
}
.collect-reasons h3 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    color: var(--midnight-blue); /* or keep default */
    border-bottom: 2px solid var(--silver);
    padding-bottom: 0.5rem;
}
.collect-reasons ul {
    list-style: none;
    padding: 0;
}

.collect-reasons li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auction-callout {
    font-size: 1.1rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
}
.gallery-tagline {
    font-family: 'Coco Gothic', sans-seri;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.featured-works {
    background: var(--white);
    padding: 5rem 0;
}
.featured-grid {
    margin-bottom: 2rem;
}
.badge {
    display: inline-block;
    background: var(--midnight-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.5rem 0;
}
/* about page enhancements */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.about-grid.reverse {
    direction: rtl;
}
.about-grid.reverse .about-text {
    direction: ltr;
}
.about-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--midnight-blue);
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-grey);
    text-align: justify;
}
.values-section {
    padding: 3rem 0 5rem;
    background: var(--light-grey);
}
/* Responsive */
@media (max-width: 768px) {
    .about-grid, .about-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 1.5rem;
    }
    .about-image {
        height: 280px;
    }
    .collect-reasons li {
        flex-direction: column;
    }
    .auction-card {
        padding: 0;
    }
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    background-color: rgba(10, 25, 56, 0.9);
    color: var(--silver);
}

.footer-content {
    position: relative; /* 🔥 needed for absolute positioning */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* only 2 main columns now */
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--silver);
}

.social-column {
    position: absolute;
    right: 0;
    top: 0;
    width: auto; /* 🔥 small width */
    text-align: right;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.social-links a {
    display: block;
    font-size: 1.4rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--silver);
    transform: translateX(-4px);
}

.copyright p {
    color: var(--silver);
    text-align: center;
    font-family: 'Salmond', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 2.5rem;
}

.copy {
    font-family: 'Coco Gothic', sans-serif;
}

@media (max-width: 768px) {
    .social-column {
        position: static; /* 🔥 back into normal flow */
        text-align: left;
        margin-top: 2rem;
    }

    .social-links {
        flex-direction: row; /* optional */
        justify-content: flex-start;
    }
}

/* Scroll Animation Classes */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.scale-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-30px);
}

.slide-in-right {
    transform: translateX(30px);
}

.scale-in {
    transform: scale(0.95);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-content,
    .service-card,
    .artwork-detail,
    .other-artworks,
    .gallery-grid,
    .artist-grid,
    .values,
    .footer-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    nav ul.active {
        display: flex;
        background-color: var(--midnight-blue);
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0.75rem 0;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.7rem;
    }

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

    .featured-content,
    .gallery-actions,
    .artwork-detail,
    .service-card,
    .values,
    .other-artworks,
    .footer-content {
        gap: 1.2rem;
    }

    .gallery-grid,
    .artist-grid,
    .other-artworks {
        grid-template-columns: 1fr;
    }

    .gallery-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .hero {
        padding-top: 100px;
    }

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

    nav ul li {
        margin: 0;
    }

    /* .filter-btn {
        width: 100%;
    } */
}

/* Ensure mobile menu button is styled consistently */
.mobile-menu-btn {
    display: block;
}
