/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #007bff;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffc107;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #fff;
    text-align: center;
    padding-top: 80px; /* Account for fixed nav */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #fff;
}

.positioning {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffc107;
    font-style: italic;
}

.intro {
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #ffc107;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffc107;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: #ffc107;
    color: #333;
}

.btn.primary:hover {
    background-color: #e0a800;
}

.btn.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn.secondary:hover {
    background-color: #fff;
    color: #007bff;
}

/* Sections */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

section:not(#hero) {
    transform: translateY(30px);
    transition: transform 0.8s ease;
}

section.reveal {
    transform: translateY(0);
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #007bff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* About Section */
.bio {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #555;
}

.education {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Expertise Section */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #007bff, #ffc107);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 90px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    width: 22px;
    height: 22px;
    background-color: #007bff;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #007bff;
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.timeline-item p:first-of-type {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.timeline-item p:last-of-type {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Responsibilities Section */
.responsibility-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.group h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.group .list {
    list-style: none;
    padding: 0;
}

.group .list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
}

.group .list li:last-child {
    border-bottom: none;
}

/* Achievements Section */
.achievement-item {
    margin-bottom: 3rem;
}

.achievement-item h3 {
    text-align: center;
    color: #007bff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.achievement-item .list {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.achievement-item .list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.achievement-item .list li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.achievement-item .list li:last-child {
    border-bottom: none;
}

/* Blog Section */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-post p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Blog Post Page */
#blog-post {
    padding: 6rem 0 3rem;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Contact Section */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
    font-style: italic;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-status {
    display: none;
    font-weight: 600;
    margin-top: 1rem;
}

.contact-status.success {
    color: #28a745;
}

.contact-status.error {
    color: #e74c3c;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

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

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
}

.social-links a:hover {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .positioning {
        font-size: 1rem;
    }

    .intro {
        font-size: 0.95rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none; /* For simplicity, hide nav links on mobile. Could add hamburger menu */
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 2rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 10px;
    }

    h2 {
        font-size: 2.2rem;
    }

    .bio {
        font-size: 1rem;
    }
}