@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --accent-color: #f43f5e;
    --muted-text: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --font-main: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --primary-color: #818cf8;
    --secondary-color: #6366f1;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --accent-color: #fb7185;
    --muted-text: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.8);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--primary-color) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, var(--secondary-color) 0%, transparent 40%);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

header {
    position: sticky;
    top: 1.5rem;
    z-index: 100;
    margin: 0 auto;
    width: calc(100% - 4rem);
    max-width: 1100px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    padding: 0.75rem 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-block {
    display: flex;
    flex-direction: column;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo span {
    color: var(--primary-color);
}

.logo-subtext {
    font-size: 0.7rem;
    color: var(--muted-text);
    font-weight: 500;
}

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

.nav-link {
    text-decoration: none;
    color: var(--muted-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, border-bottom 0.2s;
    cursor: pointer;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

.nav-link.active {
    border-bottom-color: var(--primary-color);
}

.nav-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-toggle {
    background: var(--card-border);
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.lang-switch-container {
    background: var(--card-border);
    padding: 2px;
    border-radius: 20px;
    display: flex;
    gap: 2px;
}

.lang-switch {
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--muted-text);
    transition: all 0.2s;
}

.lang-switch.active {
    background: white;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme="dark"] .lang-switch.active {
    background: var(--primary-color);
    color: white;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.hero-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.section-title {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.tab-content {
    display: block;
    margin-bottom: 4rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

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

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-item .period {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item .company {
    font-weight: 600;
    color: var(--muted-text);
    margin-bottom: 1rem;
    display: block;
}

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

.tag {
    background: var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag.highlight {
    background: var(--primary-color);
    color: white;
}

.download-section {
    text-align: center;
    margin: 4rem 0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--muted-text);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}
