@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --primary: #2C2C2C;           /* Background slate gray */
    --secondary: #3A3A3A;         /* Card background */
    --accent: #A8DADC;            /* Soft cyan accent */
    --accent2: #FFC1CC;           /* Soft pink accent */
    --button-bg: #B39CD0;         /* Lavender for buttons */
    --text: #E4E4E4;              /* Primary text */
    --text-muted: #B0B0B0;        /* Muted text */
    --header-bg: #383838;         /* Header/nav background */
    --card-bg: #3A3A3ACC;         /* Semi-transparent card */
    --shadow: 0 4px 24px rgba(168, 218, 220, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(120deg, var(--primary), #252525 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

header {
    background: var(--header-bg);
    display: flex;
    align-items: center;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 24px 24px;
    margin-bottom: 2rem;
    animation: fadeInDown 1.2s;
}

.profile-pic-container {
    flex-shrink: 0;
    margin-right: 2rem;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    border: 4px solid var(--accent);
    background: var(--secondary);
    transition: transform 0.4s, box-shadow 0.4s;
}

.profile-pic:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 0 24px var(--accent);
}

.header-content h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.header-content p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.contact-links a {
    margin-right: 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--accent2);
    text-decoration: underline;
}

.main-nav {
    background: var(--header-bg);
    margin: 0 auto 2rem auto;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.7rem 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.main-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent2);
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

section {
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem 2rem;
    animation: fadeInUp 1.2s;
}

h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

ul {
    list-style: disc inside;
    margin-left: 1rem;
}

.exp-card {
    margin-bottom: 1rem;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.project-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text);
}

.project-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px var(--accent2);
}

.skills-list li {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1.2rem 0;
    background: var(--header-bg);
    color: var(--accent2);
    font-weight: 600;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

/* GitHub Buttons */
.github-btn, .github-all-btn a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.3rem;
    background: var(--button-bg);
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: var(--shadow);
}

.github-btn:hover, .github-all-btn a:hover {
    background: var(--accent2);
    color: var(--primary);
    transform: translateY(-2px) scale(1.03);
}

.github-all-btn {
    text-align: center;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-40px);}
    100% { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: translateY(0);}
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
.fade-in:nth-child(5) { animation-delay: 1.0s; }
.fade-in:nth-child(6) { animation-delay: 1.2s; }

/* Responsive */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }
    .profile-pic-container {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    main {
        padding: 0 0.5rem;
    }
    section {
        padding: 1rem;
    }
}
