* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4CAF50; /* Green color */
    --primary-light: rgba(76, 175, 80, 0.1);
    --primary-hover: #43A047;
    --dark: #121212;
    --gray-900: #FFFFFF; /* White text for dark theme */
    --gray-600: #B0B0B0;
    --gray-500: #909090;
    --gray-400: #707070;
    --gray-200: #404040;
    --gray-100: #303030;
    --white: #1E1E1E; /* Dark background for cards */
    --bg: #121212; /* Main dark background */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--gray-900);
    line-height: 1.6;
}
html, body {
    scroll-behavior: smooth; /* Add smooth scrolling to the page */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

/* Header and Navigation */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-400);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px;
        margin: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(-20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes growWidth {
    from { width: 0; }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.6s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.8s; opacity: 0; }

/* Hero Section */
.hero {
    padding: 80px 0;
}

.greeting-container {
    min-height: 120px;
    padding: 20px 0px 0px;
}

.greeting {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.greeting-text {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .greeting-text {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .greeting-text {
        font-size: 6rem;
    }
}

.greeting-lang {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title span {
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 16px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 300;
    max-width: 600px;
    margin-top: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF; /* White text for green button */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-900); /* White text for dark theme */
}

.btn-outline:hover {
    background-color: var(--gray-100);
    color: #FFFFFF; /* Ensure white text on hover */
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 64px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

@media (min-width: 768px) {
    .hero-contact {
        gap: 40px;
    }
}

.hero-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-contact a:hover {
    color: var(--primary);
}

.hero-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Styles */
section {
    padding: 96px 0;
}

.section-label {
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500; /* Make section labels more prominent */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Experience Section */
.experience {
    background-color: var(--white); /* Dark card background */
}

.experience-list {
    margin-top: 64px;
}

.experience-item {
    border-top: 1px solid var(--gray-200);
    padding: 40px 0;
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .experience-item {
        grid-template-columns: 1fr 2fr;
        padding: 56px 0;
    }
}

.experience-period {
    font-size: 0.875rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

.experience-company {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.experience-item:hover .experience-company {
    color: var(--primary);
}

.experience-role {
    color: var(--primary);
    margin-top: 4px;
}

.experience-highlights {
    list-style: none;
}

.experience-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray-600);
    font-weight: 300;
    margin-bottom: 12px;
}

.experience-highlights li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Education Section */
.education {
    background-color: var(--bg); /* Main dark background */
}

.education-grid {
    display: grid;
    gap: 32px;
    margin-top: 64px;
}

@media (min-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.education-card {
    background-color: var(--white); /* Dark card background */
    padding: 32px;
    border: 1px solid var(--gray-100);
    transition: all 0.5s ease;
}

.education-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.education-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.education-card:hover .education-icon {
    background-color: rgba(184, 150, 108, 0.2);
}

.education-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.education-period {
    font-size: 0.875rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.education-institution {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 8px;
}

.education-degree {
    color: var(--gray-500);
    font-weight: 300;
    margin-top: 8px;
}

/* Skills Section */
.skills {
    background-color: var(--white); /* Dark card background */
}

.skills-grid {
    display: grid;
    gap: 64px;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 96px;
    }
}

.skills-list {
    margin-top: 48px;
}

.skill-item {
    margin-bottom: 32px;
}

.skill-name {
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary);
}

.skill-detail {
    color: var(--gray-500);
    font-weight: 300;
    margin-top: 4px;
}

/* Language Progress */
.language-item {
    margin-bottom: 32px;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.language-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.language-level {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.progress-bar {
    height: 4px;
    background-color: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    animation: growWidth 1s ease forwards;
}

/* Contact Section */
.contact {
    background-color: var(--dark); /* Consistent dark background */
    padding: 96px 0;
}

.contact-header {
    text-align: center;
}

.contact .section-title {
    color: var(--primary); /* Green color for section title */
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .contact .section-title {
        font-size: 3.75rem;
    }
}

.contact-description {
    color: var(--gray-500);
    font-size: 1.125rem;
    font-weight: 300;
    margin-top: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6; /* Improve readability */
}

.contact-grid {
    display: grid;
    gap: 32px;
    margin-top: 64px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    padding: 32px;
    border: 1px solid #262626;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: background-color 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background-color: rgba(76, 175, 80, 0.2); /* Green tint on hover */
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-card-title {
    color: var(--primary); /* Green color for contact card titles */
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.contact-card-text {
    color: var(--gray-500); /* Brighter text for better readability */
    font-weight: 300;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-card-text {
    color: var(--primary);
}

/* Footer */
.footer {
    border-top: 1px solid #262626;
    padding: 32px 0;
    text-align: center;
    background-color: var(--dark); /* Consistent dark background */
}

.footer p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}