﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    font-size: 18px;
}

body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}      

section {
    scroll-snap-align: start;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

nav h1 {
    color: #00d1ff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00d1ff;
}

.section-content {
    text-align: center;
    max-width: 1000px;
    z-index: 1;
    position: relative;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.25rem;
    line-height: 1.6;
}

footer {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    z-index: 1;
}

canvas#stars {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* Backgrounds */
#about { background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1350&q=80'); }
#products { background-image: url('../img/products.png'); }
#technologies { background-image: url('../img/technologies.png'); }
#team { background-image: url('../img/team.png'); }
#contacts { background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1350&q=80'); }

/* Cards for Products */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    width: 300px;
    backdrop-filter: blur(5px);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    nav ul {
    flex-direction: column;
    background: rgba(0,0,0,0.85);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    display: none;
    }

    nav ul.open {
    display: flex;
    }

    .menu-toggle {
    display: block;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
    display: none;
    }
}