/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

    /**
   * colors (Palette)
   */

    --raisin-black: hsla(231, 10%, 14%, 1);
    --roman-silver: rgb(200, 200, 200);
    --eerie-black: hsla(228, 9%, 10%, 1);
    --eerie-black-60: hsla(228, 9%, 10%, 0.6);
    --black: hsla(0, 0%, 0%, 1);
    --white: hsla(0, 0%, 100%, 1);
    --white_a10: hsla(0, 0%, 100%, 0.1);
    --white_a5: hsla(0, 0%, 100%, 0.05);
    --lime: #e9fa00;

    /**
     * Semantic Colors (Default Dark)
     */
    --bg-body: var(--eerie-black);
    --bg-header: var(--eerie-black);
    --bg-header-active: var(--eerie-black-60);
    --bg-footer: var(--raisin-black);
    --bg-preloader: var(--eerie-black);
    --bg-card: var(--white);
    --bg-hero-text: hsla(228, 9%, 10%, 0.5);

    /* Navbar Toggle Defaults (Dark Theme) */
    --bg-nav-toggle: var(--white);
    --color-nav-toggle-line: var(--black);

    --text-body: var(--roman-silver);
    --text-heading: var(--white);
    --text-card: var(--raisin-black);
    /* Cards are usually white bg in dark theme */
    --text-nav: var(--raisin-black);
    /* Nav dropdown is white */

    --accent-color: var(--lime);
    --accent-hover: var(--white);

    --accent-hover: var(--white);

    --shadow-color: var(--eerie-black);
    --shadow-color: var(--eerie-black);
    --hero-heading-shadow: var(--eerie-black);
    --hero-body-shadow: var(--eerie-black);

    /**
   * typography
   */

    --ff-syne: 'Syne', sans-serif;

    --fs-1: 4.8rem;
    --fs-2: 4.5rem;
    --fs-3: 4rem;
    --fs-4: 2.4rem;
    --fs-5: 2rem;
    --fs-6: 1.8rem;
    --fs-7: 1.4rem;
    --fs-8: 1.2rem;

    --fw-800: 800;
    --fw-700: 700;

    /**
   * spacing
   */

    --section-padding: 100px;

    /**
   * border radius
   */

    --radius-pill: 100px;
    --radius-circle: 50%;
    --blob-radius: 52% 48% 59% 41% / 53% 40% 60% 47%;

    /**
   * transition
   */

    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease;
    --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
    --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
    --cubic-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --cubic-ease-out: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);

}

/**
 * LIGHT THEME
 * Applied via [data-theme="light"] or system preference
 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-body: #a0a0a0;
        /* Darkened further */
        --bg-header: #a0a0a0;
        --bg-header-active: hsla(0, 0%, 60%, 0.9);
        --bg-footer: #808080;
        --bg-preloader: #a0a0a0;
        --bg-card: #c0c0c0;
        --bg-hero-text: hsla(0, 0%, 100%, 0.6);

        --text-body: #111111;
        /* Darker text for contrast on darker grey */
        --text-heading: #000000;
        --text-card: #111111;
        --text-nav: #111111;

        --accent-color: #e9fa00;
        /* Original Lime */
        --accent-hover: #333333;

        --shadow-color: rgba(0, 0, 0, 0.1);
        --hero-heading-shadow: #000000;
        /* Strong dark shadow for title */
        --hero-body-shadow: rgba(0, 0, 0, 0.3);
        /* Lighter shadow for text */

        /* Burger Menu overrides for Light Mode */
        --bg-nav-toggle: #222222;
        --color-nav-toggle-line: #ffffff;

        /* Overrides for specific elements usually light in dark mode */
        --white: #000000;
        /* Headings are now full black */
        --eerie-black: #ffffff;
        --raisin-black: #808080;
    }
}

[data-theme="light"] {
    --bg-body: #a0a0a0;
    --bg-header: #a0a0a0;
    --bg-header-active: hsla(0, 0%, 60%, 0.9);
    --bg-footer: #808080;
    --bg-preloader: #a0a0a0;
    --bg-card: #c0c0c0;
    --bg-hero-text: hsla(0, 0%, 100%, 0.6);

    --text-body: #111111;
    --text-heading: #000000;
    --text-card: #111111;
    --text-nav: #111111;

    --accent-color: #e9fa00;
    --accent-hover: #333333;

    --shadow-color: rgba(0, 0, 0, 0.1);
    --hero-heading-shadow: #000000;
    --hero-body-shadow: rgba(0, 0, 0, 0.3);

    --bg-nav-toggle: #222222;
    --color-nav-toggle-line: #ffffff;

    --white: #000000;
    --eerie-black: #ffffff;
    --raisin-black: #808080;
}

