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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a2e;
    background-color: #f0f2f5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e94560' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3Ccircle cx='60' cy='0' r='1.5'/%3E%3Ccircle cx='0' cy='60' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
}

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

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
    text-decoration: none;
}

.header__menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.header__link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header__link:hover {
    color: #e94560;
}

.header__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.header__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(26, 26, 46, 0.85), rgba(15, 52, 96, 0.85)),
        url('bg-software.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero__content {
    flex: 1;
    text-align: left;
}

.hero__image {
    width: 320px;
    height: auto;
    flex-shrink: 0;
}



.hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    max-width: 540px;
    margin: 0 0 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn--primary {
    background: #e94560;
    color: #fff;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.section__subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* About */
.about {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.about__wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about__content {
    flex: 1;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about__image {
    width: 280px;
    height: auto;
    flex-shrink: 0;
}

/* Videos */
.videos {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.video-card__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-card__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card__title {
    font-size: 1.1rem;
    margin: 1rem 1.2rem 0.4rem;
    color: #1a1a2e;
}

.video-card__desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1.2rem 1.2rem;
}

/* Phases */
.phases {
    background: rgba(240, 242, 245, 0.9);
    backdrop-filter: blur(2px);
}

.phases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.phase-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.phase-card.active {
    border-color: #e94560;
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.2);
}

.phase-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.phase-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.phase-card__summary {
    color: #666;
    font-size: 0.95rem;
}

.phase-card__detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0.5rem;
}

.phase-card.active .phase-card__detail {
    max-height: 300px;
    padding: 1rem 0.5rem 0;
}

.phase-card__detail p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Scroll reveal */
.hero,
.about,
.videos,
.phases,
.footer {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.visible,
.about.visible,
.videos.visible,
.phases.visible,
.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 0;
    text-align: center;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__title {
    color: #e94560;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer__info a {
    color: #ccc;
    text-decoration: none;
}

.footer__info a:hover {
    color: #e94560;
}

.footer__credits p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .header__nav.open {
        max-height: 300px;
    }

    .header__menu {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.8rem;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero__content {
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 2rem;
    }

    .hero__image {
        width: 240px;
    }

    .about__wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about__image {
        width: 200px;
    }

    .phases__grid {
        grid-template-columns: 1fr;
    }

    .videos__grid {
        grid-template-columns: 1fr;
    }
}