* { 
    margin:0; 
    padding:0; 
    box-sizing:border-box; 
    scroll-behavior: smooth; 
}
body { 
    font-family: 'Montserrat', sans-serif; 
    background:#2c2c2c; 
    color:#f5f5f5; 
}
a { 
    color: inherit; 
    text-decoration: none; 
}

/* Header / Hamburger Menu */
header {
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    z-index:1000;
    background:#1f1f1f; 
    padding:15px 20px; 
    display:flex; 
    justify-content:space-between; 
    align-items:center;
}
.logo { 
    /* Keskittää logon ja taglinen vaakasuunnassa KAIKILLE näytöille */
    display: flex;
    flex-direction: column;
    align-items: center; 
    
    font-weight:700; 
    font-size:1.5em; 
} 

/* LOGOKUVA (assets/logo.png) */
.logo img {
    max-height: 30px; 
    height: 100%; 
    width: auto; 
    max-width: 100%; 
    margin-bottom: 2px;
}

/* Tagline-tekstin tyylit */
.logo .tagline {
    font-size: 0.47em;
    font-weight: 300; 
    color: #f5f5f5; 
    opacity: 0.8; 
    line-height: 1; 
    margin-top: -3px; 
    /* Taglinen oletus tasaus keskitetty jo yllä olevan .logo align-items: center; takia */
}

.menu { 
    display:flex; 
    gap:20px; 
    transition:all 0.3s ease; 
}
.menu a { 
    font-weight:500; 
}

.menu a {
	font-weight:500;
    /* LISÄÄ TRANSITION TEHDÄKSESI VÄRINVAIHDOSTA TASAISEMMA */
    transition: color 0.3s ease; 
}

/* TÄMÄ KOHTA LISÄTÄÄN */
.menu a:hover {
    color: #ff0074; /* Vaihtaa tekstin värin korostusväriin (pinkki) */
    /* Jos haluat, voit lisätä myös hieman suurennusta: */
    /* transform: scale(1.05); */
}

.hamburger { 
    display:none; 
    flex-direction:column; 
    gap:4px; 
    cursor:pointer; 
}
.hamburger div { 
    width:25px; 
    height:3px; 
    background:#ff0074; /* KOROSTUSVÄRI */
    transition:0.3s; 
}

@media(max-width:768px){
    /* 1. MÄÄRITTELE HEADER UUDELLEEN KESKITTÄMISEKSI */
    header {
        /* HUOM! Muutettu takaisin alkuperäiseen tyyliin, mutta
           tämän jälkeen käytetään 'position: absolute' siirtämään hamburger. */
        justify-content: space-between; 
        position: relative; /* Tarvitaan, jotta absolute-position toimii */
    }
    
    /* 2. SIIRRÄ HAMBURGER-VALIKKO POIS TIESTÄ */
    .hamburger { 
        /* MUUTETTU: Siirrä hamburger-kuvake oikealle ja pidä se headerin ulkopuolella virtaamasta */
        position: absolute; 
        right: 20px; /* Vastaa headerin padding-arvoa */
        top: 50%; /* Pystysuuntainen keskitys */
        transform: translateY(-50%); 
        z-index: 1001; /* Varmista, että se on muiden päällä */
        display:flex; 
    }
    
    /* 3. KESKITÄ LOGO JÄLKEEN JÄÄNEESEEN TILAAN */
    .logo {
        /* MUUTETTU: Varmistaa, että logo keskittyy vapaaseen tilaan */
        flex-grow: 1; /* Ottaa kaiken vapaan tilan */
        text-align: center; /* Varmistaa keskityksen */
        align-items: center; /* Tämän pitäisi jo olla flexbox-säännöissä */
        margin-right: 50px; /* Jätä tilaa hamburgerille (n. 25px + tila) */
    }

    .logo .tagline {
        text-align: center; 
    }
    
    .menu { 
        position:fixed; 
        top:60px; 
        right:-100%; 
        flex-direction:column; 
        background:#1f1f1f; 
        width:200px; 
        height:calc(100vh - 60px); 
        padding:20px; 
        gap:15px; 
    }
    .menu.active { 
        right:0; 
    }
}

