* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fancy-quote {
    border-left: 4px solid #ff6b35;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #f0f0f0;
}


/*-------------------------------*/
/* Navigation */
/*-------------------------------*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 13, 13, 0.9);
    z-index: 1000;
    padding: 8px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}


.logo-wrapper {
    position: fixed;
    top: 5px;
    left: 25px;
    z-index: 1100;
}

.logo-image {
    max-width: 220px; /* Nostettu 140px -> */
    height: auto;
    display: block; /* Varmistaa, ettei logon alle jää turhaa tyhjää tilaa */
    padding: 5px 0; /* Antaa logolle hieman ilmaa ylä- ja alapuolelle */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto; 
    padding-right: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

/*-------------------------------*/
/* Section Navigation Icons */
/*-------------------------------*/

.section-nav {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Värit vaaleille osioille */
.about .nav-icon, .goals .nav-icon {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

.nav-icon:hover {
    background: #ff6b35;
    color: white !important;
    transform: translateY(-3px);
    border-color: #ff6b35;
}
/*-------------------------------*/
/* Hero Section */
/*-------------------------------*/
.hero {
    height: 65vh;
    width: 100vw;
    position: relative;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #000;
    clip-path: inset(0 0 0 0);
}

.hero::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.65), 
        rgba(0, 0, 0, 0.15)), 
        url("../img/header.webp") center/cover no-repeat;
    z-index: -1;
    /* Hidastettu XXs sekuntiin ja lisätty pehmeä liike */
    animation: panoramaZoomOut 27s infinite alternate ease-in-out;
    transform-origin: center;
    will-change: transform;
    perspective: 10px; /* Lisää syvyyttä panorointiin */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-out;
    line-height: 1.4;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease-out 1.0s both;
}

/*-------------------------------*/
/* Keyframes for Hero section */
/*-------------------------------*/

@keyframes panoramaZoomOut {
    0% {
        /* Alussa kuva on lähellä ja kallellaan vasemmalle */
        transform: scale(1.0) rotateY(-5deg);
    }
    100% {
        /* Lopussa kuva on kauempana ja kallellaan oikealle */
        transform: scale(0.6) rotateY(5deg);
    }
}

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

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

@keyframes panoramaZoomOut {
    0% { transform: scale(1.1); } /* Laskettu 1.3 -> 1.1 tarkkuuden parantamiseksi */
    100% { transform: scale(1.0); }
}

/*-------------------------------*/
/* About & universal purpose*/
/*-------------------------------*/

.about, .goals, .skills, .contact, .studies {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

.about, .goals { background: #fffaef; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: url("../img/about-image.jpg") center/cover no-repeat;
    margin: 0 auto;
}

/*--------------------------------------------------------------*/
/* Kortit: GRIDIT (MAX 3 leveyssuunta)  */
/*--------------------------------------------------------------*/

/*-------------------------------*/
/* GOALS-OSIO (Vaalea tausta)  */
/*-------------------------------*/

.goals {
    padding: 100px 0;
    background: #fffaef !important; /* Vaalea osion tausta */
}

.goals-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 40px !important;
    margin-top: 50px;
}

.goal-card {
    background: white !important; /* Varmistetaan valkoinen kortti */
    color: #333 !important;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.goal-card:hover {
    transform: translateY(-10px) !important;
    background: #fffaf5 !important;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15) !important;
}

/*-------------------------------*/
/* Roadmap Section */
/*-------------------------------*/

.roadmap {
    /* Voimakkaampi liukuväri, jotta lasiefekti korostuu */
    background: linear-gradient(135deg, #f25f03, #ff6b35, #f3bb99);
    background-attachment: fixed; /* Valinnainen: pitää taustan paikallaan skrollatessa */
    padding: 100px 0;
    color: white;
}
.goal-title-roadmap {
    color: #fff;
    margin-bottom: 20px;
}
.text-block-roadmap {
    margin-bottom: 25px;
    font-size: 1.05rem;
    font: bold;
    line-height: 1.6;
    /* Muutettu valkoiseksi, jotta se erottuu tummemmasta lasitaustasta */
    color: rgba(255, 255, 255, 0.9); 
}

.roadmap-text {
    display: flex;

    flex-direction: column;
    gap: 10px;
}

.roadmap-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: center;
}

.roadmap-image {
    width: 225px;      /* 9:16 */
    height: 400px;     /* 16 */
    background-image: url("../img/look-here.webp");
    background-size: cover;
    background-position: right;
    border-radius: 10px;
}

