/* =========================================
   ОСНОВНЫЕ НАСТРОЙКИ
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: "Segoe UI", Arial, sans-serif;
    color: #eef2ff;

    background:
            radial-gradient(circle at 10% 10%, rgba(75, 105, 180, 0.18), transparent 30%),
            radial-gradient(circle at 90% 20%, rgba(120, 70, 180, 0.15), transparent 30%),
            linear-gradient(135deg, #0b0d12, #11151d 50%, #0b0d12);

    line-height: 1.6;
}


/* =========================================
   ЗАГОЛОВКИ
   ========================================= */

h1 {
    margin: 0;
    color: #ffffff;

    font-family: "Trebuchet MS", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);

    font-weight: 700;
    letter-spacing: 2px;
    font-variant: small-caps;

    text-shadow:
            0 0 10px rgba(140, 170, 255, 0.35),
            0 3px 20px rgba(0, 0, 0, 0.5);
}


/* =========================================
   HEADER
   ========================================= */

header {
    position: relative;

    min-height: 150px;
    margin: 15px;

    display: flex;
    align-items: center;

    padding: 25px 40px 25px 170px;

    background:
            linear-gradient(
                    135deg,
                    rgba(45, 49, 60, 0.95),
                    rgba(27, 31, 40, 0.95)
            );

    background-image:
            linear-gradient(
                    135deg,
                    rgba(45, 49, 60, 0.94),
                    rgba(27, 31, 40, 0.94)
            ),
            url("Nimetu.png");

    background-repeat: no-repeat;
    background-position: 35px center;
    background-size: 105px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;

    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);

    overflow: hidden;
}

/* Светящаяся линия сверху */

header::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
            90deg,
            transparent,
            #6c8cff,
            #a855f7,
            #6c8cff,
            transparent
    );

    box-shadow: 0 0 20px #657cff;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin: 15px;
    padding: 30px;

    background:
            linear-gradient(
                    135deg,
                    rgba(43, 47, 57, 0.95),
                    rgba(28, 31, 39, 0.95)
            );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    color: #ffffff;

    font-variant: small-caps;
    letter-spacing: 1px;

    text-align: center;

    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
    position: absolute;

    top: 180px;
    left: 15px;

    width: 170px;
    padding: 10px;

    z-index: 10;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 10px;

    list-style: none;

    background: rgba(35, 39, 48, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);
}

nav ul li {
    width: 100%;
}

nav ul li a {
    position: relative;

    display: block;

    padding: 13px 10px;

    color: #b9c9ff;

    text-decoration: none;
    text-align: center;

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;

    font-variant: small-caps;

    border: 1px solid transparent;
    border-radius: 12px;

    transition:
            background 0.3s ease,
            color 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;

    background:
            linear-gradient(
                    135deg,
                    rgba(78, 105, 190, 0.8),
                    rgba(107, 70, 170, 0.8)
            );

    border-color: rgba(150, 170, 255, 0.3);

    transform: translateX(5px);

    box-shadow:
            0 5px 20px rgba(70, 100, 220, 0.3);
}


/* =========================================
   MAIN
   ========================================= */

main {
    margin-top: 20px;
    margin-right: 20px;
    margin-bottom: 25px;
    margin-left: 205px;

    padding: 10px;
}


/* =========================================
   ОБЩИЙ СТИЛЬ SECTION
   ========================================= */

section {
    position: relative;

    width: 100%;
    margin: 0;

    padding: 25px;

    color: #eeeeee;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;

    overflow: hidden;

    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
}

section:hover {
    transform: translateY(-5px);

    border-color: rgba(150, 170, 255, 0.25);

    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(80, 110, 220, 0.08);
}


/* Световой эффект внутри */

section::before {
    content: "";

    position: absolute;

    top: -80px;
    right: -80px;

    width: 180px;
    height: 180px;

    background: rgba(100, 130, 255, 0.08);

    border-radius: 50%;

    filter: blur(20px);

    pointer-events: none;
}


/* =========================================
   ТРИ ОСНОВНЫЕ КАСТИ
   ========================================= */

