@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4f4f4 0%, #e6eefa 50%, #a2aac0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #135dce;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 120px;
    padding: 20px;
    min-height: 80vh;
}

.container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 42px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #003366;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
}

.container h1:hover {
    letter-spacing: 2px;
    color: #ff6347;
    transition: all 0.6s ease;
}

.container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ff6347;
    transition: width 0.6s ease;
}

.container h1:hover::after {
    width: 100px;
}

.section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section:hover {
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.2);
    transform: translateY(-5px);
}

.simulation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.simulation-card {
    border-radius: 12px;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #003366;
    height: 100%;
}

.simulation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-top: 4px solid #ff6347;
}

.simulation-card h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.simulation-card:hover h3 {
    color: #ff6347;
}

.simulation-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6347;
    transition: width 0.4s ease;
}

.simulation-card:hover h3::after {
    width: 50px;
}

.simulation-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-primary {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #003366;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    color: white;
    background-color: #ff6347;
    border-color: #ff6347;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 99, 71, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Footer revisions */
.footer {
    background-color: #003366;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media img:hover {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 99, 71, 0.4);
}

/* Animation for cards on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simulation-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin-top: 100px;
        padding: 15px;
    }
    
    .container h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 20px;
    }
    
    .simulation-list {
        grid-template-columns: 1fr;
    }
    
    .simulation-card {
        padding: 20px;
    }
        .navbar {
        display: none;
    }
    
    .user a {
        display: none;
    }
    
    .logo img {
        margin-left : 350px;
    }
}