@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 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f4f4f4, #ffffff, #a2aac0);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 9rem auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

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

h1, h2 {
    color: #003366;
    position: relative;
    padding-bottom: 10px;
}


.section:hover h2::after {
    transform: scaleX(1);
    transition: all 0.3s ease;
}

.section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section:hover {
    background-color: rgba(240, 240, 240, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#phylab {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(45deg, rgba(0, 51, 102, 0.03), rgba(162, 170, 192, 0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
}

#phylab::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.05) 0%, transparent 70%);
    animation: pulse 8s infinite linear;
    z-index: -1;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    flex: 1 1 calc(33% - 20px);
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #ff6347;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    color: #003366;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover h3 {
    transform: translateY(-3px);
}

.feature-item p {
    letter-spacing: 0.5px;
    line-height: 1.7;
}

/* Contact Section Styling */
.contact {
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #003366, transparent);
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 0.5s ease-out 0.3s forwards;
}

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

.contact-form:hover {
    box-shadow: 0 12px 28px rgba(0, 51, 102, 0.2);
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003366;
    letter-spacing: 0.5px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    transform: translateY(-3px);
    color: #004080;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background: linear-gradient(45deg, #003366, #004d99);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #004d99, #003366);
    transition: left 0.6s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 51, 102, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}

.message {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: fadeMessage 0.5s ease;
}

@keyframes fadeMessage {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.contact-info {
    margin-top: 35px;
    text-align: center;
    animation: fadeIn 1s ease;
    transition: all 0.3s ease;
}

.contact-info p {
    font-size: 16px;
    color: #444;
    transition: color 0.3s;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: #f0f0f0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info a {
    text-decoration: none;
    color: #003366;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover p {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: none;
    background: #003366;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #004080;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        margin: 6rem auto 2rem;
        padding: 15px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        width: 200px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 0;
        background-color: #003366;
    }
    
    .navbar ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .navbar a {
        display: block;
        padding: 15px;
    }
   
    .navbar.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .features {
        flex-direction: column;
    }

    .feature-item {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
    
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    header .logo img {
        margin: 0;
    }

    .user-input {
        margin: 10px 0;
    }

    .user-input ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .user-input .user li {
        margin: 5px 0;
    }

    #phylab {
        padding: 20px;
    }
}

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

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

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

.social-media a {
    display: inline-block;
}

.social-media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    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);
}