.roadmap-link {
    display: inline;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.roadmap-link:hover {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
    transform: translateY(-2px);
}

/*-------------------------------*/
/* SKILLS-OSIO (Tumma tausta)  */
/*-------------------------------*/

.skills h1, 
.skills h2, 
.skills h3,
.skills .skill-title,
.skills .section-title {
    color: #ffffff !important;
}

.skills {
    padding: 100px 0;
    background: #1a1a1a !important;
    color: white !important;
}

.skills-grid {
    display: grid !important;
    /* Asetetaan max 3 vierekkäin desktopilla, mutta joustavasti tilan mukaan */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px; /* Estää liian leveäksi venymisen */
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: linear-gradient(135deg, #333, #444) !important; /* Alkuperäinen tumma väri */
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    z-index: 1;
    color: white !important;
}

/*Skill-korttien listat*/
    /* Lisää tämä CSS-tyylitiedostoosi tai <style> -osioon */

.skill-list {
    list-style: none; /* Poistaa oletuspallot */
    padding-left: 0;
    margin: 0;
}

.skill-list li {
    position: relative;
    padding-left: 25px; /* Tilaa kustomoidulle ikonille/pallolle */
    margin-bottom: 8px;
    line-height: 1.6;
    color: inherit; /* Perii värin skill-cardilta */
}

/* Luodaan tyylikäs kustomoitu luettelomerkki */
.skill-list li::before {
    content: "•"; /* Voit käyttää myös FontAwesome-ikonia jos käytössä */
    position: absolute;
    left: 0;
    color: #ffffff; /* Säädä väri teemasi mukaan */
    font-weight: bold;
    font-size: 1.2em;
}

/* Tehdään vahvistetusta tekstistä (strong) hieman erottuvampi */
.skill-list li strong {
    color: #ffffff;
    display: inline-block;
    margin-right: 5px;
}

.text-block-skills p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.skill-list-item {
    margin-left: 8px;     /* Sisennyksen määrä vasemmalta */
    
    line-height: 1.0;      /* Hyvä luettavuus tekstille */
    list-style-position: outside; /* Varmistaa, että teksti rivittyy oikein sisennyksen alle */
}

/* Oranssi heijastus (Vain Skill-kortille) */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; 
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        rgba(255, 107, 53, 0.4), /* Oranssi välähdys */
        rgba(255, 107, 53, 0.1), 
        transparent
    );
    transition: left 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
}

.skill-card:hover::before {
    left: 150%;
}


/* Teksti heijastuksen päälle */
.skill-card > * {
    position: relative;
    z-index: 3;
}

.framed-block {
    border: 1px solid rgba(255, 255, 255, 0.846); /* ohut vaalea kehys */
    border-radius: 10px;                         /* pyöristetyt kulmat */
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(12, 12, 12, 0.23);       /* kevyt läpikuultava tausta */
    min-height: 355px; /* skill korttien selitteen minikorkeus */
}

/* Erillinen luokka, jos halutaan hieman korkeampi kortti (esim. selitteille) */

.framed-block-case {
    border: 1px solid rgba(255, 255, 255, 0.846); /* ohut vaalea kehys */
    border-radius: 10px;                         /* pyöristetyt kulmat */
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(12, 12, 12, 0.23);       /* kevyt läpikuultava tausta */
    min-height: 400px; /* skill korttien selitteen minikorkeus */
}

/* Rajoitetaan sarakkeet tasan kolmeen isoilla näytöillä */
@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/*-------------------------------*/
/* Single-column layout for text-only sections and themplare for new layouts*/
/*-------------------------------*/

