/* ───────────────────────────────────────────
   Sergiu Munteanu Photography — Lab 4
   Bootstrap 5 + Custom Overrides (11ty)
   ─────────────────────────────────────────── */

/* Color Scheme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-white: #f5f5f5;
    --text-gray: #999999;
    --text-muted: #666666;
    --accent: #c9a96e;
    --accent-hover: #dfc088;
    --border-subtle: #2a2a2a;
    --speed: 0.35s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   NAVIGATION (Bootstrap overrides)
   ============================================ */
.navbar {
    background-color: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-brand {
    color: var(--text-white) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.nav-link {
    color: var(--text-gray) !important;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--speed);
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* ============================================
   CUSTOM BUTTON — outline gold
   ============================================ */
.btn-outline-gold {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background var(--speed), color var(--speed);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/images/1.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.4);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-weight: 300 !important;
    letter-spacing: 0.06em;
    color: var(--text-white);
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.hero-subtitle {
    color: var(--text-gray);
    font-weight: 300;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-white);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--accent);
    margin: 0.8rem auto 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--bg-secondary);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-white);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--bg-primary);
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--speed), transform var(--speed);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    color: var(--text-white);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO / GALLERY SECTION
   ============================================ */
.portfolio {
    background-color: var(--bg-secondary);
}

.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.15);
    transition: opacity var(--speed);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 0;
}

.gallery-item img {
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--speed), filter var(--speed);
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background-color: var(--bg-primary);
}

.contact-intro {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.form-input,
.form-textarea {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-white) !important;
    transition: border-color var(--speed);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: none !important;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted) !important;
}

/* ============================================
   MOBILE-ONLY ELEMENTS
   ============================================ */
.mobile-cta-banner {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-white);
}

.mobile-cta-banner h2 {
    color: var(--accent);
}

.mobile-cta-banner p {
    color: var(--text-gray);
}

.mobile-follow {
    background-color: var(--bg-secondary);
}

.mobile-follow-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.mobile-follow h3 {
    color: var(--text-white);
}

.text-muted-custom {
    color: var(--text-gray) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-gray);
}

.footer-brand {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-white);
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-gray);
    transition: color var(--speed), border-color var(--speed);
}

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

.footer-copy {
    color: var(--text-muted);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed), visibility var(--speed);
}

.lightbox.lightbox-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color var(--speed);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ============================================
   MASCOT — Friendly Camera
   ============================================ */
.mascot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mascot-visible {
    opacity: 1;
    transform: translateY(0);
}

.mascot-svg {
    width: 90px;
    height: 90px;
    animation: cameraWobble 3s ease-in-out infinite;
}

@keyframes cameraWobble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    15% {
        transform: translateY(-8px) rotate(5deg);
    }
    30% {
        transform: translateY(-2px) rotate(-3deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    70% {
        transform: translateY(-3px) rotate(4deg);
    }
    85% {
        transform: translateY(-7px) rotate(-2deg);
    }
}

.mascot-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
    pointer-events: none;
}

.mascot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 28px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}

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

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

/* Tablet */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.7rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .gallery-item img {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    .gallery-item img {
        height: 180px;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .btn-outline-gold.btn-lg {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .footer {
        font-size: 0.9rem;
    }

    .mascot {
        bottom: 12px;
        right: 12px;
    }

    .mascot-svg {
        width: 65px;
        height: 65px;
    }

    .mascot-tooltip {
        font-size: 0.75rem;
        white-space: normal;
        width: 180px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .gallery-item img {
        height: 150px;
    }
}
