/* Basic Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #007bff; /* A nice blue */
    --secondary-color: #6c757d; /* Grey */
    --accent-color: #28a745; /* Green for success/highlight */
    --text-color: #333;
    --background-color: #f8f9fa; /* Light grey background */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --font-heading: 'Playfair Display', serif; /* For a more elegant heading */
    --font-body: 'Inter', sans-serif; /* Modern, clean body font */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1000px; /* Max width for content */
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: var(--card-background);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #28a745 100%); /* Subtle gradient */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Takes up most of the viewport height */
}

.hero-content {
    max-width: 800px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px; /* Pill-shaped buttons */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
    font-size: 1.1em;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* General Section Styling */
section {
    padding: 60px 20px;
    text-align: center;
}

section:nth-of-type(odd) {
    background-color: var(--background-color);
}

section:nth-of-type(even) {
    background-color: var(--card-background);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block; /* For the underline effect */
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section p {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.about-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.about-section a:hover {
    text-decoration: underline;
}

/* Featured Section */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.card h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.card h3 a:hover {
    color: var(--primary-color);
}

.card p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
}


/* Contact Section */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #343a40; /* Darker footer */
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap; /* Allow nav links to wrap */
        justify-content: center;
    }
    .nav-links li {
        margin: 0 10px 10px; /* Adjust spacing for smaller screens */
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 80%; /* Make buttons full width on small screens */
        max-width: 300px;
        margin: 0 auto;
    }

    h2 {
        font-size: 2em;
    }

    .featured-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }
    .tagline {
        font-size: 1em;
    }
    .nav-links li {
        margin: 0 8px 8px;
    }
}