/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    background: #000000;
    font-family: 'Poppins', sans-serif;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: visible;
    scroll-behavior: smooth;
    
}

/* Fixed particles background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Overlay content container */
.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
	background: #0000008f;
}

/* --- NAVIGATION & HAMBURGER STUFF --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.89); /* Added slight background for visibility */
    z-index: 1000;
	
    border-bottom: 0px solid rgba(20, 231, 221, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Centers the content */
    margin: 0 auto;
    padding: 15px 25px;
}

.logo img {
    width: 50px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #14e7dd;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #14e7dd;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Portfolio sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 80px;
    text-align: center;
}

section h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    max-width: 800px;
    color: #14e7dd;
    text-shadow: 0 0 10px rgba(20, 231, 221, 0.3);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    max-width: 700px;
    color: #14e7dd;
    font-weight: 600;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    max-width: 600px;
    color: #14e7dd;
    font-weight: 600;
}

section p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    color: #d0d1d1;
    margin-bottom: 20px;
}

#hello h1 {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 30px;
    color: #14e7dd;
    text-shadow: 0 0 10px rgba(20, 231, 221, 0.3);
}

#hello p {
    text-align: left;
    font-size: 1.3rem;
    max-width: 800px;
}

.side-by-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    text-align: left;
    margin-top: 30px;
}

.side-by-side .text { flex: 1; }
.side-by-side .image { flex: 1; text-align: center; }

.side-by-side img {
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Skills display */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    max-width: 800px;
}

.skill-item {
    background: rgba(20, 231, 221, 0.1);
    border: 1px solid rgba(20, 231, 221, 0.3);
    border-radius: 50px;
    padding: 10px 25px;
    color: #d0d1d1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(20, 231, 221, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 231, 221, 0.2);
}

/* Projects grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.project {
    background: rgba(20, 30, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(20, 231, 221, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(20, 231, 221, 0.15);
    border-color: rgba(20, 231, 221, 0.4);
}

.project-image { height: 200px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.project:hover .project-image img { transform: scale(1.05); }

.project-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.project h3 { color: #14e7dd; margin-bottom: 15px; font-size: 1.5rem; text-align: left; }
.project p { color: #d0d1d1; text-align: left; margin-bottom: 20px; flex-grow: 1; }

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.tech-tag {
    background: rgba(20, 231, 221, 0.15);
    color: #a6f4f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact section */
.contact-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin-top: 40px;
	max-width: 800px;
}

.contact-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(20, 231, 221, 0.1);
	border-radius: 10px;
	padding: 25px;
	width: 200px;
	transition: transform 0.3s ease;
}

.contact-item:hover {
	transform: translateY(-5px);
	background: rgba(20, 231, 221, 0.15);
}

.contact-icon {
	font-size: 2.5rem;
	color: #14e7dd;
	margin-bottom: 15px;
}

.contact-item h4 {
	color: #fff;
	margin-bottom: 10px;
	font-size: 1.2rem;
}

.contact-item p,
.contact-item a {
	color: #d0d1d1;
	text-decoration: none;
}

.contact-item a:hover {
	color: #14e7dd;
	text-decoration: underline;
}

.project-links {
	display: flex;
	gap: 15px;
}

.project-link {
	color: #14e7dd;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.3s ease;
}

.project-link:hover {
	color: #fff;
	text-decoration: underline;
}

.profile-image {
    display: block;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.89);
    padding: 30px 0;
    text-align: center;
    color: #d0d1d1;
    border-top: 0px solid rgba(20, 231, 221, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }
	.nav-container {
		/*display: flex;
		justify-content: space-between;
		align-items: center;
		max-width: 1200px;  
		margin: 0 auto; */
		padding: 5px 25px;
	}

    .nav-links {
        display: none; /* Hide links by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.89);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: 0px solid rgba(20, 231, 221, 0.2);
    }

    .nav-links.active {
        display: flex; /* Script will toggle this class */
    }

    nav a {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .side-by-side {
        flex-direction: column;
        text-align: center;
    }

    #hello h1, #hello p {
        text-align: center;
    }

	.profile-image {
		display: none;
	}
}

@media (max-width: 480px) {
    section h1, #hello h1 {
        font-size: 2.2rem;
        text-align: left;
    }
    section p, #hello p {
        text-align: left;
    }
}

/* Animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}