/* Enhanced Homepage Styles - Neural Theme */

/* Neural Network Canvas Background */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    pointer-events: none;
}

/* Ensure content is above background */
#app {
    position: relative;
    z-index: 1;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Hero Section Enhancement */
.hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero>p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Feature Highlights */
.features-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* University Cards Enhancement */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.uni-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.uni-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.uni-card:hover::before {
    transform: scaleX(1);
}

.uni-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.uni-card:nth-child(1) {
    animation-delay: 0.1s;
}

.uni-card:nth-child(2) {
    animation-delay: 0.2s;
}

.uni-card:nth-child(3) {
    animation-delay: 0.3s;
}

.uni-card:nth-child(4) {
    animation-delay: 0.4s;
}

.uni-card:nth-child(5) {
    animation-delay: 0.5s;
}

.uni-card h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.uni-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.uni-card button {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.uni-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features-highlight {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}