/* ==========================================================================
   Maximilian Schwarz Photography - Template Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #080808;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #141414;
    --accent-gold: #d4af37;
    --accent-gold-rgb: 212, 175, 55;
    --text-main: #e5e5e5;
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.1);
    --border-hairline: #1c1c1c;
    --font-headers: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 4px; /* Minimalist sharp edges */
}

/* Novrid Brand Banner */
.novrid-brand-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #080808;
    border-bottom: 1px solid rgba(var(--accent-gold-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    z-index: 2000;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.novrid-brand-banner a {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.3);
}

.novrid-brand-banner a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 120px 0;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

/* Typographic Helpers */
.serif-text {
    font-family: var(--font-headers);
}

.italic-text {
    font-style: italic;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.horizontal-divider {
    width: 40px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 0 auto 20px auto;
}

.horizontal-divider.left-align {
    margin: 0 0 20px 0;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons System */
.btn {
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header Navigation Styling
   ========================================================================== */
.main-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.9);
    border-bottom: 1px solid var(--border-hairline);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 90px;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

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

.header-socials {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.header-socials a:hover {
    color: var(--accent-gold);
}

.mobile-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding-top: 130px;
}

.hero-container {
    max-width: 800px;
    padding-left: 60px;
}

.hero-subtitle-top {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-headers);
    font-size: 4.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 44px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Scroll Mouse Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollAnimation 1.6s infinite;
}

/* ==========================================================================
   Portfolio Grid Gallery Styling
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    color: var(--bg-primary);
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-hairline);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Overlay elements on Hover */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 10%, rgba(8, 8, 8, 0.1) 60%, rgba(8, 8, 8, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

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

.overlay-text h3 {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.overlay-text span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.view-icon {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.gallery-item:hover .view-icon {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* ==========================================================================
   About Me Section Styling
   ========================================================================== */
.about-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border: 1px solid var(--border-hairline);
    padding: 12px;
    background: var(--bg-primary);
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.exp-years {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.exp-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: var(--font-headers);
    font-size: 3.2rem;
    font-weight: 400;
    margin: 10px 0 20px 0;
}

.about-philosophy {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-gold);
    line-height: 1.6;
    margin-bottom: 24px;
    border-left: 2px solid var(--accent-gold);
    padding-left: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 24px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 10px;
    border-top: 1px solid var(--border-hairline);
    padding-top: 30px;
}

.detail-box h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.detail-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.signature-box {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.signature-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.2rem;
    color: var(--accent-gold);
    line-height: 1.2;
}

.signature-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   Pricing Section Styling
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--border-radius);
}

.pricing-card.recommended {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.02);
}

.recommended-badge {
    position: absolute;
    top: 20px;
    right: 36px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 20px;
}

.card-header h3 {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-price {
    margin: 36px 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px 0;
}

.price-val {
    font-family: var(--font-headers);
    font-size: 3rem;
    color: var(--accent-gold);
    line-height: 1.1;
}

.price-tax {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.card-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.card-features ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-features li i {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.btn-card-booking {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
}

.btn-card-booking:hover {
    background: var(--text-main);
    color: var(--bg-primary);
    border-color: var(--text-main);
}

.pricing-card.recommended .btn-primary {
    width: 100%;
}

/* ==========================================================================
   Contact Form Section Styling
   ========================================================================== */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-hairline);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-hairline);
    padding: 12px 0;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-main);
}

.btn-submit {
    align-self: flex-start;
    margin-top: 20px;
}

/* Success Form screen */
.form-success-box {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.4s ease forwards;
}

.success-gold-icon {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.form-success-box h3 {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.form-success-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   Lightbox Gallery Component
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(6, 6, 6, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.5rem;
    color: var(--text-muted);
    z-index: 2010;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2010;
}

.lightbox-nav:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.02);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

.lightbox-image-container {
    max-height: 70vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 24px;
}

.lightbox-image-container img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.5s ease;
}

.lightbox.active #lightboxImg {
    transform: scale(1);
}

.lightbox-caption {
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.lightbox-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer Section Styling
   ========================================================================== */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-hairline);
    padding: 80px 0 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-branding {
    text-align: center;
}

.footer-title {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.footer-branding p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-legal {
    width: 100%;
    border-top: 1px solid var(--border-hairline);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.studio-link {
    color: var(--accent-gold);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateY(8px);
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Styling (Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .recommended-badge {
        right: 24px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-container {
        padding-left: 20px;
    }

    .contact-wrapper {
        padding: 40px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }

    /* Mobile navigation elements toggle */
    .mobile-toggle {
        display: block;
        z-index: 1010;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-hairline);
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        z-index: 1005;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }

    .header-socials {
        display: none;
    }

    /* Lightbox controls resizing on mobiles */
    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
