/*
Theme Name: Astra Child
Template: astra
Version: 1.0
Text Domain: astra-child
*/

/* Poistaa alleviivaukset Query Loopin linkeistä */
.wp-block-post-title a, 
.wp-block-query a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Lisää paddingia projektikuvan ympärille */
.uagb-post__image {
    padding: 20px; /* Säädä tätä luvun mukaan */
    background-color: transparent; /* Varmistaa että kortin tausta näkyy läpi */
}

/* Jos haluat pyöristää kuvan kulmat samalla */
.uagb-post__image img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

.oma-valkoinen-teksti  {
     color: #ffffff !important;
    -webkit-text-fill-color:
		#ffffff !important; 
}

/* ==========================
   FOOTER CUSTOMIZATION
========================== */

.site-footer, 
.site-footer .site-footer-primary-section-wrap, 
.site-footer .site-footer-below-section-wrap,
.site-footer .site-footer-above-section-wrap {
    background-color: #000000 !important;
}

.site-footer, .site-footer a, .site-footer p, .site-footer span {
    color: #ffffff !important;
}

/* ==========================
   GLOBAL BACKGROUND & RESET
========================== */

html, body {
    background-color: #000000 !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-image: none !important;
}

/* Pakotetaan sivun päärakenne täyslevyiseksi */
.site-content, .ast-container, .site-main, .site-content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================
   PARALLAX & LAYOUT SYSTEM
========================== */

.parallax-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    margin: 0;
}

.section-divider {
    background: #000000;
    min-height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    position: relative;
}

/* ==========================
   FOOTER CUSTOMIZATION (GLOBAL)
========================== */

.site-footer.custom-portfolio-footer {
    background-color: rgba(0, 0, 0, 0.7) !important; /* Laskettu arvoa jotta näkyy paremmin */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    padding: 40px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-container {
    color: lightgrey;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.footer-container-inner {
    flex: 0 0 auto;
    padding: 0 40px;
}

.footer-divider {
    flex: 1;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.5);
}

.footer-container-inner i {
    font-size: 2.2rem;
    margin: 0 15px;
    color: lightgray;
    transition: all 0.2s ease-in-out;
}

.footer-container-inner i:hover {
    color: white;
    transform: scale(1.1);
}

.footer-logo {
    width: 60px;
    height: auto;
    margin-top: 25px;
    margin-bottom: 15px;
    transition: transform 0.2s ease-in-out;
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    transform: scale(1.1);
}

.copyright {
    color: lightgray;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 10px;
}

.footer-container-inner a {
    text-decoration: none !important;
}

/* ==========================
   CUSTOM UI COMPONENTS
========================== */

.about-container {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 40px !important;
    color: #ffffff !important;
    overflow: hidden;
    margin-bottom: 40px; /* Lisätään väliä laatikoiden välille */
}

/* Pakotetaan kaikki sisäiset lohkot (sarakkeet ja ryhmät) läpinäkyviksi */
.about-container *,
.about-container .wp-block-columns,
.about-container .wp-block-column,
.about-container .wp-block-group,
.about-container .uagb-container,
.about-container div[class*="wp-block-"] {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.about-container p {
    color: #ffffff !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

.about-container h1, 
.about-container h2, 
.about-container h3 {
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* ==========================
   PARALLAX & LAYOUT SYSTEM
========================== */

.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 20px;
}

.section-divider {
    background: #000000;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.section-divider h2 {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 !important;
    font-weight: 700;
}

/* --- Responsiivisuus --- */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll; /* Mobiilissa fixed background on usein buginen */
        min-height: auto;
        padding: 60px 20px;
    }
    
    .section-divider {
        min-height: 100px;
    }
}

/* ==========================
   CUSTOM GLASS HEADER
========================== */

.custom-glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo img {
    height: 40px !important; /* Kiinteä korkeus takaa ettei kuva veny */
    width: auto !important;   /* Auto-leveys säilyttää kuvasuhteen */
    display: block;
    margin-top: 6px;
}


.header-logo h1 a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.header-navigation ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block; /* Tarvitaan jotta scale toimii oikein */
}

