/* ======== 1. Global & Variables ======== */
:root {
    --primary-color: #3A5FFF; /* A strong, trustworthy blue */
    --primary-hover: #2a4bff;
    --secondary-color: #00C851; /* Action/success green */
    --secondary-hover: #00b048;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #eee;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; color: var(--text-dark); text-align: center; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { text-decoration: none; color: var(--primary-color); }

/* ======== 2. Utility Classes (Buttons) ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: #f5f7ff;
}

/* ======== 3. Header & Navigation ======== */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem;
}
.nav-links li a:hover {
    color: var(--primary-color);
}
.nav-links .btn-secondary {
    margin-left: 1.5rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======== 4. Hero Section ======== */
.hero {
    background: var(--bg-white);
    padding: 6rem 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-text {
    flex-basis: 50%;
}
.hero-text h1 {
    color: var(--text-dark);
}
.hero-text p {
    font-size: 1.1rem;
    margin: 1.5rem 0;
}
.learn-more {
    margin-left: 1rem;
    font-weight: 600;
}
.learn-more i {
    margin-left: 0.25rem;
}
.hero-image {
    flex-basis: 50%;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    background: #f0f2f5;
    padding: 4rem;
    border-radius: 10px;
}

/* ======== 5. Services Trust Section ======== */
.services-trust {
    background: var(--bg-light);
    padding: 2rem 0;
    text-align: center;
}
.services-trust p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.service-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.service-logos i {
    font-size: 2.5rem;
    color: #bbb;
    transition: color 0.3s ease;
}
.service-logos i:hover {
    color: var(--text-dark);
}

/* ======== 6. Features Section ======== */
.features {
    padding: 6rem 0;
    background: var(--bg-white);
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.icon-wrapper {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 30px; /* Aligns icon */
}
.feature-card h3 {
    color: var(--text-dark);
}

/* ======== 7. Security Section ======== */
.security {
    padding: 6rem 0;
    background: var(--bg-light);
}
.security-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.security-image {
    flex-basis: 50%;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    background: #e6e9f0;
    padding: 4rem;
    border-radius: 10px;
}
.security-text {
    flex-basis: 50%;
}
.pill {
    display: inline-block;
    background: #e6eaff;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.security-text h2 {
    text-align: left;
}
.security-text ul {
    list-style: none;
    margin-top: 1.5rem;
}
.security-text ul li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.security-text ul li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* ======== 8. Final CTA Section ======== */
.final-cta {
    padding: 6rem 0;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
}
.final-cta h2 {
    color: #fff;
}
.final-cta p {
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.final-cta .btn-primary {
    background: #fff;
    color: var(--primary-color);
}
.final-cta .btn-primary:hover {
    background: #f0f0f0;
}

/* ======== 9. Footer ======== */
footer {
    background: #1a1a2e; /* Very dark blue */
    color: #ccc;
    padding-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-about .logo {
    color: #fff;
}
.footer-about p {
    color: #ccc;
    margin: 1rem 0;
}
.social-links a {
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 1rem;
}
.social-links a:hover {
    color: #fff;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
}
.footer-links a:hover {
    color: #fff;
}
.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
}
.footer-copyright p {
    margin: 0;
    color: #888;
}

/* ======== 10. Responsiveness ======== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-image {
        order: 1;
        width: 100%;
        margin-bottom: 2rem;
    }
    .security-content {
        flex-direction: column;
    }
    .security-text {
        text-align: center;
    }
    .security-text h2 {
        text-align: center;
    }
    .security-image {
        width: 100%;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 71px; /* Height of header */
        left: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        display: block;
        padding: 1rem;
    }
    .nav-links .btn-secondary {
        margin: 1rem auto 0.5rem;
        width: 90%;
        text-align: center;
    }
    .hamburger {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        margin-bottom: 2rem;
    }
}