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

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a2332;
    --bg-tertiary: #242d3d;
    --text-primary: #e7e9ea;
    --text-secondary: #8b98a5;
    --accent: #1d9bf0;
    --accent-hover: #1a8cd8;
    --border: #2f3944;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 2rem;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(29, 155, 240, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(29, 155, 240, 0.08) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent);
    animation: float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
    animation-fill-mode: backwards;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.4;
        filter: blur(0.5px);
    }
    50% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 10px var(--accent));
    }
    100% {
        opacity: 0.4;
        filter: blur(0.5px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--bg-tertiary);
    margin-bottom: 1.5rem;
    object-fit: cover;
    animation: fadeIn 0.8s ease-out;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(29, 155, 240, 0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero .location {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.4rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(29, 155, 240, 0.35);
}

.section {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: var(--border);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.experience-header .company {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.experience-header .company:hover {
    text-decoration: underline;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.experience-item .location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.experience-details {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.experience-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.experience-details li:hover {
    color: var(--text-primary);
}

.experience-details li::marker {
    color: var(--accent);
}

.experience-details li:last-child {
    margin-bottom: 0;
}

.skills-category {
    margin-bottom: 1.5rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.25);
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(6px);
    border-left: 3px solid var(--accent);
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.education-item .school {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.education-item .duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.language-item:hover {
    padding-left: 8px;
    padding-right: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.language-item:last-child {
    border-bottom: none;
}

.language {
    font-weight: 500;
}

.level {
    color: var(--text-secondary);
}

.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-secondary);
}

@media (max-width: 600px) {
    .hero-bg-icons {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .title {
        font-size: 1.2rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .experience-header {
        flex-direction: column;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}
