/*
 * MODERN FINANCE WEBSITE - styles.css (Updated Version 5: Features & CTA Sections)
 *
 * This version adds:
 * - New Section: #features (Parallax Scrolling Background with Neon Icons).
 * - New Section: #cta-banner (Split Gradient Call-to-Action).
 * - Global: Text Gradients for all main headings.
 * - Global: Subtle Ripple/Pulse effect for primary buttons.
 */

:root {
    --color-primary-start: #1c4d92;   /* Deep Ocean Blue */
    --color-primary-end: #2c3e50;     /* Dark Navy/Grey */
    --color-accent-start: #00bcd4;    /* Electric Teal */
    --color-accent-end: #00e5ff;      /* Bright Cyan */
    --color-dark: #2c3e50;            /* Dark professional background */
    --color-light: #ecf0f1;           /* Light background/text */
    --color-text-dark: #34495e;       /* Dark text */
    --color-text-light: #ecf0f1;      /* Light text */
    --transition-speed: 0.35s;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.25);
    --blur-intensity: 20px;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Global Transitions for smooth interaction */
a, button, .card, .nav-link, .service-card, .feature-card { /* Added .feature-card */
    transition: all var(--transition-speed) ease-in-out;
}

/* Utility Gradients */
.gradient-primary {
    background-image: linear-gradient(45deg, var(--color-primary-start), var(--color-primary-end));
}
.gradient-accent {
    background-image: linear-gradient(45deg, var(--color-accent-start), var(--color-accent-end));
}

/* * --- Global Text Gradient Heading (New) ---
 */
.section-heading, .section-heading-dark {
    font-weight: 700;
    
    /* Apply Gradient to Text */
    background-image: linear-gradient(45deg, var(--color-primary-start), var(--color-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Reverting for dark section headings, as they already use light colors */
    /* .section-heading-dark will use color: var(--color-light); instead, see below */
}

/* Special treatment for dark backgrounds */
.section-heading-dark {
    color: var(--color-light); /* Fallback */
    /* Stronger gradient for contrast on dark background */
    background-image: linear-gradient(45deg, #ffffff, var(--color-accent-end), #80e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subheading {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-subheading-dark {
    color: #bdc3c7;
}

/* * --- Global Button Ripple/Pulse Effect (New) ---
 */
.btn-read-more, .btn-hero-cta, .btn-faq-cta, .form-submit-btn, .subscribe-again-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-read-more:hover, .btn-hero-cta:hover, .btn-faq-cta:hover, .form-submit-btn:hover, .subscribe-again-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    animation: ripple-pulse 1s;
}

@keyframes ripple-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}


/*
 * --- 1. Navbar Styles (Retained) ---
 */
.navbar-custom {
    padding: 1rem 0;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background-color: transparent;
    z-index: 1030; /* Ensure navbar is above hero 3D card */
}

.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(5px);
}

.navbar-custom .nav-link {
    color: var(--color-text-dark) !important;
    position: relative;
    padding-bottom: 0.5rem;
    margin: 0 0.5rem;
    font-weight: 500;
}

/* Navbar Link Hover Underline Animation */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-image: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    transition: width 0.3s ease-out, left 0.3s ease-out;
    border-radius: 2px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
    left: 0;
}

.navbar-custom .nav-link.active {
    font-weight: 700;
}

.navbar-brand .logo-text {
    font-weight: 800;
    font-size: 1.6rem;
    margin-left: 0.5rem;
    background-image: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-logo {
    width: 45px;
    height: 45px;
    background-image: linear-gradient(45deg, var(--color-accent-start), var(--color-primary-start));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

/*
 * --- 2. Hero Section Styles (Shattered Glass / 3D Perspective) ---
 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    perspective: 2500px; /* Crucial for strong 3D effect */
}

/* Animated Background Shapes (Retained, slightly adjusted) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--color-primary-start) 10%, transparent 50%),
                radial-gradient(circle at bottom right, var(--color-primary-end) 10%, transparent 50%);
    background-color: #2c3e50;
    z-index: -2;
    overflow: hidden;
}

/* Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Darker overlay for high contrast */
    z-index: -1;
}

/* Shattered Glass Card */
.glassy-card {
    background: rgba(255, 255, 255, 0.05); /* Very subtle background */
    backdrop-filter: blur(var(--blur-intensity));
    border-radius: 1.5rem;
    padding: 3rem;
    color: white;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7); /* Much deeper shadow */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(10deg) rotateY(-7deg) translateY(0); /* Initial strong 3D tilt */

    /* New: Holographic/Shattered Border Effect (Multiple layers) */
    position: relative;
    overflow: hidden;
    animation: float-shimmer 10s ease-in-out infinite alternate;
}

