/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #1f2937;       /* Cool dark blue-gray */
    --accent-color: #3b82f6;        /* Tailwind-like blue */
    --text-color: #1e1e1e;
    --text-muted: #6b7280;          /* Muted gray */
    --bg-light: #f9fafb;
    --white: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.8;
}

/* General section spacing */
.section {
    padding: 1rem 1rem;
    margin: 0 auto;
    max-width: 800px;
    padding-left: 15rem;
}

/* Hero section */
.hero-section {
    padding: 3rem 0; /* Removed horizontal padding */
    background-color: #f8f9fa;
}

.hero-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: left; /* Changed from center to left alignment */
    padding: 0 1rem; /* Add small padding to match other sections */
}

/* Hero section spacing */
.hero-content h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    text-align: left; /* Ensure heading is left-aligned */
}

/* Hero section */
.hero-content .tagline {
    margin-bottom: 0.25rem; /* Further reduced bottom margin of tagline */
    line-height: 1.4;
}

.hero-content .tagline {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: left; /* Ensure tagline is left-aligned */
}


/* Experience cards */
.experience-card {
    margin-bottom: 0.75rem; /* Reduced space between cards */
    padding: 0.5rem 1rem; /* Reduced vertical padding */
    border-bottom: 1px solid #eee;
}

/* Specific spacing for first section after hero */
.hero-section + .section {
    padding-top: 0; /* Removed padding completely at top of first section */
}

.experience-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-card h3 {
    margin-bottom: 0.25rem; /* Reduced margin below card titles */
    font-size: 1.2rem;
}

.experience-card h3 {
    margin-bottom: 0.5rem; /* Reduced margin */
    font-size: 1.2rem;
}

.experience-card .date {
    margin-bottom: 0.25rem; /* Reduced margin below dates */
    color: #666;
    font-size: 0.9rem;
}

.experience-card .date {
    margin-bottom: 0.5rem; /* Reduced margin */
    color: #666;
    font-size: 0.9rem;
}

.experience-card p {
    margin: 0;
    line-height: 1.4;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Increased gap between skill tags */
    margin-bottom: 2rem;
    margin-top: 2.5rem;
}

.skill-tag {
    background-color: #f0f0f0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
}

/* Optional: if you're using margins instead of gap */
/* .skill-tag {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
} */

/* Section headers */
h2 {
    margin-bottom: -1rem; /* Significantly reduced margin below section headers */
    font-size: 1.5rem;
    margin-top: 0; /* Added small top margin */
}

/* Footer */
.footer {
    padding: 1.5rem 0; /* Reduced padding */
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 1rem;
    }

    .experience-card {
        padding: 20px;
    }
}

/* Button styling */
.linkedin-button {
    padding: 9px 8.5px;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    background-color: #0077b5;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.linkedin-button:hover {
    background-color: #004182;
}


/* Space between sections */
.section + .section {
    padding-top: 0.75rem; /* Reduced space between sections */
}

/* Hero section overall */
.hero-section {
    padding-bottom: 0.5rem; /* Reduced bottom padding of hero section */
    background-color: #f8f9fa;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0;
    margin-left: -4cm;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.text-content {
    flex: 1;
    max-width: 450px;
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section {
        padding: 1rem;
        max-width: 100%;
        margin: 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }

    .text-content {
        max-width: 100%;
        padding: 0 1rem;
        text-align: center;
    }

    .experience-card {
        padding: 1rem;
    }

    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 0;
        gap: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }
}


.language-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1rem;
    font-weight: 500;
}

.language-toggle a {
    color: #555;
    text-decoration: none;
    margin: 0 4px;
}

.language-toggle a:hover {
    text-decoration: underline;
}
