/* =====================
   ROOT & VARIABLES
===================== */
:root {
    --brown: #574430;
    --brown-dark: #3D2E1F;
    --gold: #F4A836;
    --gold-dark: #C4871E;
    --gold-light: #FFD180;
    --sandy: #F5C87A;
    --sandy-light: #FDECC8;
    --orange: #E8A434;
    --orange-dark: #D4872A;
    --bg-primary: #F0B849;
    --bg-dark: #8B5E2F;
    --text-brown: #5A3A1A;
}

/* =====================
   FONTS
===================== */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Permanent+Marker&family=Londrina+Solid:wght@100;300;400;900&display=swap');

.font-londrina {
    font-family: "Londrina Solid", sans-serif;
    font-weight: 400;
}

.font-londrina-bold {
    font-family: "Londrina Solid", sans-serif;
    font-weight: 900;
}

.font-creepy {
    font-family: "Creepster", cursive;
}

.font-marker {
    font-family: "Permanent Marker", cursive;
}

/* =====================
   GLOBAL
===================== */
html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    background-color: var(--bg-primary);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

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

button,
nav a,
img {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.95);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* =====================
   SANDY DOTS PATTERN
===================== */
.sandy-pattern {
    position: relative;
}

.sandy-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(139, 94, 47, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* =====================
   NAVIGATION
===================== */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--gold-dark);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    padding-bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--gold-dark);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =====================
   MOBILE MENU
===================== */
#mobile-menu {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}

/* =====================
   FOLLOWER MASCOT
===================== */
#follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: url('https://soniclinguistic.id/css/assets/images/MASKOT.webp') center / contain no-repeat;
    pointer-events: none;
    transform: translate(-25%, -30%);
    z-index: 999999;
    display: none;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.countdown-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* =====================
   GOLD SHIMMER EFFECT
===================== */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% auto;
    animation: goldShimmer 3s linear infinite;
}