.header-navigation ul li a:hover {
    color: #64ffda !important;
    transform: scale(1.1);
}

/* Aktiivisen sivun korostus */
.header-navigation ul li.current-menu-item a {
    color: #64ffda !important;
}

/* Mobiili-hampurilainen (piilotetaan työpöydällä) */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header-navigation {
        display: none; /* Tehdään mobiilivalikko myöhemmin */
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* Korjataan sisällön aloituspiste, koska header on fixed */
.site-content {
    margin-top: 0 !important;
}

/* ==========================
   ADVANCED HERO SECTION
========================== */

.hero-section {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 100px 80px !important;
    margin: 60px auto !important;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-greeting,
.hero-section p.hero-greeting {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: #ffffff !important; /* Voit muuttaa tämän haluamaksesi väriksi */
    -webkit-text-fill-color: initial !important; /* Nollataan mahdollinen aiempi gradientti-pakotus */
    opacity: 0.8 !important;
    margin-bottom: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name span.gradient-highlight {
    /* background: linear-gradient(135deg, #64ffda 0%, #48b1bf 100%); */
    background: linear-gradient(135deg, #64ffda  0%, #78aab1  100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-wrap {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 30px;
}

.hero-title-wrap .typed-text {
    font-weight: 700;
    color: #64ffda;
}

.hero-bio {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64ffda;
    margin-bottom: 40px;
}

/* --- ROTATING BORDER BUTTON --- */
.hero-btn-wrap {
    position: relative;
    padding: 3px;
    display: inline-block;
    border-radius: 50px;
    background: transparent;
}

.hero-btn-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    padding: 2px; 
    background: conic-gradient(from 0deg, transparent, #64ffda, transparent 30%);
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn:hover {
    background: #64ffda;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

/* Tagit teknologioille */
.hero-tags {
    /* display: flex; */
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 30px !important;
        margin: 20px !important;
    }
}

/* ==========================
   TECH ICONS (Front Page)
========================== */

.tech-talk {
    text-align: center;
    margin-top: 0;
    width: 100%;
}

.tech-talk p, 
.tech-talk p * {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    margin-bottom: 30px !important;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Lisätty hieman tilaa ikoneiden välille */
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.tech-icon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    width: 90px; /* Vakioleveys takaa tasaisen ruudukon */
    margin-bottom: 20px;
}

.tech-icon-content i {
    font-size: 2.8rem; /* Sopiva koko etusivulle */
    margin-bottom: 10px;
    display: block;
}

.tech-icon-content p {
    font-size: 0.8rem !important;
    color: #ffffff !important;
    margin: 0 !important;
    opacity: 0.8;
    line-height: 1.2;
}

.tech-icon-content:hover {
    transform: scale(1.15);
}

/* Varmistetaan että ikonit näkyvät väreissä jos 'colored' luokka on käytössä */
.devicon-html5-plain.colored { color: #e34c26; }
.devicon-css3-plain-wordmark.colored { color: #264de4; }
.devicon-javascript-plain.colored { color: #f0db4f; }
.devicon-linux-plain.colored { color: #ffffff; } /* Tehdään Linux-ikonista valkoinen tummalle taustalle */
/* ... Devicon hoitaa useimmat värit itse jos CSS on ladattu oikein ... */

/* ==========================
   PORTFOLIO PROJECT TEMPLATE
========================== */

:root{
    --content-width: 1100px;
    --card-radius: 30px;
}

/* full background */

body.single-post{
    background-image:
    linear-gradient(
        rgba(0,0,0,.35),
        rgba(0,0,0,.35)
    ),
    url('https://nnmaki.com/wp-content/uploads/2026/05/background3-scaled.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* remove Astra white bg */

.single-post .site{
    background: transparent;
}

.single-post .site-content{
    background: transparent;
}

/* remove Astra spacing */

.single-post .ast-container{
    max-width: 100%;
    padding: 0;
}

/* HERO AREA */

.single-post article{

    max-width: var(--content-width);
    margin: 0 auto 120px;

    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(14px);

    border-radius: var(--card-radius);

    padding: 80px;
    box-shadow:
    0 30px 80px rgba(0,0,0,.18);

    position: relative;
    top: -120px;
}

/* spacing before content card */

.single-post .entry-header{
    min-height: 75vh;

    display:flex;
    align-items:flex-start;
    justify-content:flex-start;

    text-align:left;
    padding: 0 30px;
}

/* title */

.single-post h1.entry-title{

    color:white;

    font-size: clamp(56px, 9vw, 120px);

    line-height:.9;

    font-weight:300;

    letter-spacing:-0.04em;

    margin:0;

    text-shadow:
    0 10px 30px rgba(0,0,0,.35);
}

/* hide meta */

.single-post .entry-meta{
    display:none;
}

/* content typography */

.single-post .entry-content{

    font-size:20px;
    line-height:1.8;
    color:#222;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
    text-align: left !important;
}

.single-post .entry-content h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    margin-top: 80px;
    margin-bottom: 24px;
    font-weight: 400;
}

.single-post .entry-content h3 {
    font-size: 30px;
}

.single-post .entry-content h4 {
    font-size: 24px;
}

.single-post .entry-content h5 {
    font-size: 20px;
}

.single-post .entry-content h6 {
    font-size: 16px;
}

/* images */

.single-post .entry-content img{
    width:100%;
    border-radius:20px;
    margin:40px 0;
}

/* gutenberg image blocks */

.single-post .wp-block-image{
    margin:60px 0;
}

/* paragraphs */

.single-post .entry-content p{
    max-width:850px;
}

/* mobile */

@media(max-width:768px){

    .single-post article{
        margin:0 20px 40px;
        top:-80px;
        padding:32px;
        border-radius:20px;
    }

    .single-post h1.entry-title{
        font-size:54px;
    }

    .single-post .entry-content{
        font-size:18px;
    }
}

/* ==========================
   CUSTOM PROJECTS GRID (Front Page)
   ========================== */
.custom-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.custom-project-card {
    background: rgba(0, 0, 0, 0.52);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 3px 8px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.custom-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 3px 12px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 255, 218, 0.3); /* Subtle green highlight on hover */
}

.custom-project-image {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: transparent;
}

.custom-project-image img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-project-card:hover .custom-project-image img {
    transform: scale(1.02);
}

.custom-project-content {
    padding: 0 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.custom-project-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-project-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.custom-project-title a:hover {
    color: #64ffda !important;
}

.custom-project-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.custom-project-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.custom-project-cta {
    margin-top: auto;
}

.custom-project-cta .project-btn {
    display: inline-block;
    background: #24292e;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.custom-project-cta .project-btn:hover {
    background: #64ffda;
    color: #ffffff !important;
    border-color: #64ffda;
    box-shadow: 0 5px 10px rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
}

/* Luokka listan kohteiden välien väljentämiseen muuttamatta line-heightia */
.spaced-list li {
    margin-bottom: 15px; /* Voit muuttaa tätä arvoa tarpeen mukaan */
}

.spaced-list li:last-child {
    margin-bottom: 0; /* Viimeinen listan kohde ei tarvitse alamarginaalia */
}

/* ==========================================
   TECHNOLOGY ICONS ON THE PROFILE PAGE
   ========================================== */

/* Container styles (supporting class on wrapper or on the dev element) */
.tech-icons-profile,
.tech-icons-profile .tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px !important; /* Pienempi väli profiilisivulle (etusivulla 30px) */
    margin: 15px auto !important;
    width: 100% !important;
    max-width: 900px !important;
}

/* Icon item styles */
.tech-icons-profile .tech-icon-content,
.tech-icons-profile .tech-icons .tech-icon-content {
    width: 100px !important; /* Pienempi leveys profiilisivulle (etusivulla 90px) */
    margin-bottom: 15px !important;
}

/* Icon sizes */
.tech-icons-profile .tech-icon-content i,
.tech-icons-profile .tech-icons .tech-icon-content i {
    font-size: 3.0rem !important; /* Pienempi ikonin koko (etusivulla 2.8rem) */
    margin-bottom: 8px !important;
}

/* Text size under the icon */
.tech-icons-profile .tech-icon-content p,
.tech-icons-profile .tech-icons .tech-icon-content p {
    font-size: 0.8rem !important; /* Pienempi teksti (etusivulla 0.8rem) */
    opacity: 0.85 !important;
}

/* ==========================================
   SECONDARY CTA BUTTONS (Full Profile / All Projects)
   ========================================== */
.section-btn {
    background: rgba(100, 255, 218, 0.05) !important;
    color: #ffffff !important; /* Pidetään valkoinen teksti */
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: 1.5px solid #64ffda !important; /* Selkeä kirkas turkoosi reunus */
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.15) !important;
}

.section-btn:hover {
    background: #64ffda !important;
    color: #000000 !important; /* Teksti muuttuu mustaksi leijutettaessa */
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.6) !important;
    transform: translateY(-3px) !important;
}

/* ==========================================
   HOBBY COVER CARDS (Profile Page)
   ========================================== */
.hobby-cover-card {
    border-radius: 50% !important; /* Pyöristetyt kulmat korteille */
    overflow: hidden !important; /* Estää suurennetun kuvan menemisen kulmien yli */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important; /* Tyylikäs varjo korteille */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease !important;
}

/* Nosto-efekti ja turkoosi hehku hoverissa */
.hobby-cover-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(100, 255, 218, 0.25) !important;
}

/* Kuvan zoomaus-efekti hoverissa */
.hobby-cover-card .wp-block-cover__image-background,
.hobby-cover-card .wp-block-cover__video-background {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hobby-cover-card:hover .wp-block-cover__image-background,
.hobby-cover-card:hover .wp-block-cover__video-background {
    transform: scale(1.1) !important; /* Lähennetään kuvaa kevyesti */
}

/* Tummakuorrutteen (overlay) kirkastaminen hoverissa (tekee kuvasta selkeämmän) */
.hobby-cover-card .wp-block-cover__background {
    transition: opacity 0.4s ease !important;
}

.hobby-cover-card:hover .wp-block-cover__background {
    opacity: 0.45 !important; /* Muuttaa tummuutta hieman, jolloin kuva erottuu paremmin */
}

/* Tekstin tyylittely (varjostus ja korostus) */
.hobby-cover-card h1,
.hobby-cover-card h2,
.hobby-cover-card h3,
.hobby-cover-card h4,
.hobby-cover-card p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.5) !important; /* Varjo parantaa luettavuutta huomattavasti */
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

/* Tekstin korostus hoverissa (muuttuu teeman turkoosiksi ja alkaa hehkua) */
.hobby-cover-card:hover h1,
.hobby-cover-card:hover h2,
.hobby-cover-card:hover h3,
.hobby-cover-card:hover h4,
.hobby-cover-card:hover p {
    color: #64ffda !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(100, 255, 218, 0.6) !important;
}


/* ==========================================
   CONTACT LIST HOVER EFFECTS (Spectra / List Block)
   ========================================== */

/* Kohdistetaan tyylit joko listan kohteisiin suoraan tai jos luokka on lisätty koko listalle */
.contact-list-hover,
.contact-list-hover li,
.contact-list-hover .uagb-list-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease !important;
}

/* Hover-efektissä siirretään hieman oikealle, suurennetaan ja lisätään kevyt varjo/hohto */
.contact-list-hover:hover,
.contact-list-hover li:hover,
.contact-list-hover .uagb-list-item:hover {
    transform: translateX(8px) scale(1.03) !important;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3) !important;
}

/* ==========================================
   CONTACT PAGE FORM FIELDS
   ========================================== */

.cf-field {
    margin-bottom: 22px;
}

.cf-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.cf-field input,
.cf-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.cf-field input:focus,
.cf-field textarea:focus {
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
    background: rgba(255, 255, 255, 0.16);
}

/* Submit button — contact page specific */
#contact-submit-btn {
    cursor: pointer;
    display: inline-block;
    padding: 15px 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff !important;
    background: rgba(100, 255, 218, 0.1);
    border: 1.5px solid #64ffda;
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-text-fill-color: #ffffff;
}

#contact-submit-btn:hover {
    background: rgba(100, 255, 218, 0.22);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 28px rgba(100, 255, 218, 0.45);
    transform: translateY(-2px);
}

/* Form success / error message */
#contact-form-message.success {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.4);
    color: #64ffda;
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    font-weight: 500;
}

#contact-form-message.error {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ff8080;
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cf-field input,
    .cf-field textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   CONTACT INFO ROWS (Email & LinkedIn)
   ========================================== */

.cf-contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-bottom: 40px;
}

