/* PONECODE - MASTER STYLESHEET
    Teema: Navy Blue & Glassmorphism
*/

:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --accent: #64ffda;
    --text: #e6f1ff;
    --text-dim: #a8b2d1;
    --blur-val: 15px;
}

/* --- YLEISET ASETUKSET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- NAVIGONTIPALKKI --- */
nav {
    position: fixed;
    width: 100%;
    padding: 0.5rem 10%;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hampurilaisvalikko */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO OSIO --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)),
    url('taustakuva.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 80%;
    height: auto;
    width: 400px;
    margin-bottom: 1rem;

    /* Pehmeä häivytys reunoille (vinjetti) */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 10px;
    margin-bottom: 2rem;
}

/* --- RAKENNE JA GRIDIT --- */
.container {
    padding: 100px 10%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- KORTIT (Palvelut & Portfolio) --- */
.blur-card {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.blur-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* --- OTA YHTEYTTÄ -OSIO --- */
.contact-section {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-dim);
}

.info-details .info-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccd6f6;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent);
}

/* --- PAINIKKEET --- */
.btn, .submit-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.btn:hover, .submit-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* --- ILMOITUSIKKUNA (ALERTS) --- */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    min-width: 300px;
}

.alert-content p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.alert-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.alert-btn:hover {
    background: var(--accent);
    color: var(--navy);
}

/* --- ANIMAATIOT --- */
.fade-in {
    animation: fadeInAnim 0.4s ease-out forwards;
}

@keyframes fadeInAnim {
    from { opacity: 0; transform: translate(0, 20px); }
    to { opacity: 1; transform: translate(0, 0); }
}

/* --- EROTINVIIVA --- */
.divider {
    border: 0;
    height: 1px;
    background: rgba(230, 241, 255, 0.2);
    margin: 2rem 0;
    width: 100%;
}

/* --- RESPONSIIVISUUS --- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--navy);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Yhteydenotto-osion mobiilikorjaukset */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px; /* Pienennetty väli */
    }

    .contact-info h2 {
        font-size: 2rem; /* Pienennetty otsikko */
        text-align: center;
    }

    .contact-info p {
        text-align: center;
    }

    .info-details {
        display: flex;
        flex-direction: column;
        align-items: center; /* Keskitetään yhteystiedot */
    }

    .social-icons {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 250px;
    }

    nav {
        padding: 1rem 5%;
    }

    .container {
        padding: 60px 5%;
    }

    .contact-section {
        padding: 60px 5%;
    }

    .contact-glass-card {
        padding: 25px; /* Hieman enemmän tilaa kuin aiemmin, mutta vähemmän kuin desktopissa */
    }

    /* Estetään iOS zoom inputeissa */
    .input-group input,
    .input-group textarea {
        font-size: 16px;
    }
}