/* 
 * Creative Wealth - Premium FinTech Design System
 * Stable Version 3.0
 */

:root {
    --primary: #0f172a;    /* Deep Navy */
    --accent: #10b981;     /* Emerald Green */
    --accent-hover: #059669;
    --text-main: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.12);
}

/* Base Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    color: var(--text-main); 
    background: var(--white); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

/* 1. Navigation & Ticker */
.top-ticker-bar {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-ticker-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ticker-label {
    background: var(--accent);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 10;
    flex-shrink: 0;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 45px;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    margin-left: 20px; /* Space from the label */
}

.ticker-content {
    display: inline-flex;
    animation: ticker-scroll 50s linear infinite;
    gap: 120px; /* Increased gap for better clarity */
    align-items: center;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    cursor: pointer;
    position: relative;
    padding: 0 15px;
    transition: color 0.3s;
    height: 45px;
    display: flex;
    align-items: center;
}

.ticker-text {
    font-weight: 600;
}

.ticker-item:hover .ticker-text {
    color: var(--accent);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Global Insight Panel (Outside the clipped overflow) */
.global-news-insight {
    position: fixed;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 450px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10002;
}

.global-news-insight.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.insight-inner h3 { margin-bottom: 12px; color: var(--primary); font-size: 1.25rem; font-weight: 700; }
.insight-inner p { margin-bottom: 15px; color: var(--text-light); line-height: 1.6; font-size: 0.95rem; }
.insight-inner img { max-width: 100%; border-radius: 12px; margin-bottom: 15px; display: block; }
.insight-inner table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.insight-inner th, .insight-inner td { padding: 8px; border-bottom: 1px solid #eee; }

.ticker-contact {
    display: flex;
    gap: 25px;
    margin-left: 40px;
    flex-shrink: 0;
}

.ticker-contact a:hover { color: var(--accent); }

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.nav-master {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-spacer {
    height: 135px; /* Ticker (45px) + Nav (90px) */
    width: 100%;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-left: 12px;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.header-tagline {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: -1px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.85;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-wealth { color: var(--primary); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.5px; }
.logo-records { color: var(--accent); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.5px; }
.logo-domain { color: var(--text-muted); font-size: 0.95rem; margin-left: 1px; font-weight: 600; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s ease;
}

/* Beautiful animated underline for main menu items */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu > li > a:hover { 
    color: var(--accent); 
}

/* Micro-interaction: fade out non-hovered items */
.nav-menu:hover > li:not(:hover) {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Dropdown Logic */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.04);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover > a > i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin-bottom: 3px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
    transform: translateX(4px);
}

.nav-menu .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-menu .btn-primary::after {
    display: none !important;
}

.nav-menu .btn-primary:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(0, 168, 150, 0.35);
    filter: brightness(1.05);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger to X animation */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* 2. Impressive Hero Section */
.hero {
    position: relative;
    padding: 260px 0 180px;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.page-hero {
    position: relative;
    padding: 130px 0 80px;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 40vh;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero::after, .page-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero .container, .page-hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: block;
}

.hero-subtitle-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    display: inline-block;
    border-bottom: 3px solid var(--white);
    padding-bottom: 5px;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(16,185,129,0.3); }

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-outline { border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* Modern Split Hero Section */
.hero-split {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content-left {
    color: var(--white);
    text-align: left;
}

.hero-content-left h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.hero-content-left p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 650px;
    line-height: 1.6;
}

.text-accent {
    color: var(--accent);
}

.hero-video-right {
    position: relative;
    z-index: 5;
}

.video-frame-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(16,185,129,0.2), 0 40px 100px rgba(0,0,0,0.6);
    border: 5px solid var(--accent);
    background: #000;
    width: 100%;
    max-width: 750px;
    margin-left: auto;
}

.hero-video-element {
    width: 100%;
    height: auto;
    display: block;
}


.video-overlay-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 1200px) {
    .hero-split {
        padding: 180px 0 100px;
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content-left h1 {
        font-size: 3.5rem;
    }
    .hero-content-left p {
        margin: 0 auto 40px;
    }
    .video-frame-wrapper {
        margin: 0 auto;
        max-width: 400px;
    }
}


/* 3. About Section Grids */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    text-align: center;
}

/* CTA Section Styles */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
    color: var(--white);
    text-align: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

@media (max-width: 992px) {
    .about-grid, .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .cta-grid div:last-child {
        display: none; /* Hide decorative award icon on mobile */
    }
}

@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .cta-grid h2 { font-size: 2.2rem !important; }
    .cta-grid p { font-size: 1.1rem !important; }
}

/* 4. WhatsApp & Floating Widgets */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(37,211,102,0.3);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-fab:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(37,211,102,0.4); color: var(--white); }

.floating-hub {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Moved to Right */
    z-index: 10001;
}

/* Calculator Specifics */
.calc-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-section {
    background: var(--bg-light);
}

.glass-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* 5. Footer Architecture */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer h4 { margin-bottom: 25px; font-size: 1.2rem; color: var(--white); }
.footer p, .footer a { color: var(--text-muted); font-size: 0.95rem; }

.footer-about-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .footer-about-socials {
        justify-content: center !important;
    }
}

/* Footer Compliance Line Styles */
.footer-compliance-line {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-compliance-line p {
    font-size: 0.82rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 0;
    letter-spacing: 0.3px;
}

.footer-compliance-line p strong {
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 600;
}

/* Disclaimer Styles */
.footer-disclaimer-box {
    margin-top: 30px;
    text-align: center;
}

.footer-disclaimer-box p {
    font-size: 0.82rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35) !important;
    text-align: center;
    margin: 0;
}

.footer-disclaimer-box p strong {
    color: rgba(255, 255, 255, 0.55) !important;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0;
}

/* 6. Sticky Contact Button & Side Drawer */
.sticky-contact-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 20px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 9999;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.sticky-contact-btn i {
    transform: rotate(90deg);
    font-size: 1.2rem;
}

.sticky-contact-btn:hover {
    padding-right: 20px;
    background: var(--accent-hover);
}

/* Side Drawer */
.contact-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: #0f172a; /* Deep dark for premium feel */
    color: var(--white);
    z-index: 10002;
    transition: var(--transition);
    box-shadow: -10px 0 50px rgba(0,0,0,0.3);
    padding: 40px;
    overflow-y: auto;
}