.cf-contact-info-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cf-contact-info-row:hover {
    color: #64ffda !important;
    border-color: rgba(100, 255, 218, 0.4);
    background: rgba(100, 255, 218, 0.07);
    box-shadow: 0 0 18px rgba(100, 255, 218, 0.2);
    transform: translateX(5px);
}

.cf-contact-icon {
    font-size: 1.2rem;
    color: #64ffda;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cf-contact-info-row:hover .cf-contact-icon {
    transform: scale(1.15);
}

/* ==========================================================================
   AOS TRANSITION OVERRIDES FOR GUTENBERG BLOCKS
   ========================================================================== */
[data-aos] {
    transition-property: opacity, transform !important;
}

/* ==========================================================================
   WORDPRESS GALLERY HOVER EFFECTS
   ========================================================================== */
.wp-block-gallery .wp-block-image img,
.wp-block-gallery .blocks-gallery-item img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
}

.wp-block-gallery .wp-block-image img:hover,
.wp-block-gallery .blocks-gallery-item img:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.25) !important;
    cursor: pointer;
}

/* ==========================================================================
   GENERAL HOVER LIFT EFFECT CLASS
   ========================================================================== */
/* Voidaan käyttää CSS-lisäluokkana (Advanced -> CSS-lisäluokat: hover-lift) */
.hover-lift,
.wp-block-image.hover-lift img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
}

