* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(genesis-photos/young-man-engineer-making-program-analyses.jpg) no-repeat center center/cover;
    background-attachment: fixed;
}

/* Header Styles */
header {
    background-color: rgba(77, 85, 204, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.logo h3{
    font-family: "Playwrite FR Moderne", cursive;
    font-optical-sizing: auto;
    color: white;
    margin-bottom: 0
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #7A73D1;
   
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #4D55CC, #7A73D1);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.container {
    max-width: 1000px;
    width: 90%;
    padding: 40px 0;
    background-color:  rgba(77, 85, 204, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    animation: fadeIn 0.8s ease;
    text-align: center;
}

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

h1 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4D55CC, #7A73D1);
    animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

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

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background:  linear-gradient(180deg, #4D55CC, #7A73D1);
    transition: width 0.3s ease;
}

.contact-card:hover:before {
    width: 100%;
    opacity: 0.1;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.contact-detail {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-detail:hover {
    transform: translateX(5px);
    color: #4D55CC;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: popIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facebook:hover { background-color: #3b5998; color: white; }
.twitter:hover { background-color: #1da1f2; color: white; }
.instagram:hover { background-color: #e1306c; color: white; }
.linkedin:hover { background-color: #0077b5; color: white; }

/* Footer Styles */
footer {
    background-color: rgba(77, 85, 204, 0.95);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4D55CC, #7A73D1);
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #7A73D1;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 8px;
    color: #7A73D1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Animation delays for staggered effect */
.contact-card:nth-child(1) { animation-delay: 0.2s; }
.contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-card:nth-child(3) { animation-delay: 0.4s; }

.social-link:nth-child(1) { animation-delay: 0.5s; }
.social-link:nth-child(2) { animation-delay: 0.6s; }
.social-link:nth-child(3) { animation-delay: 0.7s; }
.social-link:nth-child(4) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
}