:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --primary: #2c3e50;
    /* Dark Blue/Grey */
    --accent: #3498db;
    /* Professional Blue */
    --border: #e9ecef;
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--bg-dark);
    padding: 16px 40px;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-white);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-img-container {
    margin-bottom: 25px;
}

.hero-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-greeting {
    display: block;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: 64px;
    margin-bottom: 10px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* About */
.about-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-img-full {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 500px;
    /* Fixed height for consistency */
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills */
.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Experience */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 45%;
    text-align: right;
    padding-right: 40px;
    font-weight: 600;
    color: var(--accent);
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-content {
    width: 45%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -10px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.timeline-content li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* Contact */
.bg-dark {
    background-color: var(--bg-dark);
    color: #fff;
    text-align: center;
}

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

.bg-dark h2 {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 40px;
    margin-bottom: 20px;
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 18px;
}

.footer-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.copyright {
    margin-top: 50px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-name {
        font-size: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-img-full {
        height: auto;
        max-height: 400px;
    }

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

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-date {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 10px;
    }

    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        padding: 0;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-content::before {
        display: none;
    }

    .nav-links {
        display: none;
    }
}
/* Job Details Toggle */
.job-details {
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.job-details.collapsed {
    max-height: 0;
    opacity: 0;
}

.job-details.expanded {
    max-height: 1000px; /* Arbitrary large height */
    opacity: 1;
    margin-top: 20px;
}

.btn-see-more {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-see-more:hover {
    color: var(--primary);
}

.job-summary {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

/* Ensure paragraphs inside details match the list items style */
.job-details p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}
