/* style.css - Complete Ultra Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --bg-dark: #020617;       /* Very dark navy/black */
    --bg-card: rgba(30, 41, 59, 0.4); /* Translucent dark blue */
    --primary: #f8fafc;       /* White text */
    --text-muted: #94a3b8;    /* Muted grey text */
    
    /* Neon Accents */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    --border-light: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

/* --- Floating Navigation --- */
header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img { height: 35px; width: auto; }

.brand span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

nav ul { list-style: none; display: flex; gap: 30px; }

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

nav a:hover, nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Main Layout --- */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 4rem 1.5rem;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    color: var(--primary);
}

p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
}

/* Glowing Button */
.btn-primary {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* --- FIXED Grid System --- */
.grid-container {
    display: grid;
    /* Columns will be at least 320px wide, but fit equally */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    
    /* Fix: Centers the cards and prevents them from getting too wide */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FIXED Card Styling --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    
    /* Fix: Forces equal height for all cards in the same row */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Note: We use 'stretch' (default) so Legal rows stay full width */
}

/* Hover Effect */
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--accent-purple));
}

.card-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    display: inline-block; 
    transition: transform 0.3s ease;
}

.card h3 { 
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-bottom: 1rem; 
}

/* Data Rows for Legal Page */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    width: 100%; /* Ensures text touches edges */
}
.data-row:last-child { border-bottom: none; }

.data-label { color: var(--text-muted); font-weight: 500; }
.data-value { color: var(--primary); text-align: right; font-weight: 600; }

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    background: rgba(2, 6, 23, 0.8);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header { 
        width: 95%; 
        padding: 0.8rem 1rem; 
        top: 10px;
    }
    .brand span { display: none; } 
    nav ul { gap: 10px; }
    nav a { padding: 6px 10px; font-size: 0.8rem; }
    
    h1 { font-size: 2.5rem; }
    .hero { padding: 3rem 1rem; }
    
    /* Allow cards to stack nicely on phone */
    .grid-container {
        grid-template-columns: 1fr;
    }
}