[data-theme="dark"] {
    --bg-body: hsla(228, 9%, 10%, 1);
    --bg-header: hsla(228, 9%, 10%, 1);
    --bg-header-active: hsla(228, 9%, 10%, 0.6);
    --bg-footer: hsla(231, 10%, 14%, 1);
    --bg-preloader: hsla(228, 9%, 10%, 1);
    --bg-card: hsla(0, 0%, 100%, 1);
    --bg-hero-text: hsla(228, 9%, 10%, 0.5);

    --text-body: rgb(200, 200, 200);
    --text-heading: hsla(0, 0%, 100%, 1);
    --text-card: hsla(231, 10%, 14%, 1);

    --accent-color: #e9fa00;
    --accent-hover: hsla(0, 0%, 100%, 1);

    --shadow-color: hsla(228, 9%, 10%, 1);

    --white: hsla(0, 0%, 100%, 1);
    --eerie-black: hsla(228, 9%, 10%, 1);
    --raisin-black: hsla(231, 10%, 14%, 1);

    --bg-nav-toggle: var(--white);
    --color-nav-toggle-line: var(--black);
}






/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a,
img,
span,
data,
button,
ion-icon {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    height: auto;
}

button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

ion-icon {
    pointer-events: none;
}

html {
    font-family: var(--ff-syne);
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-size: 1.6rem;
    line-height: 1.75;
    overflow: hidden;
}

body.loaded {
    overflow: overlay;
}

body.nav-active {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--white);
    border-radius: 20px;
}





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
    padding-inline: 12px;
}

.section {
    padding-block: var(--section-padding);
}

.h1 {
    font-size: var(--fs-3);
    font-weight: var(--fw-800);
}

.h1,
.h2,
.h4 {
    color: var(--text-heading);
    line-height: 1;
}

.h2 {
    font-size: var(--fs-2);
}

.h3 {
    color: var(--text-heading);
    font-size: var(--fs-4);
    line-height: 1.5;
}

.h4 {
    font-size: var(--fs-5);
}

.h2,
.h3,
.h4 {
    font-weight: var(--fw-700);
}

.w-100 {
    width: 100%;
}

.has-before {
    position: relative;
    z-index: 1;
}

.has-before::before {
    position: absolute;
    content: "";
    z-index: -1;
}

.btn {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: max-content;
    min-width: max-content;
    padding: 20px 32px;
}

.btn::before {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border: 2px solid var(--white_a5);
    border-radius: var(--radius-circle);
    transition: var(--cubic-bounce);
}

.btn:is(:hover, :focus-visible)::before {
    left: calc(100% - 70px);
}

.section-subtitle {
    text-transform: uppercase;
    font-size: var(--fs-8);
    font-weight: var(--fw-700);
    margin-block-end: 20px;
    letter-spacing: 2px;
}

.section-title {
    margin-block-end: 45px;
}

.text-lg {
    font-family: var(--ff-syne);
    font-size: var(--fs-1);
}

.layer-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider {
    --slider-items: 1;
    --item-gap: 12px;

    margin-block-start: 60px;
    overflow: hidden;
    position: relative;
}

.slider-container {
    position: relative;
    display: flex;
    gap: var(--item-gap);
    transition: transform var(--cubic-ease-out);
}

.slider-item {
    --total-gap: calc(var(--item-gap) * (var(--slider-items) - 1));
    --item-width: calc((100% / var(--slider-items)) - (var(--total-gap) / var(--slider-items)));

    min-width: var(--item-width);
    width: var(--item-width);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
    z-index: 2;
    pointer-events: none;
}

.slider-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: hsla(0, 0%, 0%, 0.3);
    border: none;
    color: var(--accent-color);
    display: grid;
    place-items: center;
    font-size: 24px;
    transition: var(--transition-1);
    pointer-events: auto;
}

.slider-control:is(:hover, :focus-visible) {
    background-color: var(--accent-color);
    color: var(--accent-hover);
    transform: scale(1.1);
}