.single-column {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* General text block styling */
.text-block {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
    /* Muutettu valkoiseksi, jotta se erottuu tummemmasta lasitaustasta */
    color: rgba(255, 255, 255, 0.9); 
}

.goal-title {
    color: #333;
    margin-bottom: 20px;
}

.single-column-card {
    /* Glassmorphism-tehoste */
    background: rgba(255, 255, 255, 0.1); /* Erittäin läpinäkyvä valkoinen */
    backdrop-filter: blur(15px);          /* Tämä tekee lasimaisen sumennuksen */
    -webkit-backdrop-filter: blur(15px);  /* Tuki Safarille */
    
    /* Reuna ja varjo tuovat syvyyttä */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    color: white; /* Teksti valkoiseksi */
    padding: 60px 40px;
    border-radius: 20px; /* Hieman pyöreämmät kulmat sopivat tyyliin paremmin */
    max-width: 800px;
    margin: 0 auto;
}

/* ------------------------------ */
/* Studies used as experience Mermaid Flowchart Styling      */
/* ------------------------------ */

.studies {
    background: linear-gradient(135deg, #ff9a56, #ff6b35);
    color: white;
    text-align: center;
}

/* Yleinen fonttikoko ja bold */
.mermaid svg text {
    font-size: 28px !important;
    font-weight: 700 !important;
    fill: #ffffff !important;
}

/* ------------------------------ */
/* SUBGRAPH (ULKOLAATIKKO)        */
/* ------------------------------ */

/* Subgraphin taustalaatikko */
.mermaid .cluster rect {
    rx: 14px !important;
    ry: 14px !important;
    fill: rgba(255, 255, 255, 0.10) !important;
    stroke: rgba(255, 255, 255, 0.25) !important;
}

/* Subgraph-otsikon foreignObject → div */
.mermaid .cluster foreignObject > div {
    position: relative;
    z-index: 999 !important;
    font-size: 0px !important;
    font-weight: 0 !important;
    color: #ffffff !important;
    text-align: center;
}

/* Estää otsikon jäämisen solujen alle */
.mermaid .cluster foreignObject {
    pointer-events: none;
}

/* ------------------------------ */
/* SOLUT                          */
/* ------------------------------ */

.mermaid .node rect {
    fill: rgba(255, 255, 255, 0.15) !important;
    stroke: #ffffff !important;
    stroke-width: 2px !important;
    rx: 14px !important;
    ry: 14px !important;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}

/* ------------------------------ */
/* NUOLET                         */
/* ------------------------------ */

.mermaid .edgePath path {
    stroke: #fffaf5 !important;
    stroke-width: 4px !important;
}

.mermaid .node.spacer rect {
    fill: none !important;
    stroke: none !important;
}

.mermaid .node.spacer text {
    fill: none !important;
}

.mermaid .edgeLabel {
    fill: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* ------------------------------ */
/* HOVER                          */
/* ------------------------------ */

.mermaid .node:hover rect {
    fill: rgba(255, 255, 255, 0.25) !important;
    stroke: #ff9a56 !important;
    transition: 0.25s ease;
}

/* Piilota kaikki subgraph-otsikot */
.mermaid .cluster .label {
    display: none !important;
}

/*-------------------------------*/
/* Final Statement Section */
/*-------------------------------*/
.final-statement {
    background-color: rgba(26, 26, 26, 0.46); /* 60% opacity */
    color: #f2f2f2;
    align-items: center;
    padding: 24px;
    border-radius: 4px;
    max-width: 1100px;
    font-family: Arial, sans-serif;

    margin-top: 10px
    margin-bottom: 10px;
}

.final-statement h2 {
    margin-top: 0;
}


/* ------------------------------ */
/* Cartoon image section (Mikko's change) */
/* ------------------------------ */

.cartoon-section {
    
    background: linear-gradient(145deg, #0f0f0f, #0f0f0f, #928d8a);
    color: white;
    text-align: center;
    padding: 30px 10px;
}
.cartoon-title {
    color: #2b1818; 
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center
}
.change-image {
    width: 120%;
    aspect-ratio: 2156 / 728;
    margin: 10px auto; /* keskittää elementin sivusuunnassa */
    background-image: url("../img/mikkos-change.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 12px;
}


.hobby-image {
    width: 70%;
    aspect-ratio: 3049 / 297;
    margin: 5px auto; /* keskittää elementin sivusuunnassa */
    background-image: url("../img/mikko-hobbies.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 12px;
}




/*-------------------------------*/
/* Linkedin link Section */
/*-------------------------------*/

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.linkedin-logo {
    height: 30px; /* Pakotetaan LinkedIn-logo takaisin pieneksi */
    width: auto;
}

/*-------------------------------*/
/* Contact */
/*-------------------------------*/
.contact { background: #1a1a1a; color: white; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.me-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: url("../img/foto.jpeg") center/cover no-repeat;
    margin-bottom: 25px;
}

.contact-form {
    background: #333;
    padding: 40px;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    background: #555;
    color: white;
}

/*-------------------------------*/
/* Buttons */
/*-------------------------------*/

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    align-items: center;
    display: inline-flex;    
}

.btn-primary {
    background: #ff6b35;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    align-items: center;
    display: inline-flex;

    background: rgba(255, 255, 255, 0.01); /* läpikuultava */
    backdrop-filter: blur(3px);           /* lasimainen efekti */
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/*-------------------------------*/
/* Footer & Tech Logos */
/*-------------------------------*/

footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 50px 0 30px 0;
    position: relative;
    z-index: 10;
}

footer .container:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

footer img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    max-height: 40px;
    width: auto;
}

footer img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
