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

body {
    margin: 0;
    padding: 0;
    background: #0A2147;
    min-height: 100dvh;
    color: white;
    font-family: 'Graphik Compact', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: url('public/background.webp') center/cover;
}

/* Wave Background */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Initial Logo Animation */
.logo-initial {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    visibility: hidden;
    animation: logoGlow 2s ease-in-out forwards;
}

@keyframes logoGlow {
    0% {
        filter: 
            drop-shadow(0 30px 10px rgba(255, 255, 255, 0))
            drop-shadow(0 25px 8px rgba(255, 255, 255, 0.1))
            drop-shadow(0 20px 6px rgba(255, 255, 255, 0.2));
    }
    50% {
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
    }
    95% {
        filter: 
            drop-shadow(0 -30px 10px rgba(255, 255, 255, 0))
            drop-shadow(0 -25px 8px rgba(255, 255, 255, 0))
            drop-shadow(0 -20px 6px rgba(255, 255, 255, 0));
    }
    100% {
        filter: none;
    }
}

.logo-icon {
    width: 9.375rem;
    height: auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 50;
    visibility: hidden;
}

.logo-header img {
    height: 3.75rem;
    width: auto;
    z-index: 110;
}

.social-container {
    position: fixed;
    bottom: 5.5rem;
    right: 3.5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0rem;
    z-index: 50;
}

