:root {
    --bg-dark: #05050A;
    --color-pink: #FF2E93;
    --color-purple: #8A2BE2;
    --color-blue: #00F0FF;
    --color-violet: #B026FF;
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Animated Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.15), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(255, 46, 147, 0.15), transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0, 240, 255, 0.1), transparent 50%);
    filter: blur(60px);
    animation: auroraShift 15s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent;
}

.w-100 { width: 100%; }

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 10, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

/* LOGO TYYLIT */
.logo, a.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-main); 
    text-decoration: none;   
    transition: opacity 0.3s ease;
}

a.logo:hover {
    opacity: 0.8; 
}

/* Hamburger Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px; 
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    margin-left: 0;
}

.nav-links a:hover {
    color: var(--color-blue);
}

/* PAKOTETUT LINKKITYYLIT KOKO SIVUSTOLLE JA FOOTERIIN */
a {
    text-decoration: none !important;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-telegram {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-purple), var(--color-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 46, 147, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 46, 147, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
}

/* Lisää tämä tai korvaa .btn-telegram näillä tyyleillä */
.btn-call {
    /* Pohjavärinä kirkas sininen liukuväri */
    background: linear-gradient(90deg, #00C2FF, var(--color-blue));
    color: white !important; /* Teksti aina valkoisena */
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* Sininen varjostus oletuksena */
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-call:hover {
    /* Sama hover-efekti kuin Lähetä viesti -napissa (nosto + voimakkaampi varjo) */
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content { max-width: 800px; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* =========================================
   TYÖNÄYTTEET / GALLERIA (4 RIVISSÄ)
   ========================================= */

/* KORTTI-LINKKIEN KORJAUS (Poistaa violetin työnäytteistä) */
a.card-link,
a.card-link:link,
a.card-link:visited,
a.card-link:active {
    color: inherit !important;
    text-decoration: none !important;
    display: block;
}

.showroom {
    padding: 5rem 5%;
}

.showroom h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
    text-align: center;
}

/* Grid-asettelu tietokoneella: 4 rinnakkain */
.carousel-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.carousel-item {
    transition: transform 0.3s ease;
    display: block;
    height: 100%;
}

.carousel-item:hover { 
    transform: translateY(-10px); 
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: block;
}

.carousel-item h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.carousel-item p { color: var(--text-muted); font-size: 0.95rem; }

/* NÄYTÄ VAIN 4 ENSIMMÄISTÄ OLETUKSENA KAIKILLA LAITTEILLA */
.carousel-item:nth-child(n+5) {
    display: none !important;
}

/* Kun "Näytä kaikki" nappia painetaan, näytetään loputkin */
.carousel-container.show-all .carousel-item {
    display: block !important;
}

/* "NÄYTÄ KAIKKI..." -PAINIKE */
.view-all-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 2rem;
}

#show-all-projects {
    display: inline-block;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =========================================
   YHTENÄINEN SININEN HOVER-EFEKTI ("Tutustu töihimme" & "Näytä kaikki")
   ========================================= */
.btn-secondary:hover,
#show-all-projects:hover {
    background: rgba(0, 240, 255, 0.05) !important;
    color: var(--color-blue) !important;
    border-color: var(--color-blue) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Pricing Section */
.pricing {
    padding: 100px 5%;
    text-align: center;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-blue);
}

.pricing-card.spotlight {
    border-color: var(--color-purple);
    background: rgba(138, 43, 226, 0.05);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.price-desc {
    padding-bottom: 25px;
}

.features {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.check {
    color: var(--color-blue);
    font-style: normal;
    font-weight: bold;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin-bottom: 100px;
}

.contact-card h2 {
    margin-bottom: 2rem; 
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-blue);
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
}

.divider span {
    background: var(--bg-dark);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

/* =========================================
   YHTEYDENOTTOLOMAKE: PAKETIN VALINTA (DESKTOP & MOBIILI)
   ========================================= */
.package-selection {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
    width: 100%;
}

.package-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.package-options {
    display: flex;
    flex-direction: row !important; /* Pakottaa aina vierekkäin tietokoneella */
    justify-content: flex-start;
    align-items: center;
    gap: 2rem; 
    width: 100%;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    margin-bottom: 0; 
}

.custom-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0; 
}

.radio-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.custom-radio input[type="radio"]:checked + .radio-mark {
    border-color: var(--color-blue);
    background: rgba(0, 240, 255, 0.05);
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-blue);
}

.custom-radio input[type="radio"]:checked ~ .radio-text {
    color: var(--text-main); 
}

.custom-radio:hover .radio-text {
    color: var(--color-blue);
}
.custom-radio:hover .radio-mark {
    border-color: var(--color-blue);
}

/* =========================================
   KÄYTTÄJÄEHDOT SIVUN TYYLIT
   ========================================= */
.terms-section {
    padding: 150px 5% 5rem; 
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.terms-card {
    max-width: 900px;
    width: 100%;
    padding: 4rem 5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.terms-card h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

.terms-content h3 {
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p, .terms-content ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.terms-content ul {
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

/* Käyttäjäehdot-sivun tukilinkin tyylit */
.terms-support-link {
    display: inline-block;
    width: 100%;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border); /* Tyylikäs yläviiva kuten tiimikorteissa */
    color: var(--text-main) !important;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-support-link:hover {
    color: var(--color-blue) !important; /* Muuttuu siniseksi kun hiiri on päällä */
}

/* =========================================
   TINY FOOTER TYYLIT
   ========================================= */
.tiny-footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 10, 0.5);
}

.tiny-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    margin-top: 15px;
}

/* LINKKIEN KORJAUS (Poistaa violetin värin ja viivan LOPULLISESTI) */
.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.footer-links a:active {
    color: #A0A0B0 !important; 
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00F0FF !important; 
}

/* =========================================
   RESPONSIIVISUUS (TABLETIT JA KÄNNYKÄT)
   ========================================= */

@media (max-width: 1024px) {
    /* Tabletilla 2 työnäytettä rinnakkain */
    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Etusivun navigaatio */
    .menu-toggle {
        display: flex !important;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(5, 5, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 2rem;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Hinnoittelu allekkain */
    .pricing-container {
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem;
    }

    .pricing-card {
        width: 100%;
        max-width: 100%;
    }

    /* Työnäytteet: Kännykällä 1 kortti allekkain */
    .carousel-container {
        grid-template-columns: 1fr;
    }

    /* Pakotetaan Näytä kaikki -nappi näkyviin mobiilissa */
    .view-all-container {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 2rem !important;
        padding-bottom: 3rem !important;
        position: relative;
        z-index: 10;
    }

    /* Käyttäjäehdot sivun mobiiliasetukset */
    .terms-section {
        padding-top: 120px;
    }
    
    .terms-card {
        padding: 2rem 1.5rem;
    }

    /* Pakettivalinnan asettelu tosi kapeilla ruuduilla pinoon */
    .package-options {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
    }
} /* <--- TÄMÄ SULKU OLI AIVAN TIEDOSTON LOPUSSA, SIIRRETTY NYT OIKEAAN PAIKKAAN! */


/* =========================================
   ABOUT-SIVUN TYYLIT (MEISTÄ)
   ========================================= */

.about-hero {
    padding: 160px 5% 60px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 800px;
}

.about-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.team-section {
    padding: 20px 5% 100px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-blue);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.member-img-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.team-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-card .role {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.member-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    width: 100%;
    margin-top: auto;
}

.member-contact a {
    color: var(--text-main) !important;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-decoration: none;
}

.member-contact a:hover {
    color: var(--color-blue) !important;
}

/* --- VIDEO --- */
.video-section {
    padding: 0 5% 60px;
    display: flex;
    justify-content: center;
}

.video-container {
    max-width: 1000px;
    width: 100%;
    border-radius: 24px;
    padding: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.05);
}

.office-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

/* Osakkaat -otsikon tyyli */
.team-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1px;
}