* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

/* --- Glassmorphism Header --- */
header {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(21px) saturate(140%);
    -webkit-backdrop-filter: blur(21px) saturate(140%);
    border-bottom: 2.25px solid rgba(180, 150, 255, 0.18);
    box-shadow: 0 6px 36px rgba(123,47,242,0.06), 0 2.25px 12px 0 rgba(0,0,0,0.10);
    height: 15vh;
    padding: 0 45px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: center;
    transition: background 0.3s, backdrop-filter 0.3s;
}

header:hover {
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(33px) saturate(180%) brightness(1.08);
    -webkit-backdrop-filter: blur(33px) saturate(180%) brightness(1.08);
    box-shadow: 0 12px 48px rgba(123,47,242,0.10), 0 3px 18px 0 rgba(0,0,0,0.12);
}

header img {
    width: 15vh;
}

header a {
    text-decoration: none;
    color: rgb(75, 75, 75);
    font-weight: 500;
    font-size: 21px;
    padding: 0 22.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

header a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 4.5px;
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    z-index: -1;
}

header a:hover {
    color: #7b2ff2;
}

header a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- Hero Section --- */
.container-1 {
    width: 100vw;
    height: 150vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    right: 0;
    background-color: #f2f2f2;
}

.container-1 .left {
    width: 45%;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 52.5px;
}

.container-1 .left h1 {
    font-size: 52.5px;
    font-weight: 700;
    color: rgb(35, 35, 35);
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.container-1 .left h1.animate {
    animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 1;
}

.container-1 .left p {
    font-size: 24px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin-bottom: 45px;
}

.container-1 .left .button1,
.container-1 .left .button2 {
    border: none;
    border-radius: 12px;
    padding: 15px 42px;
    margin: 15px 12px 15px 0;
    font-size: 22.5px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.22);
    color: #232323;
    box-shadow: 0 3px 18px rgba(123,47,242,0.08);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1.8px solid rgba(180, 150, 255, 0.18);
    transition: 
        background 0.3s,
        color 0.3s,
        box-shadow 0.3s,
        border 0.3s,
        transform 0.2s;
}

.container-1 .left .button1:hover,
.container-1 .left .button2:hover {
    background: rgba(255,255,255,0.34);
    color: #7b2ff2;
    box-shadow: 0 6px 36px rgba(123,47,242,0.14);
    border: 2.25px solid rgba(123,47,242,0.22);
    transform: translateY(-3px) scale(1.04);
}

.container-1 .left .button2 {
    color: black;
    background: rgba(0,162,255,0.22);
    border: 1.8px solid rgba(0,162,255,0.18);
}

.container-1 .left .button2:hover {
    background: rgba(0,162,255,0.34);
    color: purple;
    border: 2.25px solid rgba(0,162,255,0.22);
}

