/* ========================================
   FinTrust Financial Services - Styles
   Complete Landing Page CSS
======================================== */

/* CSS Variables */
:root {
    --primary-color: #0F2C59;
    --secondary-color: #3D7CFF;
    --accent-color: #F5C400;
    --text-dark: #0F172A;
    --text-body: #1E293B;
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-off-white: #F1F5F9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header Section
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-medium);
}

.cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 124, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(61, 124, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61, 124, 255, 0);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    bottom: 50px;
    right: 100px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    right: 30%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Hero Animations */
.fade-slide {
    animation: fadeSlide 0.8s ease-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Glow Effect */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), transparent, var(--secondary-color));
    border-radius: var(--border-radius);
    z-index: -1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About Preview Section
======================================== */
.about-preview {
    background: var(--bg-white);
}

.highlight-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.highlight-icon {
    color: #10B981;
    font-size: 1.2rem;
}

/* Icon Animation */
.icon-animate {
    transition: var(--transition-medium);
}

.icon-animate:hover {
    transform: scale(1.1);
}

/* ========================================
   Why Choose Us Section
======================================== */
.why-choose-us {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hover-animate:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Services Section
======================================== */
.services {
    background: var(--bg-white);
}

.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-medium);
}

.tab-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.tab-btn.active {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.services-content {
    max-width: 900px;
    margin: 0 auto 40px;
}

.service-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.service-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.service-item:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.services-cta {
    text-align: center;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials {
    background: var(--bg-light);
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-stars {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-medium);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* ========================================
   FAQ Section
======================================== */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--bg-off-white);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-light);
}

/* ========================================
   Contact Section
======================================== */
.contact {
    background: var(--bg-light);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--bg-off-white);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Validation */
.form-group input:invalid:not(:placeholder-shown),
.form-group input.error {
    border-color: #EF4444;
}

.form-group input.valid {
    border-color: #10B981;
}

/* Slide Up Animation */
.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Success Message */
.form-success {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #D1FAE5;
    border-radius: var(--border-radius);
    color: #065F46;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.form-success.show {
    display: block;
}

/* ========================================
   Newsletter Section
======================================== */
.newsletter {
    background: var(--primary-color);
    padding: 60px 0;
}

.newsletter-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.newsletter-card .section-title {
    font-size: 1.8rem;
}

.newsletter-card > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-row {
    grid-template-columns: repeat(3, 1fr);
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   Legal Section
======================================== */
.legal-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.legal-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.legal-block {
    text-align: center;
}

.legal-block h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.legal-block p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ========================================
   Footer Section
======================================== */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-medium);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(61, 124, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.domain {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition-medium);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .header .cta-btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-bg-shapes {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .newsletter-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 25px;
    }

    .contact-form {
        padding: 25px;
    }

    .newsletter-card {
        padding: 30px 20px;
    }

    .services-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        text-align: center;
    }
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

/* Mobile Touch Improvements */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .service-item:hover {
        transform: none;
    }

    .social-icon:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-outline:hover {
        transform: none;
    }

    .cta-btn:hover {
        transform: none;
    }
}

 /* --- Modal Overlay --- */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; 
            z-index: 1000; 
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto; 
            background-color: rgba(0,0,0,0.5); /* Black background with opacity */
            justify-content: center;
            align-items: center;
        }

        /* --- Modal Content --- */
        .modal-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            width: 90%;
            max-width: 1100px;
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from {opacity: 0; transform: translateY(-20px);}
            to {opacity: 1; transform: translateY(0);}
        }

        /* --- Close Button --- */
        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            font-weight: bold;
            color: #333;
            cursor: pointer;
        }

        .close-btn:hover {
            color: var(--accent-color);
        }