/* Shattered Effect using Pseudo-elements and clip-path */
.glassy-card::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.8), rgba(28, 77, 146, 0.5));
    z-index: -1;
    /* Simulate shattered pieces using clip-path */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transition: clip-path 0.5s;
    opacity: 0.5;
    animation: shimmer-clip 5s infinite alternate;
}

@keyframes float-shimmer {
    0% { transform: perspective(1000px) rotateX(10deg) rotateY(-7deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(8deg) rotateY(7deg) translateY(-15px); }
    100% { transform: perspective(1000px) rotateX(10deg) rotateY(-7deg) translateY(0); }
}

/* Subtle Shimmer on the pseudo-border */
@keyframes shimmer-clip {
    0% { opacity: 0.5; transform: scale(1.0); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

/* Refined Headline Style for Focus (Retained and Enhanced) */
.glassy-card h1 {
    font-size: clamp(2.5rem, 6vw, 5rem); /* Larger and more responsive */
    background-image: linear-gradient(45deg, #ffffff, var(--color-accent-end), #80e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5); /* Stronger glow */
    line-height: 1.1;
    font-weight: 800;
}

/* Hero CTA Button Style (Retained, high contrast) */
.btn-hero-cta {
    background-image: linear-gradient(45deg, var(--color-accent-start), var(--color-accent-end));
    border: none;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/*
 * --- 3. Features Section (Parallax Scrolling with Neon Icons) ---
 */
.features-section {
    padding: 8rem 0;
    background-color: var(--color-dark); /* Dark background for neon effect */
    position: relative;
    overflow: hidden;
    perspective: 1px; /* Enable parallax */
    transform-style: preserve-3d;
}

/* Parallax Background Layer */
.features-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://source.unsplash.com/random/1600x900/?abstract,digital,dark') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0.1; /* Very subtle background image */
    
    /* Parallax Effect: move background slower than foreground (z>1) */
    transform: translateZ(-1px) scale(2); 
    filter: blur(2px);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03); /* Nearly transparent */
    backdrop-filter: blur(10px); /* Light blur */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: var(--color-text-light);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transform: translateZ(0); /* Ensure foreground content is on Z-plane 0 */
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.4); /* Added glow on hover */
}

/* Neon Icon Styling */
.feature-icon-wrapper i {
    font-size: 3rem;
    /* Neon Glow Effect */
    color: var(--color-accent-end);
    text-shadow: 
        0 0 5px var(--color-accent-start),
        0 0 15px var(--color-accent-end),
        0 0 25px var(--color-accent-end);
    transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon-wrapper i {
    color: white;
    text-shadow: 
        0 0 8px #fff,
        0 0 20px var(--color-accent-end),
        0 0 35px var(--color-accent-end);
}

/*
 * --- 4. About Section Styles (Asymmetric Luminous Border) ---
 */
.about-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f7f9fb; /* Slightly off-white for contrast */
}

/* About Text Card - Luminous Border Effect */
.about-text-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
    height: 100%;
    
    /* Luminous Border using inset box-shadow */
    border: 1px solid #eee;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 5px rgba(0, 229, 255, 0.05), /* Subtle inner glow */
        0 0 20px rgba(0, 229, 255, 0.25); /* Stronger outer glow */
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 5px rgba(0, 229, 255, 0.05); }
    100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(0, 229, 255, 0.1), 0 0 30px rgba(0, 229, 255, 0.4); }
}

/* About Image - Geometric Clip Path */
.about-image {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 0; /* Remove standard border-radius */
    box-shadow: var(--shadow-medium);
    /* New: Geometric shape via clip-path */
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transform: scale(1.0) translateY(0);
    transition: transform 0.5s ease-in-out;
}

.about-image:hover {
    transform: scale(1.02) translateY(-5px);
}

/*
 * --- 5. Services Section Styles (Liquid Gradient Blob Cards) ---
 */
#services {
    background-color: var(--color-dark); /* Dark background for vibrant contrast */
    color: var(--color-text-light);
}

.service-card {
    border: none;
    border-radius: 1.5rem; /* Larger radius */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.05); /* Glassy base on dark bg */
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 1px; /* Required for pseudo-element inset/border */
}

