@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #e2e8f0;
    background: linear-gradient(180deg, #3b0a0a 0%, #1a0a0a 40%, #050505 100%);
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 60px;
    box-sizing: border-box;
    border-bottom: 2px solid #d4b85b;
}

nav .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .nav-logo { width: 40px; }
nav .nav-title { font-weight: bold; font-size: 1rem; color: white; cursor: pointer; }

.nav-title {
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4),
                 0 0 10px rgba(255, 215, 0, 0.2);
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav .nav-links a:hover { color: #ffe066; }

/* Desktop: linkit näkyy, hamburger piilossa */
.nav-links { display: flex; gap: 15px; }
.hamburger { display: none; }

/* MOBILE */
@media (max-width: 600px) {
    .nav-links {
        display: none;        
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 150px;
        border-radius: 0 0 5px 5px;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links a { padding: 10px 20px; display: block; }

    .hamburger { 
        display: block; 
        font-size: 1.5rem; 
        color: white; 
        cursor: pointer; 
        z-index: 1100;
    }

    .nav-links.active { display: flex; }
}

/* Sisältö ei peity navin alle */
body > *:not(nav) { padding-top: 60px; }

/* HEADER VIDEO */
header {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
}

/* Header logo overlay */
.header-logo-container {
    position: absolute;
    top: 100px;
    left: 100px;
    z-index: 2;
}

.header-logo {
    width: 140px;
    max-width: 25vw;
    height: auto;
    border-radius: 5px;
}

/* Media query pienille näytöille */
@media (max-width: 600px) {
    .header-logo-container { top: 60px; left: 20px; }
    .header-logo { width: 80px; max-width: 30vw; }
    header { height: 250px; }
    .hero-overlay { margin-top: 120px; }
}

/* HERO SECTION */
.hero {
    padding: 40px;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    background: url("pictures/hero.jpeg") center center / cover no-repeat;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 90vh;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    transition: background 0.3s ease;
}

.hero-overlay.dimmed { background: rgba(0, 0, 0, 0.75); }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 3;
}

/* CONTENT GLASS */
.content {
    padding: 40px;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* CAROUSEL */
.carousel { position: relative; max-width: 700px; margin: auto; }
.carousel img { width: 100%; border-radius: 10px; cursor: pointer; transition: opacity 0.5s ease-in-out; }
.carousel img.fade { opacity: 0; }
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }

/* DOTS */
.dots { text-align: center; margin-top: 10px; }
.dots span { height: 10px; width: 10px; margin: 5px; display: inline-block; background: gray; border-radius: 50%; cursor: pointer; }
.dots .active { background: #22c55e; }

/* SOCIAL */
.socials a { font-size: 30px; margin: 10px; color: white; }
.socials a:hover { color: #22c55e; }

/* LIGHTBOX */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
#lightbox img { max-width: 90%; max-height: 90%; }

/* FOOTER */
footer { text-align: center; padding: 20px; }

/* CONTACT SECTION */
#contact {
    background: url("pictures/tausta.jpeg") center/cover no-repeat;
    position: relative;
    color: white;
    border: 1px solid transparent;
    z-index: 1;
}

#contact::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(90deg, #d4b85b, #ffe066, #fff8c2, #ffe066, #d4b85b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
#contact {
    background: url("pictures/tausta.jpeg") center/cover no-repeat;
    position: relative;
    color: #333333; /* tumma harmaa */
    border: 1px solid transparent;
    z-index: 1;
}