/* Sections */
section { 
    min-height:100vh; 
    padding:60px 20px; 
    display:flex; 
    justify-content:center; 
    align-items:center; 
    flex-direction:column; 
    text-align:center; 
    opacity:0; 
    transform: translateY(50px); 
    transition: all 0.8s ease; 
}
section.visible { 
    opacity:1; 
    transform: translateY(0); 
}

#hero { 
    background:#2c2c2c; 
}
#services { 
    background:#333; 
}
#pricing { 
    background:#2c2c2c; 
}
#about { 
    background:#333; 
}
#contact { 
    background:#2c2c2c; 
}

/* Buttons */
.btn {
    margin-top:15px; 
    padding:10px 20px; 
    background:#ff0074; /* KOROSTUSVÄRI */
    color:#1f1f1f; 
    font-weight:700;
    border:none; 
    border-radius:6px; 
    cursor:pointer; 
    transition: transform 0.2s, background 0.3s;
}
.btn:hover { 
    transform: translateY(-3px); 
    background:#ff0074; /* KOROSTUSVÄRI */
}

form { 
    display:flex; 
    flex-direction:column; 
    gap:15px; 
    width:100%; 
    max-width:400px; 
    margin-top:20px; 
}
input, textarea { 
    padding:10px; 
    border-radius:6px; 
    border:none; 
    background:#444; 
    color:#f5f5f5; 
}
textarea { 
    resize:vertical; 
    min-height:100px; 
}

h1,h2 { 
    margin-bottom:15px; 
}
p { 
    max-width:600px; 
}


/* Nuoli (Font Awesome Icon) */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    
    background: none; 
    border-radius: 0;
    
    color: #ff0074; /* KOROSTUSVÄRI */
    font-size: 30px; 
    padding: 0; 
    
    transform: translateY(0); 
    cursor: pointer;
    z-index: 10000;
    
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s, color 0.2s; 
}

#backToTop.show {
    opacity: 1; 
    visibility: visible;
}

/* Hover-efekti: tyylikäs väri ja pieni liike */
#backToTop:hover {
    color: #ff3399; /* Hieman vaaleampi hover-väri */
    transform: translateY(-5px); 
    opacity: 1; 
}


/* --- VIERITYSPALKIN (SCROLLER) MUOKKAUS --- */

/* WebKit-selaimille (Chrome, Safari, Edge) */

/* Määritä vierityspalkin leveys (paksuus) */
::-webkit-scrollbar {
    width: 12px; 
}

/* Määritä vierityspalkin pohja (raita) */
::-webkit-scrollbar-track {
    background: #333; 
    border-radius: 10px;
}

/* Määritä itse vierityspalkin kahva (rulla) */
::-webkit-scrollbar-thumb {
    background: #ff0074; /* KOROSTUSVÄRI */
    border-radius: 10px;
}

/* Kahvan hover-efekti */
::-webkit-scrollbar-thumb:hover {
    background: #ff3399; /* Hieman vaaleampi hover-väri */
}

/* --- Firefox-tuki (rajatumpi) --- */
html {
    scrollbar-width: thin; 
    scrollbar-color: #ff0074 #333; /* Kahva Raita */
}

/* --- PALVELUT-OSION TYYLIT --- */

#services {
    /* Perus "Palvelut"-osion tyylit */
    text-align: center;
    padding: 80px 20px;
    background: #333;
}

#services h2 {
    margin-bottom: 20px;
    color: #f5f5f5;
}