.hover-lift:hover,
.wp-block-image.hover-lift:hover img {
    transform: translateY(-4px) !important;
    /* box-shadow: 0 15px 35px rgba(100, 255, 218, 0.25) !important; */
}



/* ==========================================================================
   Koko cover lohko klikattavaksi
   ========================================================================== */

/* Cover-lohko klikattavaksi */
.wp-block-cover {
    position: relative;
}

.wp-block-cover .cover-link {
    position: absolute;
    inset: 0; /* sama kuin top:0; right:0; bottom:0; left:0 */
    z-index: 10;
    cursor: pointer;
}


/* ==========================================================================
   Burger menu lisäykset
   ========================================================================== */


/* --- Hampurilaisikoni --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff; /* säädä oman värimaailmasi mukaan */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animaatio: hampurilainen -> X kun auki */
.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobiilinäkymä --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: rgba(5, 7, 11, 0.97); /* säädä värimaailmasi mukaan */
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        transition: right 0.35s ease;
        z-index: 1000;
    }

    .header-navigation.is-open {
        right: 0;
    }

    .header-navigation ul#primary-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .header-navigation ul#primary-menu li {
        margin: 0;
    }

    .header-navigation ul#primary-menu a {
        font-size: 1.2rem;
        color: #fff;
    }

    /* Estetään taustan vieritys kun valikko on auki */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* ==========================
   HERO & ABOUT IMAGE — MOBILE FIX
========================== */
@media (max-width: 768px) {
    .hero-image-wrap,
    .about-image-wrap {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    .hero-container {
        gap: 30px !important;
    }
}