/* ============================================
   OTTO SCHNEIDER — Film Industry Design
   Professional Project & Agile Production
   Enhanced with warm, charming micro-details
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-color: #c5aa32ff;
    --brand-opacity: rgba(197, 170, 50, 0.75);
    --brand-solid: #c5aa32;
    --brand-light: rgba(197, 170, 50, 0.15);          /* NEW */
    --brand-glow: rgba(197, 170, 50, 0.35);           /* NEW */
    --dark: #2b2b2b;
    --darker: #1e1e1e;
    --charcoal: #333333;
    --silver: #b0b0b0;
    --light-silver: #d8d8d8;
    --cream: #f5f0e1;
    --cream-light: #faf7ed;                            /* NEW */
    --gold: #c5aa32;
    --text-primary: #2c2c2c;
    --text-secondary: #555555;
    --text-muted: #777777;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageFadeIn 0.6s ease-out;               /* NEW */
}

/* ===== NEW: Page Fade-In Animation ===== */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Bold Text Styling --- */
strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* --- Links --- */
a {
    color: #8a7420;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--brand-solid);
    text-decoration: underline;
}

/* --- Header --- */
header {
    position: relative;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--brand-opacity);
}

header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-01.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.25;
}

header .header-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7),     /* ENHANCED: was 2px 2px 6px */
                 1px 1px 3px rgba(0, 0, 0, 0.5);
}

header .tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6),      /* ENHANCED: was 1px 1px 4px */
                 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- Navigation (Centered) --- */
nav {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0;
    border-bottom: none;                                /* CHANGED: was 2px solid transparent */
    transition: color 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);      /* NEW */
    position: relative;                                  /* NEW */
}

/* ===== NEW: Smooth underline reveal from left ===== */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ffffff;
    text-decoration: none;
}

nav ul li a.active {
    color: #ffffff;
}

nav ul li a.active::after {                              /* NEW */
    width: 100%;
}

/* --- Main Container --- */
main.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

/* --- Section Headings --- */
h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    border-left: 4px solid var(--brand-solid);
    padding-left: 0.8rem;
    position: relative;                                  /* NEW */
}

/* ===== NEW: Warm gradient accent line below H2 ===== */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 0.6rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-solid), var(--brand-glow), transparent);
}

/* --- Mission Sections --- */
.mission-entry,
.mission-continued {
    margin-bottom: 2rem;
}

.mission-entry p,
.mission-continued p {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* --- Gallery --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.gallery figure {
    margin: 0;
    text-align: center;
    position: relative;                                  /* NEW */
}

/* ===== NEW: Film-strip decorative dots above each image ===== */
.gallery figure::before {
    content: '\25C8  \25C8  \25C8';
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.6rem;
    color: var(--brand-solid);
    opacity: 0.5;
    margin-bottom: 0.4rem;
    text-align: center;
}

.gallery img {
    width: 100%;
    height: auto;
    border: 4px solid var(--cream);
    border-radius: 8px;                                  /* CHANGED: was 4px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);         /* CHANGED: was 0.12 */
    transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;  /* ENHANCED */
}

/* ===== ENHANCED: Image lift + gold glow shadow on hover ===== */
.gallery img:hover {
    border-color: var(--brand-solid);
    transform: translateY(-4px);                         /* CHANGED: was scale(1.02) */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),        /* NEW: deeper shadow */
                0 0 12px var(--brand-glow);              /* NEW: gold glow */
}

.gallery figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* --- Expertise Table (Services Page) --- */
.expertise-section {
    margin-top: 2.5rem;
}

.expertise-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.expertise-table thead th {
    background-color: var(--brand-opacity);
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: left;
    padding: 0.8rem 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.expertise-table tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #cccccc;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: background-color 0.3s ease, padding-left 0.3s ease;  /* ENHANCED */
}

.expertise-table tbody tr:nth-child(even) {
    background-color: rgba(197, 170, 50, 0.06);        /* CHANGED: was 0.08 */
}

/* ===== ENHANCED: Warmer row highlight with subtle indent ===== */
.expertise-table tbody tr:hover {
    background-color: rgba(197, 170, 50, 0.15);        /* CHANGED: was 0.18 */
}

.expertise-table tbody tr:hover td {                     /* NEW */
    padding-left: 1.2rem;
}

/* --- Development Projects --- */
.dev-projects-section {
    margin-top: 2.5rem;
}

/* Cooperation note below "Current Development Projects" heading */
.cooperation-note {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background-color: rgba(197, 170, 50, 0.08);
    border-left: 3px solid var(--brand-solid);
    border-radius: 0 8px 8px 0;                         /* CHANGED: was 4px */
}

.cooperation-note a {
    color: #8a7420;
    font-weight: 600;
}

.cooperation-note a:hover {
    color: var(--brand-solid);
}

.dev-projects {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.dev-projects li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #cccccc;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: background-color 0.3s ease, padding-left 0.3s ease;  /* ENHANCED */
}

/* ===== NEW: List items gently indent on hover ===== */
.dev-projects li:hover {
    background-color: rgba(197, 170, 50, 0.08);        /* NEW */
    padding-left: 1.4rem;                                /* NEW */
}

