@font-face {
    font-family: 'Aquarium Kulit';
    src: url('/fonts/aquarium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding-top: 65px;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #6b1a2c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    background: #6b1a2c;
    border-bottom: none;
}

.logo-small {
    width: 32px;
    height: 32px;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: -16px;
    top: 51px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 120px;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #6b1a2c;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 1em;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #3a232b;
}


.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 32px 16px 24px 16px;
    height: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/image/x-icon/qrscanning.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(44 9 17 / 75%);
    z-index: -1;
}

.hero * {
    position: relative;
    z-index: 1;
}

.logo-large {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
    margin: 0 0 12px 0;
    font-size: 7vh;
    font-family: 'Aquarium Kulit', sans-serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero p {
    margin: 0 0 18px 0;
    font-size: 1em;
    font-family: 'tektur', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #6b1a2c;
    padding: 8px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #fff;
    color: #6b1a2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* About Section Arrow */
.about-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0 60px 0;
    animation: float 3s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-scroll-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(107, 26, 44, 0.3));
}

.about-scroll-arrow.hidden {
    opacity: 0;
    transform: scale(0);
    height: 0;
    padding: 0;
}

.about-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.scroll-animate.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.about {
    background: #fff;
    padding: 60px 16px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
}

.about h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #6b1a2c;
    font-family: 'tektur', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    font-weight: 700;
}

.about-intro {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c3e50;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.about-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #555;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.about p {
    font-size: 0.95em;
    margin-bottom: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.features-title {
    font-size: 2em;
    color: #6b1a2c;
    margin-top: 50px;
    margin-bottom: 40px;
    font-family: 'tektur', sans-serif;
    font-weight: 600;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 0 auto;
    max-width: 400px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature:hover {
    box-shadow: 0 8px 24px rgba(107,26,44,0.15);
    border-color: #6b1a2c;
    background: #fff0f4;
    transform: translateY(-5px);
}

.feature h3 {
    margin: 15px 0 12px 0;
    color: #6b1a2c;
    font-size: 1.4em;
    font-weight: 600;
}

.feature p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
}

/* Staggered animation for features */
.feature.scroll-animate.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature:nth-child(1).animate-in {
    animation-delay: 0.15s;
}

.feature:nth-child(2).animate-in {
    animation-delay: 0.3s;
}

.feature:nth-child(3).animate-in {
    animation-delay: 0.45s;
}

/* ===================================
   IMPROVED FOOTER STYLES - FIXED RESPONSIVENESS
   =================================== */

footer {
    background: linear-gradient(135deg, #3a232b 0%, #2d1a22 100%);
    color: #fff;
    padding: 50px 20px 20px;
    font-size: 0.95em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* FIXED: Using explicit 3-column grid instead of auto-fit */
.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

/* ADDED: Consistent column structure */
.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0 20px 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #6b1a2c;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer Brand Section */
.footer-brand-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.footer-brand h3 {
    margin: 0;
    font-size: 1.5em;
    font-family: 'Aquarium Kulit', sans-serif;
    color: #fff;
    line-height: 1.2;
    text-align: left;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    text-align: left;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info svg {
    flex-shrink: 0;
    opacity: 0.8;
    margin-top: 2px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
}

.contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9em;
    cursor: pointer;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.4);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin: 0;
}

/* ===================================
   MODAL STYLES
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, #6b1a2c 0%, #3a232b 100%);
    color: #fff;
    padding: 25px 30px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.8em;
    font-family: 'Tektur', sans-serif;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.7;
}

.modal-body h3 {
    color: #6b1a2c;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2em;
    border-left: 4px solid #6b1a2c;
    padding-left: 12px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #333;
}

.modal-body ul {
    margin: 10px 0 20px 20px;
    line-height: 1.8;
}

.modal-body ul li {
    margin-bottom: 8px;
    color: #555;
}

.modal-body strong {
    color: #6b1a2c;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    line-height: 1;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: #ffcccc;
    transform: rotate(90deg);
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #6b1a2c;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #8b2a3c;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

html {
    scroll-behavior: smooth;
}

/* Small tablets and large phones - 600px+ */
@media (min-width: 600px) {
    .features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
        padding: 20px;
    }
    
    .feature {
        flex: 1 1 320px;
        margin: 0 10px;
        max-width: 380px;
    }
    
    .about h2 {
        font-size: 2.8em;
    }
    
    .features-title {
        font-size: 2.2em;
    }
}

/* Desktop - 768px+ */
@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }
    
    header {
        background-color: #6b1a2c;
    }
    
    header .top-bar {
        background-color: #6b1a2c;
        border-bottom: none;
    }

    .dropdown-menu {
        display: flex !important;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        margin-right: 20px;
    }

    .dropdown-menu a {
        border: none;
        padding: 0;
        color: #fff;
        font-size: 1em;
        text-decoration: none;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        text-decoration: none;
        padding: 4px 5px;
        border-radius: 5px;
    }

    /* Footer stays 3 columns on desktop */
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Medium screens (tablets/small laptops) - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-top {
        gap: 30px;
    }
    
    footer {
        padding: 40px 30px 20px;
    }
    
    .footer-column h4 {
        font-size: 1em;
    }
    
    .footer-brand h3 {
        font-size: 1.3em;
    }
    
    .footer-tagline {
        font-size: 0.9em;
    }
}

/* Tablets - 501px to 767px */
@media (min-width: 501px) and (max-width: 767px) {
    /* Footer switches to 2 columns with brand spanning full width */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-brand-column {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
}

/* Mobile - 500px and below */
@media (max-width: 500px) {
    header {
        background-color: #6b1a2c;
    }
    
    header .top-bar {
        background-color: #6b1a2c;
        border-bottom: none;
        box-shadow: none;
    }
    
    .menu-icon {
        color: white;
        font-size: 4vh;
    }
    
    .hero {
        height: 600px;
    }
    
    .hero h1 {
        font-size: 6vh;
    }
    
    .hero p {
        font-size: 20px;
        margin-top: 50px;
    }
    
    .logo-large {
        width: 150px;
        height: 150px;
    }
    
    .btn {
        margin-top: 50px;
    }
    
    .dropdown-menu {
        top: 61px;
    }
    
    .about {
        padding: 40px 16px;
    }
    
    .about h2 {
        font-size: 2em;
    }
    
    .features-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 25px;
    }
    
    .about-intro {
        font-size: 1.05em;
    }
    
    .feature {
        max-width: 100%;
        padding: 25px 18px;
    }
    
    .feature h3 {
        font-size: 1.25em;
    }

    /* Footer responsive - single column on mobile */
    footer {
        padding: 40px 15px 15px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Center everything on mobile */
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-column {
        align-items: center;
        text-align: center;
    }
    
    .footer-brand h3 {
        text-align: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-column h4 {
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }

    .modal-content {
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.4em;
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
        max-height: 50vh;
    }
}