/* --- Variables --- */
:root {
    --primary-purple: #7B1FA2; /* A deeper, richer purple */
    --light-purple: #AB47BC;  /* A vibrant, noticeable purple */
    --accent-purple: #E0B4EF; /* A soft, elegant light purple for subtle accents */
    --text-dark: #343a40;     /* Dark charcoal for main text */
    --text-light: #ffffff;    /* White for text on dark backgrounds */
    --bg-white: #ffffff;      /* Pure white background */
    --bg-light-gray: #fdfdfe; /* Almost white, very subtle off-white */
    --border-color: #f0f0f0;  /* Light gray for borders */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease-in-out;

    /* Font Sizes */
    --font-size-base: 1.125rem; /* ~18px for body text */
    --font-size-hero: 1.5rem;   /* ~24px for hero lead text */
    --font-size-h1: 3.2rem;     /* Larger H1 for impact */
    --font-size-h2: 2.5rem;     /* Large H2 */
    --font-size-site-title: 2.8rem; /* For @sunilbutolia */
}

/* --- General Body Styles --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light-gray);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-size: var(--font-size-base); /* Apply base font size */
}

.container {
    max-width: 1200px; /* Max width for content */
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Elegant serif font for headings */
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1.section-title {
    font-size: var(--font-size-h1);
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 3rem !important; /* Increased spacing */
}

h1.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Wider underline */
    height: 5px; /* Thicker underline */
    background-color: var(--light-purple); /* Clearer purple underline */
    border-radius: 3px;
}

h2.section-title {
    font-size: var(--font-size-h2);
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem !important;
}

p.body-text { /* Specific class for general paragraphs */
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
    color: var(--text-dark);
}

/* --- Links --- */
a {
    color: var(--primary-purple); /* Links are clearly purple */
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--light-purple); /* Lighter purple on hover */
    text-decoration: underline;
}

/* --- Header --- */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 1rem 0;
    margin-bottom: 4rem !important; /* Spacing below header */
    border-radius: 0 0 15px 15px; /* Softer bottom corners */
}

.site-title a {
    font-family: 'Playfair Display', serif; /* Use Playfair Display for the site title */
    font-size: var(--font-size-site-title);
    font-weight: 800;
    color: var(--primary-purple);
}

.site-title a:hover {
    color: var(--light-purple);
    text-decoration: none;
}

.primary-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.6rem 1.4rem; /* Slightly larger padding */
    border-radius: 10px; /* More rounded */
    transition: background-color var(--transition-speed), color var(--transition-speed), transform 0.2s ease-out;
}

.primary-nav .nav-link:hover {
    background-color: var(--accent-purple); /* Light purple background on hover */
    color: var(--primary-purple); /* Darker text on hover */
    transform: translateY(-2px); /* Slight lift */
}

.primary-nav .nav-link.active {
    background-color: var(--primary-purple); /* Solid primary purple for active link */
    color: var(--text-light);
    box-shadow: 0 3px 10px var(--shadow-light);
}

.primary-nav .nav-link.active:hover {
    background-color: var(--light-purple); /* Lighter purple for active hover */
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light-gray) 100%);
    padding: 4rem; /* More generous padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 10px 30px var(--shadow-medium);
    margin-bottom: 6rem !important; /* More space below hero */
    position: relative; /* For potential background elements */
    overflow: hidden; /* Ensure shadows and rounded corners are contained */
}

.profile-image {
    border: 7px solid var(--primary-purple); /* Thicker purple border */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease-out, border-color 0.4s ease-out;
}