.dev-projects li::before {
    content: '\25C6';
    color: var(--brand-solid);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.dev-projects li strong {
    color: #1a1a1a;
    min-width: 180px;
}

/* --- Footer --- */
footer {
    background-color: var(--brand-opacity);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

footer .footer-content {
    max-width: 960px;
    margin: 0 auto;
}

footer .footer-links {
    margin-bottom: 0.5rem;                              /* CHANGED: was 0.8rem */
}

footer .footer-links a {
    color: #ffffff;                                      /* CHANGED: was #1a1a1a */
    font-size: 0.85rem;
    margin: 0 0.8rem;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;                         /* NEW */
}

footer .footer-links a:hover {
    color: var(--cream);                                 /* CHANGED: was #ffffff */
}

/* ===== NEW: Footer ornament divider ===== */
.footer-ornament {
    color: #ffffff;
    font-size: 0.7rem;
    opacity: 0.6;
    margin: 0.4rem 0;
    letter-spacing: 0.3rem;
}

footer p {
    font-size: 0.8rem;
    color: #ffffff;                                      /* CHANGED: was #1a1a1a */
    letter-spacing: 0.04em;
}

/* --- Contact Page Specifics --- */
.contact-entry,
.contact-below {
    margin-bottom: 2rem;
}

.contact-entry p,
.contact-below p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Centered wrapper for email and form */
.contact-center {
    display: flex;
    justify-content: center;
}

/* ===== ENHANCED: Fancy Email Link with soft glow + pulse ===== */
.email-fancy {
    display: inline-block;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: #1a1a1a;
    border: 2px solid var(--brand-solid);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;                                  /* CHANGED: was 4px */
    margin: 1rem 0;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;  /* ENHANCED */
    box-shadow: 0 0 0 0 var(--brand-glow);               /* NEW */
    animation: emailPulse 3s ease-in-out infinite;       /* NEW */
}

/* ===== NEW: Gentle pulse animation on email link ===== */
@keyframes emailPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--brand-glow);
    }
    50% {
        box-shadow: 0 0 12px 4px var(--brand-glow);
    }
}

.email-fancy:hover {
    background-color: var(--brand-solid);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 16px 6px var(--brand-glow);          /* NEW */
    animation: none;                                      /* NEW: stop pulse on hover */
}

/* ===== ENHANCED: Netlify Contact Form with warm inner glow ===== */
.contact-form {
    max-width: 600px;
    width: 100%;
    margin: 2rem 0;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    margin-bottom: 1.2rem;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;                                  /* CHANGED: was 3px */
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;  /* ENHANCED */
    box-shadow: inset 0 1px 4px rgba(197, 170, 50, 0.06);      /* NEW: warm inner glow */
}

/* ===== NEW: Warm inner glow on focus ===== */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--brand-solid);
    outline: none;
    box-shadow: inset 0 1px 4px rgba(197, 170, 50, 0.15),     /* NEW */
                0 0 8px var(--brand-glow);                       /* NEW */
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== ENHANCED: Submit button with soft glow ===== */
.contact-form button {
    background-color: var(--brand-solid);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;                                  /* CHANGED: was 3px */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;  /* ENHANCED */
    box-shadow: 0 2px 6px rgba(197, 170, 50, 0.25);     /* NEW */
}

.contact-form button:hover {
    background-color: #8a7420;
    transform: translateY(-2px);                          /* CHANGED: was -1px */
    box-shadow: 0 4px 14px rgba(197, 170, 50, 0.4);     /* NEW */
}

/* Honeypot field - hidden from users */
.contact-form .hidden {
    display: none;
}

/* ===== ENHANCED: Quote Block with decorative quotation mark ===== */
.quote-block {
    margin: 2.5rem 0 1rem;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--brand-solid);
    background-color: rgba(197, 170, 50, 0.1);
    border-radius: 0 8px 8px 0;                          /* NEW: was no border-radius */
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.7;
    position: relative;                                   /* NEW */
}

/* ===== NEW: Large faded decorative opening quote ===== */
.quote-block::before {
    content: '\201C';
    position: absolute;
    top: -0.2rem;
    left: 0.6rem;
    font-size: 4rem;
    color: var(--brand-solid);
    opacity: 0.2;
    font-style: normal;
    line-height: 1;
    pointer-events: none;
}

.quote-block .quote-author {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--brand-solid);
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* --- Services Page --- */
.services-entry,
.services-continued {
    margin-bottom: 2rem;
}

.services-entry p,
.services-continued p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- 404 Page --- */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h2 {
    font-size: 4rem;
    border-left: none;
    padding-left: 0;
    color: var(--brand-solid);
}

.error-page h2::after {                                   /* NEW */
    display: none;                                        /* hide gradient line on 404 */
}

.error-page p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* --- Terms Page --- */
.terms-content h3 {
    font-family: var(--font-heading);
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.terms-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    nav ul {
        gap: 1.5rem;
    }

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

    h2 {
        font-size: 1.5rem;
    }

    .expertise-table thead th,
    .expertise-table tbody td {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .expertise-table tbody tr:hover td {                 /* NEW */
        padding-left: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    header {
        min-height: 200px;
    }

    header h1 {
        font-size: 1.6rem;
        letter-spacing: 0.08em;
    }

    header .tagline {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

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

    main.container {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .expertise-table {
        font-size: 0.8rem;
    }

    .expertise-table thead th,
    .expertise-table tbody td {
        padding: 0.4rem 0.5rem;
    }

    .expertise-table tbody tr:hover td {                 /* NEW */
        padding-left: 0.6rem;
    }

    .email-fancy {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .quote-block {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .quote-block::before {                                /* NEW */
        font-size: 3rem;
    }

    .dev-projects li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .dev-projects li strong {
        min-width: auto;
    }

    .dev-projects li:hover {                              /* NEW */
        padding-left: 1rem;
    }
}
