/* Typography Imports (MUST be at the absolute top) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

/* Global Design System */
:root {
    --primary: #3055a4;
    --primary-dark: #1e3a75;
    --secondary: #628ecd;
    --bg-main: #ffffff;
    --bg-body: #f8fafc; /* Slightly softer than #f3f4f6 for a cleaner look */
    --text-main: #111827; /* Darker, richer text color */
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* CSS Reset for consistent rendering */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Makes text look sharper on Mac/iOS */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    font-weight: 600;
    letter-spacing: -0.02em; /* Tighter letter spacing looks more premium */
    color: var(--text-main);
}

/* --- PREMIUM NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Glassmorphism effect */
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    /* Subtle gradient overlay to ensure text is readable over any background image */
    background: linear-gradient(135deg, rgba(48, 85, 164, 0.95) 0%, rgba(30, 58, 117, 0.9) 100%), var(--bg-main);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive fluid typography */
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    max-width: 900px;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* --- ELEVATED CARD COMPONENT --- */
.card {
    background-color: var(--bg-main);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px; /* Smoother, modern corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* --- MODERN BUTTONS --- */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px; /* High-end software look */
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(48, 85, 164, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(48, 85, 164, 0.3);
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #b91515;
}

/* --- REFINED FORM ELEMENTS --- */
input, select, textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(48, 85, 164, 0.1); /* Softer, wider focus ring */
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* =========================================
   MODERN LAYOUT UTILITIES (Added for Premium Look)
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Elegant Page Header with bottom curve */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    color: white;
    border-radius: 0 0 3rem 3rem; /* Modern curved bottom */
    margin-bottom: 5rem;
    box-shadow: 0 10px 30px rgba(48, 85, 164, 0.15);
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Section Titles with Accent Line */
.section-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Premium Grids & Icons */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .icon-wrapper {
    transform: scale(1.05);
}

.icon-primary { background: rgba(48, 85, 164, 0.1); color: var(--primary); }
.icon-success { background: rgba(22, 163, 74, 0.1); color: var(--success); }

/* Clean Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* =========================================
   ULTRA-PREMIUM EXTENSIONS (Depth, Motion, Layout)
   ========================================= */

/* 1. Fluid Entrance Animations */
@keyframes smoothReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* 2. Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%); /* Primary blue to rich indigo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 3. Mesh Gradient Backgrounds (Soft, glowing look) */
.mesh-hero {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 10% 0%, hsla(221, 54%, 41%, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 10%, hsla(221, 54%, 41%, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, hsla(210, 100%, 95%, 1) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* 4. Glassmorphism Floating Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
}

/* 5. Apple-Style Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.bento-item {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(48, 85, 164, 0.08);
}

/* Bento Spans */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: auto; min-height: 250px; }
}

/* Animated Button Hover */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(48, 85, 164, 0.2);
    transition: all 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(48, 85, 164, 0.3);
    color: white;
}