/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #121212;
    --primary-color: #1a1a1a;
    --secondary-color: #242424;
    --accent-color: #00bfa5; /* A nice teal color */
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem 2rem;
}

/* style.css */

.section-title {
    font-size: 3rem; /* <-- Adjusted size */
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: normal; /* <-- Use normal weight */
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}


/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

/* style.css */

.nav-logo {
    color: var(--heading-color);
    font-size: 2rem; /* <-- Adjusted size */
    font-weight: normal; /* <-- Use normal weight */
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}


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

.hero-content h1 {
    font-size: 5rem; /* Increased size for impact */
    color: var(--heading-color);
    font-weight: normal; /* Custom fonts often don't have weights, so set to normal */
    margin-bottom: 0.5rem;
    letter-spacing: 2px; /* <-- OPTIONAL: Adds nice spacing */
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-intro {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* This is the key to putting it in the background */
    background-color: var(--bg-color);
}
/* --- ABOUT SECTION --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image {
    flex: 1;
    max-width: 300px;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid var(--border-color);
}
.about-text {
    flex: 2;
}
.about-text h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

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

/* This is the container that sets the size and shape */
.project-image-container {
    width: 100%;
    height: 180px; /* This ensures all cards have a uniform image height */
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden; /* This clips any part of the image that might overflow */
    background-color: var(--secondary-color); /* Shows while image loads */
}

/* This is the image itself */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* The magic property! */
    transition: transform 0.3s ease;
}

/* Optional: A nice zoom effect on hover */
.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.project-card p {
    flex-grow: 1; /* Pushes links to the bottom */
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- SKILLS SECTION --- */
.skills-content {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* --- CERTIFICATES SECTION --- */
.certificates-list {
    list-style: none;
    text-align: center;
}
.certificates-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* --- CONTACT SECTION --- */
#contact {
    text-align: center;
}
.contact-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
}
.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 2rem;
}
.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #888;
}

/* --- FADE-IN ANIMATION --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplification for this example. A real site might use a hamburger menu */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}