/* ==================================
   GLOBAL & VARIABLES (Premium White Glow)
================================== */

:root {
    --bg-light: #ffffff;
    --bg-offwhite: #f8fafc;
    --accent-primary: #3b82f6; /* Premium Blue */
    --accent-secondary: #8b5cf6; /* Premium Purple */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --soft-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --glow-shadow: 0 15px 35px var(--accent-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

body::before {
    background: rgba(59, 130, 246, 0.15);
    top: -100px;
    left: -200px;
}

body::after {
    background: rgba(139, 92, 246, 0.15);
    bottom: -100px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-50px, -20px) scale(0.9); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ==================================
   TYPOGRAPHY & UTILITIES
================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-custom {
    color: var(--text-muted);
}

.section-light {
    background-color: transparent;
}

.section-offwhite {
    background-color: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.py-6 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ==================================
   BUTTONS
================================== */

.btn-premium {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 14px 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glow-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.btn-outline-premium {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--soft-shadow);
}

.btn-outline-premium:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

/* ==================================
   NAVBAR
================================== */

.glass-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.4s ease;
    box-shadow: var(--soft-shadow);
}

.navbar-brand {
    font-size: 28px;
    color: var(--text-main) !important;
}

.nav-link {
    font-weight: 500;
    margin-left: 15px;
    color: var(--text-muted) !important;
    transition: 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* ==================================
   CARDS & CONTAINERS (Premium Glow)
================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 24px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.glass-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-shadow);
}

/* ==================================
   CALCULATOR
================================== */

.calculator-wrapper {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}

.calculator-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    border-radius: 32px;
    opacity: 0.3;
    filter: blur(10px);
}

.premium-input {
    background: var(--bg-offwhite);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-main);
    border-radius: 15px;
    padding: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-input:focus {
    background: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

.custom-range {
    height: 8px;
    background: var(--bg-offwhite);
    border-radius: 4px;
    appearance: none;
    outline: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow);
    border: 3px solid #fff;
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.emi-result-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* ==================================
   FOOTER
================================== */

.footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Footer Links */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(8px);
}

.footer-links a i {
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: var(--accent-secondary);
}

/* Social Buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-offwhite);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-shadow);
    border-color: transparent;
    color: #fff;
}

.footer .border-top {
    border-color: rgba(0,0,0,0.05) !important;
}

.footer-bottom p {
    color: var(--text-muted);
}

/* ==================================
   ANIMATIONS
================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==================================
   RESPONSIVE
================================== */

@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
}