.img-holder {
    aspect-ratio: var(--width) / var(--height);
    background-color: var(--white_a5);
    overflow: hidden;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/*-----------------------------------*\
  #PRELOADER
\*-----------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-preloader);
    z-index: 10;
    display: grid;
    place-items: center;
    transition: var(--transition-2);
    transition-delay: 0.5s;
}

.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.preloader .circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--raisin-black);
    border-top-color: var(--white);
    border-radius: var(--radius-circle);
    animation: rotate360 1s linear infinite;
    transition: var(--transition-2);
}

@keyframes rotate360 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(1turn);
    }
}

.preloader.loaded .circle {
    opacity: 0;
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    padding-block: 24px;
    z-index: 4;
    transition: var(--transition-1);
}

.header.active {
    background-color: var(--bg-header-active);
    padding-block: 16px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle-btn {
    width: 50px;
    height: 50px;
    background-color: var(--bg-nav-toggle);
    border-radius: var(--radius-circle);
    display: grid;
    place-content: center;
    gap: 8px;
    transition: var(--transition-1);
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-toggle-btn:is(:hover, :focus-visible) {
    gap: 10px;
}

.nav-toggle-btn.active {
    gap: 8px;
}

.nav-toggle-btn .line {
    width: 25px;
    height: 2px;
    background-color: var(--color-nav-toggle-line);
    transition: var(--transition-1);
}

.nav-toggle-btn.active .line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle-btn.active .line-2 {
    transform: rotate(-45deg) translate(3px, -2px);
}

.navbar {
    position: absolute;
    top: 100%;
    right: -370px;
    max-width: 370px;
    width: 100%;
    background-color: var(--white);
    height: 100vh;
    text-align: center;
    padding: 56px 40px;
    visibility: hidden;
    transition: 0.25s var(--cubic-in);
    z-index: 1;
}

.navbar.active {
    transform: translateX(-370px);
    visibility: visible;
    transition-timing-function: var(--cubic-out);
}

.navbar-link {
    color: var(--raisin-black);
    font-size: var(--fs-6);
    font-weight: var(--fw-700);
    padding-block: 10px;
    transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible) {
    text-shadow: 1px 0 0 var(--shadow-color);
}

.overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
}

.overlay.active {
    display: block;
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
    padding-block-start: 130px;
}

.hero-title {
    text-transform: uppercase;
    word-break: break-all;
    color: var(--accent-color);
    background-color: var(--bg-hero-text);
    padding: 10px;
    border-radius: 2px;
    display: inline-block;
    text-shadow: 2px 2px 0 var(--hero-heading-shadow);
}

.hero-subtitle {
    font-size: var(--fs-8);
    text-transform: uppercase;
    font-weight: var(--fw-700);
    color: var(--text-heading);
    letter-spacing: 2px;
    line-height: 1.5em;
    margin-block: 10px 0px;
    background-color: var(--bg-hero-text);
    padding: 10px;
    border-radius: 2px;
    display: inline-block;
    text-shadow: 2px 2px 0 var(--shadow-color);
}

.hero-banner {
    border-radius: var(--blob-radius);
    overflow: hidden;
    animation: blobAnim 30s linear infinite;
}

@keyframes blobAnim {

    0%,
    100% {
        border-radius: var(--blob-radius);
    }

    10% {
        border-radius: 33% 67% 50% 50% / 43% 39% 61% 57%;
    }

    20% {
        border-radius: 51% 49% 31% 69% / 65% 39% 61% 35%;
    }

    30% {
        border-radius: 51% 49% 56% 44% / 45% 39% 61% 55%;
    }

    40% {
        border-radius: 66% 34% 33% 67% / 48% 71% 39% 52%;
    }

    50% {
        border-radius: 46% 54% 33% 67% / 48% 30% 70% 52%;
    }

    60% {
        border-radius: 46% 54% 56% 44% / 48% 30% 70% 52%;
    }

    70% {
        border-radius: 46% 54% 56% 44% / 65% 53% 47% 35%;
    }

    80% {
        border-radius: 67% 33% 56% 44% / 37% 53% 47% 63%;
    }

    90% {
        border-radius: 46% 54% 32% 68% / 37% 53% 47% 63%;
    }

}

.hero .section-text {
    margin-block: 0px;
    background-color: var(--bg-hero-text);
    padding: 10px;
    border-radius: 2px;
    text-shadow: 1px 1px 0 var(--hero-body-shadow);
}

.hero .btn {
    margin-inline: auto;
}





/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service-card {
    position: relative;
    background-color: var(--bg-card);
    height: 100%;
    padding: 60px 40px 40px;
    transition: var(--transition-2);
}

.service-card .card-icon ion-icon {
    color: var(--content-color, var(--text-card));
    font-size: 6rem;
    --ionicon-stroke-width: 15px;
}

.service-card .card-title {
    color: var(--content-color, var(--text-card));
    margin-block: 20px;
}

.service-card .card-text {
    color: var(--content-color);
}

.service-card .card-number {
    margin-inline-start: auto;
    font-weight: var(--fw-800);
    line-height: 0.6;
    max-width: max-content;
    margin-block-start: 32px;
    -webkit-text-stroke: 1px var(--content-color, var(--black));
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
}

.service-card:is(:hover, :focus-within) {
    background-color: var(--raisin-black);
    /* This can stay semantic-ish as hover state */
    --content-color: var(--white);
}

