/* Global styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.logo {
    position: absolute;
    top: 90px; /* Adjust to the desired top position */
    left: 50px; /* Adjust to the desired left position */
    width: 120px; /* Adjust size for better scaling */
    height: auto;
}

/* Header section */
.header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid #ddd;
}

h1 {
    margin: 0;
    font-size: 3rem;
    color: #f9f6f6;
    font-family: 'Times New Roman', Times, serif;
}

.container {
    padding: 20px;
}

/* Main container */
.container {
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header section */
.header {
    background-color: gray;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 10px 10px 0 0;
}

.header h1 {
    margin: 0;
}

/* Content layout */
.content {
    display: block;
    padding: 20px;
}

/* Individual project styles */
.project {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    animation: dropIn 0.5s ease-out forwards;
}

.project:nth-child(2) {
    animation-delay: 0.3s;
}

.project:nth-child(3) {
    animation-delay: 0.6s;
}

/* Heading styles */
.project h2 {
    color: #d43f3a;
    margin-bottom: 10px;
    flex-basis: 100%;
    font-size: 1.5rem;
    font-family: 'Times New Roman', Times, serif;
}

/* Project content layout */
.project-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex-direction: column; /* Default to column for flexibility */
}

/* Image styles */
.project-content img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

/* Text styles */
.project-content p {
    font-size: 18px;
    color: #5c5249;
    text-align: justify;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    margin: 0 10px;
}

/* Pop-up effect on hover */
.project-content img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Drop-in animation */
@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjusting layout for alternating sides */
.project:nth-child(odd) .project-content {
    flex-direction: row; /* Image on the left and content on the right */
}

.project:nth-child(even) .project-content {
    flex-direction: row-reverse; /* Image on the right and content on the left */
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .logo {
        top: 50px;
        left: 20px;
        width: 100px;
    }

    .header {
        padding: 60px 20px;
    }

    .project {
        flex-wrap: wrap;
    }

    .project-content {
        flex-direction: column; /* Stack image and text */
    }

    .project-content img {
        max-width: 100%;
        height: auto;
    }

    .project h2 {
        font-size: 1.2rem;
    }
	.project:nth-child(odd) .project-content{
		flex-direction: column;
	}
	.project:nth-child(even) .project-content{
		flex-direction: column;
	}

    .project-content p {
        font-size: 16px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px;
		padding-top: 70px;
    }

    h1 {
        font-size: 2rem;
    }

    .logo {
        width: 80px;
        top: 30px;
        left: 37%;
    }

    .project h2 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 14px;
    }
	.content{
		padding:5px;
	}

	
}
