:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #3b82f6;
    /* Blue */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(240, 242, 245, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-main);
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, font-weight 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.photo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    border-radius: 50%;
    padding: 6px;
    background: white;
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.bio {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--accent-primary);
}

/* Value Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--accent-primary);
}

.icon i {
    line-height: 1;
}

.card h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 1rem;
}

.card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: "→";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Focus Section */
.focus-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.focus-item {
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.focus-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.focus-item i {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

/* Experience Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #e5e7eb;
    border-radius: 3px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.year {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.role {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    color: var(--accent-primary);
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card span:first-child {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card i {
    font-size: 1.4rem;
}

.detail {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.whatsapp:hover {
    color: #25D366;
    background: #f0fdf4;
}

.telegram:hover {
    color: #0088cc;
    background: #f0f9ff;
}

.instagram:hover {
    color: #E1306C;
    background: #fff1f2;
}

.maps:hover {
    color: #4285F4;
    background: #eff6ff;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: white;
    margin-top: 60px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 80px 0 60px;
    }

    /* Timeline Mobile Fix */
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item::before {
        left: -38px;
        /* Adjusted to align with line at left:0 */
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .year {
        margin-left: -5px;
        /* Slight adjustment */
    }

    .card {
        padding: 30px;
    }
}