/* --- Basic Setup & Variables --- */
:root {
    /* CHANGE THIS: This is the main accent color for buttons, links, and highlights. */
    --primary-color: #00bfa5; /* A sleek teal */
    
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #E0E0E0;
    --secondary-text-color: #A0A0A0;
    --border-color: #2c2c2c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 600;
    color: #fff;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* --- Header & Navigation --- */
header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 400;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-text {
    max-width: 800px;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #121212;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #121212;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section:nth-child(odd) {
    background-color: var(--surface-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.about-content div {
    flex: 1;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--secondary-text-color);
    flex-grow: 1;
}

.project-tags {
    margin: 1.5rem 0;
}

.project-tags span {
    background-color: rgba(0, 191, 165, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.project-links .btn-secondary {
    margin-left: 0;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Contact Section */
#contact .container {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    margin: 0 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.watermark a {
    color: var(--secondary-text-color);
    font-weight: 600;
}
.watermark a:hover {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 1rem;
        padding-left: 0;
    }
    
    nav ul li {
        margin: 0 0.8rem;
    }

    .hero {
        padding-top: 120px; /* Adjust for fixed header */
        height: auto;
        min-height: 100vh;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }
}