/* =====================
   BUTTONS - EGYPTIAN STYLE
===================== */
.btn-egypt {
    background: linear-gradient(180deg, #8B6530 0%, #5A3A1A 100%);
    color: #FFD180;
    font-family: "Londrina Solid", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 40px;
    border-radius: 16px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 209, 128, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-egypt:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 209, 128, 0.5);
    background: linear-gradient(180deg, #9B7540 0%, #6A4A2A 100%);
}

.btn-egypt:active {
    transform: scale(0.98);
}

/* =====================
   PYRAMID DECORATIONS
===================== */
.pyramid-left,
.pyramid-right {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.pyramid-left {
    left: -5%;
    width: 35%;
    max-width: 400px;
}

.pyramid-right {
    right: -5%;
    width: 40%;
    max-width: 500px;
}

/* =====================
   COMPETITION CAROUSEL 
===================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.carousel-slide img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gold);
    font-size: 3rem;
    font-weight: bold;
    cursor: none;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 10px;
}

.carousel-btn:hover {
    color: var(--gold-light);
    transform: translateY(-50%) scale(1.2);
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

.carousel-label {
    font-family: "Londrina Solid", sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--sandy-light);
    margin-top: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* =====================
   TIMELINE VERTICAL
===================== */
.timeline-vertical {
    position: relative;
    padding: 40px 0;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/gelombang.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200% 100%;
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 42%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transform: scale(3);
}

.timeline-content {
    width: 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.timeline-content img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* =====================
   ABOUT US BOX
===================== */
.about-box {
    background: linear-gradient(180deg, #6B4420 0%, #4A2E14 100%);
    border: 3px solid var(--gold);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 209, 128, 0.15);
    color: var(--sandy-light);
    font-family: "Londrina Solid", sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* =====================
   CONTACT SECTION
===================== */
.contact-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg, #8B6530 0%, #5A3A1A 100%);
    color: var(--gold-light);
    font-family: "Londrina Solid", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 16px 32px;
    border-radius: 16px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 209, 128, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
}

.contact-btn:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #9B7540 0%, #6A4A2A 100%);
}

/* =====================
   SOCIAL ICONS ROW
===================== */
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

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

.social-icons a img,
.social-icons a i {
    font-size: 32px;
}

/* =====================
   WAVE ORNAMENT
===================== */
.wave-ornament {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* =====================
   BIRD ORNAMENTS
===================== */
.bird-left,
.bird-right {
    position: absolute;
    width: 80px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    animation: birdFloat 4s ease-in-out infinite;
}

.bird-left {
    left: 5%;
    top: 20%;
}

.bird-right {
    right: 5%;
    bottom: 20%;
    animation-delay: 2s;
}

@keyframes birdFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

/* =====================
   SECTION TITLE IMAGES
===================== */
.section-title-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* =====================
   SPACING UTILITIES
===================== */
.section-spacing {
    margin-top: 3rem;
}

.section-spacing-lg {
    margin-top: 4rem;
}

/* =====================
   RESPONSIVE
===================== */
/* Mobile - tablets and below */
@media (max-width: 768px) {
    #follower {
        display: none !important;
    }

    /* Hide custom cursor on mobile */
    html,
    a,
    button,
    input,
    textarea,
    select,
    [role="button"] {
        cursor: auto !important;
    }

    .pyramid-left {
        width: 40%;
        left: -8%;
        opacity: 0.5;
    }

    .pyramid-right {
        width: 45%;
        right: -8%;
        opacity: 0.5;
    }

    .carousel-slide img {
        max-width: 220px;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 8px;
    }

    .carousel-label {
        font-size: 1.1rem;
    }

    .timeline-icon img {
        max-width: 50px;
    }

    .timeline-content img {
        max-width: 140px;
    }

    .about-box {
        padding: 20px 16px;
        font-size: 0.85rem;
        line-height: 1.6;
        border-radius: 18px;
        border-width: 2px;
    }

    .bird-left,
    .bird-right {
        width: 50px;
    }

    .btn-egypt {
        padding: 10px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .contact-btn {
        font-size: 1.1rem;
        padding: 14px 20px;
        border-radius: 14px;
    }

    .section-title-img {
        max-width: 240px;
        margin-bottom: 16px;
    }

    .wave-ornament {
        max-width: 200px;
    }

    .carousel-wrapper {
        max-width: 90vw;
    }
}

/* Extra small phones (iPhone SE, older Android, etc) */
@media (max-width: 380px) {
    .btn-egypt {
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .contact-btn {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .carousel-slide img {
        max-width: 180px;
    }

    .carousel-btn {
        font-size: 1.5rem;
    }

    .carousel-label {
        font-size: 1rem;
    }

    .timeline-icon img {
        max-width: 40px;
    }

    .timeline-content img {
        max-width: 120px;
    }

    .about-box {
        padding: 16px 14px;
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .section-title-img {
        max-width: 200px;
    }
}

@media (min-width: 769px) {
    #follower {
        display: block;
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 640px) {
    .section-spacing {
        margin-top: 5rem;
    }

    .section-spacing-lg {
        margin-top: 8rem;
    }
}

@media (min-width: 1024px) {
    .section-spacing {
        margin-top: 8rem;
    }

    .section-spacing-lg {
        margin-top: 12rem;
    }

    .carousel-slide img {
        max-width: 320px;
    }

    .section-title-img {
        max-width: 420px;
    }

    .about-box {
        padding: 40px 36px;
        font-size: 1.05rem;
    }
}

@media (min-width: 1280px) {
    .section-spacing-lg {
        margin-top: 15rem;
    }
}

/* =====================
   JUMPSCARE (kept from original)
===================== */
#sonlis-jumpscare {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#sonlis-jumpscare img {
    width: 90vw;
    max-width: 900px;
    transform: scale(0.6);
    transition: transform 0.15s ease;
    animation: shake 0.15s infinite;
}

#sonlis-jumpscare.active {
    opacity: 1;
    pointer-events: auto;
}

#sonlis-jumpscare.active img {
    transform: scale(1);
}

@keyframes shake {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(6px, -6px) scale(1);
    }

    50% {
        transform: translate(-6px, 6px) scale(1);
    }

    75% {
        transform: translate(6px, 6px) scale(1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}