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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #7c3aed;
    --accent: #ec4899;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-svg {
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transition: left 0.3s;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px -5px rgba(37, 99, 235, 0.3);
}

.cta-button:hover:before {
    left: 0;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    text-align: center;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.about-icon svg {
    width: 40px;
    height: 40px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* CV Section */
.cv {
    padding: 5rem 0;
    background: var(--bg);
}

.cv h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    text-align: center;
    font-weight: 800;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.cv-item {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.cv-item:nth-child(1) {
    animation-delay: 0.1s;
}

.cv-item:nth-child(2) {
    animation-delay: 0.2s;
}

.cv-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cv-item:nth-child(even) {
    direction: rtl;
}

.cv-item:nth-child(even) > * {
    direction: ltr;
}

.cv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.cv-icon svg {
    width: 32px;
    height: 32px;
}

.cv-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.cv-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cv-header {
    margin-bottom: 1.5rem;
}

.cv-header h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.company {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.period {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.cv-list {
    list-style: none;
    color: var(--text-light);
}

.cv-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.7;
}

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

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

.skill-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.skill-category:nth-child(2) {
    border-top-color: var(--secondary);
}

.skill-category:nth-child(3) {
    border-top-color: var(--accent);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-block;
    background: var(--bg);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
    cursor: default;
}

.skill-category:nth-child(2) .badge {
    border-color: var(--secondary);
    color: var(--secondary);
}

.skill-category:nth-child(3) .badge {
    border-color: var(--accent);
    color: var(--accent);
}

.badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.skill-category:nth-child(2) .badge:hover {
    background: var(--secondary);
}

.skill-category:nth-child(3) .badge:hover {
    background: var(--accent);
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: var(--bg-light);
}

.education h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    text-align: center;
    font-weight: 800;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.education-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
    text-align: center;
}

.education-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.education-card:nth-child(3) {
    border-top-color: var(--accent);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-card h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.education-card .institution {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-card .location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.language-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.language-item h4 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.language-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    transition: width 0.5s ease-out;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(124, 58, 237, 0.05) 100%);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
}

.contact > .container > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.info-item {
    text-align: center;
    color: var(--text-light);
}

.info-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--text);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-lighter);
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero {
        min-height: 600px;
        padding: 3rem 0;
    }

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

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .timeline:before {
        display: none;
    }

    .cv-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cv-item:nth-child(even) {
        direction: ltr;
    }

    .cv-icon {
        margin: 0;
    }

    .about h2,
    .cv h2,
    .education h2,
    .contact h2 {
        font-size: 2rem;
    }

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        height: 60px;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

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

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .about,
    .cv,
    .contact {
        padding: 2rem 0;
    }

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

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

    .skill-badges {
        gap: 0.5rem;
    }

    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