section#kast1 {
    background:
            linear-gradient(
                    135deg,
                    rgba(37, 49, 63, 0.95),
                    rgba(28, 35, 45, 0.95)
            );

    border-left: 3px solid #5f8cff;
}

section#kast2 {
    background:
            linear-gradient(
                    135deg,
                    rgba(40, 43, 55, 0.95),
                    rgba(30, 32, 42, 0.95)
            );

    border-left: 3px solid #9b6cff;
}

section#kast3 {
    background:
            linear-gradient(
                    135deg,
                    rgba(42, 39, 49, 0.95),
                    rgba(31, 30, 38, 0.95)
            );

    border-left: 3px solid #d06cff;
}


/* =========================================
   БОЛЬШАЯ СЕТКА
   ========================================= */

#suurkast {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

    width: 100%;

    align-items: stretch;
}

#suurkast section {
    min-height: 320px;

    width: 100%;

    margin: 0;
    padding: 25px;
}


/* =========================================
   ПИЛДИГАЛЕРИИ
   ========================================= */

section#pildigalerii {
    background:
            linear-gradient(
                    135deg,
                    rgba(30, 60, 48, 0.95),
                    rgba(25, 42, 37, 0.95)
            );

    border-top: 3px solid #45d69a;
}


/* =========================================
   VIDEO
   ========================================= */

section#video {
    background:
            linear-gradient(
                    135deg,
                    rgba(38, 47, 63, 0.95),
                    rgba(27, 34, 47, 0.95)
            );

    border-top: 3px solid #5f9cff;
}


/* =========================================
   KAART
   ========================================= */

section#kaart {
    background:
            linear-gradient(
                    135deg,
                    rgba(65, 42, 42, 0.95),
                    rgba(43, 31, 33, 0.95)
            );

    border-top: 3px solid #ff6b6b;
}


/* =========================================
   MUUSIKA
   ========================================= */

section#muusika {
    min-height: 320px;
    height: auto;

    background:
            linear-gradient(
                    135deg,
                    rgba(65, 48, 38, 0.95),
                    rgba(42, 34, 31, 0.95)
            );

    border-top: 3px solid #ffad5c;
}


/* =========================================
   КАРТИНКИ
   ========================================= */

img {
    max-width: 100%;
    height: auto;

    margin: 5px;
    padding: 5px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.03);

    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease;
}

img:hover {
    transform: scale(1.03);

    border-color: rgba(130, 160, 255, 0.5);

    box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.45),
            0 0 25px rgba(100, 130, 255, 0.15);
}


/* =========================================
   ССЫЛКИ
   ========================================= */

a {
    transition: 0.3s ease;
}


/* =========================================
   SCROLLBAR
   ========================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0d12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
            #526fc9,
            #8055b8
    );

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
            #6c8cff,
            #a56cff
    );
}


/* =========================================
   АДАПТИВНОСТЬ — ПЛАНШЕТ
   ========================================= */

@media (max-width: 900px) {

    nav {
        position: static;

        width: auto;

        margin: 15px;
        padding: 0;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav ul li {
        flex: 1 1 150px;
    }

    main {
        margin: 15px;
    }

    #suurkast {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   АДАПТИВНОСТЬ — ТЕЛЕФОН
   ========================================= */

@media (max-width: 600px) {

    header {
        min-height: 130px;

        margin: 10px;

        padding: 110px 20px 20px;

        background-position: center 15px;
        background-size: 75px;

        justify-content: center;

        text-align: center;
    }

    header h1 {
        margin: 0;
    }

    nav {
        margin: 10px;
    }

    nav ul {
        gap: 5px;
    }

    nav ul li {
        flex: 1 1 100%;
    }

    main {
        margin: 10px;
        padding: 0;
    }

    #suurkast {
        gap: 15px;
    }

    #suurkast section {
        min-height: 250px;
        padding: 20px;
    }

    section {
        border-radius: 16px;
    }

    footer {
        margin: 10px;
        padding: 25px 15px;
    }
}