﻿:root {
    --gray-bg: #e3f2f8;
    --gray-text: #2f3a40;
    --blue: #4da3c7;
    --green: #4caf50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--gray-bg);
    color: var(--gray-text);
    line-height: 1.6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo img {
        height: 50px;
        width: auto;
        display: block;
    }

    .logo span {
        color: var(--green);
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        display: block;
    }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #4da3c7;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--blue);
    }

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('@Url.Content("~/Content/Pictures/hero_bg.jpg")') center center / cover no-repeat;
    filter: brightness(0.45);
    z-index: 1;
    animation: bgPulse 10s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: contentFadeIn 1s ease-out forwards;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    /* HFT Shine */
    .hero h1::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
        transform: rotate(25deg);
        animation: shine 4s linear infinite;
    }

    .hero h1 span {
        color: #43a047;
    }

/* Paragraph */
.hero p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #4da3c7;
}

/* Button */
.hero-btn {
    background: #0d6efd;
    color: white !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

/* ANIMATIONS */
@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 150%;
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgPulse {
    0% {
        filter: brightness(0.45);
    }

    100% {
        filter: brightness(0.55);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}


.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}

    .btn:hover {
        background: #43a047;
    }

/* INTRO */
.intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    padding: 90px 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

    /* IMAGE */
    .intro img {
        width: 100%;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }

/* NFT GLASS CARD */
.intro-card {
    position: relative;
    padding: 40px 36px;
    border-radius: 26px;
    background: linear-gradient( 145deg, rgba(255,255,255,0.75), rgba(245,247,250,0.65) );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
    /* NFT entrance */
    animation: nftGlassIn 1.6s ease-out forwards;
}

    /* SHEEN */
    .intro-card::before {
        content: "";
        position: absolute;
        top: -60%;
        left: -80%;
        width: 55%;
        height: 220%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.6), transparent );
        transform: rotate(25deg);
        animation: sheen 1.4s ease-in-out forwards;
        animation-delay: 1.6s;
    }

/* TEXT */
.intro h2 {
    font-size: 36px;
    margin-bottom: 18px;
    line-height: 1.25;
}

    .intro h2 span {
        color: #0d6efd;
        font-weight: 700;
    }

.intro p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #333;
}

/* ANIMATIONS */
@keyframes nftGlassIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 0 0 rgba(255,255,255,0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 25px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    }
}

@keyframes sheen {
    0% {
        left: -80%;
    }

    100% {
        left: 140%;
    }
}

/* MOBILE */
@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
        padding: 70px 20px;
    }

        .intro h2 {
            font-size: 30px;
        }
}

/* SERVICES */
.service {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    padding: 90px 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

    /* IMAGE */
    .service img {
        width: 100%;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }

/* GLASS CARD */
.service-card {
    position: relative;
    padding: 38px 34px;
    border-radius: 26px;
    background: linear-gradient( 145deg, rgba(255,255,255,0.78), rgba(245,247,250,0.68) );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
    animation: nftGlassIn 1.6s ease-out forwards;
}

    /* SHEEN */
    .service-card::before {
        content: "";
        position: absolute;
        top: -60%;
        left: -80%;
        width: 55%;
        height: 220%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.6), transparent );
        transform: rotate(25deg);
        animation: sheen 1.4s ease-in-out forwards;
        animation-delay: 1.6s;
    }

/* TEXT */
.service h3 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 16px;
}

    .service h3 span {
        color: #0d6efd;
        font-weight: 700;
    }

.service p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: #333;
}

/* REVERSE LAYOUT */
.service.reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

    .service.reverse img {
        order: 2;
    }

    .service.reverse .service-card {
        order: 1;
    }

/* OPTIONAL: slightly different accent for variation */
#repair .service-card h3 span {
    color: #6610f2; /* subtle violet accent */
}


/* ANIMATIONS */
@keyframes nftGlassIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 0 0 rgba(255,255,255,0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 25px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    }
}

@keyframes sheen {
    0% {
        left: -80%;
    }

    100% {
        left: 140%;
    }
}

/* MOBILE */
@media (max-width: 900px) {
    .service {
        grid-template-columns: 1fr;
        padding: 70px 20px;
    }

        .service h3 {
            font-size: 26px;
        }
}

/* HOW */
.how {
    padding: 80px 20px;
    text-align: center;
    background: #f6f8fb;
}

    .how h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

/* GRID */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 50px auto 0;
}

/* CARD BASE */
.step-card {
    position: relative;
    height: 180px;
    padding: 30px 22px;
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(255,255,255,0.92), rgba(245,247,250,0.88) );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    overflow: hidden;
    /* стартовий стан — без glass */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 0 0 rgba(255,255,255,0);
    /* glass запускається через 2с */
    animation: glassPulse 1.8s ease-in-out forwards;
    animation-delay: 2s;
}

    /* ICON */
    .step-card .icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    /* TEXT */
    .step-card p {
        margin: 0;
        font-size: 16px;
    }

    /* SHEEN (відблиск) */
    .step-card::before {
        content: "";
        position: absolute;
        top: -60%;
        left: -80%;
        width: 50%;
        height: 220%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.55), transparent );
        transform: rotate(25deg);
        /* sheen запускається через 2с */
        animation: sheen 1.4s ease-in-out forwards;
        animation-delay: 2s;
    }

/* GLASS SHADOW ANIMATION */
@keyframes glassPulse {
    0% {
        box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 0 0 rgba(255,255,255,0);
    }

    100% {
        box-shadow: 0 20px 45px rgba(0,0,0,0.12), inset 0 2px 0 rgba(255,255,255,0.75);
    }
}

/* SHEEN ANIMATION */
@keyframes sheen {
    0% {
        left: -80%;
    }

    100% {
        left: 140%;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .step-card {
        height: 160px;
    }
}
/*/HOW*/
/* FOOTER */
footer {
    background: #1f2a30;
    color: #ddd;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

footer h4 {
    color: var(--green);
    margin-bottom: 10px;
}

footer span {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    header {
        padding: 15px 20px;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: #ffffff;
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }

        .main-nav.active {
            right: 0;
        }

        .main-nav ul {
            flex-direction: column;
            padding: 30px;
            gap: 20px;
        }

    .burger {
        display: block;
    }

    .intro, .service {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Navbar animation */
.animate-navbar {
    transition: all 0.35s ease;
}

/* Nav links */
.navbar .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #00e5ff;
        transform: translateY(-1px);
    }

    /* underline animation */
    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #00e5ff;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar .nav-link:hover::after {
        width: 70%;
    }

/* Mobile spacing */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem;
    }
}

/* Logo text */
.navbar-brand span {
    font-size: 16px;
    white-space: nowrap;
}

/* SNOW EFFECT: */
/* SNOW CONTAINER */
.snow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 9999;
}

/* SNOWFLAKE */
.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 14px;
    opacity: 0.8;
    user-select: none;
    /* Додаємо анімації */
    animation-name: fall, sway; /* дві анімації: падіння + хитання */
    animation-iteration-count: infinite, infinite; /* повторювати нескінченно */
    animation-timing-function: linear, ease-in-out; /* fall лінійно, sway плавно */
}

/* FALL */
@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

/* SIDE SWAY */
@keyframes sway {
    0% {
        margin-left: 0;
    }

    50% {
        margin-left: 20px;
    }

    100% {
        margin-left: 0;
    }
}
