/* ===== Global Styles ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --snow-color: #ffffff;
    --ice-color: #a8d0e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.snow-theme {
    background: linear-gradient(180deg, #1a2980 0%, #26d0ce 100%);
    position: relative;
    color: white;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    color: #3498db;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 15px !important;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 5px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/snow-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-section .text-warning {
    color: #f1c40f !important;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.icon-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: float-circle 3s ease-in-out infinite;
}

.icon-circle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-circle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 0.5s;
}

.icon-circle:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ===== Stats Section ===== */
.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    padding: 20px;
}

.stat-card h3 {
    font-weight: 700;
    text-shadow: 0 0 10px currentColor;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Features Section ===== */
.features-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    color: white;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: url('../images/snowflake-bg.png');
    opacity: 0.1;
    animation: snow-move 20s linear infinite;
}

@keyframes snow-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

.cta-section .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
footer {
    background: rgba(26, 41, 128, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: white !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== Cards ===== */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* ===== Forms ===== */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: white;
    font-weight: 500;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.9);
    color: white;
}

.alert-info {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

/* ===== Progress Bars ===== */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Badges ===== */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.bg-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

/* ===== Tables ===== */
.table {
    color: white;
}

.table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table td,
.table th {
    border-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

/* ===== Loading Spinner ===== */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Snowflake Cursor ===== */
.snowflake-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    animation: snow-float 3s linear infinite;
}

@keyframes snow-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .floating-icons {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}