.contact-drawer.open {
    right: 0;
}



.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
}

.drawer-overlay.visible {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.close-drawer {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.close-drawer:hover {
    background: rgba(255,255,255,0.2);
}

/* Form Styles inside Drawer */
.drawer-form .form-group {
    margin-bottom: 25px;
}

.drawer-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.drawer-form input, 
.drawer-form select, 
.drawer-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.drawer-form input:focus, 
.drawer-form select:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    outline: none;
}

.drawer-form .btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--primary);
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.drawer-form select option {
    background: #1e293b; /* Match drawer bg */
    color: var(--white);
}

/* 7. Core Page Component Styles */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.services-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-grid, .features-grid { grid-template-columns: 1fr; }
}

/* Card Components */
.service-card, .post-card, .portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover, .post-card:hover, .portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card img, .post-card img, .portfolio-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-card-content, .post-card-content, .portfolio-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3, .post-card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card-content p, .post-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex: 1;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}

/* Blog Specifics */
.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: var(--transition);
}

.blog-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.blog-card-content {
    padding: 40px;
}

.blog-card-content .meta {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-main);
}

.category-list a:hover { color: var(--accent); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 15px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 8. AI Chatbot Interface */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.chatbot-trigger:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.chatbot-container.active { display: flex; animation: slideUp 0.3s ease; }

.chatbot-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info { display: flex; align-items: center; gap: 12px; }
.bot-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chatbot-header h4 { font-size: 1.1rem; font-weight: 700; }
.status { font-size: 0.75rem; color: var(--accent); }

.chatbot-body { height: 400px; padding: 25px; overflow-y: auto; background: #f8fafc; }
.welcome-msg { font-size: 0.9rem; color: var(--text-main); margin-bottom: 20px; font-weight: 600; }

.chat-form input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #e2e8f0; border-radius: 10px; }
.btn-chat-start { width: 100%; padding: 12px; background: var(--accent); color: var(--white); border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }

.chat-messages { display: flex; flex-direction: column; gap: 15px; }
.message { padding: 12px 18px; border-radius: 15px; font-size: 0.9rem; max-width: 85%; }
.message.user { align-self: flex-end; background: var(--primary); color: var(--white); border-bottom-right-radius: 2px; }
.message.bot { align-self: flex-start; background: var(--white); color: var(--text-main); border: 1px solid #e2e8f0; border-bottom-left-radius: 2px; }

.chatbot-footer { padding: 15px; background: var(--white); border-top: 1px solid #f1f5f9; display: flex; gap: 10px; }
.chatbot-footer input { flex: 1; border: none; padding: 10px; outline: none; font-size: 0.9rem; }
.chatbot-footer button { background: var(--primary); color: var(--white); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 9. Portfolio Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none; /* Strictly hidden */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover { transform: scale(1.1); color: var(--accent); }

/* Portfolio Specifics */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }

.portfolio-overlay h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.portfolio-overlay p { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* 10. Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.team-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.team-card .role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.team-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}
/* 11. Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background: var(--white);
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--accent);
    background: var(--bg-light);
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card h4 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Premium Form Styling */
.premium-form-wrapper {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border-radius: 15px;
    border: 2px solid var(--bg-light);
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,210,144,0.1);
}

textarea.form-control {
    resize: none;
}

select.form-control {
    appearance: none;
    background-image: url(" data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 24 24 fill=none stroke=%23002b4e stroke-width=2 stroke-linecap=round stroke-linejoin=round%3E%3Cpolyline points=6 9 12 15 18 9%3E%3C/polyline%3E%3C/svg%3E\);
 background-repeat: no-repeat;
 background-position: right 20px center;
 background-size: 20px;
}

.contact-map-wrapper {
 margin-top: 100px;
 border-radius: 40px;
 overflow: hidden;
 box-shadow: var(--shadow-lg);
 height: 450px;
 border: 10px solid var(--white);
}

@media (max-width: 992px) {
 .contact-grid {
 grid-template-columns: 1fr;
 }
}

/* --- Modern Animated Process Section --- */
.process-wrapper {
    position: relative;
    padding: 60px 0;
    margin-top: 40px;
}

.process-line {
    position: absolute;
    top: 115px; /* Aligned with center of 70px circles (60px wrapper padding + 20px step padding + 35px radius) */
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    z-index: 1;
    overflow: hidden;
}

.process-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Animated via JS */
    background: var(--accent);
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px var(--accent);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    padding: 20px;
    opacity: 0.3;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}

.step-number {
    width: 100%;
    height: 100%;
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    z-index: 3;
    transition: all 0.5s ease;
}

.process-step.active .step-number {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.step-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
}

.process-step.active .step-pulse {
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.step-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    transition: color 0.5s ease;
}

.process-step.active .step-title {
    color: var(--accent);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Mobile Optimizations & Responsiveness --- */

/* 1. Global Responsive Typography & Spacing */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 var(--container-padding);
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }
}

/* ===== MOBILE NAVIGATION - CLEAN VERSION ===== */
@media (max-width: 1200px) {

    /* Show hamburger, hide on desktop */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
        z-index: 200000;
        position: relative;
    }

    .mobile-toggle span {
        display: block !important;
        width: 28px;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Nav bar height */
    .nav-master {
        height: 70px;
    }

    .nav-spacer {
        height: 115px; /* 45px ticker + 70px nav */
    }

    /* Slide-in menu using transform (animatable) */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 90px 30px 40px !important;
        gap: 0 !important;
        z-index: 199999 !important;
        box-shadow: -5px 0 40px rgba(0,0,0,0.2) !important;
        overflow-y: auto !important;
        display: flex !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s ease !important;
    }

    /* Open state */
    .nav-menu.active {
        transform: translateX(0) !important;
    }

    /* Menu items */
    .nav-menu > li {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }

    .nav-menu > li > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 0 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
    }

    .nav-menu > li > a:hover {
        color: #10b981 !important;
    }

    /* Dropdown in mobile */
    .nav-menu .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 15px !important;
        background: transparent !important;
        display: none !important;
        width: 100% !important;
    }

    .nav-menu .dropdown.active > .dropdown-menu {
        display: block !important;
    }

    .nav-menu .dropdown-menu a {
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid #f8fafc !important;
        color: #64748b !important;
        display: block !important;
    }

    /* Hide ticker contact on mobile */
    .ticker-contact {
        display: none !important;
    }

    /* Overlay behind menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 199998;
    }

    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-master { height: 65px !important; }
    .nav-spacer { height: 110px !important; }
    .logo-wealth, .logo-records { font-size: 1.15rem !important; }
    .logo-domain { font-size: 0.75rem !important; }
}

@media (max-width: 768px) {
    .hero, .page-hero, .hero-split {
        padding: 100px 0 60px;
        min-height: auto;
        text-align: center;
    }

    .hero h1, .hero-content-left h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .hero p, .page-hero p, .hero-content-left p {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-subtitle-large {
        font-size: 1.2rem;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--accent);
        display: inline-block;
        padding-bottom: 3px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-frame-wrapper {
        max-width: 100%;
        border-width: 3px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 4. Grids & Cards Mobile Fixes */
