@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Outfit:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    /* Vibrant Cartoonish Golden Palette */
    --main-color: #ffca28;
    --gold-glow: #ffe066;
    --gold-bright: #fff3a0;
    --amber-deep: #5c3200;
    --amber-bg: #2b1402;
    --text-color: #fff4d1;
    --black: #140800;

    font-family: 'Fredoka', sans-serif;
}

/* Golden Cartoonish Animated Background */
body {
    position: relative;
    width: 100%;
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    background: linear-gradient(-45deg, #2b1402, #421e02, #5e2e00, #361901);
    background-size: 400% 400%;
    animation: goldenFlow 12s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
}

@keyframes goldenFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Sparkle Background FX */
.bg-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatUp 8s linear infinite;
}

.s1 { top: 80%; left: 10%; animation-duration: 7s; }
.s2 { top: 90%; left: 30%; animation-duration: 10s; font-size: 1.5rem; }
.s3 { top: 85%; left: 60%; animation-duration: 6s; }
.s4 { top: 95%; left: 80%; animation-duration: 9s; font-size: 2.5rem; }
.s5 { top: 75%; left: 90%; animation-duration: 11s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

body > * {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.navbar {
    padding: 20px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--gold-glow);
    box-shadow: 0 0 15px var(--main-color);
}

.navbar .logo h2 {
    margin-left: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-glow);
    text-shadow: 2px 2px 0px var(--amber-deep), 0 0 10px var(--main-color);
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--amber-deep);
    background: linear-gradient(180deg, #fff3a0 0%, #ffca28 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 6px 0px var(--amber-deep), 0 0 15px rgba(255, 202, 40, 0.5);
    border-radius: 16px;
    font-weight: 700;
    transition: all .2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0px var(--amber-deep), 0 0 25px var(--gold-glow);
    background: linear-gradient(180deg, #ffffff 0%, #ffe066 100%);
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0px var(--amber-deep);
}

/*---------------- main section ---------*/
.main {
    position: relative;
    padding: 40px;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main_black_shape {
    content: '';
    position: absolute;
    top: 85%;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translate(-50%, 10%) rotate(3deg);
    background-color: var(--amber-bg);
    border-top: 5px solid var(--main-color);
    z-index: 1;
}

.main_bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 224, 102, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.tse_content {
    text-align: center; 
}

.ts_element {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main > * {
    z-index: 1;
}

.main_right_side > * {
    margin-bottom: 20px;
}

.main_left_side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main_left_side img {
    max-width: 550px;
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(255, 202, 40, 0.6));
    animation: cartoonFloat 4s ease-in-out infinite;
}

@keyframes cartoonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.main_right_side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main_right_side h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--gold-glow);
    text-shadow: 3px 3px 0px var(--amber-deep), 0 0 20px rgba(255, 202, 40, 0.8);
}

.main_right_side p {
    max-width: 520px;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    color: #ffffff;
    line-height: 1.5;
    background: rgba(43, 20, 2, 0.6);
    padding: 15px;
    border-radius: 15px;
    border: 2px dashed var(--main-color);
}

/*------------- second_section -------*/
.second_section {
    padding: 60px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.ss_left_side {
    padding: 20px;
    max-width: 780px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

.ss_left_side > * {
    margin-bottom: 20px;
}

.title_container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title_container img {
    max-width: 45px;
    width: 100%;
    max-height: 45px;
    height: 100%;
    margin-right: 10px;
}

.title_container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 45px;
    color: var(--gold-glow);
    text-shadow: 2px 2px 0px var(--amber-deep);
}

.ss_left_side_btns {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ss_right_side {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss_right_side img {
    max-width: 450px;
    width: 100%;
    border-radius: 24px;
    border: 4px solid var(--gold-glow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 25px rgba(255, 202, 40, 0.4);
}

/*------------- third_section ------------*/
.third_section {
    padding: 60px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ts_elements_wrapper {
    padding: 20px;
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ts_elements_wrapper .title_container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ts_element {
    padding: 30px 20px;
    max-width: 380px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: linear-gradient(160deg, #422003 0%, #1a0b01 100%);
    border-radius: 24px;
    border: 3px solid var(--main-color);
    box-shadow: 0 8px 0px var(--amber-deep), 0 10px 20px rgba(0,0,0,0.4);
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ts_element:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-glow);
    box-shadow: 0 14px 0px var(--amber-deep), 0 0 25px rgba(255, 224, 102, 0.4);
}

.ts_element img {
    margin-bottom: 15px;
    max-width: 80px;
    width: 100%;
}

.ts_element h2 {
    margin-bottom: 10px;
    color: var(--gold-glow);
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
}

/*---------------- footer -----------*/
.footer {
    position: relative;
    padding: 60px 40px;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #140800;
    border-top: 4px solid var(--main-color);
}

.footer > * {
    margin-bottom: 20px;
}

.footer img {
    max-width: 200px;
    width: 100%;
}

.footer h1 {
    font-size: 16px;
    text-align: center;
    color: var(--main-color);
    font-weight: 400;
    line-height: 1.6;
}

.footer_social_media {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.footer_social_media a img {
    max-width: 38px;
    width: 100%;
    transition: transform 0.3s ease;
}

.footer_social_media a img:hover {
    transform: scale(1.25) rotate(5deg);
}

/* Responsive */
@media only screen and (max-width: 1000px) {
    .main, .second_section {
        flex-direction: column;
    }

    .main_left_side, .main_right_side {
        width: 100%;
    }

    .second_section {
        flex-direction: column-reverse;
    }
}

@media only screen and (max-width: 500px) {
    .main_right_side h1, .title_container h1 {
        font-size: 32px;
    }

    .ss_left_side_btns {
        flex-direction: column;
        width: 100%;
    }

    .ss_left_side_btns a {
        width: 100%;
        text-align: center;
    }
}