/* Light Theme CSS for KISA Report */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --card-bg: #ffffff;
    --card-bg-hover: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --primary-color: #0066cc;
    --primary-light: #e7f1ff;
    --accent-color: #0052a3;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.nav-btn:hover {
    background: var(--accent-color);
    transform: translateX(0) scale(1.1);
}

.nav-btn.visible {
    opacity: 1;
    transform: translateX(0);
}

.nav-btn i {
    font-size: 1.25rem;
}

/* Home button - distinct style */
#homeBtn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
}

#homeBtn:hover {
    background: linear-gradient(135deg, #ff5252, #e04848);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.5);
}

/* Scroll buttons */
#scrollUpBtn, #scrollDownBtn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#scrollUpBtn:hover, #scrollDownBtn:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.5rem;
}

.logo-icon {
    height: 24px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section - Glass Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('glass.jpg') center/cover no-repeat fixed;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: -5s;
    animation-duration: 12s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: -7s;
    border-radius: 30%;
    animation-duration: 20s;
}

.shape:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 5%;
    animation-delay: -2s;
    animation-duration: 14s;
}

.shape:nth-child(6) {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 90%;
    animation-delay: -8s;
    border-radius: 40%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: glassFloat 6s ease-in-out infinite;
}

.hero-content:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 100px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes glassFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.imple-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Key Stats Section */
.key-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
}

.stat-number .unit {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.stat-change {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.up {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.stat-change.down {
    background: rgba(40, 167, 69, 0.8);
    color: white;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), #dc3545, #ffc107);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item.critical::before {
    background: #dc3545;
}

.timeline-item.warning::before {
    background: #ffc107;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section with Background */
.section-with-bg {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    max-width: 100%;
    padding: 5rem 2rem;
}

.section-with-bg > *:not(h2):not(.section-intro) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Timeline Section with Background */
.section-timeline {
    position: relative;
    max-width: 100%;
    padding: 5rem 2rem;
}

.section-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('sorry.jpg') center/cover no-repeat;
    filter: blur(1px);
    z-index: -2;
}

.section-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.section-timeline > * {
    position: relative;
    z-index: 1;
}

.section-timeline > *:not(h2):not(.section-intro) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Threats Section with Coupang Background */
.section-threats {
    position: relative;
    max-width: 100%;
    padding: 5rem 2rem;
}

.section-threats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('cp.jpg') center/cover no-repeat;
    filter: blur(1px);
    z-index: -2;
}

.section-threats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.section-threats > * {
    position: relative;
    z-index: 1;
}

.section-threats > *:not(h2):not(.section-intro) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Charts */
.dual-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-wrapper {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    min-height: 350px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.platform-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.platform-header h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.platform-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* MITRE Grid */
.mitre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mitre-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.mitre-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.mitre-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mitre-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Accordion */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-header i:first-child {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.accordion-header span {
    flex: 1;
}

.icon-toggle {
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

.accordion-item.active .icon-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .main-title {
        font-size: 2rem;
    }

    .dual-chart-container {
        grid-template-columns: 1fr;
    }

    .chart-wrapper {
        min-height: 300px;
    }

    .nav-buttons {
        right: 1rem;
        bottom: 1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }
}

/* Chart.js Light Theme Override */
.chart-wrapper canvas {
    filter: none;
}
