/* ==========================================
   Nirapod Family - Premium Dark Gradient Design
   Expert Level - 2026
   ========================================== */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #020617;
    --bg-card: rgba(15,23,42,0.95);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.7);
    --shadow: 0 20px 60px -30px rgba(0,0,0,0.6);
    --glow: 0 0 40px rgba(34,197,94,0.2);
    
    --radius-full: 9999px;
    --radius-xl: 28px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background Orbs - Enhanced */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    filter: blur(80px);
    z-index: -1;
    animation: float 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    bottom: -120px;
    left: -100px;
    filter: blur(70px);
    z-index: -1;
    animation: float 30s ease-in-out infinite reverse;
}

/* Third Orb for Depth */
body::before, body::after {
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-30px) scale(1.08); }
    66% { transform: translate(-30px,25px) scale(0.96); }
}

/* Hero Section - Enhanced */
.hero-section {
    padding: 100px 0 120px;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-section p.lead {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Glass Cards - Premium */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: rgba(34,197,94,0.35);
}

.glass-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(34,197,94,0.3), transparent);
}

/* Navbar - Premium */
.glass-nav {
    background: rgba(2,6,23,0.95);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Buttons - Premium */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 40px -15px var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px var(--primary), 0 0 30px rgba(34,197,94,0.3);
}

.btn-gradient:active {
    transform: translateY(-2px);
}

.btn-outline-gradient {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-gradient:hover::before {
    width: 100%;
}

.btn-outline-gradient:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 16px 50px -15px var(--primary);
}

/* Inputs - Enhanced */
.glass-input {
    background: rgba(15,23,42,0.95);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    padding: 16px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(34,197,94,0.1), 0 0 30px rgba(34,197,94,0.1);
    transform: translateY(-2px);
}

.glass-input::placeholder {
    color: rgba(148,163,184,0.7);
}

/* Back to Top - Premium */
#backToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 20px 60px -20px var(--primary), 0 0 40px rgba(34,197,94,0.3);
}

/* Accordion - Enhanced */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 24px !important;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(34,197,94,0.2);
}

.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 24px 32px;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(34,197,94,0.08) !important;
    color: var(--primary) !important;
}

.accordion-body {
    padding: 0 32px 28px 32px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

/* Custom Spacing */
.p-7 {
    padding: 2.5rem !important;
}

.p-8 {
    padding: 3rem !important;
}

.p-9 {
    padding: 3.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .btn-gradient, .btn-outline-gradient {
        width: 100%;
    }
}

/* Navbar Link Hover - Premium */
.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 999px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 999px;
}

.nav-link-custom:hover {
    color: var(--primary);
    background: rgba(34,197,94,0.08);
}

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

.nav-link-custom.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.08));
    border: 1px solid rgba(34,197,94,0.25);
}

.nav-link-custom.active::after {
    width: 70%;
    background: var(--primary);
}

/* Footer Social Links - Enhanced */
footer a:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

footer a[style*="background: rgba(255,255,255,0.05)"]:hover {
    background: rgba(34,197,94,0.15) !important;
    color: var(--primary) !important;
    transform: translateY(-4px) scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: rgba(34,197,94,0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34,197,94,0.25);
    box-shadow: var(--shadow-lg);
}

/* Stats Counter */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stats Glass Card - Matching Reference */
.stats-glass-card {
    background: linear-gradient(90deg, rgba(34,197,94,0.1) 0%, rgba(34,197,94,0.05) 50%, rgba(59,130,246,0.08) 100%);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 !important;
}

.stats-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-item {
    text-align: left;
    padding: 0 2rem !important;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.2rem;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Badge Premium */
.badge-premium {
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(59,130,246,0.15));
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: rgba(34,197,94,0.25);
    transform: translateY(-4px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* Selection */
::selection {
    background: rgba(34,197,94,0.3);
    color: var(--text-primary);
}

/* Smooth Animations for All Elements */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
