/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #ffffff;
    --white: #ffffff;
    /* White bg */
    --secondary-color: #f7f9fc;
    /* Very light blue-gray for sections */
    --accent-color: #2563eb;
    /* Modern vibrant blue */
    --accent-hover: #1d4ed8;
    --text-primary: #1e293b;
    /* Slate 800 - High contrast dark */
    --text-secondary: #64748b;
    /* Slate 500 - Soft gray */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Playfair Display', serif;
    /* Modern serif for elegance */
    --font-body: 'Manrope', sans-serif;
    /* Clean geometric sans */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --timeline-line: #e2e8f0;
}

body.dark-mode {
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #1e293b;
    /* Slate 800 */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --timeline-line: #334155;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 5px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease;
}

.divider {
    width: 1px;
    height: 16px;
    background-color: var(--border-color);
    margin: 0 8px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--accent-color);
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
    text-align: left;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-container {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-img-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.hero .name {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 3.5rem;
}

.hero .title {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.hero .company {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

/* About Text within Hero */
.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

/* Buttons */
.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Aligned left for generic simplicity or mobile first feel */
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--timeline-line);
}

/* Redoing Timeline for a more modern "Cards on right" look */
.timeline-item {
    padding-left: 60px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.timeline-content h4 {
    font-family: var(--font-body);
    /* Sans serif for job titles looks cleaner */
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.timeline-company {
    display: block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Education (Modern Clean Cards) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-color);
}

.card h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card .degree {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Certifications (Pills) */
.cert-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cert-list li {
    background: var(--card-bg);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.cert-list li:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.cert-list li i {
    color: var(--accent-color);
    margin-right: 12px;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.footer .social-links a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .section {
        padding: 60px 0;
    }

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

    /* Consistent on all screens now */

    .hero-content {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
        gap: 2rem;
    }

    .hero-text-container {
        align-items: center;
    }

    .profile-img-large {
        max-width: 280px;
    }

    .contact-links {
        justify-content: center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}