/* General Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 60vh;
    background: #0f172a;
    z-index: -1;
}

/* Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}
nav ul li a:hover {
    background-color: #E11D48;
    color: white;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav {
        position: static;
        padding: 10px 0;
        display: none;
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 0; /* Adjust this value as needed */
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-top: 15px;
}
.hero-section h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 8px 0;
    letter-spacing: 0.1em;
    color: #E11D48;
    text-transform: uppercase;
}
.hero-section p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #9CA3AF;
}
/* Large screens and high-resolution laptops */
@media (min-width: 1366px) and (max-width: 3000px) {
    .hero-section {
        padding-top: 80px;
    }
}

/* Medium screens like smaller laptops and large tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .hero-section {
        padding-top: 60px;
    }
}

/* Default for smaller tablets and mobile */
@media (max-width: 1024px) {
    .hero-section {
        padding-top: 50px; /* Keep it compact for smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section h2 {
        font-size: 1.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section h2 {
        font-size: 1rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .profile-image {
        width: 80px;
        height: 80px;
    }
}

/* Hero Section Image */
.profile-image {
    width: 150px; /* Default size */
    height: 150px; /* Default size */
    border-radius: 50%; /* Circular shape */
    overflow: hidden; /* Clips the image */
    margin: 0 auto;
    border: 3px solid #E11D48; /* Optional border for styling */
    position: relative;
    box-shadow: 0 0 15px 5px rgba(225, 29, 72, 0.6); /* Glow effect */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition */
    margin-top: -10px; /* Adjust margin to bring image closer to navbar */
}

.profile-image:hover {
    box-shadow: 0 0 25px 10px rgba(225, 29, 72, 0.8); /* Stronger glow on hover */
}

.profile-image img {
    display: block;
    width: 100%; /* Fills the container */
    height: 100%; /* Fills the container */
    object-fit: cover; /* Prevents distortion */
    border-radius: 50%; /* Ensures the image matches the container */
    object-position: center; /* Centers the image */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-image {
        width: 130px; /* Adjust size for medium screens */
        aspect-ratio: 1 / 1; /* Maintain circular shape */
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 100px; /* Adjust size for very small screens */
        aspect-ratio: 1 / 1; /* Maintain circular shape */
    }
}



/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
}

.social-links a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background-color: #0f172a;
    border: 2px solid white;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    line-height: 1;
}
.social-links a.btn img.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.social-links a.btn:hover {
    background-color: white;
    color: #0f172a;
    transform: scale(1.05);
}

.social-links a.btn-linkedin {
    background-color: white;
    color: #0f172a;
}
.social-links a.btn-linkedin:hover {
    background-color: #0f172a;
    color: white;
}

/* Projects Section */
.projects {
    background: white;
    color: #0f172a;
    padding: 60px 20px;
    text-align: center;
}
.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 70%;
}
.project-card:hover {
    transform: translateY(-5px);
    background-color: #E5E7EB;
}
.project-card .description {
    flex: 1;
    text-align: left;
    padding-right: 20px;
    margin-left: 20px;
}
.project-card .description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.project-card .description .tech-used {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.project-card .description .tech-used img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.project-card .description p {
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 15px;
}
.project-card .buttons {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.project-card .buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Adjust padding for button size */
    font-size: 1rem; /* Text size */
    font-weight: 400; 
    text-decoration: none;
    color: white; /* Text color */
    background-color: #1E293B; /* Dark gray background for buttons */
    border-radius: 8px; /* Slightly rounded corners */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease; /* Smooth hover effects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-right: 8px; /* Space between buttons */
}

.project-card .buttons a.github {
    background-color: #111827; /* Slightly darker for GitHub button */
}

.project-card .buttons a:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    background-color: #374151; /* Slightly lighter gray on hover */
}

.project-card .buttons a img.icon {
    width: 16px;
    height: 16px;
    margin-right: 6px; /* Space between icon and text */
    vertical-align: middle; /* Align icon with text */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-card .buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: flex-start;
    }
    .project-card .description,
    .project-card .image {
        width: 100%;
        text-align: left; /* Ensure text stays left aligned on mobile */
    }

    .project-card .buttons a {
        margin-bottom: 10px; /* Space between stacked buttons */
        width: auto; /* Adjust width for readability */
        text-align: left; /* Align text and icons */
    }
}




.project-card .image {
    flex: 1;
    text-align: right;
}
.project-card .image img {
    width: 95%;
    max-width: 500px;
    border-radius: 12px;
    margin-bottom: -20px;
    margin-right: -20px;
    transition: transform 0.3s ease-in-out;
}
.project-card .image img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center;
        width: 90%; /* Increase container width on mobile devices */
    }
    .project-card .description,
    .project-card .image {
        width: 100%;
        text-align: center;
        text-align: left;
    }
    .project-card .image img {
        margin: 10px auto;
        max-width: 100%;
        height: auto;
    }
    .project-card .description h3 {
        font-size: 1.4rem; /* Reduced size for mobile devices */
    }
}


