﻿/* Root Variables */
:root {
    --primary-color: #19B5C0;
    --primary-hover: #17a3ad;
    --dark-bg-1: #0D1824;
    --dark-bg-2: #1F2933;
    --dark-bg-3: #2F3E4E;
    --light-text: #f0f0f0;
    --gray-text: #A0AEC0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1F2933 0%, #0D1824 100%);
    color: #fff;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(25, 181, 192, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

.hero img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.about {
    background: linear-gradient(135deg, #2F3E4E 0%, #1F2933 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.benefits {
    background: linear-gradient(135deg, #0D1824 0%, #1F2933 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Benefits Cards */
.benefits .card {
    background: rgba(45, 55, 72, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.benefits .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(25, 181, 192, 0.2);
    border-color: var(--primary-color);
}

.benefits .card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefits .card-text {
    color: var(--light-text);
    opacity: 0.9;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    background: linear-gradient(135deg, #1F2933 0%, #0D1824 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Form Styling */
.demo input,
.demo textarea {
    background-color: rgba(45, 55, 72, 0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.demo input:focus,
.demo textarea:focus {
    background-color: rgba(45, 55, 72, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 181, 192, 0.25);
    outline: none;
}

.demo input::placeholder,
.demo textarea::placeholder {
    color: var(--gray-text);
}

/* Buttons */
.btn-primary {
    background-color: #19B5C0 !important;
    border-color: #19B5C0 !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 181, 192, 0.3);
}

.btn-primary:hover {
    background-color: #17a3ad !important;
    border-color: #17a3ad !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 181, 192, 0.4);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1F2933 0%, #0D1824 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    padding: 1rem 0;
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* About and Contact Pages */
.about-page, .contact-page {
    background: linear-gradient(135deg, #0D1824, #1F2933);
    color: #fff;
    min-height: 100vh;
    padding-top: 4rem;
}

.about-page h1, .contact-page h1 {
    color: #19B5C0;
    margin-bottom: 2rem;
}

.contact-page form input,
.contact-page form textarea {
    background-color: rgba(45, 55, 72, 0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-page form input:focus,
.contact-page form textarea:focus {
    background-color: rgba(45, 55, 72, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 181, 192, 0.25);
    outline: none;
}

.contact-page form input::placeholder,
.contact-page form textarea::placeholder {
    color: #A0AEC0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0D1824, #1F2933);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Blazorise Compatibility */
.bar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.bar-toggler, .bar-toggler-icon {
    color: #fff !important;
    font-size: 2rem;
    border: none;
    background: transparent;
    margin-right: 1rem;
}

.bar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .bar-menu {
        width: 100%;
        text-align: center;
        background: linear-gradient(135deg, #1F2933, #0D1824);
        position: absolute;
        left: 0;
        top: 60px;
        z-index: 1000;
    }
    
    .bar-menu .nav-link {
        display: block;
        margin: 1rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    background: #0D1824;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .container > * {
    animation: fadeIn 0.8s ease-out;
}

/* Card Grid Improvements */
.benefits .row {
    gap: 1.5rem 0;
}

/* Section Spacing */
.section + .section {
    margin-top: -1px;
}

/* Better Typography Scale */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better Link Styling */
.contact-page a,
.about-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-page a:hover,
.about-page a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