.stay-connected {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Graphik Compact';
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #78E3D4;
    opacity: 0.5;
    margin-top: 0.3125rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon img[alt="Facebook"] {
    height: 1.25rem;
    width: 0.8125rem;
}

.social-icon:hover {
    transform: translateX(-0.125rem);
}

.social-icons a img {
    width: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Main Content Sections */
main {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

section {
    position: absolute;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-slider {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: default;
}

.swiper-slide-active {
    opacity: 1;
}

/* Hide Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* Swiper Pagination Styles */
.swiper-pagination {
    display: flex !important;
    flex-direction: column;
    gap: 0.1rem;
    right: 2.5rem !important;
    padding-bottom: 2rem;
    left: auto !important;
    opacity: 0;
    pointer-events: none;
}

.swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Welcome Section Styles */
.welcome-section,
.about-racing-section,
.about-dcb-section {
    position: relative;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.welcome-section {
    z-index: 3;
    visibility: hidden;
    display: flex;
    justify-content: flex-start;
    padding: 0 0 7rem 2.5rem;
    align-items: flex-end;
}

.welcome-content {
    width: 100%;
    max-width: 43.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.welcome-section h1 {
    font-family: 'Graphik Compact';
    font-weight: 600;
    font-size: 4rem;
    margin-bottom: -1.25rem;
    color: white;
    text-align: left;
}

.welcome-logo {
    width: 43.75rem;
    max-width: 50rem;
    height: auto;
}

.about-racing-section,
.about-dcb-section {
    z-index: 2;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.about-racing-section > div,
.about-dcb-section > div {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-racing-section h2,
.about-dcb-section h2 {
    font-family: 'Cornero';
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: #78E3D4;
    padding-left: 2.5rem;
    width: 100%;
}

.about-racing-section p,
.about-dcb-section p:not(.racing-experience) {
    font-family: 'Graphik Compact';
    font-size: 1.125rem;
    max-width: 50.75rem;
    line-height: 1.6;
    margin-bottom: 0.65rem;
    padding-left: 2.5rem;
    color: white;
    width: 100%;
}

.about-racing-section {
    padding-bottom: 10rem;
}

.about-dcb-section {
    z-index: 1;
    padding-bottom: 7rem;
}

.racing-experience {
    font-family: 'Graphik Compact';
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-top: 1rem;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border: none;
}

::-webkit-scrollbar-thumb {
    background: #78E3D4;
    border-radius: 20px;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #4AFF00;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #78E3D4 transparent;
}

/* Responsive Styles */
.mobile-title {
    display: none;
    font-family: 'Cornero';
    font-style: italic;
    color: #4AFF00;
    text-align: center;
    margin: 0;
}

@media (max-width: 1024px) {
    /* Tablet styles */
    .welcome-logo {
        display: none;
    }

    .mobile-title {
        display: block;
        font-size: 3.5rem;
        text-align: left;
        letter-spacing: 4px;
        font-weight: 200;
    }

    .welcome-section h1 {
        margin-bottom: 0;
        font-size: 4rem;
    }

    .welcome-content {
        max-width: 32.75rem;
        gap: 1rem;
    }

    .about-racing-section h2,
    .about-dcb-section h2 {
        max-width: 38rem;
    }

    .about-racing-section p,
    .about-dcb-section p:not(.racing-experience) {
        max-width: 38rem;
    }
}

@media (max-width: 768px) {
    /* Mobile styles */

    body {
        background: url('public/background-m.webp') center/cover;
    }

    .background {
        background: url('public/background-m.webp') center/cover;
    }
    
    .mobile-title {
        display: block;
        font-size: 2.8rem;
        text-align: left;
        letter-spacing: 1px;
        font-weight: 200;
    }

    .welcome-section {
        padding: 0 0 3rem 2.5rem;
        align-items: center;
    }

    .welcome-section h1 {
        margin-bottom: 0;
        font-size: 3rem;
    }

    .swiper-pagination {
        padding-bottom: 0rem;
    }

    .about-racing-section h2,
    .about-dcb-section h2 {
        max-width: 32rem;
        font-size: 1.8rem;
    }

    .about-racing-section p,
    .about-dcb-section p:not(.racing-experience) {
        max-width: 28rem;
        font-size: 0.9rem;
    }

    .stay-connected {
        font-size: 1.3rem;
        margin-right: -0.5rem;
    }

    .social-icons a img {
        width: 1.2rem;
    }

    .about-racing-section,
    .about-dcb-section {
        padding: 1rem;
        align-items: center;
    }

    .racing-experience {
        font-size: 0.9rem;
        max-width: 85vw;
    }

    .welcome-content {
        padding: 1rem;
    }

    .about-racing-section {
        padding: 0rem 0rem 5rem 0rem;
    }

    .about-dcb-section {
        padding: 0rem 0rem 3rem 0rem;
    }

    .social-container {
        gap: 0rem;
    }

    .social-icons {
        gap: 1.3rem;
    }

    main, section {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        height: 100dvh;
        min-height: -webkit-fill-available;
    }
}

@media (max-width: 600px) {
    /* Large mobile styles */

    .welcome-section h1 {
        font-size: 2.4rem;
    }

    .mobile-title {
        font-size: 2.4rem;
    }

    .about-racing-section h2,
    .about-dcb-section h2 {
        max-width: 25rem;
    }

    .about-racing-section p,
    .about-dcb-section p:not(.racing-experience) {
        max-width: 25rem;
    }

    .racing-experience {
        padding-right: 2.5rem;
    }

    .stay-connected {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* Small mobile styles */

    .welcome-section h1 {
        font-size: 2.2rem;
    }

    .mobile-title {
        font-size: 2.2rem;
    }

    .about-racing-section h2,
    .about-dcb-section h2 {
        max-width: 22rem;
    }

    .about-racing-section p,
    .about-dcb-section p:not(.racing-experience) {
        max-width: 22rem;
    }

    .social-icons a img {
        width: 1.2rem;
    }
}

@media (max-width: 440px) {
    /* Very small mobile styles */

    .welcome-section h1 {
        font-size: 1.9rem;
    }

    .mobile-title {
        font-size: 1.9rem;
    }

    .welcome-section {
        padding: 0 2.5rem 2rem 1rem;
    }
    .about-racing-section h2,
    .about-dcb-section h2 {
        font-size: 1.7rem;
        max-width: 70vw;
    }

    .about-racing-section p,
    .about-dcb-section p:not(.racing-experience) {
        max-width: 70vw;
        font-size: 0.9rem;
    }

    .stay-connected {
        font-size: 1rem;
    }

    .social-icons a img {
        width: 1rem;
    }
}
