:root {
    --bg-color: #0d0d1a;
    --grid-color: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(26, 26, 42, 0.5);
    --text-color: #d1d1d1;
    --heading-gradient-start: #8e44ad;
    --heading-gradient-end: #3498db;
    --skill-bg: rgba(45, 45, 65, 0.7);
    --primary-color: #3498db;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-color);
}

header {
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header .logo {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

header nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #fff;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.lang-switcher button:hover {
    background: var(--primary-color);
    color: #fff;
}

.lang-switcher button.active {
    background: var(--primary-color);
    color: #fff;
}

main {
    padding: 20px;
    max-width: 1100px;
    margin: 4rem auto;
}

section {
    padding: 2rem 0;
}

h1,
h2,
h3 {
    color: #fff;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(
        var(--heading-gradient-start),
        var(--heading-gradient-end)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.software-engineer-title {
    font-size: 1.5rem; /* Make it bigger */
    font-weight: 700; /* Make it bold */
}

.btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.email-button {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px; /* Slightly smaller padding than .btn */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block; /* Essential for padding and sizing */
    margin-left: 5px; /* Add a small space from the "You can reach me via email at" text */
}

.email-button:hover {
    background: #2980b9;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--grid-color);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.skill-category h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--grid-color);
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-category li {
    background: var(--skill-bg);
    border: 1px solid var(--grid-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.experience-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 30px;
}

.experience-list::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--heading-gradient-start),
        var(--heading-gradient-end)
    );
}

.project-card,
.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--grid-color);
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible,
.experience-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.3s ease;
}

.experience-card {
    position: relative;
    margin-bottom: 24px;
    padding: 20px;
}

.experience-card::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 24px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.project-card:hover,
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(52, 152, 219, 0.15);
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card-image-container {
    width: 100%;
    height: 160px;
    border-bottom: 1px solid var(--grid-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.experience-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.experience-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.experience-card-title {
    flex: 1;
}

.project-card h3,
.experience-card h3 {
    margin: 0 0 0.5rem 0;
}

.project-card p,
.experience-card p {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    flex: 1;
}

.project-card a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.project-card a:hover {
    text-decoration: underline;
}

.experience-card .duration {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--grid-color);
}

.card-skill {
    background: var(--skill-bg);
    border: 1px solid var(--grid-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 4rem 0;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    header nav {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .lang-switcher {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .experience-list {
        padding-left: 24px;
    }

    .experience-list::before {
        left: 4px;
    }

    .experience-card::before {
        left: -24px;
        width: 10px;
        height: 10px;
    }

    .experience-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
