/* =====================================================
   YLEISET ASETUKSET
===================================================== */

/* Sticky footer rakenne */
html, body {
    height: 100%;
}

/* Koska navbar on fixed-top */
body {
    display: flex;
    flex-direction: column;
}

/* Sectionien väli */
section {
    margin-top: 120px;
}

main {
    flex: 1;
}



/* =====================================================
   HERO-OSIO
===================================================== */

main {
    margin-bottom: 80px;
}


/* =====================================================
   PROJEKTIKORTIT
===================================================== */

/* Kortin kuva */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Korttien hover-animaatio */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* =====================================================
   NAPIT
===================================================== */

/* Musta custom-nappi */
.custom-button {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.custom-button:hover,
.custom-button:focus,
.custom-button:active {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transform: translateY(-2px);
}

/* Lataa CV -napin pehmeä hover */
.btn-dark {
    transition: all 0.2s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}


/* =====================================================
   FOOTER
===================================================== */

/* Footer ei enää fixed – normaali virtaus */
#footer {
    text-align: center;
    margin-top: 40px;
}

/* Someikonien hover */
.social-icons i {
    transition: transform 0.2s ease;
}

.social-icons a:hover i {
    transform: scale(1.25);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .card-img-top {
        height: auto;
    }

}