/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap");

body {
    font: 20px/1.5 "Jost", sans-serif;
    margin: 50px 0;
    background: #f9f9f9;
    justify-content: center;
}

.hero-gradient {
    padding-top: 8rem !important;
    background: linear-gradient(135deg, var(--purple-start) 0%, var(--purple-end) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.2;
}

.stock-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.chart-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Custom order for mobile */
.mobile-order-1 {
    order: 1;
}

.mobile-order-2 {
    order: 2;
}

@media (min-width: 1024px) {
    .mobile-order-1 {
        order: 2;
    }

    .mobile-order-2 {
        order: 1;
    }
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.02);
}

/* Navigation */
.navigation {
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    width: max-content;
    margin: 0 auto;
    border-radius: 1.2rem !important;
}

/* Desktop Floating Effect */
.navigation.scrolled {
    width: max-content;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Untuk Safari */
    padding: 0.1rem 0;
}

.navigation>.mobile-menu {
    display: none;
}

/* Mobile Specific Styles */
@media (max-width: 1023px) {
    .navigation {
        width: 95%;
        margin: 0 auto;
        position: fixed;
        top: 0.8rem;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navigation>.mobile-menu {
        display: block;
    }

    /* Nonaktifkan efek floating di mobile */
    .navigation.scrolled {
        background: white;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.4rem 0;
        transform: none !important;
    }

    /* Pastikan mobile menu tetap di atas */
    .navigation>.mobile-menu {
        z-index: 1001;
    }

    .navigation>.backdrop {
        z-index: 1000;
    }
}

/* Fix untuk iOS Safari */
@supports (-webkit-touch-callout: none) {
    .navigation {
        position: -webkit-sticky;
    }
}

.navigation>.dropdown-container:hover .dropdown-menu {
    display: block;
}

.navigation>.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.navigation>.mobile-menu.open {
    transform: translateX(0);
}

.navigation>.backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.navigation>.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.navigation>.btn-outline {
    background-color: white;
    border-color: #d1d5db;
    color: #374151;
}

.navigation>.btn-outline:hover {
    background-color: #f9fafb;
}

.navigation>.btn-primary {
    background-color: #2563eb;
    color: white;
}

.navigation>.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Accordion */
.accordion {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.accordion .accordion-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.accordion .accordion-wrapper ul {
    list-style: none;
}

.accordion .accordion-wrapper li {
    background: var(--accordion-bg-color);
    margin-bottom: 15px;
    border-radius: var(--accordion-radius);
    overflow: hidden;
    transition: background var(--transition-speed), transform var(--transition-speed);
    cursor: pointer;
}

.accordion .accordion-wrapper li:hover {
    background: var(--accordion-bg-hover-color);
    transform: scale(1.01);
}

.accordion .accordion-wrapper li.active {
    background: var(--accordion-active-bg-color);
    color: var(--white);
}

.accordion .accordion-wrapper .accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    user-select: none;
}

.accordion .accordion-wrapper .accordion-title button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.accordion .accordion-wrapper li.active .accordion-title button svg {
    transform: rotate(-45deg);
    fill: var(--white);
}

.accordion .accordion-wrapper .accordion-content {
    height: 0;
    overflow: hidden;
    transition: height var(--transition-speed) ease;
}

.accordion .accordion-wrapper .inner {
    padding: 20px 30px 30px;
    font-size: 1rem;
    line-height: 1.6;
}

.accordion .accordion-wrapper .inner a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    background: var(--button-bg-color);
    color: var(--white);
    transition: background var(--transition-speed);
}

.accordion .accordion-wrapper .inner a:hover {
    background: var(--button-bg-hover-color);
}


/* Newsletter */
.newsletter .popup-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.newsletter .popup-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.newsletter .popup-content.open {
    transform: scale(1);
    opacity: 1;
}


/* Footer styles */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}


/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--button-bg-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--purple-end);
}

.btn-outline {
    background-color: transparent;
    border-color: #4b5563;
    color: #d1d5db;
}

.btn-outline:hover {
    background-color: #374151;
    border-color: #6b7280;
}

/* Heatmap */
.heatmap {
    padding-top:8rem;
}
.heatmap .container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.heatmap .background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.heatmap .header {
    text-align: center;
    color: black;
    /* margin-top: 55px; */
    margin-bottom: 20px;
    z-index: 10;
}

.heatmap .main-title {
    font-size: 52px;
    font-weight: 900;
    color: rgb(0, 0, 0);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.heatmap .subtitle {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.heatmap .heatmap-container {
    overflow-x: scroll;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    max-width: 100%;
    width: 100%;
}

.heatmap .heatmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-weight: 600;
}

.heatmap .heatmap-table th,
.heatmap .heatmap-table td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.heatmap .heatmap-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 800;
    font-size: 12px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heatmap .year-cell {
    background: linear-gradient(135deg, #343a40, #495057) !important;
    color: white !important;
    font-weight: 800;
    font-size: 13px;
}

.heatmap .positive-low {
    background: rgba(40, 167, 69, 0.3) !important;
    color: #155724;
}

.heatmap .positive-med {
    background: rgba(40, 167, 69, 0.6) !important;
    color: white;
}

.heatmap .positive-high {
    background: rgba(40, 167, 69, 0.9) !important;
    color: white;
}

.heatmap .negative-low {
    background: rgba(220, 53, 69, 0.3) !important;
    color: #721c24;
}

.heatmap .negative-med {
    background: rgba(220, 53, 69, 0.6) !important;
    color: white;
}

.heatmap .negative-high {
    background: rgba(220, 53, 69, 0.9) !important;
    color: white;
}

.heatmap .neutral {
    background: rgba(248, 249, 250, 0.8) !important;
    color: #495057;
}


.heatmap .highlight-cell {
    position: relative;
    font-weight: 800;
}

.heatmap .highlight-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid gold;
    border-radius: 4px;
    pointer-events: none;
}

.heatmap .results-section {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.heatmap .result-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heatmap .result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.heatmap .result-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heatmap .best-month h3 {
    color: #28a745;
}

.heatmap .worst-month h3 {
    color: #dc3545;
}

.heatmap .result-value {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
}

.heatmap .best-month .result-value {
    color: #28a745;
}

.heatmap .worst-month .result-value {
    color: #dc3545;
}

.heatmap .result-details {
    font-size: 16px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
}

.heatmap .result-year {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.heatmap .related-stocks-section {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.heatmap .related-title {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.heatmap .related-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: 500;
}

.heatmap .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.heatmap .stock-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.heatmap .stock-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.heatmap .stock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.heatmap .stock-card:hover::before {
    transform: scaleX(1);
}

.heatmap .stock-symbol {
    font-size: 24px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.heatmap .stock-name {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.heatmap .stock-tag {
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.heatmap .view-all-container {
    text-align: center;
}

.heatmap .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heatmap .view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1abc9c);
}

@media (max-width: 768px) {
    .heatmap .results-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .heatmap .result-card {
        padding: 20px;
    }

    .heatmap .result-value {
        font-size: 28px;
    }

    .heatmap .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .heatmap .related-title {
        font-size: 28px;
    }

    .heatmap .stock-card {
        padding: 20px 15px;
    }

    .heatmap .view-all-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}