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

html {
    height: auto;
    min-height: 100%;
    background: #000;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.5;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
    font-size: 1rem;
}

h1, h2, h3 {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

p, .btn, .nav-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    display: none;
    min-height: 100vh;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 769px) {
    .section { display: none !important; min-height: 100vh; }
    .section.active { display: block !important; opacity: 1 !important; transform: none; }
    .site-footer { display: none !important; }

    body.tab-contact {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    body.tab-contact .section.active { flex: 1 1 auto; min-height: 0; }
    body.tab-contact .site-footer {
        display: flex !important;
        margin-top: auto;
        flex-shrink: 0;
    }
}

.section.active h1,
.section.active h2,
.section.active h3,
.section.active p,
.section.active .btn {
    opacity: 1;
    transform: none;
}

.background-placeholder {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100lvh;
    min-height: 100lvh;
    z-index: 0;
    background: #000;
    pointer-events: none;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.active .glass-panel {
    opacity: 1;
    transform: none;
}

.hero-content .glass-panel {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    a,
    [role="button"],
    input,
    textarea,
    select {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    button:focus,
    a:focus,
    [role="button"]:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
    }

    ::selection {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

    ::-moz-selection {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

    html {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        overflow-x: hidden !important;
        background: #000 !important;
    }

    body {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding-top: 72px !important;
        padding-bottom: 0 !important;
        display: block !important;
        overflow-x: hidden !important;
        background: #000 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 14px !important;
    }

    .section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        width: 100% !important;
        z-index: 5;
    }

    .glass-panel,
    .section.active .glass-panel {
        opacity: 1 !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem 0.25rem !important;
        border-radius: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        animation: none !important;
    }

    #about .glass-panel,
    #about.section.active .glass-panel,
    #contact .glass-panel,
    #contact.section.active .glass-panel {
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 14px !important;
        padding: 1.15rem 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    h1, h2, h3, p, .btn, .nav-link {
        opacity: 1 !important;
        transform: none !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .navbar h2,
    .nav-logo h2 {
        font-size: 1.2rem !important;
        line-height: 0.9 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: none !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    .nav-menu { display: none; }

    .site-footer {
        display: flex !important;
        margin: 0 !important;
        background: #000 !important;
    }

    .background-placeholder {
        height: 100lvh !important;
        min-height: 100lvh !important;
    }

    .bubbles-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100lvh !important;
        min-height: 100lvh !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }
}

@media (min-width: 769px) {
    html { overflow-x: hidden; scrollbar-width: none; }
    body { overflow-y: scroll; }
    ::-webkit-scrollbar { display: none; }
}
