/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.contact-icons {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.contact-icons h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-link:hover {
    transform: scale(1.1);
}




body {
    background-color: rgb(255, 255, 255);
    color: black;
    line-height: 1.6;
}

html{
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid black;
    position: relative;
}

.logo img {
    width: 90px; 
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 30px;
    height: 4px;
    background-color: black;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    border-bottom: 2px solid black;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    transition: transform 1s ease-in-out;
}

.hero-logo {
    width: 800px;
    height: auto;
    margin-right: 20px;
    animation: moveLogo 1s forwards;
}

.hero-text {
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
    font-size: 50px;
}

@keyframes moveLogo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200px); /* Adjust value as needed */
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* About Section */
.about {
    padding: 50px 20px;
    border-bottom: 2px solid black;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}


.about-text {
    text-align: center;  
    font-size: 25px;
    /* margin-bottom: 20px; */
   padding-left: 60px;
   padding-top: 50px;

}


.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.about-image {
    justify-self: end; /* Align the image to the right of the section */
}

.about-image img {
    width: 350px;
    height: auto;
    border-radius: 30px;
    flex: 1;
}


/* Projects Section */
.projects {
    display: flex;
    
    gap: 20px;
    max-width: 2000px; 
    margin: 0 auto; 
}

#projects{
    margin-top: 20px;
    margin-bottom: 20px;
}

.project {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Keep the aspect ratio for the image */
    border: 4px solid black;
    overflow: hidden;
    cursor: pointer;
    background-color: white;
}

.project img {
    width: 100%;
    height: 100%;
    
    object-fit: cover;
}

.projectt img{
    width: 100%;
    height: 100%;
    
    object-fit: contain;
}




/* Making the project items smaller */
.project {
    max-width: 90%; /* Set the maximum width of each project item */
    margin: 0 auto; /* Center the project items in the grid */
}

.project img[src="img/code logo.png"] {
    object-fit: contain; /* Ensures the logo fits inside without being cut off */
    background-color: white; /* Optional: Add a background if needed */
}

.project img[src="img/logo2.png"] {
    object-fit: contain; /* Ensures the logo fits inside without being cut off */
    background-color: white; /* Optional: Add a background if needed */
}


/* Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 24px;
    text-align: center;
}

.project-overlay a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-overlay a:hover {
    color: #ffffff;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project:hover .project-overlay p {
    font-size: 24px;
    transition: font-size 0.3s ease;
}

/* For making the whole image a link, wrap the image with a link in HTML */
.project a {
    display: block; /* Makes the entire project a link */
    height: 100%; /* Ensures the link takes up the entire space */
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; /* Stack items on smaller screens */
        position: relative; /* Ensure proper stacking */
        z-index: 10; /* Ensure navbar stays above other elements */
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
        position: relative; /* Ensure it stacks properly */
        z-index: 20; /* Higher than the logo */
    }

    /* Hide nav links by default on small screens */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        background-color: white;
        position: absolute;
        top: 80px;
        left: 0;
        border-top: 2px solid black;
    }

    /* Show the nav links when the 'active' class is added */
    .nav-links.active {
        display: flex;
    }

    /* Hero Section */
    .hero {
        flex-direction: column; /* Stack elements vertically */
        text-align: center;
        height: auto; /* Allow height to adjust */
        padding: 20px;
        position: relative;
    }

    .hero-logo {
        width: 250px; /* Adjust logo size */
        margin-bottom: 10px;
        transform: none; /* Remove animation for mobile */
        animation: none; /* No animation on mobile */
        z-index: 5; /* Place below the hamburger menu */
    }

    .hero-text {
        display: none; /* Hide "Welcome" text on mobile */
    }

    .about-content {
        flex-direction: column; /* Stack content vertically */
        text-align: center; /* Center-align text */
    }

    .about-image img {
        width: 300px; /* Smaller images for mobile */
    }

    .projects {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
        gap: 20px; /* Reduce spacing for mobile */
    }
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    /* Adjust About Section to stack vertically on mobile */
    .about {
        display: flex;
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center-align content */
        text-align: center; /* Center-align text */
    }

    /* Adjust the About Text for mobile */
    .about-text {
        margin-bottom: 20px; /* Add spacing between text and image */
    }

    /* Adjust the Image for mobile */
    .about-image img {
        width: 80%; /* Reduce the image size */
        max-width: 300px; /* Limit max image width */
        margin-top: 20px; /* Add space above the image */
    }

    /* Adjust the font size of the title for mobile */
    .about-title {
        font-size: 28px; /* Slightly smaller title for mobile */
    }

    /* Adjust the font size of the paragraph text for mobile */
    .about-text p {
        font-size: 1.1rem; /* Slightly smaller paragraph text */
    }
}



