/* 
   Octo Artists - Core Styles
   Theme: Minimal, Clean, Professional, Light Mode
*/

:root {
    /* Palette */
    --bg: #FFFFFF;
    --surface: #F6F6F6;
    --text: #0B0B0B;
    --muted: #6C6C6C;
    --line: #E6E6E6;
    --accent: #0B0B0B;
    /* Monochrome default */

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Structure */
    --max-width: 1200px;
    --nav-height: 80px;
    --border-radius: 4px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Ensure content is above background */
    z-index: 1;
}

/* Background */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg);
}

#bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    /* Faded out as requested */
    filter: grayscale(100%) contrast(1.2);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.4"/%3E%3C/svg%3E');
    opacity: 0.4;
    mix-blend-mode: overlay;
    animation: grain 8s steps(10) infinite;
    pointer-events: none;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }
}

h1,
h2,
h3,
h4,
.brand {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background: none;
    /* Reset for button elements */
    color: inherit;
}

.btn-primary {
    background-color: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    /* Changed to fully transparent to show background */
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.8);
    /* Slight frosted backing for legibility */
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--bg);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
    width: auto;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    border-bottom-color: var(--line);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section-sm {
    padding: var(--space-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--space-sm);
}

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto var(--space-md);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Artists Grid */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.artist-card {
    background-color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent */
    backdrop-filter: blur(4px);
    border: 1px solid var(--line);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.artist-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.artist-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 4px 8px;
    margin-right: 4px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.5);
}

.artist-bio {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Services */
.bg-surface {
    background-color: rgba(246, 246, 246, 0.9);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 1.5rem;
}

.service-item h3::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--muted);
    font-weight: 300;
}

.service-item p {
    color: var(--muted);
}

/* Enquiries */
.enquiry-panel {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    padding: var(--space-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

.enquiry-panel h2 {
    margin-bottom: var(--space-sm);
}

.enquiry-guidance {
    color: var(--muted);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.enquiry-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--line);
    margin-top: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.95);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-socials a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.footer-socials a:hover {
    color: var(--muted);
}

.footer-meta {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border: none;
    padding: 0;
    margin: 0;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    /* Native dialog styling override */
    max-width: 100vw;
    max-height: 100vh;
}

.modal[open] {
    display: flex;
}

.modal-content {
    background-color: var(--bg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text);
}

.modal-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 1rem;
    text-align: center;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --nav-height: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }
}

/* Coming Soon Page Styles */
.coming-soon {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cs-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: var(--space-md);
    min-height: calc(100vh - 60px);
}

.cs-content {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin: auto;
}

.cs-logo {
    height: 120px;
    width: auto;
    display: block;
    margin: 0 auto var(--space-md) auto;
}

.cs-divider {
    width: 40px;
    height: 1px;
    background-color: var(--text);
    margin: var(--space-md) 0;
}

.cs-status {
    color: var(--muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.cs-footer {
    text-align: center;
    padding: var(--space-md);
    font-size: 0.75rem;
    color: var(--muted);
    background-color: rgba(255, 255, 255, 0.9);
}