.service-list {
    display: flex;
    /* Ensure it is flex for slider logic if not covered by slider-container class yet */
}





/*-----------------------------------*\
  #SKILLS
\*-----------------------------------*/

.skills .section-text {
    margin-block-end: 20px;
}

.skills .btn {
    margin-block: 45px;
}

.skills-list li:not(:last-child) {
    margin-block-end: 30px;
}

.progress-wrapper {
    display: flex;
    justify-content: space-between;
    font-weight: var(--fw-700);
    margin-block-end: 5px;
}

.progress-bg {
    height: 6px;
    background-color: var(--raisin-black);
    border-radius: var(--radius-pill);
}

.progress {
    height: inherit;
    background-color: var(--white);
    border-radius: inherit;
}





/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.portfolio .slider {
    position: relative;
    --item-gap: 16px;
}

.portfolio-card {
    position: relative;
    background-color: transparent;
    transition: var(--cubic-ease-out);
}

.portfolio-card .img-cover {
    transition: var(--cubic-ease-out);
}

.portfolio-card .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    width: 100%;
    transform: translate(-55%, -50%);
    opacity: 0;
    transition: var(--cubic-ease-out);
    z-index: 1;
}

.portfolio-card .card-text {
    color: var(--white);
    /* Keep white as it's over images */
}

.portfolio-card:is(:hover, :focus-within) .img-cover {
    opacity: 0.1;
    transform: scale(0.95);
}

.portfolio-card:is(:hover, :focus-within) .card-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}





/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-list {
    display: grid;
    gap: 60px;
}

.blog-card {
    display: grid;
    gap: 40px;
}

.blog-card .card-content {
    display: flex;
    gap: 16px;
    padding-inline: 16px;
}

.blog-card .time {
    font-size: var(--fs-7);
}

.blog-card .time .span {
    color: var(--white);
    font-weight: var(--fw-700);
    line-height: 0.9;
}

.blog-card .card-text {
    margin-block: 20px;
}





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
    background-color: var(--bg-footer);
    padding-block: 76px;
}

.footer .h4 {
    color: var(--accent-color);
}

.footer .footer-list ion-icon {
    font-size: 20px;
    color: var(--accent-color);
    margin-right: 10px;
    display: inline-block;
}


/*-----------------------------------*\
  #IMAGE MODAL
\*-----------------------------------*/

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-2);
}

.image-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(228, 9%, 10%, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 10;
    padding: 24px;
    max-width: 90%;
    max-height: 90vh;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3.2rem;
    color: var(--white);
    transition: var(--transition-1);
}

.modal-close-btn:is(:hover, :focus-visible) {
    color: var(--accent-color);
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.5);
}

.cursor-pointer {
    cursor: pointer;
}



.footer .footer-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer .container {
    display: grid;
    gap: 20px;
}

.social-list {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 2px solid var(--white_a10);
    border-radius: var(--radius-circle);
    color: var(--accent-color);
    transition: var(--transition-1);
}

