/* Base Styles */
:root {
    --primary: #0066ff;
    --primary-hover: #0052cc;
    --dark: #0A1128;
    --darker: #050a18;
    --dark-border: #1e293b;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --text-main: #f8fafc;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
}

/* Typography & Colors */
.text-primary { color: var(--primary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-darker { background-color: var(--darker) !important; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.fs-7 { font-size: 0.875rem; }

.text-primary-gradient {
    background: linear-gradient(90deg, #4da3ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

homesafe-header {
    display: block;
}

homesafe-footer {
    display: block;
}

/* Navbar */
.navbar-brand {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.navbar-brand img {
    height: 30px !important;
    width: auto;
    max-height: 35px;
    display: inline-block;
    vertical-align: middle;
}

.navbar {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    background-color: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: rgba(5, 10, 24, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.navbar-nav {
    gap: 0.15rem !important;
}
.nav-link {
    color: var(--gray-300) !important;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 0.4rem 0.55rem !important;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.55rem;
    right: 0.55rem;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}
.btn-lg {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem !important;
}

/* Hero Section */
.hero-section {
    padding-top: 110px;
    padding-bottom: 1rem;
    background-image: url('../images/HomeSafe-background_banner_image.jpg');
    background-size: cover;
    background-position: right center;
}
.hero-vh {
    min-height: 100vh;
}
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--dark) 0%, rgba(10, 17, 40, 0.9) 25%, transparent 55%);
    z-index: 0;
}
.hero-phone {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Client Logos */
.client-logos > div {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.client-logos > div:hover {
    opacity: 1;
}

/* Features */
.feature-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.04);
    border: 1px solid rgba(0, 102, 255, 0.08);
    transition: all 0.3s ease;
}
.feature-icon-box i {
    font-size: 54px !important;
}
.feature-icon-box:hover, .hover-lift:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-5px);
}
.ai-custom-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: invert(24%) sepia(87%) saturate(2256%) hue-rotate(209deg) brightness(100%) contrast(106%);
}

/* About Page Specific Styles */
.about-hero-features {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
}
.about-hero-features i {
    color: var(--primary);
    font-size: 1.5rem;
}
.value-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary);
    font-size: 1.5rem;
}
.impact-section {
    background-image: url('../images/impact_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.impact-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 20, 0.85);
    z-index: 0;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}
.stat-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    transition: left 0s;
}
.team-card:hover::before {
    left: 200%;
    transition: left 0.8s ease;
}
.team-card img {
    width: 100%;
    height: auto;
    display: block;
}
.team-info {
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5,8,20,1) 0%, rgba(5,8,20,0.8) 50%, transparent 100%);
}
.timeline-container {
    position: relative;
    padding: 20px 0;
}
.timeline-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(0, 102, 255, 0.3);
    z-index: 0;
}
.timeline-item {
    position: relative;
    z-index: 1;
}
.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 102, 255, 0.6);
    transform: scale(1.15);
}
.cta-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.02) 100%);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
}

/* Platform Showcase */
.platform-showcase {
    background-color: var(--dark);
}
.glow-bg {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.feature-list li {
    font-size: 0.95rem;
}
.showcase-images .laptop-img {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    border-radius: 12px;
}
.showcase-images .phone-img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    animation: float-delayed 7s ease-in-out infinite;
}
@keyframes float-delayed {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Stats */
.stats-section {
    border-color: rgba(255,255,255,0.05) !important;
}

/* Sectors */
.sector-card {
    transition: all 0.3s ease;
    border-color: rgba(255,255,255,0.05) !important;
}
.sector-card:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.3) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.sector-custom-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: invert(24%) sepia(87%) saturate(2256%) hue-rotate(209deg) brightness(100%) contrast(106%);
}

/* CTA Section */
.cta-section {
    background-color: var(--darker);
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at bottom right, rgba(0, 102, 255, 0.15), transparent 60%);
    z-index: 0;
}
.checkin-popup {
    bottom: 20px;
    left: -20px;
    backdrop-filter: blur(10px);
    background: rgba(10, 17, 40, 0.85) !important;
    animation: slide-up 1s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer-logo, .footer img[alt="HomeSafe Logo"] {
    height: 30px !important;
    width: auto;
    max-height: 35px;
    display: block;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

.footer {
    border-color: rgba(255,255,255,0.05) !important;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/footer_pattern.png');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}
.footer > .container {
    position: relative;
    z-index: 1;
}
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.text-hover-primary:hover {
    color: var(--primary) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    .hero-bg-overlay {
        background: linear-gradient(180deg, var(--dark) 0%, rgba(10, 17, 40, 0.8) 100%);
    }

/* Register Modal Dark Theme */
#registerModal .modal-content {
    background-color: #0A1128 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8) !important;
}

#registerModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#registerModal .form-control,
#registerModal .form-select {
    background-color: #050a18 !important;
    color: #f8fafc !important;
    border: 1px solid #1e293b !important;
}

#registerModal .form-control::placeholder {
    color: #9ca3af !important;
}

#registerModal .form-select option {
    background-color: #050a18 !important;
    color: #f8fafc !important;
}

#registerModal .form-label {
    color: #d1d5db !important;
}

#registerModal .modal-body p {
    color: #9ca3af !important;
}

#registerInterestModal .captcha-box {
    background: repeating-linear-gradient(-45deg, #050a18, #050a18 4px, #0f172a 4px, #0f172a 5px) !important;
    border-color: #1e293b !important;
}    .hero-content .d-flex {
        justify-content: center;
    }
    .client-logos {
        justify-content: center;
    }
}

.landing-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

[data-captcha-image][aria-busy="true"] {
    opacity: 0.45;
}
