:root {
    --my-blue: #010066;
    --my-red: #CC0001;
    --my-yellow: #FFCC00;
    --my-white: #FFFFFF;
    --my-dark: #1a1a2e;
    --my-light: #f8f9fa;
    --my-gray: #6c757d;
    --my-blue-light: #e8eaf6;
    --my-blue-medium: #3949ab;
    --my-gradient: linear-gradient(135deg, #010066 0%, #1a237e 50%, #283593 100%);
    --my-shadow: 0 4px 20px rgba(1, 0, 102, 0.15);
    --my-shadow-hover: 0 8px 30px rgba(1, 0, 102, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

.navbar {
    background: var(--my-white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.navbar-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--my-blue) !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.navbar-brand .logo-text span {
    color: var(--my-red);
}

.navbar-brand .brand-sub {
    font-size: 0.7rem;
    color: var(--my-gray);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 1px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--my-blue) !important;
}

.nav-auth .btn-signin {
    color: var(--my-blue) !important;
    border: 2px solid var(--my-blue);
    border-radius: 6px;
    padding: 0.35rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-auth .btn-signin:hover {
    background: var(--my-blue);
    color: var(--my-white) !important;
}

.nav-auth .btn-signup {
    background: var(--my-blue) !important;
    color: var(--my-white) !important;
    border: 2px solid var(--my-blue);
    border-radius: 6px;
    padding: 0.35rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-auth .btn-signup:hover {
    background: #00004d !important;
    border-color: #00004d;
}

.lang-switcher {
    position: relative;
}

.lang-switcher .btn-lang {
    background: transparent;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switcher .btn-lang:hover {
    border-color: var(--my-blue);
    color: var(--my-blue);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--my-white);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1050;
    display: none;
    overflow: hidden;
    margin-top: 5px;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--my-blue-light);
    color: var(--my-blue);
}

.hero-section {
    background: var(--my-gradient);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.08);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(204, 0, 1, 0.06);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--my-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--my-yellow);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero-btn {
    background: var(--my-yellow);
    color: var(--my-blue);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    background: #ffdb4d;
    color: var(--my-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
}

.hero-decoration {
    position: relative;
    z-index: 2;
}

.hero-decoration svg {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--my-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--my-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--my-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef0f5;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--my-shadow-hover);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.feature-icon.blue {
    background: rgba(1, 0, 102, 0.08);
    color: var(--my-blue);
}

.feature-icon.red {
    background: rgba(204, 0, 1, 0.08);
    color: var(--my-red);
}

.feature-icon.yellow {
    background: rgba(255, 204, 0, 0.15);
    color: #b8860b;
}

.feature-icon.green {
    background: rgba(0, 128, 0, 0.08);
    color: #006400;
}

.feature-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--my-dark);
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--my-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.stats-section {
    background: var(--my-gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--my-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.cta-section {
    background: var(--my-light);
    position: relative;
}

.cta-section .cta-inner {
    background: var(--my-white);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.cta-section .cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--my-blue), var(--my-red), var(--my-yellow));
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--my-dark);
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--my-gray);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: var(--my-blue);
    color: var(--my-white);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: #00004d;
    color: var(--my-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 0, 102, 0.3);
}

.page-header {
    background: var(--my-gradient);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.06);
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--my-white);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.query-section {
    padding: 60px 0 80px;
}

.query-box {
    background: var(--my-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
}

.query-form .input-group {
    border: 2px solid #eef0f5;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.query-form .input-group:focus-within {
    border-color: var(--my-blue);
}

.query-form .form-control {
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1.05rem;
    height: auto;
}

.query-form .form-control:focus {
    box-shadow: none;
}

.query-form .input-group-text {
    background: transparent;
    border: none;
    padding: 0 0.5rem;
    color: var(--my-gray);
}

.query-form .form-select {
    border: none;
    border-left: 2px solid #eef0f5;
    border-radius: 0;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--my-blue);
    max-width: 160px;
}

.query-form .form-select:focus {
    box-shadow: none;
}

.query-form .btn-query {
    background: var(--my-blue);
    color: var(--my-white);
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.query-form .btn-query:hover {
    background: #00004d;
}

.query-result {
    margin-top: 2rem;
    display: none;
}

.query-result .result-card {
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.query-result .result-card.available {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
}

.query-result .result-card.taken {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border: 2px solid #e53935;
}

.query-result .result-card.error {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-card.available .result-icon {
    color: #4caf50;
}

.result-card.taken .result-icon {
    color: #e53935;
}

.result-card.error .result-icon {
    color: #ff9800;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-domain {
    font-size: 1.1rem;
    color: var(--my-gray);
    margin-bottom: 1.5rem;
}

.result-actions .btn-register {
    background: var(--my-blue);
    color: var(--my-white);
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.result-actions .btn-register:hover {
    background: #00004d;
    color: var(--my-white);
}

.result-actions .btn-retry {
    background: transparent;
    color: var(--my-blue);
    border: 2px solid var(--my-blue);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.result-actions .btn-retry:hover {
    background: var(--my-blue);
    color: var(--my-white);
}

.type-card {
    background: var(--my-white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eef0f5;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--my-blue), var(--my-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--my-shadow-hover);
    border-color: transparent;
}

.type-card:hover::before {
    opacity: 1;
}

.type-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--my-blue);
    margin-bottom: 0.8rem;
}

.type-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--my-dark);
    margin-bottom: 0.8rem;
}

.type-card p {
    color: var(--my-gray);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.type-scene {
    font-size: 0.85rem;
    color: var(--my-blue-medium);
    background: var(--my-blue-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--my-blue), var(--my-red), var(--my-yellow));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--my-blue);
    border: 3px solid var(--my-white);
    box-shadow: 0 0 0 3px var(--my-blue);
    z-index: 2;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--my-blue);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--my-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.rules-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--my-blue);
    font-size: 0.85rem;
}

.rules-list li:last-child {
    border-bottom: none;
}

.content-card {
    background: var(--my-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--my-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--my-blue-light);
}

.content-card h3 i {
    color: var(--my-blue);
    margin-right: 0.5rem;
}

.content-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.site-footer {
    background: var(--my-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--my-white);
}

.footer-brand .logo-text span {
    color: var(--my-yellow);
}

.footer-brand .brand-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--my-white);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--my-yellow);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--my-yellow);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--my-yellow);
    margin-right: 0.8rem;
    width: 18px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
}

.footer-bottom a {
    color: var(--my-yellow);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-decoration {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .query-box {
        padding: 2rem 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header {
        padding: 80px 0 50px;
    }

    .page-header-title {
        font-size: 1.8rem;
    }

    .query-form .form-select {
        max-width: 120px;
    }

    .cta-section .cta-inner {
        padding: 2.5rem 1.5rem;
    }

    .navbar-brand .logo-text {
        font-size: 1.2rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.malaysia-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--my-blue) 0%, var(--my-blue) 33%, var(--my-red) 33%, var(--my-red) 66%, var(--my-yellow) 66%, var(--my-yellow) 100%);
}
