html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* MDB Customizations for AceTechSales */
.btn-primary {
    color: #000000;
    background-color: #00F5FF;
    border-color: #1861ac;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00d4dd;
    border-color: #1861ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 245, 255, 0.3);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Card Enhancements */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Typography Enhancements */
.display-3, .display-4 {
    font-weight: bold;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Custom Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #00F5FF 0%, #00d4dd 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #00c0c8 0%, #00a8b0 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #009096 0%, #007a80 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #016165 0%, #014a4e 100%);
}

/* Ripple Effect Enhancement */
[data-mdb-ripple-init] {
    position: relative;
    overflow: hidden;
}

/* Responsive Utilities */
.min-vh-75 {
    min-height: 75vh;
}

@media (max-width: 768px) {
    .min-vh-75 {
        min-height: 50vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-play-state: paused;
}

.scroll-reveal.animate {
    animation-play-state: running;
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
    animation-play-state: paused;
}

.scroll-reveal-left.animate {
    animation-play-state: running;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
    animation-play-state: paused;
}

.scroll-reveal-right.animate {
    animation-play-state: running;
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease-out forwards;
    animation-play-state: paused;
}

.scroll-reveal-scale.animate {
    animation-play-state: running;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animations for cards */
.card-stagger {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-play-state: paused;
}

.card-stagger.animate {
    animation-play-state: running;
}

.card-stagger:nth-child(1) { animation-delay: 0.1s; }
.card-stagger:nth-child(2) { animation-delay: 0.2s; }
.card-stagger:nth-child(3) { animation-delay: 0.3s; }
.card-stagger:nth-child(4) { animation-delay: 0.4s; }
.card-stagger:nth-child(5) { animation-delay: 0.5s; }
.card-stagger:nth-child(6) { animation-delay: 0.6s; }

/* Hero section - always visible */
.hero-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Reduce spacing between hero and benefits sections */
.hero-section + section {
    margin-top: -1rem; /* Pull the benefits section up slightly */
}

/* Mobile adjustments for tighter spacing */
@media (max-width: 768px) {
    .hero-section + section {
        margin-top: -0.5rem;
    }
}

/* Performance optimizations */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-scale,
.card-stagger {
    will-change: opacity, transform;
}

/* Mobile optimizations - keep animations but adjust timing for better performance */
@media (max-width: 768px) {
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .card-stagger {
        transition-duration: 0.6s; /* Slightly faster on mobile */
    }
    
    /* Reduce stagger delays on mobile for better UX */
    .card-stagger:nth-child(1) { transition-delay: 0.05s; }
    .card-stagger:nth-child(2) { transition-delay: 0.1s; }
    .card-stagger:nth-child(3) { transition-delay: 0.15s; }
    .card-stagger:nth-child(4) { transition-delay: 0.2s; }
    .card-stagger:nth-child(5) { transition-delay: 0.25s; }
    .card-stagger:nth-child(6) { transition-delay: 0.3s; }
    
    /* Footer mobile optimizations */
    footer .row {
        text-align: center;
    }
    
    footer .col-12 {
        margin-bottom: 2rem;
    }
    
    footer h5 {
        margin-bottom: 1rem;
    }
    
    footer ul {
        margin-bottom: 0;
    }
}

/* Content styling */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sb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S43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Legacy styles - keeping for backward compatibility if needed */
.titleSection {
    width:100%;
    max-height: 600px;
    margin: 0px;
}

/* Legacy flexbox styles - keeping for backward compatibility if needed */
.saveSection {
    min-width: 480px;
    min-height: 100px;
    flex-shrink: 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Legacy styles - keeping for backward compatibility if needed */
.titleResult {
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 36px */
    vertical-align: central;
    margin-top: 5px;
    margin-bottom: 5px;
}

h2 {
    color: #FFF;
    font-family: Inter;
    font-size: 40px;
    font-style: normal;
    line-height: 120%; /* 48px */
    letter-spacing: -0.8px;
}

p {
    color: #FFF;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    line-height: 120%; /* 28.8px */
    letter-spacing: -0.48px;
}

.text-primary {
    color: #00F5FF !important;
}