/* --- Color & Font Variables --- */
:root {
    /* Main Palette */
    --clr-bg: #2d2a3d; /* UPDATE: Using a darker base like Faded Ink for a modern, immersive feel */
    --clr-text: #E0D3DE; /* Pale Lilac for primary text */
    --clr-text-muted: #a9a5b9; /* A muted version for subtitles */
    --clr-accent-primary: #A9C5A0; /* Sage Green */
    --clr-accent-secondary: #5F5980; /* Muted Grape */
    --clr-dark-moss: #4B644A; /* Forest Moss */
    --clr-white: #f8f8f8;

    /* UPDATE: Swapping fonts for a clean, modern, slightly rounded sans-serif */
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
}

.container {
    max-width: 1200px; /* UPDATE: Slightly wider container */
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3 {
    font-weight: 600; /* UPDATE: Using weight instead of a separate font family */
    color: var(--clr-white);
}

h1 { font-size: 3.2rem; line-height: 1.1; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; position: relative; }

/* UPDATE: Added a subtle underline element for headings to give them style */
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent-primary);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* --- Buttons & Links --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px; /* UPDATE: A modern, slightly rounded corner */
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent-primary);
    color: var(--clr-bg);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--clr-accent-primary);
    color: var(--clr-accent-primary);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
.site-header {
    background: rgba(45, 42, 61, 0.7); /* UPDATE: Darker transparency */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(95, 89, 128, 0.2); /* UPDATE: Subtle border for depth */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

/* UPDATE: New hover effect for nav links */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.main-nav ul li a:hover {
    color: var(--clr-white);
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 20px auto 40px;
}

/* --- About Section --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid var(--clr-accent-secondary); /* UPDATE: Adding a subtle border */
}

/* --- Content/Projects Section --- */
.content-section {
    background-color: #262433; /* UPDATE: A slightly different dark shade for separation */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--clr-accent-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-card:hover img {
    opacity: 1;
}

/* UPDATE: New card text style, always visible but more prominent on hover */
.card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.card-text h3 {
    color: var(--clr-white);
    font-weight: 600;
}

/* --- Community Section --- */
.community-section {
    text-align: center;
}
.community-section p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--clr-text-muted);
}
.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn-social {
    background-color: var(--clr-accent-secondary);
    color: var(--clr-white);
    min-width: 150px;
}
.btn-social:hover {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-accent-secondary);
    transform: translateY(-3px);
}

/* --- Contact Section --- */
.contact-section {
     background-color: #262433;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--clr-accent-secondary);
    border-radius: 8px;
    background-color: var(--clr-bg);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--clr-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent-primary);
    box-shadow: 0 0 10px rgba(169, 197, 160, 0.3);
}

/* --- Footer --- */
.site-footer-dark {
    background-color: #1f1d2b;
    color: var(--clr-text-muted);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-socials a {
    color: var(--clr-text-muted);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s, transform 0.2s;
}

.footer-socials a:hover {
    color: var(--clr-accent-primary);
    transform: translateY(-2px);
}

/* --- JS Interactivity Styles --- */
.main-nav ul li a.active {
    color: var(--clr-white);
}
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: all 0.7s ease;
}
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}