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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Header / Hero Section */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px 20px;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

header h2 {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.language-selector a {
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-selector a:hover {
    opacity: 1;
}

.language-selector a.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

nav ul li {
    margin: 0 20px;
}

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

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    margin-bottom: 60px;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

/* About Section */
.about-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.skill-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-card h4 {
    font-size: 1rem;
    color: var(--text-color);
}

/* Experience Section */
.experience-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.experience-header .company {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.experience-header .period {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.experience-header .location {
    color: var(--light-text);
    font-size: 0.95rem;
}

.experience-list {
    list-style: none;
    margin-top: 20px;
}

.experience-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--light-text);
    line-height: 1.7;
}

.experience-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    background-color: var(--background);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.project-info {
    padding: 25px;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
}

.contact-content p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
}

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

.contact-btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 15px;
    }

    section h3 {
        font-size: 1.5rem;
    }
}