#services .section-description {
    max-width: 700px;
    margin: 0 auto 40px auto; /* Keskittää kuvauksen ja antaa tilaa */
    font-size: 1.1em;
    line-height: 1.6;
    color: #ccc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsiivinen grid */
    gap: 30px; /* Väli korttien välissä */
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: #1f1f1f; /* Tumma tausta korteille */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Pieni varjo */
    /* TÄRKEÄ: Varmistetaan, että transitionissa on box-shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out; 
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px); /* Nousee hieman hoverissa */
    /* KORJATTU: Lisätty kirkas pinkki hehku */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),    /* Syvempi tumma varjo (syvyys) */
        0 0 25px rgba(255, 0, 116, 1);    /* KIRKAS PINKKI HEHKU (valo) */
}

.service-item i {
    font-size: 3em; /* Kuvakkeiden koko */
    color: #ff0074; /* KOROSTUSVÄRI */
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f5f5f5;
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
}

/* Mobiilivaihtoehto, jos haluat pienemmän grid-pylväiden määrän */
@media(max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Yksi kortti per rivi mobiilissa */
    }
}

#pricing {
    text-align: center;
    padding: 80px 20px;
    background: #2c2c2c; /* Sama kuin hero */
}

#pricing h2 {
    margin-bottom: 20px;
    color: #f5f5f5;
}

#pricing .section-description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: #ccc;
}


/* Käytetään samaa grid- ja korttityyliä kuin palvelut */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* TÄRKEÄ: Varmistetaan, että transitionissa on box-shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px);
    /* KORJATTU: Lisätty kirkas pinkki hehku */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),    /* Syvempi tumma varjo (syvyys) */
        0 0 25px rgba(255, 0, 116, 1);    /* KIRKAS PINKKI HEHKU (valo) */
}

.service-item i {
    font-size: 3em;
    color: #ff0074; /* Halutessasi voit muuttaa eri paketeille eri värit */
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #f5f5f5;
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
}

/* Mobiiliversio */
@media(max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


#footer {
    background: #1f1f1f;
    color: #ccc;
    padding: 40px 20px 20px 20px;
    text-align: center;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.footer-section {
    margin: 15px;
    min-width: 200px;
}

.footer-section h3 {
    color: #f5f5f5;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ff0074; /* linkkien korostusväri */
    margin: 0 5px;
    text-decoration: none;
    font-size: 1.2em;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 15px 0;
    color: #999;
    font-size: 0.85em;

    display: flex;
    justify-content: center; /* Vaakakeskitys */
    align-items: center;     /* Pystykeskitys */
    width: 100%;             /* Varmistaa, että div vie koko leveyden */
}

.hero-fun {
    margin-top: 30px; /* lisää tilaa yläpuolelle */
    font-size: 1.1em;
    line-height: 1.5;
}


/* Hero-tekstin h1 pienemmäksi mobiililla */
@media (max-width: 600px) {
    #hero h1 {
        font-size: 2em !important;  /* säädä haluamasi koko */
        line-height: 1.2;
    }
}

#cookie-banner {
  position: fixed;
  font-size: 0.7em;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1f1f1f;
  color: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  animation: fadeIn 0.4s ease;
}

#cookie-banner a {
  text-decoration: none; /* poistaa alaviivan */
  color: #ff0074;        /* säilyttää halutun värin */
}


#accept-cookies {
  font-size: 1.1em;
  padding: 10px 20px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background: #ff0074;
  color: #1f1f1f;
  cursor: pointer;
  transition: background 0.3s ease;
}


#accept-cookies:hover {
  background: #ff3399;
}

#close-cookie {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

#close-cookie:hover {
  color: #ff0074;
}

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

#joke-display {
    margin-top: 10px;
    font-style: italic;
    color: #ff0074; /* valitse haluamasi väri */
}


/* --- Yhteydenottolomakkeen onnistumisviesti --- */

#form-response.success-message {
    /* Käytetään sivustosi korostusväriä */
    color: #ff0074; 
    font-weight: 700;
    
    /* Lisää tyylikäs hehku (glow) tummalla taustalla */
    text-shadow: 0 0 10px rgba(255, 0, 116, 0.7); 
}



