/* General Body and Reset */
body {
    font-family: 'Arial', sans-serif; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333; 
    background: url('background-pattern.jpg') repeat; 
    background-size: cover; 
    scroll-behavior: smooth; 
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #007bff; 
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #0056b3;
}


.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; 
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7); 
    padding: 40px 20px;
}

.hero-content {
    animation: fadeIn 1.5s ease-out; 
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #007bff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 10px;
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff; 
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-radius: 8px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #007bff;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}


.about-content {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.skill-item ul {
    list-style: none;
    padding: 0;
}

.skill-item li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Achievements Section */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.achievement-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.achievement-item p {
    font-size: 0.95rem;
    color: #555;
}


.contact-info {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-info i {
    color: #007bff;
    margin-right: 10px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; 
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-button:hover {
    background-color: #0056b3;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.form-message.success {
    color: green;
}

.form-message.error {
    color: red;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.social-media {
    margin-bottom: 20px;
}

.social-media a {
    color: #fff;
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

.social-media a:hover {
    color: #007bff;
}


@media (max-width: 768px) {
    .navbar {
        justify-content: center;
    }
    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    section {
        padding: 50px 15px;
    }

    section h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 10px 0;
    }

    .social-media a {
        font-size: 1.5rem;
        margin: 0 10px;
    }

}
