/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #1c1f26; /* Dark background */
    color: #ffffff; /* White text for contrast */
}

/* Navigation Bar */
nav {
    background: #222;
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* Sections - Prevent Overlapping */
section {
    min-height: 100vh;
    padding: 120px 20px;
    text-align: center;
    overflow: hidden; /* Prevents elements from spilling over */
}

/* Home Section */
#home {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    background: #222;
    color: white;
}

.profession {
    font-size: 24px;
    font-weight: bold;
    transition: opacity 1s ease-in-out;
}

/* Profile Image */
.home-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    background: #ff5733;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #c13f1d;
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
    color: white;
    font-size: 24px;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.about-content img {
    width: 200px;
    border-radius: 50%;
}

/* Resume & Projects Grid - 3 on top, 3 on bottom */
.resume-cards, .projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 40px; /* Increased space between cards */
    padding: 40px;
    justify-content: center;
}

/* Card Styling */
.card, .project-card {
    background: #121720; /* Dark background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
    text-align: center;
    width: 100%;
    height: 250px; /* Making them square */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover, .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

form input, form textarea {
    margin: 10px 0;
    padding: 12px;
    width: 100%;
    border: 1px solid #555;
    border-radius: 5px;
    background: #2a2d36;
    color: white;
}

form button {
    background: #ff5733;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background: #c13f1d;
}


/* About Section */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.about-image img {
    width: 200px; /* Same size as home image */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff; /* Optional border to match the style of the home section */
}

/* View More Button */
#viewMoreBtn {
    margin-top: 20px;
}

/* More Details Section */
.more-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 40px;
    padding: 40px;
    display: none; /* Initially hidden */
    justify-content: center;
}

.details-card {
    background: #121720; /* Dark background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-card img {
    width: 100%;
    height: 150px; /* Adjusted height for the images */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.details-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.details-card p {
    font-size: 14px;
}

/* Show the More Details Section when View More is Clicked */
.more-details.show {
    display: grid;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    background: #ff5733;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #c13f1d;
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #1c1f26; /* Dark background */
    color: #ffffff; /* White text for contrast */
}

/* Resume Section */
#resume {
    text-align: center;
    padding: 60px 20px;
}

#resume h2 {
    font-size: 36px;
    color: #ffff; /* Accent color for the title */
    margin-bottom: 40px;
}

/* Resume Cards */
.resume-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 40px; /* Increased space between cards */
    justify-content: center;
}

/* Card Styling */
.card {
    background: #121720; /* Dark background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; /* Set a fixed height for uniformity */
    width: 100%;
}

/* Title Styling */
.card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraph Styling */
.card p {
    font-size: 16px;
    line-height: 1.5;
    color: #bbb; /* Lighter color for the description text */
    margin-top: 20px;
}

/* Hover Effects */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}


/* Projects Section */
#projects {
    text-align: center;
    padding: 60px 20px;
}

#projects h2 {
    font-size: 36px;
    color: #ff5733; /* Accent color for the title */
    margin-bottom: 40px;
}

/* Projects Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-resize to fit content */
    gap: 40px;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

/* Project Cards Styling */
.project-card {
    background: #121720; /* Dark background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out elements */
    height: auto;
    width: 100%;
    min-height: 320px; /* Ensure the card has a minimum height */
}

/* Main Repo Card - Centering */
.project-card.main-repo {
    grid-column: span 3; /* Make the card take up the entire row */
    text-align: center;
}

/* Project Image Styling */
.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px; /* Spacing between the image and the project name */
}

/* Title Styling */
.project-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Paragraph Styling */
.project-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #bbb;
    margin-top: 20px;
}

/* Hover Effects */
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Ensure cards fit well on smaller screens */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for mobile */
    }
}

@media (max-width: 480px) {
    #projects h2 {
        font-size: 30px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-card p {
        font-size: 14px;
    }
}


/* Social Links Container */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px; /* Spacing between icons */
}

/* Icons Styling */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #007bff; /* Blue background */
    color: #fff; /* White icon color */
    font-size: 1.5rem;
    border-radius: 50%; /* Make it circular */
    transition: 0.3s ease-in-out;
    text-decoration: none;
}

/* Hover Effects */
.social-links a:hover {
    background: #0056b3; /* Darker blue */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-links {
        justify-content: center; /* Center align on mobile */
    }
}

