/* 
  Theme: Modern Financial Advisor
  Colors: Navy Blue & Gold
  Fonts: Outfit (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    --primary: #0f172a;
    /* Slate 900 */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #004C8F;
    /* Custom Blue 600 */
    --accent-hover: #003a70;
    /* Custom Blue 800 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-body: rgba(248, 250, 252, 0.85);
    /* More transparent */
    --bg-white: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-bull-bear.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Balanced opacity */
    z-index: -1;
    pointer-events: none;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-body);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: var(--bg-white);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}


.highlight-text {
    background: #004C8F;
    color: white;
    padding: 0 0.2em;
    border-radius: 8px;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(0, 76, 143, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 76, 143, 0.23);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-green {
    background-color: #16a34a;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.39);
}

.btn-green:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(22, 163, 74, 0.23);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #004C8F;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 32px;
    /* 2 stripes of 16px */
    background: linear-gradient(to right, #004C8F 50%, #ED232A 50%);
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--bg-body) 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
}

.hero-image {
    position: relative;
}

.image-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(200deg, rgba(0, 76, 143, 0.1), rgba(15, 23, 42, 0.05));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: blob-bounce 8s infinite ease-in-out;
}

.advisor-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    background: white;
    padding: 10px;
}

@keyframes blob-bounce {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Services */
.services {
    background-color: var(--bg-white);
    margin-bottom: 0;
    /* No gap after services */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-body);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 3px solid #004C8F;
    /* Thicker Midnight Blue outline */
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    /* border-color: rgba(245, 158, 11, 0.1); */
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 76, 143, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background-color: var(--bg-body);
    margin-bottom: 0;
    /* No gap after about */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

/* Testimonials */
.testimonials {
    background: var(--primary);
    color: white;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: left;
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.client-info h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.client-info p {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Contact */
#contact.section {
    padding: 2.5rem 0;
    /* Reduced margins/padding by 50% */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 1.5rem;
    /* Reduced from 3rem */
}

.contact-info {
    background: var(--primary);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3,
.contact-info h4,
.contact-info p,
.contact-info i {
    color: white !important;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 76, 143, 0.1);
}

/* FAQ Section */
.faq {
    background: var(--bg-white);
}

.faq-list {
    list-style: none;
    max-width: 800px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.faq-item {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 14px;
    /* Medium size round bullet */
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent);
    /* Midnight Blue */
}

.faq-question {
    display: block;
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-main);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary-light);
    color: white;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .image-blob {
        width: 100%;
        height: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-container {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations using Intersection Observer classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Flip Card Logic */
.flip-card-container {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    min-height: 350px;
    /* Ensure uniform height for grid and space for back content */
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Service Card Override for Grid Consistency */
.service-card {
    min-height: 350px;
    /* Match flip card height */
}

.flip-card-front {
    background: var(--bg-body);
    z-index: 2;
    padding: 2.5rem;
    border: 3px solid #004C8F;
    display: flex;
    flex-direction: column;
}

.flip-card-back {
    background: var(--primary);
    /* Navy Blue background for back */
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-container:hover .flip-card-front {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 76, 143, 0.1);
}

.flip-card-back h3 {
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.invest-item {
    margin-bottom: 1.5rem;
}

.invest-item h4 {
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.invest-item h4 i {
    color: var(--accent);
    font-size: 0.9em;
}

.invest-item p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.tap-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}