:root {
    --bg-color: #071a3a;
    --bg-darker: #041228;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #ffffff;
    --border: #333333;
    --primary-btn: #ffffff;
    --primary-btn-text: #000000;
    
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --nav-height: 70px;
    --radius: 4px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Utilities */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.narrow-container { max-width: 700px; }
.text-center { text-align: center; }
.hidden { display: none; }
.section-padding { padding: var(--spacing-lg) 0; }
.pb-0 { padding-bottom: 0; }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-4 { margin-top: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-md); }

/* Typography */
h1, h2, h3 { font-weight: 600; color: var(--accent); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
.lead { font-size: 1.25rem; color: var(--text-color); }
.small { font-size: 0.875rem; }

/* Navigation */
.site-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--accent); display: flex; align-items: center; gap: 0.4rem; }
.logo img { max-height: 40px; width: auto; display: block; }

.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a { font-size: 0.9rem; font-weight: 500; }
.main-nav a:hover { color: var(--accent); }

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: var(--accent);
    opacity: 0.85;
}

.social-link:hover {
    opacity: 1;
    border-color: var(--accent);
}

.social-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.mobile-nav-toggle { display: none; color: var(--accent); z-index: 1001; }
.hamburger { width: 24px; height: 2px; background: currentColor; display: block; position: relative; }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 100%; height: 2px; background: currentColor; left: 0; transition: 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile Nav State */
.nav-open .main-nav { transform: translateX(0); }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-top: -var(--nav-height); padding-top: var(--nav-height);
}
.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(18,18,18,1));
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-subhead { font-size: 1.125rem; color: #ddd; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta-btn {
    min-width: 210px;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
}
.hero-buttons .btn-primary {
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.hero-buttons .btn-outline {
    border-width: 2px;
    background: rgba(0,0,0,0.2);
}
.hero-scroll-hint {
    display: none;
}

.intro {
    position: relative;
    overflow: hidden;
}

.intro::before,
.intro::after {
    content: "";
    position: absolute;
    top: 50%;
    background-image: url('/assets/img/film.png');
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.26;
    pointer-events: none;
    z-index: 0;
}

.intro::before {
    left: 33%;
    width: 91%;
    height: 224px;
    background-size: 532px auto;
    transform: translate(-50%, -50%) rotate(-60deg);
}

.intro::after {
    right: 22%;
    width: 78%;
    height: 190px;
    background-size: 450px auto;
    transform: translate(50%, -50%) scaleX(-1) scaleY(-1) rotate(50deg);
}

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

@media (max-width: 600px) {
    .hero-buttons {
        width: 100%;
    }
    .hero-cta-btn {
        width: 100%;
        max-width: 320px;
    }
    .hero-scroll-hint {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        position: absolute;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(4.5rem, 10vh, 7.5rem));
        transform: translateX(-50%);
        z-index: 3;
        color: #fff;
        text-decoration: none;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        opacity: 0.9;
    }
    .hero-scroll-hint svg {
        width: 1.5rem;
        height: 1.5rem;
        fill: currentColor;
    }

    .intro::before {
        left: 36%;
        width: 105%;
        height: 189px;
        background-size: 392px auto;
        opacity: 0.22;
    }

    .intro::after {
        right: 28%;
        width: 90%;
        height: 160px;
        background-size: 331px auto;
        transform: translate(50%, -50%) scaleX(-1) scaleY(-1) rotate(50deg);
        opacity: 0.2;
    }
}

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 1.6rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem; transition: all 0.2s; text-align: center;
}
.btn-primary { background: var(--primary-btn); color: var(--primary-btn-text); }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); background: rgba(255,255,255,0.05); }
.btn-primary-nav { padding: 0.5rem 1rem; background: var(--accent); color: #000; border-radius: 2px; }

/* Services Grid */
.bg-darker { background-color: var(--bg-darker); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.2s; }
.card:hover { border-color: var(--text-muted); }

/* services section: six-box grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-box {
    color: var(--accent);
    padding: 2rem 1rem;
    text-align: left;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.service-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.service-box p {
    margin: 0;
    color: var(--text-muted);
}

/* Featured Gallery */
.gallery-preview img { height: 300px; width: 100%; object-fit: cover; border-radius: var(--radius); filter: grayscale(20%); transition: 0.3s; }
.gallery-preview img:hover { filter: grayscale(0%); }
.flex-between { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

#portfolio-highlights {
    position: relative;
    overflow: hidden;
}

.portfolio-film-full {
    position: absolute;
    left: 19%;
    top: 135px;
    width: 1040px;
    height: auto;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

#portfolio-highlights > .container {
    position: relative;
    z-index: 1;
}

/* Pricing */
#pricing {
    position: relative;
    overflow: hidden;
}

