html {
    scroll-behavior: smooth;
}

body {
    box-sizing: border-box;
    font-family: "Poppins";
    scroll-behavior: smooth;
    margin: 0;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
}

ol,
ul,
menu {
    list-style: none;
}

:root {
    /* transition */
    --transition-1: 0.15s ease;
    --transition-2: 0.35s ease;
    --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
    --cubic-out: cubic-bezier(0.33, 0.85, 0.56, 1.02);
}


/* ------------------
NAVBAR DESIGN
----------------- */

.header {
    position: relative;
    z-index: 10;
    padding: 32px 48px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.header h1 {
    margin: 0;
    font-size: 20px;
}

.header div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.header .btn-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: black;
    border: 1.5px solid black;
    border-radius: 100px;
    padding: 8px 24px;
    transition: var(--transition-2);
    font-size: 14px;
}

.btn-header:hover {
    background-color: #f3f3f3;
    transition: var(--transition-2);
}

.menu-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: black;
}

.menu-overlay {
    position: fixed;
    top: 30px;
    right: 48px;
    width: 30%;
    height: 90%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 24px;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px 12px 32px;
    color: #fff;
    opacity: 0.7;
}

.menu-header span {
    font-size: 16px;
    font-weight: 400;
}

.close-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-menu svg {
    border: 1px solid #666;
    border-radius: 100px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    opacity: 1;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 32px 32px 32px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-link {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
}

.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-overlay.active .menu-link:nth-child(2) {
    transition-delay: 0.15s;
}

.menu-overlay.active .menu-link:nth-child(3) {
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-link:nth-child(4) {
    transition-delay: 0.25s;
}

.menu-overlay.active .menu-link:nth-child(5) {
    transition-delay: 0.3s;
}

.menu-overlay.active .menu-link:nth-child(6) {
    transition-delay: 0.35s;
}

.menu-link:hover {
    opacity: 0.7;
}

.menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.4s;
}

.menu-overlay.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-contact,
.menu-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-footer a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.menu-footer a:hover {
    opacity: 1;
}

.menu-social ion-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .menu-overlay {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 550px) {
    .header .btn-header {
        display: none;
    }
}



/* ------------------
HERO DESIGN
----------------- */

.hero {
    padding: 32px 48px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.right-gradient {
    position: absolute;
    top: 35%;
    right: 0;
    width: 50%;
    height: 60%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 20%,
            rgba(255, 0, 0, 0.5) 50%,
            rgba(255, 255, 255, 1) 100%);
    z-index: -1;
    background-size: 200% 100%;
    border-radius: 50px;
    filter: blur(50px);
    opacity: 0.5;
    animation: move-gradient 8s ease-in-out infinite;
}

@keyframes move-gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.hero h2 {
    margin: 0;
    font-size: 86px;
    color: #212121;
    display: inline-block;
    font-weight: 500;
    width: 100%;
    opacity: 0;
    animation: fadeInText 1s ease-in-out forwards;
    animation-delay: 0.5s;
    position: relative;
}

.hero h2 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInStagger 1s ease-out forwards;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 span:nth-child(1) {
    animation-delay: 0.3s;
}

.hero h2 span:nth-child(2) {
    animation-delay: 0.6s;
}

.hero h2 span:nth-child(3) {
    animation-delay: 0.9s;
}


/* ------------------
VIDEO DESIGN
----------------- */

.hero video {
    z-index: 100;
    border-radius: 24px;
    margin-top: -100px;
    cursor: pointer;
}


/* ------------------
ABOUT DESIGN
----------------- */

.about {
    margin-top: 10px;
    background-color: #fcfcfc;
    color: #212121;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 102px 48px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.about video {
    width: 300px;
    margin-bottom: -80px;
    border-radius: 24px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    width: 45%;
    color: #212121;
}

.about img {
    margin-top: 40px;
    opacity: 0.8;
}

.about-stats {
    display: flex;
    align-items: flex-end;
}

.stats-column {
    display: flex;
    flex-direction: column;
}

.stat-one {
    padding: 24px;
    background-color: #f3f3f346;
}

.stat-one div {
    background-color: #fcfcfc;
    padding: 16px;
    border-radius: 16px;
}

.stat-one div p {
    color: #212121;
    text-wrap: wrap;
    text-align: left;
    font-size: 16px;
}

.counter {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.stat-one .counter[data-target]:not(:empty) {
    opacity: 1;
}

.about.animate {
    opacity: 1;
    transform: translateY(0);
}

.about h2 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInStagger 1s ease-out forwards;
}

.about.animate h2 span {
    animation: fadeInStagger 1s ease-out forwards;
}

.about h2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    font-weight: 500;
    color: #d5d5d5;
    margin: 0;
    font-size: 16px;
    letter-spacing: 6px;
}

.about p {
    margin: 0;
    color: #212121;
    font-size: 48px;
    width: 120%;
    font-weight: 500;
}

.about h2 span:nth-child(1) {
    animation-delay: 0.3s;
}

.about h2 span:nth-child(2) {
    animation-delay: 0.6s;
}

.about h2 span:nth-child(3) {
    animation-delay: 0.9s;
}

.about p {
    animation-delay: 1.2s;
}

