/* ========================================
   GLOBAL STYLES & COLOR SCHEME
   ======================================== */
:root {
    --nav-height: 78px;
    --primary-light: #E3F2FD;
    --primary-mid: #90CAF9;
    --primary-dark: #1565C0;
    --primary-darker: #0D47A1;
    --primary-gradient: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    --accent-light: #C8E6C9;
    --accent-mid: #66BB6A;
    --accent-dark: #2E7D32;
    --text-primary: #0D47A1;
    --text-secondary: #1565C0;
    --text-light: #64B5F6;
    --text-white: #FFFFFF;
    --text-accent: #1565C0;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-alt: #FAFAFA;
    --border-light: #BBDEFB;
    --border-subtle: #E3F2FD;
    --success: #2E7D32;
    --shadow-sm: 0 2px 4px rgba(13, 71, 161, 0.1);
    --shadow-md: 0 4px 12px rgba(13, 71, 161, 0.15);
    --shadow-lg: 0 8px 24px rgba(13, 71, 161, 0.2);
    --shadow-xl: 0 12px 40px rgba(13, 71, 161, 0.25);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 60px;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background: var(--primary-gradient);
    padding: 0 2rem;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(21, 128, 224, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 1rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-right: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.5);
    margin-right: 15px;
    margin-top: 5px;
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex: 1;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: color var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-dark);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-login {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-demo {
    padding: 0.7rem 1.8rem;
    background: var(--primary-dark);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-demo:hover {
    background: var(--primary-darker);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    transform: translateY(-2px);
}

.hero {
    padding: calc(var(--nav-height) + 2rem) 0 3rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 84% 76%, rgba(21, 101, 192, 0.16) 0%, rgba(21, 101, 192, 0) 48%),
        linear-gradient(135deg, #cfe4f7 0%, #b9d6ef 100%);
    min-height: 100svh;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    letter-spacing: 0.8px;
    border: 1px solid var(--accent-mid);
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    animation: slideInDown 0.8s ease-out;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(13, 71, 161, 0.1);
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    animation: slideInUp 0.8s ease-out 0.1s both;
    line-height: 1.6;
    letter-spacing: -0.2px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    line-height: 1.8;
    animation: slideInUp 0.8s ease-out 0.2s both;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.25);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-darker);
    box-shadow: 0 6px 25px rgba(13, 71, 161, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--text-white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    box-shadow: 0 6px 25px rgba(13, 71, 161, 0.4);
    transform: translateY(-3px);
}

/* ========================================
   HERO VISUAL - OVERLAPPING DASHBOARD
   ======================================== */
.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.3s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.image-showcase {
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 1s ease-out 0.5s both;
    isolation: isolate;
}

.image-showcase::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -18px;
    top: -22px;
    width: 116%;
    height: 112%;
    background: linear-gradient(135deg, #152c4a 0%, #0d47a1 100%);
    clip-path: polygon(0 0, 70% 6%, 70% 58%, 100% 34%, 100% 100%, 0 100%);
}

.showcase-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 26, 77, 0.25);
    border: 1px solid var(--border-subtle);
}

.dashboard-header {
    background: linear-gradient(135deg, #1a2a4a 0%, #2B5A8F 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.logo-icon-small {
    font-size: 1.3rem;
    color: var(--bg-white);
}

.logo-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-name::after {
    content: '';
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.dashboard-search {
    flex: 1;
}

.dashboard-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    font-size: 0.9rem;
}

.dashboard-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dashboard-content {
    padding: 2rem;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.stats-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.stat-item {
    background: linear-gradient(135deg, #F0F8FB 0%, #E8F5E9 100%);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

.stat-item:hover {
    background: linear-gradient(135deg, #E8F5E9 0%, #F0F8FB 100%);
    border-color: var(--border-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: capitalize;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* ========== CHART CARDS ========== */
.chart-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 26, 77, 0.15);
    border: 1px solid var(--border-subtle);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-fast);
}

.chart-card:hover {
    box-shadow: 0 24px 64px rgba(0, 26, 77, 0.2);
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chart-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.chart-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ========== INCIDENTS CHART ========== */
.incidents-chart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.donut-chart {
    flex: 0 0 140px;
    height: 140px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(27, 42, 58, 0.1));
}

.chart-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== ACTIONS CHART ========== */
.actions-chart {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 28px;
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
}

/* ========== WEBINAR SECTION ========== */
.webinar-section {
    background: transparent;
    border-radius: 0;
    padding: 3rem 2rem 2rem;
    text-align: center;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 4;
    margin-top: -1rem;
}

.webinar-section h2 {
    font-size: 1.8rem;
    color: var(--bg-white);
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.webinar-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.btn-register-large {
    background: var(--bg-white);
    color: #003d99;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 8px 24px rgba(0, 26, 77, 0.25);
    letter-spacing: -0.3px;
}

.btn-register-large:hover {
    box-shadow: 0 12px 32px rgba(0, 26, 77, 0.35);
    background: #f0f8fb;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: var(--shadow-xl);
    }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 1.4rem 1.8rem;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-content h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.notification-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: -0.2px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

/* ========================================
   MOBILE MENU ANIMATIONS
   ======================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   RESPONSIVE DESIGN - TABLET (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

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

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-visual {
        order: 2;
    }

    .hero-content {
        max-width: none;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-gradient);
        flex-direction: column;
        padding: 1.2rem;
        gap: 0.8rem;
        border-bottom: 1px solid rgba(21, 128, 224, 0.2);
        box-shadow: var(--shadow-md);
        animation: slideDown 0.3s ease-out;
        z-index: 999;
        width: 100%;
    }

    .nav-menu.active {
        display: flex !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-actions {
        display: none;
    }

    .logo-text {
        display: none;
    }

    .logo-image {
        height: 45px;
    }

    .hero {
        padding: calc(var(--nav-height) + 1rem) 0 2rem;
        min-height: auto;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .image-showcase {
        max-width: 100%;
    }

    .image-showcase::before {
        left: -12px;
        top: -14px;
        width: 111%;
        height: 88%;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    .navbar {
        padding: 0 0.8rem;
    }

    .nav-container {
        min-height: 70px;
        gap: 0.5rem;
        padding: 0 0.4rem;
    }

    .logo-image {
        height: 45px;
    }

    .logo-text {
        font-size: 1rem;
        display: none;
    }

    .hamburger {
        padding: 0.3rem;
        z-index: 1001;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        padding: calc(70px + 1rem) 0 1.5rem;
        min-height: auto;
    }

    .hero-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .image-showcase {
        max-width: 300px;
    }

    .image-showcase::before {
        left: -9px;
        top: -11px;
        width: 109%;
        height: 86%;
        clip-path: polygon(0 0, 68% 10%, 68% 56%, 100% 34%, 100% 100%, 0 100%);
    }
}

/* ========================================
   RESPONSIVE DESIGN - EXTRA SMALL (360px and below)
   ======================================== */
@media (max-width: 360px) {
    .navbar {
        padding: 0 0.6rem;
    }

    .nav-container {
        min-height: 68px;
        gap: 0.3rem;
        padding: 0 0.3rem;
    }

    .logo-image {
        height: 40px;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: -0.3px;
    }

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

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

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero-container {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    .image-showcase {
        max-width: 250px;
    }

    .image-showcase::before {
        left: -7px;
        top: -9px;
        width: 107%;
        height: 84%;
    }
}