.container-1 .right {
    width: 55%;
    height: 150vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Glassmorphism Animations for .ds and .ms --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-75px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-75px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ds {
    width: 600px;
    right: 0;
    z-index: 0;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
}

.ds.animate {
    animation: slideDown 1s ease forwards;
    opacity: 1;
}

.ms {
    position: absolute;
    z-index: 1;
    width: 240px;
    margin-right: 480px;
    padding-right: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.ms.animate {
    animation: slideRight 1s ease forwards;
    opacity: 1;
}

/* --- Section 2 --- */
.container-2 {
    width: 100%;
    height: 150vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container-2 p {
    font-size: 24px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin: 45px 0;
    width: 65%;
    text-align: center;
}

.quad {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.quad .a {
    width: 225px;
    font-size: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quad .a i {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 22.5px rgb(16, 144, 255);
    margin-bottom: 15px;
}

.bold {
    font-weight: 700;
    color: rgb(35, 35, 35);
}

.fac {
    width: 100%;
    height: 150vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Section 3 --- */
.container-3 {
    background-color: #fcf5f5;
    height: auto;
    padding: 67.5px 0;
}

.container-3 p {
    font-size: 21px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin: 45px 0;
    width: 65%;
    text-align: center;
    padding: 52.5px auto;
}

.trio {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1800px;
    margin: 52.5px auto;
    padding: 52.5px auto;
}

.left {
    display: flex;
    height: 127.5vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
}

.trio .left .a {
    width: 225px;
    font-size: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.trio .left .a i {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 22.5px rgb(16, 144, 255);
    margin-bottom: 15px;
}

.middle img {
    width: 330px;
    opacity: 0.6;
    transform: scale(0.98);
    transition: opacity 1.8s cubic-bezier(0.23, 1, 0.32, 1), transform 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.middle img.animate {
    opacity: 1;
    transform: scale(1);
}

.right {
    display: flex;
    height: 127.5vh;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
}

.trio .right .a {
    width: 225px;
    font-size: 18px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trio .right .a i {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 22.5px rgb(16, 144, 255);
    margin-bottom: 15px;
}

/* --- Section 4 --- */
.container-4 {
    height: auto;
    padding: 67.5px 0;
}

.container-4 p {
    font-size: 21px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin: 45px 0;
    width: 65%;
    text-align: center;
    padding: 52.5px auto;
}

.first {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.first .text {
    width: 40vw;
    padding: 90px;
}

.text span {
    color: gray;
}

.first .img {
    width: 50%;
}

.img img {
    width: 600px;
}

.rang {
    color: purple;
}

/* --- Section 5 --- */
.container-5 {
    height: auto;
    height: 150vh;
    padding: 67.5px 0;
    background-color: lavender;
}

.container-5 p {
    font-size: 21px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin: 45px 0;
    width: 65%;
    text-align: center;
    padding: 52.5px auto;
}

/* --- Section 6 --- */
.container-6 {
    height: auto;
    padding: 67.5px 0;
    background-color: whitesmoke;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
}

.container-6 p {
    font-size: 21px;
    color: rgb(90, 90, 90);
    line-height: 1.5;
    margin: 45px 0;
    width: 65%;
    text-align: center;
    padding: 52.5px auto;
}

.cont {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

/* --- Glassmorphism Info Item --- */
.info-item {
    display: flex;
    height: 150px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(21px) saturate(140%);
    -webkit-backdrop-filter: blur(21px) saturate(140%);
    border: 2.25px solid rgba(180, 150, 255, 0.18);
    box-shadow: 0 6px 36px rgba(123,47,242,0.06), 0 2.25px 12px 0 rgba(0,0,0,0.10);
    transition: 
        box-shadow 0.3s,
        background 0.3s,
        backdrop-filter 0.3s,
        transform 0.2s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(33px) saturate(180%) brightness(1.08);
    -webkit-backdrop-filter: blur(33px) saturate(180%) brightness(1.08);
    box-shadow: 0 12px 48px 0 rgba(123,47,242,0.12), 0 3px 18px 0 rgba(0,0,0,0.12);
    border: 2.25px solid rgba(123,47,242,0.18);
    transform: translateY(-3px) scale(1.025);
}

.info-item i {
    margin-right: 15px; 
}

.info-item span {
    color: rgb(43, 32, 4);
    font-weight: 700;
}

.info-item a {
    color: rgb(0, 37, 63);
    font-weight: 700;
    text-decoration: none;
    transition: 0.4s ease;
}

.info-item a:hover {
    color: purple;
}

/* --- Footer --- */
footer {
    height: 15vh;
    box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.1);
    padding-left: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(201, 201, 201);
}

footer img {
    width: 15vh;
}

footer a, span {
    text-decoration: none;
    color: rgb(75, 75, 75);
    font-weight: 500;
    font-size: 15px;
    padding: 0 22.5px;
}

footer span {
    color: black
}

footer a:hover {
    color: purple;
}

/* --- Responsive Design: Improved for Centering & Flexibility --- */

/* Tablets (max-width: 1024px) */
@media (max-width: 700px) {
    html {
        font-size: 22.5px;
    }
    header {
        height: auto;
        padding: 15px 6vw;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    header img {
        width: 10.5vh;
        margin-bottom: 12px;
    }
    header a {
        font-size: 19.5px;
        padding: 0 12px;
        margin-bottom: 9px;
    }
    .container-1 {
        flex-direction: column;
        height: auto;
        min-height: 120vh;
        align-items: center;
        justify-content: center;
        padding: 0 3vw;
    }
    .container-1 .left, .container-1 .right {
        width: 100%;
        padding: 0 15px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .container-1 .left {
        padding-top: 45px;
        padding-left: 0;
    }
    .container-1 .left h1 {
        font-size: 39px;
    }
    .container-1 .left p {
        font-size: 21px;
    }
    .container-1 .left .button1,
    .container-1 .left .button2 {
        font-size: 19.5px;
        padding: 12px 27px;
    }
    .container-1 .right img,
    .ds, .ms {
        width: 270px;
        max-width: 90vw;
        margin: 15px auto;
        display: block;
    }
    .ds, .ms {
        position: static;
    }
    .quad, .trio, .cont {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 27px;
        text-align: center;
    }
    .quad .a, .trio .left .a, .trio .right .a {
        width: 90vw;
        font-size: 19.5px;
        margin-bottom: 27px;
        align-items: center;
        text-align: center;
    }
    .middle img {
        width: 225px;
        margin: 0 auto;
        display: block;
    }
    .first {
        flex-direction: column;
        padding: 15px;
        align-items: center;
        text-align: center;
    }
    .first .text, .first .img {
        width: 100%;
        padding: 15px 0;
        text-align: center;
    }
    .img img {
        width: 330px;
        max-width: 90vw;
        margin: 0 auto;
        display: block;
    }
    .info-item {
        width: 95vw;
        min-width: 0;
        font-size: 19.5px;
        align-items: center;
        text-align: center;
    }
    footer {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    footer img {
        width: 10.5vh;
        margin-bottom: 12px;
    }
    .links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .links a, .links span {
        font-size: 16.5px;
        padding: 3px 0;
        text-align: center;
    }
}

/* Phones (max-width: 600px) */
@media (max-width: 600px) {
    html {
        font-size: 19.5px;
    }
    header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 3vw;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    header img {
        width: 9vh;
        margin-bottom: 9px;
    }
    header a {
        font-size: 18px;
        padding: 0 7.5px;
        margin-bottom: 6px;
    }
    .container-1 {
        flex-direction: column;
        height: auto;
        min-height: 90vh;
        padding: 0 3vw;
        align-items: center;
        justify-content: center;
    }
    .container-1 .left, .container-1 .right {
        width: 100%;
        padding: 0 6vw;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .container-1 .left {
        padding-top: 27px;
        padding-left: 0;
    }
    .container-1 .left h1 {
        font-size: 27px;
        margin-bottom: 18px;
    }
    .container-1 .left p {
        font-size: 18px;
        margin-bottom: 27px;
    }
    .container-1 .left .button1,
    .container-1 .left .button2 {
        font-size: 16.5px;
        padding: 10.5px 18px;
        margin: 9px 6px 9px 0;
    }
    .container-1 .right img,
    .ds, .ms {
        width: 180px;
        max-width: 90vw;
        margin: 12px auto;
        display: block;
    }
    .ds, .ms {
        position: static;
    }
    .quad, .trio, .cont {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 21px;
        text-align: center;
    }
    .quad .a, .trio .left .a, .trio .right .a {
        width: 98vw;
        font-size: 18px;
        margin-bottom: 21px;
        align-items: center;
        text-align: center;
    }
    .middle img {
        width: 135px;
        margin: 0 auto;
        display: block;
    }
    .first {
        flex-direction: column;
        padding: 6px;
        align-items: center;
        text-align: center;
    }
    .first .text, .first .img {
        width: 100%;
        padding: 9px 0;
        text-align: center;
    }
    .img img {
        width: 180px;
        max-width: 95vw;
        margin: 0 auto;
        display: block;
    }
    .info-item {
        width: 98vw;
        min-width: 0;
        font-size: 18px;
        padding: 12px;
        align-items: center;
        text-align: center;
    }
    .info-item i {
        font-size: 27px;
    }
    footer {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    footer img {
        width: 9vh;
        margin-bottom: 9px;
    }
    .links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .links a, .links span {
        font-size: 15px;
        padding: 1.5px 0;
        text-align: center;
    }
}

/* --- Always wrap flex children if needed --- */
.container-1,
.quad,
.trio,
.cont,
footer,
.links {
    flex-wrap: wrap;
}

/* --- Center all images and text by default on small screens --- */
@media (max-width: 700px) {
    img, h1, h2, h3, h4, h5, h6, p, .info-item, .quad .a, .trio .left .a, .trio .right .a {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}