/* CSS Variables */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #fff;
    --text-secondary: #EFECE3;
    --accent-color: #4A70A9; /* Light Sea Green */
    --accent-hover: #8FABD4;
    --font-family: "Poppins", sans-serif;
    --transition-speed: 0.3s;
    --container-padding: 2rem;
    --nav-height: 70px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    padding-top: var(--nav-height); /* Prevent content hidden behind fixed nav */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--accent-color);
}
.section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Fonts */
.poppins-thin {
font-family: "Poppins", sans-serif;
font-weight: 100;
font-style: normal;
}

.poppins-extralight {
font-family: "Poppins", sans-serif;
font-weight: 200;
font-style: normal;
}

.poppins-light {
font-family: "Poppins", sans-serif;
font-weight: 300;
font-style: normal;
}

.poppins-regular {
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
}

.poppins-medium {
font-family: "Poppins", sans-serif;
font-weight: 500;
font-style: normal;
}

.poppins-semibold {
font-family: "Poppins", sans-serif;
font-weight: 600;
font-style: normal;
}

.poppins-bold {
font-family: "Poppins", sans-serif;
font-weight: 700;
font-style: normal;
}

.poppins-extrabold {
font-family: "Poppins", sans-serif;
font-weight: 800;
font-style: normal;
}

.poppins-black {
font-family: "Poppins", sans-serif;
font-weight: 900;
font-style: normal;
}

.poppins-thin-italic {
font-family: "Poppins", sans-serif;
font-weight: 100;
font-style: italic;
}

.poppins-extralight-italic {
font-family: "Poppins", sans-serif;
font-weight: 200;
font-style: italic;
}

.poppins-light-italic {
font-family: "Poppins", sans-serif;
font-weight: 300;
font-style: italic;
}

.poppins-regular-italic {
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: italic;
}

.poppins-medium-italic {
font-family: "Poppins", sans-serif;
font-weight: 500;
font-style: italic;
}

.poppins-semibold-italic {
font-family: "Poppins", sans-serif;
font-weight: 600;
font-style: italic;
}

.poppins-bold-italic {
font-family: "Poppins", sans-serif;
font-weight: 700;
font-style: italic;
}

.poppins-extrabold-italic {
font-family: "Poppins", sans-serif;
font-weight: 800;
font-style: italic;
}

.poppins-black-italic {
font-family: "Poppins", sans-serif;
font-weight: 900;
font-style: italic;
}
.limelight-regular {
font-family: "Limelight", sans-serif;
font-weight: 400;
font-style: normal;
}  

/* Floating Navbar */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(18, 18, 18, 0.95); /* Semi-transparent bg */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
}

.nav-socials a {
    color: var(--text-secondary);
    font-weight: bold;
    transition: color var(--transition-speed);
}

.nav-socials a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--nav-height)); /* Adjusted for nav */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative; /* For particles absolute positioning */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Behind content */
    pointer-events: none; /* Allow clicking through */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    position: relative; /* Ensure content is above particles */
    z-index: 2; 
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center; /* Center image if it's smaller than column */
}

.profile-img {
    max-width: 400px;
    /* height: 300px; */
    border-radius: 12px 0 12px 0; /* Rounded square */
    object-fit: cover;
    background-color: #333; /* Placeholder bg */
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: bold;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

/* Projects Section (Carousel) */
.projects-section {
    padding: 4rem 0;
    background-color: #181818; /* Slightly lighter than bg */
    overflow: hidden; /* Prevent swiper overflow */
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: contain;
    width: 450px;
    height: 500px;
    /* Remove margin logic handled by swiper */
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    padding: 0; /* Remove padding for image flush */
    border-radius: 12px;
    border: 1px solid #333;
    transition: box-shadow var(--transition-speed); /* Transform handled by Swiper */
    height: 100%;
    text-align: left; /* Align text left or center as preferred */
    overflow: hidden; /* Clip image corners */
}

.card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    background-color: #333;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide-active .project-image {
     /* Optional active slide effect */
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.project-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Swiper Overrides */
.swiper-pagination-bullet {
    background-color: #555;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

.swiper-button-prev, .swiper-button-next {
    color: var(--accent-color);
}

/* About Me Section */
.about-section {
    padding: 6rem 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-bio {
    max-width: 800px;
    /* text-align: left; */
    text-align: justify;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

.footer-socials {
    display: none; /* Hidden by default on Desktop */
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-weight: bold;
    transition: color var(--transition-speed);
}

/* Responsive Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --nav-height: 0px; /* No sticky nav spacing needed if it's hidden or static */
    }

    body {
        padding-top: 0;
    }

    .swiper {
        overflow: initial !important;
    }

    .floating-nav {
        display: none; /* Hide header nav on mobile */
    }
    
    .hero-container {
        flex-direction: column; /* Vertical stack */
        text-align: center;
        gap: 2rem;
        margin-top: 2rem; /* Add top margin since nav is gone */
    }

    .hero-image-wrapper {
        order: -1; /* Image on top */
    }

    .profile-img {
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Show footer socials on mobile */
    .footer-socials {
        display: flex;
    }
}
