/* General Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

a {color: #28a745;}
body {
	/* font-family: "Quicksand", sans-serif; */
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
	background-color: #f0f2f5;
	/* font-weight:; */
	color: #000000;
	padding: 100px 20px 20px;
	/* position: relative; */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Floating Navigation */
.floating-nav {
	position: fixed;
	top: 20px;
	right: 20px;
	background-color: #003d12;
	padding: 10px 15px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.floating-nav a {
	color: #fff;
	text-decoration: none;
	margin: 5px 0;
	font-weight: bold;
	transition: color 0.3s;
}

.floating-nav a:hover {
	color: #ffcc00;
}

/* Card Styles */
.card {
	background-color: #fff;
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	animation: fadeInUp 0.5s ease forwards;
	opacity: 0;
	transform: translateY(20px);
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header Styles */
header.card {
	text-align: center;
	background-image: linear-gradient(to right, #003d12, #005f1e);
	color: #fff;
	position: relative;
	overflow: hidden;
	
}

header.card::before,
header.card::after {
	content: '';
	position: absolute;
	width: 200%;
	height: 200%;
	top: -100%;
	left: -100%;
	background: rgba(255, 255, 255, 0.05);
	transform: rotate(45deg);
	animation: headerAnimation 6s infinite linear;
}

@keyframes headerAnimation {
	from {
		transform: translateX(0) translateY(0) rotate(45deg);
	}
	to {
		transform: translateX(100%) translateY(100%) rotate(45deg);
	}
}

header.card img {
	border-radius: 50%;
	width: 150px;
	height: 150px;
	border: 5px solid #fff;
	margin-bottom: 15px;
	object-fit: cover;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
	margin-top: 10px;
	position: relative;
}

.contact-info a {
	color: #ffcc00;
	margin: 0 5px;
	text-decoration: none;
	transition: color 0.3s;
}

.contact-info a:hover {
	color: #fff;
}

/* Skills List */
.skills-list {
	list-style: none;
}

.skills-list li {
	margin-bottom: 10px;
	font-size: 1.1em;
}

/* Table Styles */
.table-container {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

table th,
table td {
	padding: 12px 15px;
	border: 1px solid #ddd;
	text-align: left;
}

table th {
	background-color: #003d12;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

table tr:nth-child(even) {
	background-color: #f9f9f9;
}

/* GitHub Works */
.github-projects {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
#projects li {margin-top: 1.5em;}
#projects li a {color: #28a745;}
.project-card {
	background-color: #f8f8f8;
	padding: 20px;
	border-radius: 10px;
	flex: 1 1 calc(33% - 40px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

.project-card:hover {
	transform: translateY(-5px);
}

.project-card h3 {
	margin-bottom: 10px;
	color: #003d12;
}

.project-card p {
	margin-bottom: 15px;
	color: #555;
}

.project-card a {
	color: #ff6600;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s;
}

.project-card a:hover {
	color: #003d12;
}

/* Contact Form */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact-form label {
	font-weight: bold;
	color: #003d12;
}

.contact-form input,
.contact-form textarea {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	resize: none;
	font-size: 1em;
}

.contact-form button {
	align-self: flex-start;
	background-color: #003d12;
	color: #fff;
	padding: 12px 25px;
	border: none;
	border-radius: 25px;
	font-size: 1em;
	cursor: pointer;
	transition: background-color 0.3s;
}

.contact-form button:hover {
	background-color: #005f1e;
}

/* Footer */
footer.card {
	text-align: center;
	/* background-color: #003d12; */
	color: #fff;
	padding: 20px;
	font-size: 0.9em;
}

@media(max-width: 768px) {
	.floating-nav {
		flex-direction: row;
		gap: 2rem;
		overflow-x: scroll;
		top: auto;
		bottom: 0;
		width: 100%;
		right: 0;
		left: 0;
		padding: 1rem;
	}

	.github-projects {
		flex-direction: column;
	}

	.project-card {
		flex: 1 1 100%;
	}
}
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    width: calc(33.333% - 20px);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox:target {
    display: flex;
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: calc(100% - 20px);
    }
}
.image-container {
	text-align: center;
	margin: 20px;
	padding: 20px;
	border: 2px solid #28a745;
	border-radius: 10px;
	background-color: #f8f9fa;
	display: inline-block;
}

/* Image Styling */
.image-container img {
	max-width: 10rem;
	height: auto;
	border-radius: 10px;
}

/* Label Styling */
.image-label {
	font-size: 1rem;
	font-weight: bold;
	margin: 10px;
	color: #28a745;
}

/* Download Button Styling */
.download-button {
	margin-top: 15px;
	padding: 10px 20px;
	font-size: 16px;
	font-weight: bold;
	color: white;
	background-color: #28a745;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.3s, transform 0.3s;
}

.download-button:hover {
	background-color: #218838;
	transform: scale(1.05);
}

.download-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
}
#projects a {word-break: break-all;
word-wrap: break-word;}










#unique-blog-section {
	background-color: #fff;
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	animation: fadeInUp 0.5s ease forwards;
	opacity: 0;
	transform: translateY(20px);
}

/* Post Items */
#unique-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-item {
    flex: 1 1 calc(33.333% - 20px); /* Three items per row, responsive */
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-image {
	display: block; /* Ensures margin auto works */
	margin-left: auto; /* Center horizontally */
	margin-right: auto; /* Center horizontally */
	/* width: 100%; */
	height: 30vh; /* Fixed height for images */
	object-fit: cover;
	border-bottom: 1px solid #C4DAD2; 
}

/* Post Title and Preview */
.post-item h3 {
    margin: 10px;
    font-size: 1.25em;
    color: #003d12;
}

.post-item p {
    margin: 0 10px 10px;
    font-size: 0.95em;
    color: #555;
}

/* Post Detail Section */
#unique-post-detail {
    display: none;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    
}

#unique-post-title {
    color: #2c3e50;
    font-size: 2em;
}

#unique-post-author {
    color: #777;
    margin-bottom: 20px;
}
#unique-post-image {
    /* width: 100%; */
    height: 30vh; /* Allows the height to adjust based on the width */
   /* Sets a maximum height for the image */
  /* Ensures the image covers the area without distortion */
    border-radius: 8px; /* Rounds the corners for a softer look */
    margin-bottom: 20px; /* Space below the image */
     /* Adds shadow for depth */
}
/* Back Button */
.green-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.green-button:hover {
    background-color: #219150;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .post-item {
        flex: 1 1 calc(50% - 20px); /* Two items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .post-item {
        flex: 1 1 100%; /* One item per row on small screens */
    }
}