/* ===================================================================
   PREMIUM DESIGN SYSTEM - FINSERVE2INDIA
   Design Tokens, Typography, Components, Spacing
   =================================================================== */

/* ===================================================================
   DESIGN TOKENS - CSS VARIABLES
   =================================================================== */

:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-secondary: #14b8a6;
    --color-accent: #22c55e;
    
    /* Surface Colors - Light Mode */
    --surface-0: #ffffff;
    --surface-1: #f8fafc;
    --surface-2: #f1f5f9;
    --surface-card: rgba(255, 255, 255, 0.9);
    
    /* Text Colors - Light Mode */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Border Colors */
    --border-color: rgba(148, 163, 184, 0.2);
    --border-subtle: rgba(148, 163, 184, 0.1);
    
    /* Shadow System */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Spacing System */
    --space-section: 120px;
    --space-section-sm: 80px;
    --space-card: 32px;
    
    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Mode Variables - LIGHTENED */
@media (prefers-color-scheme: dark) {
    :root {
        --surface-0: #1e293b;
        --surface-1: #2d3b4f;
        --surface-2: #3a4a61;
        --surface-card: rgba(45, 59, 79, 0.9);
        
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        
        --border-color: rgba(148, 163, 184, 0.15);
        --border-subtle: rgba(148, 163, 184, 0.08);
        
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    }
}

/* Manual Dark Mode Override - LIGHTENED */
body[data-theme="dark"] {
    --surface-0: #1e293b !important;
    --surface-1: #2d3b4f !important;
    --surface-2: #3a4a61 !important;
    --surface-card: rgba(45, 59, 79, 0.9) !important;
    
    --text-primary: #f1f5f9 !important;
    --text-secondary: #cbd5e1 !important;
    --text-tertiary: #94a3b8 !important;
    
    --border-color: rgba(148, 163, 184, 0.15) !important;
    --border-subtle: rgba(148, 163, 184, 0.08) !important;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5) !important;
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6) !important;
}

/* Manual Light Mode Override */
body[data-theme="light"] {
    --surface-0: #ffffff !important;
    --surface-1: #f8fafc !important;
    --surface-2: #f1f5f9 !important;
    --surface-card: rgba(255, 255, 255, 0.9) !important;
    
    --text-primary: #0f172a !important;
    --text-secondary: #475569 !important;
    --text-tertiary: #94a3b8 !important;
    
    --border-color: rgba(148, 163, 184, 0.2) !important;
    --border-subtle: rgba(148, 163, 184, 0.1) !important;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===================================================================
   TYPOGRAPHY SYSTEM
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-0);
    transition: background-color var(--transition-base), color var(--transition-base);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===================================================================
   HEADER & NAVIGATION - FIXED LAYOUT
   =================================================================== */

.header {
    background: var(--surface-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation Menu - Horizontal beside logo */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition-base);
    display: block;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-primary);
    background: var(--surface-1);
}

.nav-menu a.active {
    color: var(--color-primary);
    background: var(--surface-2);
}

/* ===================================================================
   THEME TOGGLE - RIGHT SIDE
   =================================================================== */

.theme-toggle {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.theme-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    background: var(--surface-1);
}

.theme-btn:active {
    transform: scale(0.98);
}

/* Enhanced Dropdown */
.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Theme Option Buttons */
.theme-option {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.theme-option:hover {
    background: var(--surface-1);
    transform: translateX(4px);
}

.theme-option.active {
    background: var(--surface-2);
    color: var(--color-primary);
    font-weight: 600;
}

.theme-option i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.theme-option span {
    flex: 1;
}

/* Active indicator */
.theme-option.active::after {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
}

/* ===================================================================
   HAMBURGER MENU - MOBILE
   =================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================================================
   LAYOUT & SECTIONS
   =================================================================== */

.section {
    padding: var(--space-section) 0;
}

.section-surface {
    background: var(--surface-1);
}

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

/* ===================================================================
   CARD SYSTEM
   =================================================================== */

.card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: var(--space-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   BUTTON SYSTEM
   =================================================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-1);
    transform: translateY(-2px);
}

/* ===================================================================
   FORM SYSTEM
   =================================================================== */

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-card);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===================================================================
   GRID SYSTEM
   =================================================================== */

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* ===================================================================
   STICKY BUTTONS - ENHANCED VISIBILITY
   =================================================================== */

/* Sticky Call Button */
.sticky-call {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 3px solid white;
}

.sticky-call:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.7);
}

.sticky-call i {
    font-size: 1.75rem;
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 3px solid white;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7);
}

.whatsapp-button i {
    font-size: 2rem;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dark Mode Button Enhancement */
body[data-theme="dark"] .sticky-call,
body[data-theme="dark"] .whatsapp-button {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6),
                0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* ===================================================================
   RESPONSIVE - MOBILE
   =================================================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 82px;
        flex-direction: column;
        background: var(--surface-card);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 24px;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        gap: 8px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
        text-align: left;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --space-section: 80px;
        --space-section-sm: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        gap: 16px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Sticky Buttons Mobile */
    .sticky-call {
        width: 56px;
        height: 56px;
        bottom: 80px;
        right: 16px;
        border: 2px solid white;
    }
    
    .sticky-call i {
        font-size: 1.5rem;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
        border: 2px solid white;
    }
    
    .whatsapp-button i {
        font-size: 1.75rem;
    }
}
