/* ==========================================
   Nirapod Family - Premium Dark Gradient Design
   ========================================== */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #020617;
    --bg-card: rgba(15,23,42,0.9);
    --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);
    
    --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;
}

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

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

@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.98); }
}

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

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    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);
}

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

/* Navbar */
.glass-nav {
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

/* Buttons */
.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;
}

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

.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;
}

.btn-outline-gradient:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Inputs */
.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);
    transform: translateY(-2px);
}

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

/* Back to Top */
#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.05);
}

/* Accordion */
.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);
}

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

.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;
}

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

/* Navbar Link Hover */
.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 20px !important;
    border-radius: 999px;
    transition: all 0.3s ease;
}

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

/* Footer Social Links */
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);
}