.about p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.about.animate h2,
.about.animate p {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------
SERVICES DESIGN
----------------- */

.services {
    padding: 32px 48px;
    margin-top: 100px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.services-header h2 {
    font-size: 64px;
    font-weight: normal;
    margin: 0;
}

.view-all {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: none;
}

.services-intro {
    font-size: 20px;
    max-width: 800px;
    margin-bottom: 64px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-item:first-child {
    border-top: none;
}

.service-item h3 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 16px;
}

.service-item p {
    font-size: 18px;
    color: #666;
}

.service-image {
    position: absolute;
    top: 0;
    right: -100%;
    width: 500px;
    height: 100%;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    transition: right 0.3s ease-in-out;
}

.service-image img {
    max-width: 100%;
    border-radius: 24px;
    max-height: 100%;
    object-fit: fill;
    width: 100%;
}

.service-item:hover .service-image {
    right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-header h2 {
        font-size: 48px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-intro {
        font-size: 18px;
        margin-bottom: 48px;
    }

    .service-content h3 {
        font-size: 32px;
    }

    .service-content p {
        font-size: 16px;
    }

    .service-image {
        position: static;
        width: 100%;
        height: 200px;
        right: 0;
    }

    .service-item:hover .service-image {
        right: 0;
    }
}

@media (max-width: 480px) {
    .services-header {
        flex-direction: column;
        gap: 16px;
    }

    .services-header h2 {
        font-size: 36px;
    }
}


/* ------------------
FOOTER DESIGN
----------------- */

.contact-section {
    padding: 80px 48px 40px 48px;
    background-color: #212121;
    margin-top: 100px;
}

.container {
    margin: 0 auto;
}

.contact-content {
    color: #fcfcfc;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 120px;
}

.contact-content h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.contact-content p {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    width: fit-content;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.arrow {
    font-size: 1.2em;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: right;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

.credits {
    text-align: center;
    font-size: 16px;
    display: flex;
    color: #fcfcfc;
    margin-top: 40px;
}

.credits a {
    color: #fcfcfc;
    font-weight: 500;
    text-decoration: underline;
}

.credits p:not(:last-child) {
    margin-bottom: 8px;
}

/* Animation styles */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.animate-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for footer items */
.footer-column a.animate-item {
    transition-delay: calc(var(--item-index) * 0.1s);
}

.social-links a.animate-item {
    transition-delay: calc(var(--item-index) * 0.1s + 0.3s);
}

.social-links ion-icon {
    font-size: 24px;
}

.contact-info a.animate-item {
    transition-delay: calc(var(--item-index) * 0.1s + 0.6s);
}

.credits.animate-item {
    transition-delay: 0.9s;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }

    .footer {
        flex-direction: column;
        gap: 40px;
    }

    .footer-social {
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }

    .social-links {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-item {
        transition: none;
        opacity: 1;
        transform: none;
    }
}


/* ------------------
RESPONSIVE DESIGN
----------------- */


@media (max-width: 1200px) {
    .header {
        padding: 24px 32px;
    }

    .hero {
        padding: 24px 32px;
        flex-direction: column;
    }

    .hero h2 {
        font-size: 64px;
    }

    .hero video {
        margin-top: 30px;
        width: 100%;
        height: auto;
    }

    .about {
        flex-direction: row;
        /* align-items: flex-start; */
        align-items: center;
        padding: 64px 32px;
        margin-top: 40px;
    }

    .about-content {
        width: 100%;
    }

    .about p {
        font-size: 36px;
        width: 100%;
    }

    .about-stats {
        width: 100%;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 32px;
    }

    .stat-one {
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .stat-one div {
        border-radius: 24px;
    }

    .services {
        padding: 24px 32px;
    }

    .services-header h2 {
        font-size: 48px;
    }

    .contact-section {
        padding: 64px 32px 32px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .header img {
        width: 100px;
    }

    .menu-overlay {
        width: 100%;
        right: 0;
        top: 0;
        height: 100%;
        border-radius: 0;
    }

    .hero h2 {
        font-size: 48px;
    }

    .about p {
        font-size: 28px;
    }

    .stat-one {
        min-width: 100%;
    }

    .services-header h2 {
        font-size: 36px;
    }

    .service-item h3 {
        font-size: 28px;
    }

    .contact-content h1 {
        font-size: 48px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .header img {
        width: 80px;
    }

    .hero {
        padding: 16px;
        /* flex-direction: column-reverse; */
        /* gap: 40px; */
    }

    /* .hero video {
        margin: 0;
        margin-top: 20px;
        width: 100%;
        border-radius: 0;
    } */

    /* .hero-content {
        padding: 16px;
    } */

    .hero h2 {
        font-size: 36px;
    }

    .video-section h2 {
        font-size: 28px;
        padding: 16px;
    }

    .about {
        padding: 48px 16px;
        flex-direction: column;
    }

    .about h2 {
        font-size: 14px;
    }

    .about p {
        font-size: 24px;
        /* text-align: justify; */
        width: 90%;
    }

    .about img {
        align-self: center;
        width: 200px;
    }

    .services {
        padding: 16px;
    }

    .services-header h2 {
        font-size: 28px;
    }

    .service-item h3 {
        font-size: 24px;
    }

    .contact-section {
        padding: 48px 16px 24px;
    }

    .contact-content h1 {
        font-size: 36px;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}