/* ============================================
   SCAMGUARD - Modern CSS Stylesheet
   Color Scheme: Navy Blue, White, Gray
   ============================================ */

/* CSS Variables */
:root {
    --navy: #0a2540;
    --navy-light: #1a3a6f;
    --navy-dark: #051a30;
    --primary: #0a2540;
    --primary-light: #1a3a6f;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1a1a2e;
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: var(--navy-dark);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: -0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(10,37,64,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-image-wrapper {
    display: flex;
    justify-content: center;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: var(--white);
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    margin-bottom: 1.5rem;
}

.stat-card h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.tip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(10,37,64,0.1) 0%, rgba(26,58,111,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tip-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.tip-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Alerts Section */
.alerts-section {
    padding: 80px 0;
    background: var(--white);
}

.alert-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    height: 100%;
    border-left: 4px solid var(--danger);
    position: relative;
}

.alert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.alert-icon {
    width: 50px;
    height: 50px;
    background: rgba(220,53,69,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.alert-icon i {
    font-size: 1.5rem;
    color: var(--danger);
}

.alert-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0.5rem 0;
}

.alert-tag {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 1rem;
    font-weight: 600;
}

/* FAQ Section */
.faq-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.cta-wrapper {
    position: relative;
    z-index: 1;
}

.cta-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-wrapper .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-wrapper .btn-primary:hover {
    background: var(--light);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 30px;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white) !important;
    transform: translateX(5px);
    display: inline-block;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10,37,64,0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

#backToTop:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Logo styling */
.navbar-brand img,
.navbar-logo,
.footer-logo {
    display: inline-block;
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* Responsive logo */
@media (max-width: 768px) {
    .navbar-brand img,
    .navbar-logo,
    .footer-logo {
        max-height: 55px;
    }
}

/* Print styles - ensure logo prints properly */
@media print {
    .navbar-brand img {
        filter: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .tips-section, .alerts-section, .faq-preview {
        padding: 50px 0;
    }
    
    .cta-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}