/* Skills Section */
.skills {
    padding: 60px 20px;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 items per row by default */
    gap: 20px;
    width: 55%; /* Center grid and limit its width */
    margin: 0 auto; /* Center align the entire grid */
    justify-items: center; /* Align items horizontally within their cells */
}

/* Style individual skill items */
.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.skill img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.skill img:hover {
    transform: scale(1.1); /* Enlarge slightly on hover */
}

.skill span {
    font-size: 1rem;
    color: #333;
}

/* Adjust for third row: Add one space at the start */
.skills-container .skill:nth-child(15) {
    grid-column-start: 2; /* Push the first item of the third row to the second grid column */
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row for smaller screens */
        gap: 15px; /* Adjust spacing between items */
        width: 90%; /* Expand width slightly */
        grid-auto-flow: dense; /* Automatically fill gaps dynamically */
    }

    .skill img {
        width: 60px; /* Reduce icon size for mobile */
        height: 60px;
    }

    .skill span {
        font-size: 0.8rem; /* Reduce font size for mobile */
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row for very small screens */
        gap: 10px; /* Smaller gap for compact layout */
        width: 95%;
        grid-auto-flow: dense; /* Fill gaps dynamically */
    }

    .skill img {
        width: 50px; /* Further reduce icon size for very small screens */
        height: 50px;
    }

    .skill span {
        font-size: 0.7rem; /* Further reduce font size for smaller screens */
    }
}













/* Experience Section */
.experience {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.experience h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    transition: transform 0.3s ease-in-out;
}
.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 70%;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}
.timeline-content:hover {
    transform: scale(1.03);
}
.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
}
.timeline-content h4 {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 10px;
}
.timeline-content ul {
    padding-left: 20px;
    list-style-type: disc;
    margin: 10px 0 0;
    text-align: left;
}
.timeline-content ul li {
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}
.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 3px solid #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
    transition: transform 0.3s ease-in-out;
}
.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.timeline-date {
    width: 15%;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0 5px;
    transition: transform 0.3s ease-in-out;
}
.timeline-date:hover {
    transform: scale(1.03);
}

/* Desktop View */
@media (min-width: 769px) {
    .timeline-item {
        flex-direction: row; /* Horizontal alignment for desktop */
    }
    .timeline-icon {
        margin: 0; /* Reset margin for horizontal layout */
    }
    .timeline-date {
        width: 15%;
        margin: 0 10px; /* Add spacing between date and description */
    }
    .timeline-content {
        width: 70%;
        text-align: left; /* Left-align text for desktop */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align the entire item */
    }
    .timeline-icon {
        margin: 0 auto 15px auto; /* Center-align the icon and add spacing below */
    }
    .timeline-date {
        width: 100%; /* Full width for date */
        text-align: center; /* Center-align date */
        margin-bottom: 10px; /* Add spacing below the date */
    }
    .timeline-content {
        width: 100%; /* Full width for content */
        text-align: center; /* Center-align text for mobile */
        margin-top: 15px; /* Add spacing above the content */
    }
    .timeline-content ul {
        text-align: left; /* Keep lists left-aligned on mobile */
    }
}












/* Education Section */
.education {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.education h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #0f172a;
}
.education-details {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease-in-out;
}
.education-details:hover {
    transform: scale(1.05);
}
.education-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.education-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
}
.education-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.education-logo img:hover {
    transform: scale(1.1);
}
.education-info {
    text-align: left;
}
.education-info h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e11d48;
    margin-bottom: 5px;
}
.education-info h4 {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 5px;
}
.education-info p {
    font-size: 1rem;
    color: #374151;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        text-align: center;
    }
    .education-logo img {
        width: 100px;
        height: 100px;
    }
    .education-info h3 {
        font-size: 1.5rem;
    }
    .education-info h4 {
        font-size: 1.2rem;
    }
    .education-info p {
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #0f172a;
}
.contact-details {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
}
.contact-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.contact-details li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-details a {
    text-decoration: none;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-details a:hover {
    color: #e11d48;
    text-decoration: underline;
}
.contact-details a:hover {
    color: #e11d48;
    text-decoration: underline;
}

.contact-label {
    font-weight: bold;
    color: #0f172a;
    min-width: 80px; /* Ensures labels align properly */
}

.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-details {
        padding: 15px;
    }

    .contact-details li {
        font-size: 0.9rem;
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
    }

    .contact-label {
        min-width: 70px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }
}

/* Responsive Design for Screen Sizes Less Than 480px */
@media (max-width: 480px) {
    /* General Font Scaling */
    body {
        font-size: 90%;
    }

    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    /* Contact Section */
    .contact-details ul {
        font-size: 0.8rem;
    }

    .contact-details li {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-details a {
        gap: 5px;
    }
}
