/* ==========================================================================
   PEAMISED DISAINIVÄÄRTUSED JA LOOMULIKUD MUUTUJAD
========================================================================== */

:root {
    --primary-orange: #FFA947;
    --light-orange: #FFD29E;
    --dark-grey: #6B6B6B;
    --grey: #AFAFAF;
    --light-grey: #D9D9D9;
    --black: #010000; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

html {
    scroll-behavior: smooth !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f9f9;
    color: var(--black);
    line-height: 1.8;
}

h1, h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
}

/* ==========================================================================
   PÕHINAVIGATSIOON - KINNINE MENÜÜ ÜLEVAL
========================================================================== */

nav {
    background-color: var(--black);
    padding: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul { 
    display: flex; 
    justify-content: center; 
    list-style: none; 
}

nav ul li { 
    margin: 0 10px; 
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* AKTIIVNE MENÜÜPUNKT (määratakse JavaScriptiga) */
.active-link {
    background-color: var(--primary-orange) !important;
    color: var(--black) !important;
}

/* HOVER EFEKT MENÜÜ LINKIDELE */
nav ul li a:hover:not(.active-link) {
    background-color: rgba(255,169,71,0.3);
    color: var(--primary-orange);
} 

/* ==========================================================================
   HERO SEKTSIOON - PÕHI PILDIGA TAUST
========================================================================== */

.hero-section {
    height: 91vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://yelzkizi.org/wp-content/uploads/2025/03/trsgeg1-ezgif.com-optimize.gif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background-color: var(--primary-orange);
    color: var(--black);
    padding: 15px 30px;
    margin-bottom: 25px;
    border-radius: 4px;
}

/* PÕHINUPU DISAIN */
.btn {
    background-color: var(--light-orange);
    color: var(--black);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn:hover { 
    background-color: var(--primary-orange); 
    transform: translateY(-5px); 
}

/* ==========================================================================
   SISU SEKTSIOON - FLEXBOX PAIGUTUS LOGO JA TEKSTIGA
========================================================================== */

.content-section { 
    padding: 100px 10%; 
    background-color: var(--light-grey); 
}

.content-container { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    flex-wrap: wrap; 
}

.content-text { 
    flex: 1; 
    min-width: 300px; 
}

.content-image { 
    flex: 0.5; 
}

.blender-logo { 
    width: 100%; 
    max-width: 300px; 
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2)); 
}

/* BLENDERI EELVAATE KAST - ERILISE RAAMIGA DISAIN */
.cube-preview {
    margin-top: 40px;
    border: 10px solid var(--primary-orange);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--dark-grey);
}

.cube-preview img { 
    width: 100%; 
    display: block; 
}

/* ==========================================================================
   PILTIDE GALERII - KOHANDAV KARUSELLI PAIGUTUS
========================================================================== */

.gallery-section { 
    padding: 80px 10%; 
    text-align: center; 
}

.gallery-section h2 {
    margin-bottom: 10px;
    font-size: 2.8rem;
    color: var(--black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin-bottom: 50px;
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* GALERII ÜMBRIS */
.gallery-wrapper {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%;
}

.gallery-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.gallery-track > div {
    flex: 0 0 100%;
    max-width: 100%;
}

.gallery-track img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

/* GALERII NUPUD EDASTI/TAGASI */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

/* NOOLEIKOONIDE PÕHISTIIL */
.nool {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    transition: transform 0.3s ease;
    user-select: none;
}

.nool-vasak {
    margin-right: 3px;
}

.nool-parem {
    margin-left: 3px;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-btn:hover .nool {
    transform: scale(1.2); 
}

.gallery-btn.prev {
    left: 25px;
}

.gallery-btn.next {
    right: 25px;
}

/* GALERII EDU PROGRESSIRIBA ALL */
.gallery-progress {
    height: 4px;
    background: #ddd;
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-orange);
    transition: width 0.4s ease;
}


/* ==========================================================================
   ÕPETUS SEKTSIOON - INFOKAARTIDEGA DISAIN
========================================================================== */

.example-section { 
    padding: 100px 10%;
    background-color: #fff; 
}

.section-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* SAMM-SAMMULT ÕPETUSE KAARTIDE KONTEINER */
.tutorial-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    position: relative;
}

/* INDIVIDUAALSE ÕPETUSSAMMI KAART */
.info-card {
    position: relative;
    background-color: var(--primary-orange);
    padding: 50px 30px 30px; 
    margin-bottom: 40px;
    flex: 1;
    min-width: 280px;
    border-radius: 15px;
    color: var(--black);
    box-shadow: 10px 10px 0px var(--black);
    transition: transform 0.3s ease;
}

.card-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--black);
    color: var(--primary-orange);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
    border: 4px solid var(--primary-orange);
}

/* SAMMUDE SISU STIILID */
.step-content h3 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 1.6rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-orange);
    margin-top: 5px;
}

.step-content p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: #333;
}

.step-content ul {
    margin: 20px 0 20px 35px;
    padding-left: 0;
}

.step-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
    color: #444;
}

