/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
}

/* Navigation Menu */
.navbar {
    background-color: rgba(31, 31, 31, 0.8);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: #FC1056;
}

/* About Section */
#about {
    padding: 100px 0 50px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content {
    flex: 1;
    max-width: 60%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.wave {
    animation: wave-animation 2s infinite;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
    70% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.highlight {
    color: #FC1056;
}

.social-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.3s;
}

.social-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FC1056;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #FC1056;
}

.about-image {
    flex: 0 0 auto;
    margin-left: 20px;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid #FC1056;
    object-fit: cover;
}

/* Sections */
section {
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* Education Section */
#education {
    padding: 50px 0;
    text-align: center;
}

.section-header {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #FC1056;
}

.education-items, .work-experience-items, .project-items, .certification-items {
    display: flex;
    justify-content: center; /* Center them on the page */
    gap: 40px; /* Space between both education items */
    max-width: 1100px; /* Restrict max width to ensure alignment */
    margin: auto; /* Center container */
}
.education-item, .work-experience-item, .certification-item  {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 45%; /* Ensures both items take up equal space */
    max-width: 500px; /* Prevents them from stretching too much */
    border: 2px solid #FC1056;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
    transition: box-shadow 0.3s, border 0.3s;
    text-align: center;
    min-height: auto; 
}
.education-item:hover, .work-experience-item:hover, .certification-item:hover  {
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
    border: 2px solid #FC1056;
}

.university-logo {
    width: 50px; /* Increased size */
    height: auto;
    margin-bottom: 15px;
    
}
.education-details {
    width: 100%;
    text-align: left; /* Aligns text properly */
    overflow: visible; /* Ensures text is fully displayed */
    white-space: normal; /* Allows text to wrap properly */
    text-overflow: clip; /* Prevents text truncation with '...' */
    display: block; /* Ensures full text is visible */
    word-wrap: break-word; /* Ensures long words wrap */
    max-width: 100%; /* Avoids unnecessary truncation */
}


.education-details h3 {
    font-size: 1.3rem;
    margin-top: 0;
    text-align: center; /* Keeps the title centered */
}

.education-details hr {
    border: 0;
    border-top: 2px solid #FC1056;
    margin: 10px auto;
    width: 50%;
}

.education-details p {
    margin: 5px 0;
}

.education-details ul, .work-experience-item ul, .project-items ul, .certification-item ul  {
    list-style-type: disc;
    margin: 10px auto;
    padding-left: 20px;
    text-align: left;
    word-wrap: break-word;
    max-width: 350px;
    text-align: justify;
}

/* Projects Section */
#projects {
    padding: 50px 0;
    text-align: center;
}

.project-items {
    display: flex;
    justify-content: center; /* Center them on the page */
    gap: 40px; /* Space between project items */
    max-width: 1200px; /* Restrict max width to ensure alignment */
    margin: auto; /* Center container */
    flex-wrap: wrap; /* Makes items responsive on smaller screens */
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 45%; /* Ensures both items take up equal space */
    max-width: 500px; /* Prevents them from stretching too much */
    border: 2px solid #FC1056;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
    transition: box-shadow 0.3s, border 0.3s;
    text-align: center;
}

.project-item:hover {
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
    border: 2px solid #FC1056;
}

/* Project Logos */
.project-logo {
    width: 80px; /* Adjust size */
    height: auto;
    margin-bottom: 15px;
}

/* Project Details Styling */
.project-details {
    width: 100%;
    text-align: justify; /* Justifies text */
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    display: block;
    word-wrap: break-word;
    max-width: 100%;
}

.project-details h3 {
    font-size: 1.3rem;
    margin-top: 0;
    text-align: center; /* Keeps the title centered */
}

.project-details hr {
    border: 0;
    border-top: 2px solid #FC1056;
    margin: 10px auto;
    width: 50%;
}

.project-details p {
    margin: 5px 0;
}

.project-details ul {
    list-style-type: disc;
    margin: 10px auto;
    padding-left: 20px;
    text-align: justify; /* Justifies bullet points */
    word-wrap: break-word;
    max-width: 350px;
}

.certification-logo {
    width: 500px;
    height: 300px; /* Adjust as needed */
    object-fit: contain; /* Ensures aspect ratio is maintained */
}

/* Contact Me Section */
#contact {
    text-align: center;
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.7); /* Matches About Section */
    color: white;
    margin-bottom: 20px;
}

.contact-content {
    max-width: 800px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.section-header {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #FC1056;
}

#contact p {
    font-size: 1rem;
    color: #bbb; /* Light text for readability */
    margin-bottom: 20px;
}

/* Social Icons */
.social-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-logos a img {
    width: 50px; /* Adjust size */
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
}

.social-logos a img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Resume Button */
.btn {
    display: inline-block;
    background-color: #FC1056;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ff4081;
}

/* General Fade-In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Fade-In to Sections */
section {
    opacity: 0; /* Initially hidden */
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

/* Delay Each Section for a Staggered Effect */
#about {
    animation-delay: 0.2s;
}

#projects {
    animation-delay: 0.4s;
}

#certifications {
    animation-delay: 0.6s;
}

#contact {
    animation-delay: 0.8s;
}


@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.profile-photo {
    animation: floatAnimation 4s ease-in-out infinite;
}


.btn {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 105, 180, 0.5);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.social-logo {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Stagger the appearance of each icon */
.social-logo:nth-child(1) { animation-delay: 0.2s; }
.social-logo:nth-child(2) { animation-delay: 0.4s; }
.social-logo:nth-child(3) { animation-delay: 0.6s; }
.social-logo:nth-child(4) { animation-delay: 0.8s; }
.social-logo:nth-child(5) { animation-delay: 1s; }

html {
    scroll-behavior: smooth;
}
