/* Muuttujat väreille */
:root {
    --navy-dark: #191833;
    --lime-accent: #a2ff4d;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --blue-accent: #1b67cb;
}

/* Taustakuva, värit ja fontit */
body {
    background-color: var(--navy-dark);
    background-image: url('background.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

/* Pääsisällön lasityylinen efekti ja keskitys */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--glass-bg); 
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

/* Perusasetus scrollaamiselle */
html {
    scroll-behavior: smooth;
}

::placeholder {
    color: #ffffffbe;
}

/* Navigointipalkin tausta */
.navbar {
    background-color: rgba(25, 24, 51, 0.9) !important;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(162, 255, 77, 0.2);
}

/* Linkkien sijoittelu kauemmas logosta */
.navbar-nav {
    padding-left: 180px; 
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

/* Logon koon rajoitus */
.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Linkkien perustyyli */
.nav-link { 
    color: rgba(255,255,255,0.9) !important; 
    transition: 0.3s; 
    font-weight: 500;
    padding-left: 50px;
    font-size: larger;
}

/* Linkin väri kun linkin päällä ollaan tai sivu on aktiivinen */
.nav-link:hover, .nav-link.active { color: var(--lime-accent) !important; }
        
/* Hakupalkin sijainti ja koko */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    width: 140px;
}

/* Lomake-elementtien yhteiset värit ja koot */
input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 6px;
    color: white;
}

