@import "common.css";
@import "forms.css";

/* Header */
header {
    background: rgb(from var(--color-background-1) r g b / 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: var(--border);

    nav {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;

         .logo {
            display: flex;
            align-items: center;
            gap: 0.2rem;

            a {
                display: contents;
                text-decoration: none;
            }

            img {
                height: 2.2rem;
                width: auto;
                display: inline-block;
            }

            span {
                font-size: 2rem;
                font-weight: bold;
                background: var(--gradient-text);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }
    }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;

    span {
        width: 25px;
        height: 3px;
        background: var(--text-color-light);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-background);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(102,126,234,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(102,126,234,0);stop-opacity:0" /></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23grad)"><animate attributeName="cy" values="20;80;20" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="60" r="1.5" fill="url(%23grad)"><animate attributeName="cy" values="60;10;60" dur="6s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="url(%23grad)"><animate attributeName="cy" values="80;20;80" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
        opacity: 0.3;
        animation: float 6s ease-in-out infinite;
    }

    div {
        max-width: 800px;
        padding: 0 2rem;
        z-index: 2;
        position: relative;
    }

    p {
        font-size: 1.3rem;
        animation: fadeInUp 1s ease-out 0.2s both;
    }
}


/* Sections */
section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;

    &:first-child {
        padding-top: 6rem;
    }

    & > div {
        margin-top: 2rem;
        color: var(--text-color);
        font-size: 1.1rem;
        line-height: 1.8;
    }

    /* Newsletter Section */
    .card {
        background: var(--color-background-2);
        padding: 2rem;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: var(--border);
        text-align: center;

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--color-decoration-light);
        }

        .logo {
            margin-bottom: 1rem;

            img {
                width: 240px;
                height: auto;
                display: inline-block;
            }
        }
    }
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    flex-shrink: 0;

    .form-input {
        flex: 1;
        min-width: 300px;
        max-width: 400px;
    }

    .button {
        flex-shrink: 0;
    }

}


/* Product Section */
.product-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;


    .product-description {
        font-size: 1.1rem;
        line-height: 1.8;

        ul {
            margin: 1.5rem 0;
            padding-left: 1.5rem;

            li {
                margin-bottom: 0.8rem;
                position: relative;

                &::marker {
                    color: var(--color-decoration-light);
                }
            }
        }
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: var(--border);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        background: var(--color-background-1);
        border : var(--border);
        border-radius : 15px;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        padding: 2rem;

        &:not(.active) {
            display: none;
        }
    }

    section {
        padding: 1.5rem 1rem;
    }

    .newsletter input[type="email"] {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .product-content {
        grid-template-columns: 1fr;
    }

}
