/* mdb-custom.css - Custom styles for MDB Pro implementation */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --hero-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #667eea 75%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --info-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --hero-overlay: rgba(26, 35, 126, 0.6);
    --header-overlay: rgba(26, 35, 126, 0.7);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --box-shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== FULL SCREEN HERO SECTION ===== */
.hero-fullscreen {
    min-height: 100vh;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    background-position: 0 0, 100px 100px, 50px 50px;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-fullscreen .container {
    position: relative;
    z-index: 3;
}

.hero-nav {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.hero-nav.scrolled {
    background: rgba(26, 35, 126, 0.95) !important;
}

.hero-title {
    text-shadow: var(--text-shadow);
    animation: fadeInUp 1s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #fff3a0 0%, #ffcc70 50%, #ff9a56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-description {
    text-shadow: var(--text-shadow);
    animation: fadeInUp 1s ease-out 0.3s both;
    font-size: 1.25rem;
    font-weight: 400;
}

.animate-text {
    overflow: hidden;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.bounce-icon {
    animation: bounceHorizontal 1.5s ease-in-out infinite;
}

/* ===== PAGE HEADER (for other pages) ===== */
.page-header {
    height: 200px;
    background: var(--primary-gradient);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/header-pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-overlay);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow);
}

.header-tagline {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: var(--text-shadow);
    opacity: 0.9;
}

.white-card {
    background: white;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

/* ===== GRADIENT CARDS ===== */
.gradient-card {
    background: var(--primary-gradient);
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

.gradient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    transition: var(--transition-smooth);
    border-radius: 15px !important;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card:hover .btn {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== WELCOME SECTION ===== */
.welcome-section .gradient-card {
    background: var(--primary-gradient);
    border-radius: 20px;
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ffeaa7;
    border-radius: 2px;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn-rounded {
    border-radius: 25px !important;
    padding: 12px 30px;
    font-weight: 600;
	font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
}

.btn-success:hover {
    background: var(--success-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-info {
    background: var(--info-gradient);
    border: none;
}

.btn-info:hover {
    background: var(--info-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    border: none;
    color: #fff !important;
}

.btn-warning:hover {
    background: var(--warning-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
    color: #fff !important;
}

/* ===== CARD ENHANCEMENTS ===== */
.card {
    border-radius: 15px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    transition: var(--transition-smooth);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== ALERT ENHANCEMENTS ===== */
.alert {
    border: none;
    border-radius: 15px;
    box-shadow: var(--box-shadow-soft);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* ===== DROPDOWN ENHANCEMENTS ===== */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dropdown-item {
    transition: var(--transition-smooth);
    padding: 12px 20px;
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

/* ===== FORM ENHANCEMENTS ===== */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

/* ===== LIST GROUP ENHANCEMENTS ===== */
.list-group-item {
    border: none;
    transition: var(--transition-smooth);
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* ===== BADGE ENHANCEMENTS ===== */
.badge {
    font-weight: 500;
    padding: 8px 12px;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/cta-pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* ===== FLOATING ELEMENTS ===== */
.btn-floating {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-floating:hover {
    transform: translateY(-3px) scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceHorizontal {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .page-header {
        height: 150px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .btn-rounded {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 10px auto !important;
    }
    
    /* Mobile contrast improvements */
    .bg-light h2,
    .bg-light .fw-bold {
        color: #2c3e50 !important;
        text-shadow: none;
    }
    
    .bg-light .text-muted,
    .card .text-muted {
        color: #495057 !important;
        font-weight: 500;
    }
    
    .bg-light p {
        color: #495057 !important;
    }
    
    /* Force light card backgrounds and dark text on mobile */
    .feature-card {
        background-color: #ffffff !important;
        color: #333 !important;
    }
    
    .feature-card h5,
    .feature-card .fw-bold {
        color: #2c3e50 !important;
    }
    
    .feature-card .text-muted,
    .feature-card p.text-muted {
        color: #6c757d !important;
        font-weight: 500;
    }
    
    .feature-card .card-body {
        background-color: #ffffff !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .page-header {
        height: 120px;
    }
    
    .page-header-content h1 {
        font-size: 1.75rem;
    }
    
    .header-tagline {
        font-size: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-light-emphasis {
    color: rgba(255, 255, 255, 0.8) !important;
}

.shadow-soft {
    box-shadow: var(--box-shadow-soft) !important;
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
}