/* GLOBAL RESET */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --salmon: #f4a99a;
    --salmon-light: #fdf0ed;
    --salmon-mid: #f7c4ba;
    --salmon-dark: #c46f5e;
    --salmon-deep: #8b3d30;
    --dark: #1e1e1e;
    --dark-mid: #252525;
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.55);
    --white-faint: rgba(255, 255, 255, 0.15);
    --accent: #f4a99a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: clip !important;
    scroll-behavior: smooth;
}

header {
    background-color: var(--salmon-light);
}

/* ✅ SMOOTH STICKY HEADER BASE */
.main-header {
    width: 100%;
    position: relative;
    transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
    z-index: 1000;
    will-change: transform;
}

/* ✅ STICKY ACTIVE STATE */
.main-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--salmon-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    animation: smoothSticky 0.35s ease forwards;
}

/* ✅ SMOOTH SLIDE + FADE ANIMATION */
@keyframes smoothSticky {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* NAVIGATION BAR */
nav {
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--salmon-mid);
    font-family: "Montserrat", sans-serif;
    position: relative;
    z-index: 1000;
}

.logo {
    height: clamp(90px, 12vw, 125px);
    cursor: pointer;
}

#check {
    position: absolute;
    opacity: 0;
}

.CheckBtn {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: var(--salmon-dark);
    line-height: 80px;
}

/* NAV LINKS */
.list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    transition: all 0.3s ease-in;
}

.list li {
    margin: 0 20px;
    padding: 6px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.list li:hover {
    transform: translateY(-5px);
}

.list li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--salmon-dark);
    transition: color 0.3s ease;
}

.list li a:hover {
  color: var(--salmon-deep);
  border-bottom: 1px solid #795f42;
}

.list li a i {
    margin-right: 10px;
}

/* DESKTOP STICKY FIX */
.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}


/* Responsive Code */

@media screen and (max-width: 1024px) {
    .list li {
        margin: 0 16px;
    }

    .list li a {
        font-size: 16px;
    }
}

@media screen and (max-width: 923px) {

    /* Header - Navbar */
    .list li {
        margin: 0 12px;
    }

    .list li a {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    /* Header - Navbar */

    /* STICKY SECTION */
    .sticky {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #10061e;
        z-index: 1000;
        transition: top 0.3s;
    }

    nav {
        position: relative;
        overflow-x: hidden;
        padding: 10px 0 0 0;
        justify-content: space-around;
    }

    .CheckBtn {
        display: block;
        z-index: 1002;
    }

    .list {
        position: fixed;
        top: 100px;
        right: 0;
        width: 100vw;
        height: 74vh;
        background: var(--salmon-light);
        color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(100vw);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    #check:checked~.list {
        transform: translateX(0);
        visibility: visible;
    }

    .list li {
        margin: 0;
        padding: 12px 0;
    }

    .list li a {
        font-size: 18px;
        color: var(--salmon-deep);
    }

    .list li:hover {
        transform: none;
    }
}