@media (max-width: 992px) {
    .services-grid, .features-grid, .blog-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid, .features-grid, .blog-grid, .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-card {
        text-align: center;
        padding: 30px 20px;
    }
    
    .about-grid h2 {
        font-size: 2rem !important;
    }

    .about-stats-grid h4 {
        font-size: 1.8rem !important;
    }
}

/* 5. Components & Widgets */
@media (max-width: 768px) {
    .global-news-insight {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }

    .contact-drawer {
        width: 100%;
        right: -100%;
        max-width: none;
        padding: 30px 20px;
    }

    .premium-form-wrapper {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sticky-contact-btn {
        display: none !important;
    }

    .whatsapp-fab {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

/* 6. Footer Mobile Optimizations */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo-box {
        margin: 0 auto 25px;
    }

    .footer-links-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .info-list li {
        justify-content: center;
        text-align: center;
    }
}

/* 7. Utilities */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        display: flex;
    }
    
    .hero-content .btn {
        margin-bottom: 10px;
    }
}

/* 8. CTA Section Mobile */
@media (max-width: 768px) {
    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: 2.2rem; }
    .cta-section p { font-size: 1.1rem; }
}

/* 9. Ticker Mobile Fix */
@media (max-width: 768px) {
    .ticker-wrapper { height: 40px; }
    .ticker-label { padding: 2px 8px; font-size: 0.65rem; }
    .ticker-item { height: 40px; }
    .ticker-text { font-size: 0.85rem; }
}

/* 10. Responsive Calculator Styles */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