/* Liquid Blob Background Effect (Pseudo-element for animated inner glow/border) */
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px; /* Slight inset for border visual */
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--color-accent-start) 0%,
        var(--color-primary-start) 20%,
        var(--color-primary-end) 60%,
        var(--color-accent-end) 100%
    );
    z-index: -2;
    border-radius: 1.5rem;
    filter: blur(8px); /* Soft glow blur */
    opacity: 0.6;
    animation: rotate-gradient 8s linear infinite; /* New: Rotating gradient animation */
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: rotate(360deg); opacity: 0.6; }
}

/* Inner Body of the card (Must be white/light to show content) */
.service-card-body {
    padding: 1.5rem;
    background-color: #2c3e50; /* Dark inner background */
    flex-grow: 1;
    border-radius: calc(1.5rem - 1px); /* Match outer radius minus padding */
    color: var(--color-text-light);
    position: relative;
    z-index: 2;
}

/* Service Card Hover Effect */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.service-card:hover::before {
    animation-duration: 4s; /* Faster spin on hover */
    opacity: 1;
}


/* Icon Wrapper (Retained high contrast) */
.service-icon-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(45deg, var(--color-accent-start), var(--color-primary-start));
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.6);
    transition: transform 0.3s ease-in-out, background-image 0.5s;
}

/* Icon Animation on Card Hover */
.service-card:hover .service-icon-wrapper {
    transform: rotateY(360deg) scale(1.1); /* 3D full spin/pop animation */
}

.sub-service-card {
    border-top: 1px dashed #3c546e; /* Light dashed line on dark background */
    border-radius: 0 0 1.5rem 1.5rem;
    background-color: #34495e; /* Slightly lighter dark shade */
    padding: 1.5rem;
    margin-top: auto;
}

.sub-service-card ul {
    list-style: none;
    padding-left: 0;
}

.sub-service-card li {
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    color: #e0e0e0;
}

.sub-service-card li i {
    margin-right: 0.6rem;
    color: var(--color-accent-end);
    animation: icon-float 2s infinite alternate;
    min-width: 20px;
}

@keyframes icon-float {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

/*
 * --- 6. CTA Banner Section (Split Gradient) ---
 */
.cta-banner {
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-background-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Diagonal split gradient */
    background: linear-gradient(135deg, 
        var(--color-primary-start) 0%, 
        var(--color-primary-end) 50%, 
        var(--color-accent-start) 50%, 
        var(--color-accent-end) 100%
    );
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta-action {
    background-color: white;
    color: var(--color-dark);
    font-weight: 700;
    padding: 0.8rem 3rem;
    border-radius: 0.5rem;
}

.btn-cta-action:hover {
    background-color: var(--color-accent-end);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
}


/* --- Other Sections (Retained for continuity) --- */

.testimonial-card-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
}

.testimonial-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    height: 100%;
}

.btn-read-more {
    background-image: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    color: white;
    border: none;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: white !important;
    background-image: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end)) !important;
}

.btn-faq-cta {
    background-image: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    color: var(--color-dark);
    font-weight: 600;
    border: none;
}

.btn-faq-cta:hover {
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.5);
    color: var(--color-dark);
}

.form-submit-btn {
    background-image: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    color: white;
    border: none;
}

.unsubscribe-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
}

.subscribe-again-btn {
    background-image: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    color: white;
    border: none;
}

.footer {
    background-image: linear-gradient(45deg, var(--color-dark) 0%, #34495e 100%);
    color: var(--color-light);
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--color-accent-start);
    padding-left: 5px;
}

.footer-brand .logo-text {
    background-image: linear-gradient(90deg, var(--color-light), var(--color-accent-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-address i {
    color: var(--color-accent-start);
    margin-right: 0.5rem;
}

.success-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    background-color: #27ae60;
    color: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Utility Class Retained */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row > [class*="col-"] {
    display: flex;
}

.equal-height-row > [class*="col-"] > div {
    width: 100%;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .glassy-card, .about-image, .service-card::before, .about-text-card {
        animation: none !important;
        transform: none !important;
    }
    .service-card::before {
        opacity: 1 !important;
        filter: none !important;
        background: linear-gradient(135deg, var(--color-accent-start), var(--color-primary-end)) !important;
    }
    .service-card:hover .service-icon-wrapper {
        transform: none !important;
    }
    .btn-read-more:hover, .btn-hero-cta:hover, .btn-faq-cta:hover, .form-submit-btn:hover, .subscribe-again-btn:hover {
        animation: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
}