/* General Styles */
* {
    margin: 00px;
    padding: 00px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: white;
    color: black;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: rgb(14, 49, 73);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo (Pfolio) on the top left */
.logo h1 {
    color: cornsilk;
    font-size: 30px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 0px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
}

/* When the menu is active, show it on mobile */
.nav-list {
    display: flex;
}

.nav-list.active {
    display: block;
    width: 100%;
    text-align: center;
    background-color: white;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 10px 0;
}

.nav-list li {
    margin: 10px 0;
}


/* Sections */
.section {
    padding: 50px;
    background-color: white;
    margin-bottom: 20px;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    color: darkslategrey;
}

h1 {
    font-size: 22px;
}

/* Home Section */
#home .container {
    display: flex;
    justify-content: space-between; /* Aligns the two items with space between */
    align-items: center;
    padding: 00px 00px;
    
}

.profile-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%; /* Ensures that both the text and image take up full width */
}

.intro-text {
    max-width: 800px; /* Limiting the width of text area */
    flex: 1; /* Allowing the text to take up available space */
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.profile-img {
    display: block;
    margin-left: auto;  /* Pushes the image to the right */
    margin-right: 0;
    border-radius: 80%;
    width: 250px;
    height: 230px;
}


/* Skills section */
#skills {
    padding: 00px;
    text-align: center;
}

#skills .container {
    max-width: auto; /* Adjust width for better container */
    margin: 0 auto; /* Centers the container horizontally */
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Flexbox container for the three categories */
.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* Each skill category container */
.skill-category {
    width: 30%; /* Allows three columns */
    text-align: center;
}

/* Skill button styling */
#skills ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}

#skills .skill-button {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background-color: rgb(10, 10, 58); /* Button background color */
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
#skills .skill-button:hover {
    background-color: rgb(4, 116, 153); /* Slightly different color */
    transform: scale(1.05); /* Slightly enlarges the button */
}

#skills .skill-button:focus {
    outline: none; /* Removes the default focus outline */
}

/* Projects Section */
#projects {
    padding: 30px;
    text-align: center;
}

#projects .container {
    max-width: auto; /* Set max-width for larger screens */
    margin: 0 auto; /* Centers the container horizontally */
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Flexbox container for project cards */
.projects-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* Project Card Styling */
.project-card {
    width: 30%; /* Each card takes up 30% of the container */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px); /* Slight lift effect on hover */
}

/* Image inside the project card */
.project-image {
    width: 100%;
    height: 300px; /* Fixed height for all images */
    object-fit: cover; /* Ensures images cover the area without distortion */
}

/* Information inside the project card */
.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(10, 10, 58);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: rgb(4, 116, 153); /* Hover effect */
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .project-card {
        width: 100%; /* On smaller screens, each card takes full width */
    }
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form input, form textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

/* Resume Section */
#resume {
    text-align: center;  /* Align the text and content to the center */
    padding: 00px 00px;  /* Add padding for better spacing */
}

#resume .container {
    max-width: max-content; /* Optionally set a max width for the content */
    margin: 0 auto;  /* Center the container horizontally */
}

#resume h1 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

#resume p {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

#resume .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgb(4, 116, 153); 
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

#resume .btn:hover {
    background-color:rgb(4, 116, 153); 
}


/* Contact Section */
#contact {
    padding: 10px 05px;
    text-align: center;
}

#contact h2 {
    font-size: 5rem;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1rem;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 30px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effect */
.social-links a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}


/* Footer Styles */
footer {
    background-color: rgb(14, 49, 73); /* Dark background */
    color: white; /* White text color */
    padding: 20px 0;
    text-align: center;
    font-size: 1rem;
}

footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .social-links {
    margin: 10px 0;
}

footer .social-links a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

footer .social-links a:hover {
    color: #3498db; /* Change color on hover */
}

footer p {
    margin: 5px 0;
    font-size: 1rem;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }
}
