/* ===================================
   LANDING PAGE STYLES
   =================================== */

:root {
    --primary-color: #667eea;
    --secondary-color: #fbbf24;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.98) !important;
}

.navbar-brand {
    font-weight: 700;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-login {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-actions {
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.hero-actions .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-image-wrapper {
    animation: fadeInRight 1s ease 0.8s backwards;
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ===================================
   WHY SECTION
   =================================== */

.why-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.why-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.why-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features-section {
    background: var(--dark-card);
}

.section-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.feature-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===================================
   BENEFITS SECTION
   =================================== */

.benefits-section {
    background: var(--dark-bg);
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(10px);
}

.benefit-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-item h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.benefit-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.benefits-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preview-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.preview-card:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.preview-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.preview-card h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: var(--dark-card);
}

.cta-card {
    background: var(--dark-bg);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===================================
   CCTV PREVIEW SECTION
   =================================== */

.cctv-preview-section {
    background: var(--dark-card);
}

.cctv-preview-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.cctv-preview-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.cctv-preview-header {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cctv-status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cctv-status-badge i {
    font-size: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.cctv-preview-video {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.cctv-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden until stream loads */
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 2;
}

.btn-play-preview {
    background: rgba(102, 126, 234, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 1rem;
    z-index: 3;
}

.btn-play-preview:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-play-preview i {
    font-size: 2rem;
    color: white;
}

.btn-play-preview .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 3px;
    color: white;
}

.video-placeholder i {
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.5);
    margin-bottom: 0.5rem;
}

.video-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cctv-preview-info {
    padding: 1.5rem;
}

.cctv-preview-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.cctv-preview-location {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.cctv-preview-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.empty-cctv-state {
    padding: 3rem;
    text-align: center;
}

.empty-cctv-state i {
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 1rem;
}

.empty-cctv-state h5 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-cctv-state p {
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   FOOTER
   =================================== */

.footer-section {
    background: var(--dark-bg);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 4rem 0 2rem;
}

.footer-brand h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(102, 126, 234, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    justify-content: end;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-preview {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--secondary-color);
    color: var(--dark-bg);
}