.pricing-film-full {
    position: absolute;
    left: 78%;
    top: 50%;
    width: 1040px;
    height: auto;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.4);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

#pricing > .container {
    position: relative;
    z-index: 1;
}

#contact {
    position: relative;
    overflow: hidden;
}

.contact-film-full {
    position: absolute;
    left: 22%;
    top: 50%;
    width: 1040px;
    height: auto;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.4);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

#contact > .container {
    position: relative;
    z-index: 1;
}

.pricing-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.pricing-group {
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--accent);
}
.pricing-group h3 {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.25;
}
.pricing-main {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}
.price-highlight {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent);
}
.price-vat {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.pricing-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.pricing-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .portfolio-film-full {
        left: 25%;
        top: 120px;
        width: 840px;
        opacity: 0.14;
    }

    .pricing-film-full {
        width: 840px;
        opacity: 0.16;
    }

    .contact-film-full {
        width: 840px;
        opacity: 0.16;
    }

    .pricing-layout {
        grid-template-columns: 1fr;
    }
}

/* Bio */
.bio-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.bio-image img { width: 70%; display: block; margin: 0 auto; border-radius: var(--radius); filter: none; transition: 0.5s; }
.bio-image img:hover { filter: none; }

/* Contact Form */
.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem; background: var(--bg-color); border: 1px solid var(--border);
    color: var(--accent); border-radius: var(--radius); font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.btn-block { width: 100%; }

/* contact details icons under form */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
}

.contact-details h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.contact-social {
    justify-content: center;
    margin: 0.2rem 0 0.35rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.contact-details p svg {
    width: 1.05em;
    height: 1.05em;
    vertical-align: middle;
    margin-right: 0.5rem;
    fill: currentColor;
}

/* Portfolio Page */
.page-title { margin-top: var(--spacing-md); text-align: center; }
.page-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }

.filter-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.filter-btn {
    padding: 0.5rem 1.2rem; border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 20px; transition: 0.3s; font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,0.05); }

.portfolio-grid { columns: 3 300px; column-gap: 1.5rem; width: 100%; }
.portfolio-item { break-inside: avoid; margin-bottom: 1.5rem; position: relative; cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.portfolio-item img { width: 100%; border-radius: var(--radius); transition: opacity 0.3s; display: block; }
.portfolio-item:hover img { opacity: 0.8; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.overlay-content { text-align: center; color: white; }
.overlay-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.overlay-content p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-figure { max-width: 90%; max-height: 90%; text-align: center; }
.lightbox-figure img { max-height: 80vh; margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
#lightbox-caption { margin-top: 1rem; color: #aaa; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 20px; right: 20px; font-size: 3rem; color: #fff; z-index: 2001; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 2rem; color: #fff; padding: 1rem; background: rgba(0,0,0,0.2);
    border-radius: 50%; transition: 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.1); }
.prev { left: 20px; }
.next { right: 20px; }

/* Animation Utils */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: var(--nav-height); left: 0; width: 100%; height: calc(100vh - var(--nav-height));
        background: var(--bg-color); flex-direction: column; padding: 2rem;
        transform: translateX(100%); transition: transform 0.3s ease-in-out;
    }
    .main-nav ul { flex-direction: column; width: 100%; }
    .mobile-nav-toggle { display: block; }
    .bio-grid { grid-template-columns: 1fr; }
    .pricing-layout { grid-template-columns: 1fr; gap: 2rem; }
    .portfolio-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%); /* Siirtää valikon pois näkyvistä oikealle */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    /* Kun body-tagilla on luokka 'nav-open', valikko liukuu esiin */
    .nav-open .main-nav {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-nav-toggle {
        display: block; /* Tuo hampurilaisnapin näkyviin */
    }
}