.social-link:is(:hover, :focus-visible) {
    border-color: var(--white);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

    /**
   * REUSED STYLE
   */

    .container {
        max-width: 570px;
        width: 100%;
        margin-inline: auto;
    }

    .slider {
        --slider-items: 2;
    }





    /**
   * BLOG
   */

    .blog-card .card-content {
        padding-inline: 32px;
        gap: 32px;
    }



    /**
   * FOOTER
   */

    .footer-list-title {
        margin-block-end: 8px;
    }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

    /**
   * CUSTOM PROPERTY
   */

    :root {

        /**
     * typography
     */

        --fs-2: 6rem;
        --fs-3: 5.5rem;

    }



    /**
   * REUSED STYLE
   */

    .container {
        max-width: 720px;
    }

    .title-wrapper {
        display: flex;
        gap: 10%;
    }

    .title-wrapper>* {
        flex: 1;
    }

    .title-wrapper .section-title {
        margin-block-end: 0;
    }

    .title-wrapper .section-text {
        margin-block-start: 30px;
    }



    /**
   * HERO
   */

    .hero .container {
        position: relative;
    }

    .hero-banner {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 55%;
        z-index: -1;
    }

    .hero-content {
        width: 50%;
        margin-inline-start: auto;
        padding-block: 10%;
    }

    .hero-title {
        text-shadow: 2px 2px 0 var(--hero-heading-shadow);
    }

    .hero-subtitle {
        text-shadow: 2px 2px 0 var(--hero-body-shadow);
    }



    /**
   * SKILL
   */

    .skills-wrapper {
        display: grid;
        grid-template-columns: 0.8fr 1fr;
        gap: 40px;
    }

    .skills .btn {
        margin-block-end: 0;
    }



    /**
   * BLOG
   */

    .blog-card .card-title {
        --fs-4: 2.7rem;
    }



    /**
   * FOOTER
   */

    .footer .container {
        grid-template-columns: repeat(3, 1fr);
    }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

    /**
   * CUSTOM PROPERTY
   */

    :root {

        /**
     * typography
     */

        --fs-3: 7rem;

    }



    /**
   * REUSED STYLE
   */

    .container {
        max-width: 960px;
    }

    .title-wrapper {
        gap: 15%;
    }

    .slider {
        --slider-items: 3;
    }





    /**
   * HERO
   */

    .hero-subtitle {
        --fs-8: 1.4rem;
    }



    /**
   * SKILL
   */

    .skills .section-title {
        max-width: 16ch;
    }

    .skills-wrapper {
        gap: 10%;
    }



    /**
   * BLOG
   */

    .blog-card {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .blog-card .card-content {
        padding: 32px;
    }

    .blog-list li:nth-child(2n) .card-banner {
        order: 1;
    }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

    /**
   * CUSTOM PROPERTY
   */

    :root {

        /**
     * spacing
     */

        --section-padding: 140px;

    }



    /**
   * REUSED STYLE
   */

    .container {
        max-width: 1140px;
    }



    /**
   * HEADER
   */

    .navbar {
        top: 0;
        display: grid;
        place-content: center;
    }

    .nav-toggle-btn {
        position: relative;
        z-index: 2;
    }

    .overlay {
        top: 0;
    }



    /**
   * HERO
   */

    .hero-content {
        width: 55%;
    }

    .hero-title {
        word-break: normal;
    }

    .hero .section-text {
        margin-block-end: 52px;
    }


}

/*-----------------------------------*  #PHOTO SLIDER
\*-----------------------------------*/

.photo-slider-section {
    padding-block: 60px;
    background-color: var(--bg-body);
    overflow: hidden;
}

.photo-slider-wrapper {
    position: relative;
}

.photo-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 20px;
    /* Slide Padding */
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    align-items: center;
}

.photo-slider-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.photo-slider-item {
    scroll-snap-align: center;
    flex-shrink: 0;
    height: 600px;
}

@media (max-width: 768px) {
    .photo-slider-item {
        height: 400px;
    }
}

.photo-img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    transition: transform var(--transition-1);
    cursor: pointer;
}

.photo-img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Controls */
.photo-slider-controls {
    pointer-events: none;
    /* Let clicks pass through container if needed, but buttons are pointer-events: auto */
    padding-inline: 40px;
}

/* Progress Bar */
.slider-progress-bar {
    width: 80%;
    /* Or fixed width like 300px */
    max-width: 600px;
    height: 4px;
    background-color: var(--white_a10);
    border-radius: 4px;
    margin-inline: auto;
    margin-block-start: 40px;
    position: relative;
    overflow: hidden;
}

.slider-progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    /* JS will update this */
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Golden/Grayscale Filter for Photo Slider */

.photo-img-wrapper {
    position: relative;
    line-height: 0;
    background: #ffffff;
    display: inline-block;
    height: 100%;
    overflow: hidden;
}

.photo-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: none;
    background: var(--accent-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.photo-img {
    filter: grayscale(100%) hue-rotate(0deg) invert(0%) opacity(100%) saturate(100%) sepia(0%);
    -webkit-filter: grayscale(100%) hue-rotate(0deg) invert(0%) opacity(100%) saturate(100%) sepia(0%);
    mix-blend-mode: none;
    transition: transform 0.8s ease, filter 1.5s ease;
    /* Added filter transition */
}

.photo-img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) hue-rotate(0deg) invert(0%) opacity(100%) saturate(100%) sepia(0%);
    -webkit-filter: grayscale(0%) hue-rotate(0deg) invert(0%) opacity(100%) saturate(100%) sepia(0%);
}

/*-----------------------------------*\
  #LANGUAGE SWITCHER
\*-----------------------------------*/

.lang-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-7);
}

.lang-switch button {
    font-weight: var(--fw-700);
    color: var(--eerie-black) !important;
}

.lang-switch span {
    color: var(--eerie-black) !important;
}

.lang-switch button:is(:hover, :focus-visible) {
    color: var(--accent-color) !important;
}

.lang-switch button.active {
    color: var(--accent-color) !important;
    text-transform: uppercase;
}