@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    /* Brighter, more vibrant color scheme */
    --primary: #22d3ee; /* Cyan */
    --accent: #a855f7;  /* Purple */
    --bg: #030712;
    --text: #f1f5f9;
    
    /* True Glossy Glass definition */
    --glass-bright: rgba(255, 255, 255, 0.12);
    --glass-dark: rgba(255, 255, 255, 0.03);
    
    /* Specular Reflection Effect */
    --glare: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 100%);
    
    --ease-squish: cubic-bezier(0.5, -0.3, 0.1, 1.3);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* 1. FLUID BACKGROUND ANIMATION */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 40%);
    z-index: -1;
    filter: blur(60px);
    animation: backgroundFluid 15s ease infinite alternate;
}

@keyframes backgroundFluid {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(2%, 5%); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Navbar: More Transparent/Glossy */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    backdrop-filter: blur(25px) saturate(200%); /* High saturation */
    background: rgba(3, 7, 18, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: 800; font-size: 1.6rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary); }

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4));
}

h1 { font-size: 4.5rem; margin-bottom: 1.5rem; line-height: 1.05; letter-spacing: -3px; }
h1 + p { font-size: 1.25rem; color: #94a3b8; max-width: 600px; margin-bottom: 2.5rem; }

/* 2. THE ULTIMATE GLOSSY CARD */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 5rem 10% 10rem 10%;
}

.glass-card {
    position: relative;
    background: linear-gradient(135deg, var(--glass-bright) 0%, var(--glass-dark) 100%);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.5s var(--ease-squish);
    overflow: hidden; /* Needed for glare */
    
    /* Multiple Shadows for Depth */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.2), 
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255,255,255,0.02); /* Interior soft glow */
}

/* The Border 'Light' (Simulated Bevel) */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1.5px; /* Border thickness */
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 50%, rgba(168, 85, 247, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 3. The Interactive Glare Effect (JS-driven) */
.card-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover .card-glare { opacity: 1; }

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.4), 
        0 0 30px rgba(34, 211, 238, 0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, var(--glass-dark) 100%);
}

.icon-box {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 16px;
    display: grid; place-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

.icon { width: 32px; height: 32px; color: var(--primary); filter: drop-shadow(0 0 5px var(--primary)); }

h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; letter-spacing: -1px; }
.glass-card p { color: #cbd5e1; line-height: 1.7; font-size: 1.05rem; }

/* Buttons: Glossy 'Aqua' Style */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: #030712;
    padding: 16px 36px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), inset 0 2px 2px rgba(255,255,255,0.5); /* Top gloss inset */
    transition: all 0.3s var(--ease-squish);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(34, 211, 238, 0.5); }
.btn-primary:hover::after { left: 100%; opacity: 1; }

.btn-secondary {
    background: var(--glass-bright);
    color: #fff;
    padding: 16px 36px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 1rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Animation Utility */
.reveal {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: all 1s var(--ease-squish);
}

.reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}