.profile-image:hover {
    transform: scale(1.04); /* More pronounced hover effect */
    border-color: var(--light-purple); /* Border color change on hover */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    font-size: var(--font-size-hero); /* Use the defined hero font size */
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-text a {
    font-weight: 600;
    color: var(--primary-purple); /* Ensure purple links within hero text */
}
.hero-text a:hover {
    color: var(--light-purple);
}

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

.social-links a {
    color: var(--text-light); /* White text on purple buttons */
    background-color: var(--primary-purple); /* Solid purple background */
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem; /* Larger buttons */
    border-radius: 8px;
    transition: background-color var(--transition-speed), transform 0.2s ease-out, box-shadow var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--light-purple); /* Lighter purple on hover */
    text-decoration: none;
    transform: translateY(-4px); /* More pronounced lift */
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.social-links a i {
    font-size: 1.4rem; /* Larger icons */
    margin-right: 0.7rem;
}

/* --- About Content --- */
.about-content {
    background-color: var(--bg-white);
    padding: 3.5rem; /* More padding */
    border-radius: 20px; /* More rounded */
    box-shadow: 0 5px 20px var(--shadow-light);
    margin-bottom: 5rem !important;
}

/* --- Horizontal Rule (Divider) --- */
.divider {
    border: 0;
    height: 3px; /* Thicker divider */
    background: linear-gradient(to right, var(--light-purple), var(--primary-purple), var(--accent-purple)); /* More vibrant gradient */
    margin-top: 5rem;
    margin-bottom: 5rem;
    opacity: 0.8;
    border-radius: 2px;
}

/* --- Experience List --- */
.experience-list {
    background-color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow-light);
    margin-bottom: 4rem !important;
    max-width: 750px; /* Slightly wider */
    margin-left: auto;
    margin-right: auto;
}

.experience-list li {
    font-size: 1.2rem; /* Slightly larger text */
    margin-bottom: 1.5rem; /* More spacing between items */
    padding-left: 2rem; /* Adjust padding for new bullet */
    position: relative;
    line-height: 1.6;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.experience-list li::before {
    content: '\2022'; /* Unicode bullet point */
    color: var(--primary-purple); /* Primary purple bullet */
    font-weight: bold;
    font-size: 1.8em; /* Larger bullet point */
    display: inline-block;
    width: 1em;
    margin-left: -2em; /* Adjust margin for larger bullet */
    position: absolute;
    left: 0;
    top: 0.1em; /* Vertically align with text */
}

.experience-list li strong {
    color: var(--primary-purple);
    font-weight: 700;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-purple);
    padding: 2.5rem 0; /* More padding */
    border-top: 1px solid var(--accent-purple);
    box-shadow: 0 -5px 15px var(--shadow-light);
    text-align: center;
    color: var(--text-light);
    border-radius: 15px 15px 0 0;
}

.footer-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.15rem; /* Slightly larger */
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: var(--accent-purple); /* Lighter purple on hover */
    text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    h1.section-title {
        font-size: 2.8rem;
    }
    h2.section-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 3rem;
    }
    .about-content, .experience-list {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    .profile-image {
        margin-bottom: 2rem;
    }
    .hero-content {
        align-items: center;
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap; /* Allow links to wrap on smaller screens */
        gap: 1rem; /* Adjust gap for wrapping */
    }

    h1.section-title {
        font-size: 2.5rem;
    }
    h1.section-title::after {
        width: 50px;
        height: 4px;
    }
    h2.section-title {
        font-size: 2rem;
    }
    .hero-text {
        font-size: 1.3rem !important; /* Adjust hero text for smaller screens */
    }
    .about-content, .experience-list {
        padding: 2rem;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .site-title a {
        font-size: 2.2rem;
    }
    .primary-nav {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
    }
    .primary-nav .nav-item {
        margin: 0 0.4rem;
    }
    .primary-nav .nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    .hero-section {
        padding: 2rem;
    }
    .hero-text {
        font-size: 1.2rem !important;
    }
    .social-links a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    .social-links a i {
        font-size: 1.2rem;
    }
    h1.section-title {
        font-size: 2rem;
    }
    h2.section-title {
        font-size: 1.7rem;
    }
    .about-content, .experience-list {
        padding: 1.5rem;
    }
    .experience-list li {
        font-size: 1.05rem;
        padding-left: 1.5rem;
    }
    .experience-list li::before {
        font-size: 1.5em;
        margin-left: -1.5em;
    }
}
