/* --- Global Styles & Modern Palette --- */
:root {
    --primary-accent: #a855f7; /* Vibrant Purple */
    --secondary-accent: #ec4899; /* Hot Pink */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #f1f5f9; /* Off-white for headings */
    --text-secondary: #cbd5e1; /* Lighter grey for paragraphs */
    --font-primary: 'Poppins', sans-serif;
}

/* --- Animated Gradient Background --- */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #4f46e5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Typography & Base Styles --- */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
a { color: var(--primary-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-accent); }

/* --- Glass Navigation Bar --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
nav .nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.nav-links {
    display: flex; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-links li { margin-left: 1.5rem; }
.nav-links li a { color: var(--text-primary); font-weight: 400; }
.nav-links .separator {
    height: 20px; border-left: 1px solid var(--glass-border); margin: 0 0.5rem 0 1.5rem;
}
.hamburger {
    display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 0 2rem;
}
.hero-content h1 {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .subtitle {
    font-size: 1.2rem; max-width: 600px; margin: 1rem auto 2rem;
}

/* --- About Section Styling --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}
.profile-photo-container {
    flex-shrink: 0;
}
.profile-photo-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-accent);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.cta-button {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    color: #fff; padding: 14px 30px; border-radius: 50px;
    font-weight: 600; transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- Content & Glass Cards --- */
.content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.skills-grid, .projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted min-width for 2 cards */
    gap: 1.5rem; text-align: left; margin-top: 2rem;
}

.skill-card, .project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    display: flex; /* Helps align content within the card */
    flex-direction: column;
}

.project-card > * {
    flex-shrink: 0;
}
.project-card p, .project-card ul {
    flex-grow: 1; /* Allow content to fill space */
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glass-bg);
    border: 1px solid var(--primary-accent);
}

.skill-card { text-align: center; font-size: 1.1rem; }
.skill-card i {
    font-size: 3rem; margin-bottom: 1rem; display: block;
    color: var(--primary-accent);
}
.project-card h3 { margin-top: 0; font-size: 1.25rem; } /* Adjusted font-size */
.project-card a { font-weight: 600; margin-top: auto; } /* Push link to bottom */

/* --- NEW: Project Card List Styling --- */
.project-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}
.project-learn-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
    text-align: left;
}
.project-learn-list li {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
/* --------------------------------- */

/* --- Footer & Contact --- */
.social-links { margin-top: 2rem; }
.social-links a { margin: 0 1rem; font-size: 1.1rem; }
footer { text-align: center; padding: 2rem; background: transparent; font-size: 0.9rem; }
footer i { color: var(--secondary-accent); }
footer p { margin-bottom: 0.5rem; }

/* --- Animations on Scroll --- */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    nav { border-radius: 0; }
    .hamburger { display: block; z-index: 1001; }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s ease-in-out;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .nav-links li a { color: var(--text-primary); font-size: 1.2rem; }
    .nav-links .separator { display: none; }
}
