* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'OSOBlack';
    src: url('../assets/fonts/OpenSauceOne-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'OSOBlackItalic';
    src: url('../assets/fonts/OpenSauceOne-BlackItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'OSOBold';
    src: url('../assets/fonts/OpenSauceOne-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOExtraBold';
    src: url('../assets/fonts/OpenSauceOne-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOExtraBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-ExtraBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOItalic';
    src: url('../assets/fonts/OpenSauceOne-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOLight';
    src: url('../assets/fonts/OpenSauceOne-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOLightItalic';
    src: url('../assets/fonts/OpenSauceOne-LightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOMedium';
    src: url('../assets/fonts/OpenSauceOne-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOMediumItalic';
    src: url('../assets/fonts/OpenSauceOne-MediumItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'OSORegular';
    src: url('../assets/fonts/OpenSauceOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOSemiBold';
    src: url('../assets/fonts/OpenSauceOne-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'OSOSemiBoldItalic';
    src: url('../assets/fonts/OpenSauceOne-SemiBoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Akira';
    src: url('../assets/fonts/Akira-Expanded.otf') format('truetype');
}

/* SCROLL BEHAVIOR AND ANIMATIONS */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* FADE IN ANIMATION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -80%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -100%);
    }
}

@keyframes fadeInUpResponsive {
    from {
        opacity: 0;
        transform: translateY(100%) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0%) translateX(-50%);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 0 0 30px rgba(108, 92, 231, 0.6);
    }
}

/* INTERSECTION OBSERVER CLASSES */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-up2 {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Desktop-first Navbar (Original Design) */
.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 1050;
    box-shadow: 0 0 5px rgba(107, 107, 255, 0.4);
    background-color: white;
}

.navbar {
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.hamburger {
    display: none;
}

.logo img {
    height: 70px;
    padding-left: 15rem;
    padding-right: 1rem;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-item {
    font-family: 'OSOMedium', sans-serif !important;
    font-size: 13px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.acc-item {
    font-family: 'OSOMedium', sans-serif !important;
    font-size: 13px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
    position: relative;
    padding: 0 16rem 0 54rem;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #6c5ce7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: #6c5ce7;
    transform: translateY(-2px);
}

.acc-img {
    height: 20px;
}



.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 auto;
}

/* Desktop-first Hero Section (Original Design) */
.hero {
    height: 50rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: linear-gradient(180deg, #ffffff 0%, #b7b7da 100%);
    width: 100%;
    height: 100%;
}

.namaalat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 250px;
    color: transparent;
    opacity: 1;
    z-index: 2;
    font-family: 'Akira', sans-serif !important;
    color: #6c5ce7;
    animation: textGlow 3s ease-in-out infinite;
}

.namaalat-outline {
    transform: translate(-50%, -59%);
    -webkit-text-stroke: 2px #6c5ce7;
    color: transparent;
    animation: fadeIn 1s ease-out 0.2s both;
}

.namaalat-outline-2 {
    transform: translate(-50%, -18%);
    -webkit-text-stroke: 2px rgba(108, 92, 231, 0.83);
    color: transparent;
    animation: fadeIn 1s ease-out 0.4s both;
}

.namaalat-outline-3 {
    transform: translate(-50%, 23%);
    -webkit-text-stroke: 2px rgba(101, 85, 226, 0.66);
    color: transparent;
    animation: fadeIn 1s ease-out 0.6s both;
}

.namaalat-outline-4 {
    transform: translate(-50%, 64%);
    -webkit-text-stroke: 2px rgba(101, 85, 226, 0.49);
    color: transparent;
    animation: fadeIn 1s ease-out 0.8s both;
}

.namaalat-outline-5 {
    display: none;
    transform: translate(-50%, 23%);
    -webkit-text-stroke: 2px rgba(101, 85, 226, 0.32);
    color: transparent;
    animation: fadeIn 1s ease-out 1s both;
}

.namaalat-outline-6 {
    display: none;
    transform: translate(-50%, 23%);
    -webkit-text-stroke: 2px rgba(101, 85, 226, 0.15);
    color: transparent;
    animation: fadeIn 1s ease-out 1.2s both;
}

.device-container {
    position: relative;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 2;
    width: 60%;
    max-width: 60rem;
    height: 35rem;
    overflow: hidden;
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

.device-image {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.device-image:hover {
    transform: scale(1.05);
}

.device-mockup {
    width: 100%;
    height: 250px;
    background-color: #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.top-section {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.slot {
    width: 30%;
    height: 100%;
    background-color: #222;
    border-radius: 5px;
}

.display {
    width: 80%;
    height: 40px;
    background-color: #a3ff85;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 2px solid #222;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.display-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.screen {
    width: 80%;
    height: 80px;
    background-color: #3a56e4;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 2px solid #222;
}

.button {
    width: 30px;
    height: 30px;
    background-color: #4cd137;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #222;
    transition: transform 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
}

/* Desktop-first What is it Section (Original Design) */
.what-is-it {
    color: white;
    padding: 80px 0;
}

.what-is-it .container {
    height: 40rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-left {
    flex: 1;
    padding-right: 40px;
    margin-left: -7rem;
    margin-right: 1rem;
}

.content-left h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'OSOBlack', sans-serif !important;
}

.content-left p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'OSORegular', sans-serif !important;
    text-align: justify;
}

.content-right {
    flex: 1;
    display: flex;
    justify-content: right;
    position: relative;
    margin-right: -10rem;
}

.device-illustration {
    position: relative;
    width: 100%;
    max-width: 50rem;
}

.device-illustration img {
    width: 45rem;
    height: auto;
    transition: transform 0.3s ease;
}

.device-illustration img:hover {
    transform: scale(1.05) rotate(2deg);
}

.how-it-works {
    color: white;
    padding: 80px 0;
    text-align: center;
}

.bege {
    background: linear-gradient(to bottom, #6655E2, #E25579, #E27D55);
}

.how-it-works h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 40px;
    font-family: 'OSOBlack', sans-serif !important;
}

.versions-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.version-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 40px 50px 40px 50px;
    text-align: left;
    margin-bottom: 7rem;
    transition: all 0.3s ease;
}

.version-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.version-card h3 {
    font-size: 24px;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'OSOBold', sans-serif !important;
}

.version-card p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'OSORegular', sans-serif !important;
    text-align: justify;
}

.version-image-placeholder {
    width: 100%;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.version-image-placeholder:hover {
    transform: scale(1.02);
}

.version-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.version-image-placeholder:hover img {
    transform: scale(1.1);
}

/* Desktop-first Dashboard Section (Original Design) */
.dashboard-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 0 auto;
}

.dashboard-access {
    color: white;
    overflow: hidden;
}

.dashboard-access .container {
    display: flex;
    align-items: center;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 40px;
    justify-content: end;
    margin-left: 40px;
}

.dashboard-content h1 {
    font-size: 17rem;
    font-family: 'OSOBlack', sans-serif !important;
    line-height: 0.85;
    letter-spacing: -15px;
    left: 0;
    margin-bottom: -14px;
    background: linear-gradient(45deg, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-content p {
    font-family: 'OSOBold',sans-serif !important;
    font-size: 4rem; 
    margin-left: 9px;
    margin-bottom: -20px;
}

.dashboard-preview {
    flex: 1;
    position: relative;
}

.dashboard-preview img {
    width: 67rem;
    margin-bottom: -9.5rem;
    transition: transform 0.3s ease;
}

.dashboard-preview img:hover {
    transform: scale(1.05);
}

/* Desktop-first Footer (Original Design) */
footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: rotate(10deg);
}

.footer-text {
    font-size: clamp(24px, 6vw, 40px);
    font-family: 'OSOBlack', sans-serif !important;
}

.copyright {
    font-size: clamp(12px, 3vw, 14px);
    color: #000000;
    font-family: 'OSOBold', sans-serif !important;
    text-align: center;
}

.modal-footer {
    justify-content: center;
    border: none;
    margin-left: 50rem;
    margin-right: 15rem;
    gap: 10px;
}

.btn-success {
    width: 5rem;
    background-color: #6c5ce7;
    color: white;
    padding: 10px 15px 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.3s ease; 
    font-family: 'OSOBold', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-success:hover {
    background-color: rgba(108, 92, 231, 0.9);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    width: 5rem;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px 15px 10px 15px;
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.3s ease; 
    font-family: 'OSOBold', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    background-color: #6c5ce7;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ======================
   RESPONSIVE BREAKPOINTS
   ====================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .logo img {
        padding-left: 5rem;
    }
    
    .nav-item img {
        padding: 0 5rem 0 20rem;
    }
    
    .modal-footer {
        margin-left: 20rem;
        margin-right: 5rem;
    }
    
    .namaalat {
        font-size: 200px;
    }
    
    .dashboard-content h1 {
        font-size: 12rem;
    }
    
    .dashboard-preview img {
        width: 50rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content{
        flex-wrap: wrap;
        height: 5rem;
        z-index: 2000;
    }
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        background-color: white;
        opacity: 0;
        transform: translateY(-20px);
        box-shadow: 0 2px 5px rgba(107, 107, 255, 0.4);
        transition: all 0.3s ease;
    }

    .navbar--open{
        opacity: 1;
        transform: translateY(0);
    }

    
    .logo img {
        height: 70px;
        margin-top: 8px;
        padding-left: 1.8rem;
    }
    
    .nav-item {
        margin: 0.5rem 0.5rem 0.5rem 1rem;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar--open .nav-item {
        opacity: 1;
    }

    .nav-item img {
        height: 18px;
        padding: 0;
    }
    
    .modal-footer {
        margin: 0.5rem 0.5rem 0.5rem 1rem;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    

    .navbar--open .modal-footer {
        transform: translateX(0);
        opacity: 1;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        margin-top: 8px;
        margin-right: 1.5rem;
        cursor: pointer;
    }

    .bar {
        height: 2px;
        width: 27px;
        background-color: rgb(101, 85, 226);
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }
    

    .hamburger--open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger--open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger--open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .acc-item {
        padding: 0;
    }
    .acc-img {
        padding: 2px;
        margin: 5px;
        height: 18px;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .namaalat {
        font-size: clamp(60px, 15vw, 120px);
        top: 25%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline {
        top: 32%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline-2 {
        top: 39%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline-3 {
        top: 46%;
        transform: translate(-50%, -50%);
    }

    .namaalat-outline-4 {
        display:block;
        top: 53%;
        transform: translate(-50%, -50%);
    }

    .namaalat-outline-5 {
        display:block;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .namaalat-outline-6 {
        display:none;
    }
    
    .device-container {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateY(0%) translateX(-100%);
        width: 90%;
        max-width: none;
        height: auto;
        margin-left: -5px;
        animation: fadeInUpResponsive 1.2s ease-out 0.5s both;
    }
    
    
    .what-is-it .container {
        height: auto;
        flex-direction: column;
        text-align: center;
    }
    
    .content-left {
        margin: 30px 0 0 0;
        padding-right: 0;
        order: 2;
    }
    
    .content-left h2 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .content-left p {
        padding: 0 2rem 0 2rem;
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .content-right {
        margin: 0;
        justify-content: center;
        order: 1;
    }
    
    .device-illustration img {
        width: 100%;
        max-width: 500px;
    }
    
    .how-it-works {
        padding: 60px 0;
    }
    
    .how-it-works h2 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .versions-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px 0 20px;
    }
    
    .version-card {
        margin-bottom: 40px;
        padding: 30px;
        border-radius: 20px;
    }
    
    .version-card h3 {
        font-size: clamp(18px, 4vw, 24px);
    }
    
    .version-card p {
        font-size: clamp(14px, 3.5vw, 18px);
    }
    
    .version-image-placeholder {
        height: 250px;
        border-radius: 20px;
    }
    
    .version-image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }
    
    .dashboard-access {
        padding: 40px 0 0 0;
    }
    
    .dashboard-container {
        flex-direction: column;
        text-align: left;
        padding: 0 20px;
    }
    
    .dashboard-content {
        margin: 0;
        padding: 0;
        order: 1;
    }
    
    .dashboard-content h1 {
        font-size: clamp(6rem, 30vw, 10rem);
        letter-spacing: -5px;
    }
    
    .dashboard-content p {
        font-size: clamp(2rem, 8vw, 3rem);
        margin: 0;
    }
    
    .dashboard-preview {
        order: 2;
    }
    
    .dashboard-preview img {
        margin-left: -5rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-text {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 10px;
    }
    
    .nav-item {
        font-size: 11px;
        margin: 0.5rem 0.5rem 0.5rem 1rem;

    }
    
    .hero {
        min-height: 400px;
    }
    
    .namaalat {
        font-size: clamp(60px, 15vw, 120px);
        top: 30%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline {
        top: 35%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline-2 {
        top: 40%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline-3 {
        top: 45%;
        transform: translate(-50%, -50%);
    }
    
    .namaalat-outline-4 {
        display:block;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .namaalat-outline-5 {
        display:block;
        top: 55%;
        transform: translate(-50%, -50%);
    }

    .namaalat-outline-6 {
        display:block;
        top: 60%;
        transform: translate(-50%, -50%);
    }

    .version-card {
        padding: 20px;
    }
    
    .version-image-placeholder {
        height: 200px;
    }
    
    .dashboard-content h1 {
        font-size: 7rem;
        letter-spacing: -2px;
    }
    
    .dashboard-content p {
        font-size: 2rem;
    }
}