/* PILDIGA SAMMUDE DISAIN */
.step-image {
    margin: 30px 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background: rgb(245, 245, 245);
    padding: 5px;
}

.step-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ERITI OLULISTE NÕUANNETE KAST */
.step-tip {
    background: linear-gradient(to right, rgba(255, 232, 197, 0.2), rgba(255, 169, 71, 0.1));
    padding: 25px 25px 25px 60px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 5px solid var(--primary-orange);
    position: relative;
}

.step-tip:before {
    content: "💡";
    position: absolute;
    top: 22px;
    left: 20px;
    font-size: 1.8rem;
}

.step-tip strong {
    color: var(--black);
    display: block;
    margin-bottom: 5px;
}

/* KLAVIATUURI KLAHVIDE ERI DISAIN */
kbd {
    background: linear-gradient(145deg, #2c2c2c, #222);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    border: 1px solid #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0 3px;
    display: inline-block;
    min-width: 28px;
    text-align: center;
}

/* ==========================================================================
   KIIRKLAHVIDE KOKKUÕTE - GRID PAIGUTUSEGA DISAIN
========================================================================== */

.cheatsheet {
    background-color: var(--black);
    color: white;
    padding: 50px 10%;
    text-align: center;
    margin-bottom: 80px;
}

.cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cheat-item {
    background: #222;
    padding: 15px;
    border-left: 4px solid var(--primary-orange);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cheat-item strong {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.cheat-grid p {
    background: #222;
    padding: 15px;
    border-left: 4px solid var(--primary-orange);
}

/* ==========================================================================
   VIDEO SEKTSIOON - FLEXBOX PAIGUTUS TEKST JA VIDEOGA
========================================================================== */

.video-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.video-text { 
    flex: 1; 
}

.video-text h2 { 
    font-size: 2rem; 
    color: var(--black); 
}

.video-text h2 .arrow::before {
    content: "\2192";
}

.video-text h2 .arrow {
    display: inline-block;
    color: var(--primary-orange);
    animation: arrow-right 1.5s infinite ease-in-out;
}

.video-text p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

.video-wrapper {
    flex: 1.5;
    aspect-ratio: 16 / 9;
    position: relative;
    min-width: 320px;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 5px solid var(--black);
}

/* NUPU NOOLE ANIMATSIOON */
@keyframes arrow-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* ==========================================================================
   JALUS - KOLME VEERU PAIGUTUSEGA FOOTER
========================================================================== */

footer {
    background-color: var(--black);
    color: white;
    padding: 80px 10% 40px;
}

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px; 
}

/* SOTSIAALMEEDIA IKONID - 2x2 GRID */
.social-icons { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.social-img {
    height: auto;
    width: 100px;
    margin: auto;
    transition: 0.4s
}

.app-look {
    border-radius: 24px;
}

.social-btn img:hover { 
    transform: scale(1.05); 
    filter: brightness(1.3) drop-shadow(0 0 10px #FFA947);
    transition: all 0.3s ease; 
}

/* KASULIKUD LINGID - VERTIKAALNE LOEND */
.useful-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.useful-links h3 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.useful-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.useful-links a:hover {
    color: var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
}

/* KONTAKTINFO - PAREMALE JOONDAV BLOKK */
.contact-info { 
    text-align: right; 
}

.cta-footer { 
    color: var(--primary-orange); 
    text-decoration: none; 
    font-weight: bold; 
    display: block; 
    margin-top: 15px; 
    text-transform: uppercase;
}

.cta-footer:hover { 
    text-decoration: underline; 
}

/* JALUSE ALUMINE OSA - TEKST JA AUTORIÕIGUSED */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: var(--grey);
}

.footer-bottom a { 
    color: var(--grey); 
}

/* ==========================================================================
   MOBIILI KOHANEMINE (RESPONSIVE DESIGN)
========================================================================== */

@media (max-width: 900px) {

    /* KONTAKTOSA KESKENDAMINE MOBIILIL */
    .useful-links, .contact-info {
        align-items: center;
    }
    
    .useful-links a {
        font-size: 1rem;
    }

    /* GALERII NUPUD PEIDAME MOBIILIL */
    .gallery-btn {
        display: none;
    }

    .gallery-track > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* NOOLE ANIMATSIOONI MUUTMINE VERTIKAALSEKS MOBIILIL */
    .video-text h2 .arrow::before {
        content: "\2193";
    }

    .video-text h2 .arrow {
        animation: arrow-down 1.5s infinite ease-in-out;
    }

    @keyframes arrow-down {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(12px); }
    }

    /* NAVIGATSIOONI MOBIILIKOHASTUS */
    nav {
        padding: 0.5rem;
    }
    
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    nav ul li {
        margin: 0; 
    }

    nav ul li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* VIDEO SEKTSIOONI VERTIKAALNE PAIGUTUS */
    .video-flex { 
        flex-direction: column; 
        text-align: center; 
    }

    .contact-info { 
        text-align: center; 
        width: 100%; 
    }

    .footer-grid { 
        justify-content: center; 
    }
}