/* --- Google Fonts & Root Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #34495e;
    --text-color-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

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

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
nav ul { list-style: none; display: flex; gap: 1.8rem; }
nav a { text-decoration: none; color: var(--text-color); font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; }
nav a:hover { color: var(--secondary-color); }
.hamburger { display: none; }

/* --- Hero Section --- */
#hero {
    background: transparent;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat fixed;
    z-index: -1;
}

.hero-content h1 { font-size: 3.2rem; color: var(--text-color-light); }
.hero-content p { font-size: 1.25rem; color: var(--text-color-light); margin-bottom: 2rem; }
.social-links a { color: var(--text-color-light); font-size: 2rem; margin: 0 0.8rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: var(--secondary-color); transform: translateY(-3px); }


/* --- FIX: "View My Work" Button Styling --- */
#hero .cta-button {
    background-color: transparent; /* Ghost button style */
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

#hero .cta-button:hover {
    background-color: var(--secondary-color); /* Fills with color on hover */
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}


/* --- Glass Card Base Style --- */
.skill-category,
.project-card,
.experience-item {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.2px);
    -webkit-backdrop-filter: blur(7.2px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover,
.project-card:hover,
.experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Projects Section --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card { display: flex; flex-direction: column; }
.project-card-content { display: flex; flex-direction: column; flex-grow: 1; }
.project-card-content h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.project-card-content p { font-size: 0.95rem; flex-grow: 1; }
.project-technologies { padding-top: 1rem; font-weight: 500; color: var(--primary-color); font-size: 0.85rem; opacity: 0.9; }
.project-links { margin-top: 1.5rem; }

/* "Git Repository" Button */
.project-links {
    margin-top: 1.5rem;
    display: flex; /* Aligns buttons in a row */
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
    gap: 0.8rem; /* Adds space between buttons */
}

/* "Git Repository" Button */
.project-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-color); /* Added border for consistency */
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-button:hover {
    background-color: #2980b9;
    border-color: #2980b9; /* Match border color on hover */
    transform: translateY(-2px);
}

/* NEW: "Live Model" Button */
.live-model-button {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.live-model-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
}

/* Skills & Experience Sections */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.skill-category h3 { margin-bottom: 1.5rem; color: var(--primary-color); border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 0.8rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-item { display: flex; align-items: center; gap: 0.6rem; background-color: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: var(--text-color); border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.2s ease; }
.skill-item:hover { transform: translateY(-3px); }
.skill-item i { font-size: 1.8rem; color: var(--primary-color); }
.experience-item { margin-bottom: 2rem; }
.experience-item h3 { font-size: 1.3rem; }
.experience-details { font-weight: 600; color: var(--primary-color); opacity: 0.9; }
.experience-item ul { padding-left: 1.2rem; }
.experience-item li { font-size: 0.95rem; margin-bottom: 0.5rem; }


/* --- "Get in Touch" Section with Animated Background --- */
#contact {
    position: relative; /* Crucial for positioning the animation */
    background-color: #0d1117; /* A deep, dark space blue */
    padding: 3.5rem 0;
    overflow: hidden; /* Ensures particles don't escape the container */
    text-align: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Places the animation in the background */
}

/* Ensure the content (form, titles) sits on top of the animation */
#contact .container {
    position: relative;
    z-index: 1;
}

/* Make titles and text white and readable on the dark background */
#contact h2,
#contact p {
    color: var(--text-color-light);
}

#contact h2::after {
    background: var(--text-color-light); /* Make the underline white */
}

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

.form-group {
    margin-bottom: 1.2rem;
}

/* Style the form for a dark theme */
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08); /* Dark, transparent glass */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color-light); /* Light text color */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Lighter placeholder text */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

/* Submit button styling */
#contact-form .cta-button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-light);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact-form .cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#contact-form .cta-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}


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

/* --- (The rest of your responsive CSS below this) --- */
/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    nav ul {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        flex-direction: column;
        padding: 1rem 0; gap: 0;
    }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; }
    nav a { display: block; padding: 1rem; width: 100%; text-align: center; }
}