/* ==============================================
   HOME PAGE ENHANCEMENTS
   ============================================== */

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.97) 0%,
            rgba(59, 130, 246, 0.95) 50%,
            rgba(14, 165, 233, 0.93) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    min-height: 500px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(40px, -40px) rotate(120deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 700px;
    margin: 1.5rem auto 0;
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}

/* Enhanced Parallax Layers */
.parallax {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* Enhanced Login Section */
.login-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.login-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Enhanced Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(59, 130, 246, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
    border-color: var(--accent-color);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.feature-item h4 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color var(--transition-base);
}

.feature-item:hover h4 {
    color: var(--accent-color);
}

.feature-item p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    margin: 0;
}

/* Tilt Effect Enhancement */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Demo Credentials Enhancement */
.demo-credentials {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.demo-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-base);
}

.demo-credentials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-credentials li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.demo-credentials strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 400px;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .features-section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 2.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .feature-item {
        padding: 2rem 1.5rem;
    }
}



/* Additional Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Loading State */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}