@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --background-color: #f4f4f4;
    --accent-color: #e74c3c;

}

body {
    
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    flex-grow: 1;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #e36b6b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.project-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin-right: 3rem; /* Adjust the value as needed */
}


.project-btn:hover {
    background-color: #2980b9;
}

main {
    
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    
}

section {
    background: linear-gradient(to bottom, #1e90ff, #f2f2f2);
    margin-bottom: 4rem;
    /* background-color: #fff; */
    border-radius: 10px;
    padding: 2rem;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

h1, h2, h3 {
    color: var(--secondary-color);
}

#home {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--primary-color);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.project {
    background-color: #fff;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

.github-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.github-btn:hover {
    background-color: var(--primary-color);
}

/* .skills-container {
    display: flex;
    justify-content: space-between;
}

.hard-skills, .soft-skills {
    flex-basis: 48%;
} */

/* ul {
    padding-left: 1.5rem;
} */

.cv-btn, .contact-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cv-btn:hover, .contact-btn:hover {
    background-color: #c0392b;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .project-btn {
        margin-top: 1rem;
    }

    .skills-container {
        flex-direction: column;
    }

    .hard-skills, .soft-skills {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }
}

.email {
    margin-top: 1rem;
    font-size: 1.1em;
    color: var(--secondary-color);
}
.project-image {
    /* width: 80%; */
    max-width: 20%; /* Sets a maximum size */
    height: 20%; /* Maintains aspect ratio */
    display: block;
    margin-bottom: 10px;
}

/* Add these new styles for responsive images */
.project-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    /* ... existing mobile styles ... */

    .project-image {
        max-width: 100%;
    }

    .project {
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .project-image {
        max-width: 300px;
    }
}

@media screen and (min-width: 1025px) {
    .project-image {
        max-width: 400px;
    }
}

/* Contact Page Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #2980b9;
}

.note {
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Responsive design for contact page */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .container h2 {
        font-size: 2rem;
    }

    .container p {
        font-size: 1rem;
    }

    .submit-button {
        width: 100%;
    }
}



#social-media {
    text-align: center;
    margin: 20px 0;
}

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

.social-icon {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    border-radius: 50%; /* Makes the icons rounded */
    transition: transform 0.3s;
    object-fit: cover; /* Ensures the images fit well within the rounded shape */
}

.social-icon:hover {
    transform: scale(1.1);
}



.slide {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




  /* Basic styles for the slider */
.splide {
    width: 100%;
    height: 40%; /* Adjust height as necessary */
    margin: 20px 0; /* Add some spacing for visual appeal */
}
.splide__slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ... existing styles ... */

#slider {
    position: relative;
}

.animated-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 10;
}

#typing-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #e6b089; /* Changed text color */
}

/* ... existing styles ... */


#skills-section {
    background: linear-gradient(to bottom, #1e90ff, #f2f2f2);
    padding: 50px 0;
    text-align: center;
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}
.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skill-icon img {
    height: 60px;
    margin-bottom: 15px;
}
.skill-icon span {
    font-size: 18px;
    font-weight: bold;
}