/* Hero-osio */
.hero-section {
    padding: 120px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* Pitkät palvelurivit (esim. palvelumme sivulla) */
.service-row-long {
    padding: 100px 60px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

/* Kun hiiri päällä muutetaan väriä efektillä */
.service-row-long:hover {
    background: rgba(255,255,255,0.03);
}

/* Kuvien koko */
.service-img img {
    width: 200px;
    height: 200px;
}

/* it-tuen kuvan koko */
.service-img1 img {
    width: 200px;
    height: 200px;
}

/* Palvelukorttien tyylit, asettelu ja efektit */
.service-card {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
    height: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Efekti kun hiiri tuodaan kortin päälle */
.service-card:hover {
    background: rgba(50, 50, 50, 0.6) !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Palvelukortin h4-otsikon tyyli */
.service-card h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    transition: color 0.5s ease;
}

/* h4-otsikon muutos kun hiiri kortin päällä */
.service-card:hover h4 {
    color: var(--lime-accent);
}

.service-img img {
    max-width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto;
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Kuvan suurennus kun hiiri kortin päällä ollessa */
.service-card:hover .service-img img {
    filter: drop-shadow(0 5px 20px rgba(255,255,255,0.1));
    transform: scale(1.05);
}

/* Pääbuttoneiden tyyli (lime tausta) */
.btn-action {
    background-color: var(--lime-accent);
    color: var(--navy-dark);
    font-weight: bold;
    border-radius: 50px;
    padding: 10px 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
	border: none; !important;
	outline: none !important;
    box-shadow: none !important;
}

/* Buttonin värinvaihto ja suurennus */
.btn-action:hover {
    background: #1b67cb; color: #000; 
    transition: 0.5s;
    transform: scale(1.05);
	border: none; !important;
	outline: none !important;
    box-shadow: none !important;
}

/* scrollbuttonin sijainti */
.scroll-button {
    margin-top: 40px;
}

/* scrollbuttonin tyyli */
.scroll-btn {
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s;
    padding: 0;
}

/* scrollbuttonin pieni efekti sen päällä ollessa */
.scroll-btn:hover {
    transform: translateY(10px);
    opacity: 0.8;
}

/* Tekstiosiot, listat ja niiden asettelu */
.info-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: 70px;
    text-align: center;
    font-size: 20px;
}

.info-section ul {
    display: inline-block;
    text-align: left;
    padding-left: 20px;
    list-style-type: none;
}

/* Pallo listan tekstin eteen */
.info-section li::before {
    content: "●";
    color: #1b67cb;
    margin-right: 10px;
}

.info-section {
    padding-bottom: 100px;
    height: auto;
    display: block;
    overflow: hidden;
}

/* Sivun alatunnisteen tyyli */
.mega-footer {
    background-color: rgba(15, 14, 30, 0.95);
    padding: 40px;
    margin-top: auto; /* This pushes the footer to the bottom of the container */
    border-bottom-left-radius: 16px; /* Matches the parent container */
    border-bottom-right-radius: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.footer-title { color: white; font-weight: bold; margin-bottom: 20px; }
.footer-link { color: #ffffffbe; text-decoration: none; display: block; margin-bottom: 1px; }
.footer-link:hover { color: var(--lime-accent); }

/* Copyright-tekstin alue alatunnisteessa */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
/* Pakotetut värit lomakekentille (Boostrap-yliajo) */
input.form-control, textarea.form-control, .form-control:focus {
    color: #ffffffbe !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
    /* Pakottaa värin joissain selaimissa */
    -webkit-text-fill-color: #ffffffbe !important;
}

/* Selaimen omien dialog-tyylien nollaus */
dialog {
    border: none !important;
    outline: none !important;
    background: none !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Animaatio kun dialogi aukeaa */
dialog[open] {
    animation: slide-up 0.4s ease-out forwards;
}

/* Animaatio kun dialogi sulkeutuu */
dialog.hide {
    animation: slide-down 0.4s ease-out forwards;
}

/* Dialogin takana oleva tummennus */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px);
}

dialog:not([open]) {
    display: none;
}

/* Buttonin keskitys dialogin sisällä */
.dialog-content .btn-action {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
	border: none; !important
	outline: none !important;
    box-shadow: none !important;
}
.dialog-content {
    overflow-y: auto;
    flex-grow: 1;
    overscroll-behavior: contain;
    padding-right: 20px;
}

/* Viivat dialogin sisällä */
.dialog-divider {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.473);
    margin: -10px 0 20px 0;
}

/* Dialogin sisällä olevan (otayhteyttä) linkin väri */
.dialog-link {
    color: #1b93cb !important; 
            transition: 0.3s; 
}

/* Dialogin sisällä olevan (otayhteyttä) linkin värin vaihto (lime) */
.dialog-link:hover {
    color: var(--lime-accent) !important;
}

dialog:focus, 
dialog:focus-visible, 
dialog *, 
dialog *:focus, 
dialog *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

body.dialog-open {
  overflow: hidden;
}

/* Pystysuuntainen vierityspalkki (tämä vaikuttaa dialogin scrolliin) */
.dialog-content::-webkit-scrollbar {
    width: 8px; /* Palkin leveys */
}

.dialog-content::-webkit-scrollbar-track {
    background: var(--glass-bg); /* Palkin taustaväri */
}

.dialog-content::-webkit-scrollbar-thumb {
    background: var(--navy-dark); /* Itse liikkuvan osan väri */
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
    background: var(--blue-accent); /* Väri kun hiiri on päällä */
}

/* Vaakasuuntainen vierityspalkki - piilotetaan */
.dialog-content::-webkit-scrollbar:horizontal {
    display: none;
}

.custom-dialog {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 80vh;
}

.dialog-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.dialog-footer {
    padding: 10px 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important; /* Poistetaan taustaväri */
    backdrop-filter: none !important;    /* Poistetaan blur, jotta se ei sumenna uudestaan */
    -webkit-backdrop-filter: none !important;
    text-align: center !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Palvelutekstin sijoittelu */
.palvelu-teksti {
    margin-left: 20px;
    margin-right: 20px;
    line-height: 1.5;
}

/* hr-tekstin värit tietoameista.html sivulla (10+ Vuotta ja 100% Paikallinen) */
.hr-text {
    color: var(--lime-accent);
}

.highlight {
    color: #1b67cb;
}

.highlight2 {
    color: var(--lime-accent);
}

/* Kaikkien eri dialog-ID yhteiset tyylit */
#ItTukiDialog, #AsennuspalvelutDialog, #TietokonehuoltoDialog, #MobiilipalvelutDialog, #HinnastoDialog, #ItTukihinnastoDialog, #AsennushinnastoDialog, #TietokonehinnastoDialog, #MobiilihinnastoDialog {
    background-color: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px;
    color: white;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* custom-dialogien h3 tyyli ja sijoittelu */
.custom-dialog h3 {
    color: var(--lime-accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* custom-dialogien tyyli ja sijoittelu */
.custom-dialog p {
    color: #ffffffce;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.custom-dialog ul {
    list-style-type: none;
    padding-left: 0;
}

/* Pallo listan tekstin eteen */
.custom-dialog li::before {
    content: "●";
    color: #1b67cb;
    margin-right: 10px;
}

.custom-dialog li {
    color: #ffffffce;
    margin-bottom: 10px;
}

.custom-dialog {
    border: none;
    background: transparent;
}

/* Hinnastodialogien tyylit */
.custom-dialog1 h3 {
    color: var(--lime-accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.custom-dialog1 p {
    color: #ffffffce;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.custom-dialog1 ul {
    list-style-type: none;
    padding-left: 0;
}

.custom-dialog1 li::before {
    content: "●";
    color: #1b67cb;
    width: 20px;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 5px;
}

/* Tekstin ja hinnan sijoittelu riveillä */
.custom-dialog1 li {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 0;
    list-style: none;
    position: relative;
}

.custom-dialog1 {
    border: none;
    background: transparent;
}

/* Korostettu tekstitausta otsikoissa */
.tausta {
    background-color: #0c3f83;
    padding: 0 8px;
    border-radius: 15px;
}

.teksti-ryhma {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.teksti-ryhma b {
    display: block;
    margin-bottom: 2px;
}


.hinta-teksti {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Hinnan korostusväri ja sijoittelu */
.hinta {
    margin: 0 0 0 15px !important;
    font-weight: bold;
    color: var(--blue-accent) !important;
    white-space: nowrap;
    text-align: right;
    min-width: 50px;
}

/* Mobiili-responsiivisuus: Säädöt kapeammille näytöille */
@media (max-width: 768px) {
    .navbar-brand img {
    max-height: 40px;
    }
.service-row-long {
    padding: 60px 20px;
    }
}

/* Animaatiot liutus ylös ja alas */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}