:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --sidebar-width: 320px;
}

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

html {
    scroll-behavior: smooth;
}

.text-decoration-none {
    text-decoration: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 10px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.avatar i {
    font-size: 60px;
    color: var(--primary);
}

.title-info {
    flex: 1;
}

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

.subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 15px;
}

.contact-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .main-layout {
        flex-direction: row;
    }
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

@media (min-width: 992px) {
    .sidebar {
        max-width: var(--sidebar-width);
    }
}

.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.section-title i {
    color: var(--secondary);
    font-size: 1.3rem;
}

/* About */
.about-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.skill-item {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    background: linear-gradient(to right, #e0f2fe, #bae6fd);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

/* Skill level indicators */
.skill-level {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.level-basic {
    background: #fef3c7;
    color: #92400e;
}

.level-intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.level-advanced {
    background: #dcfce7;
    color: #166534;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: -30px;
    width: 2px;
    background: var(--light-gray);
}

.timeline-item:last-child::after {
    display: none;
}

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

.item-title {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 600;
}

.item-date {
    color: var(--primary);
    font-weight: 600;
    background: #eff6ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.item-subtitle {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.item-details {
    color: var(--gray);
    line-height: 1.7;
}

/* Experience List */
.experience-list {
    list-style: none;
    margin-top: 10px;
}

.experience-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--gray);
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .card {
        padding: 25px 20px;
    }

    .contact-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-date {
        align-self: flex-start;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Navigation for Mobile */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 5px;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Print Button */
.print-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    z-index: 100;
}

.print-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .print-btn {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-completed {
    background-color: #10b981;
    color: white;
}

.status-current {
    background-color: #3b82f6;
    color: white;
}

/* Print Styles */
@media print {

    .print-btn,
    .mobile-nav {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }

    .skill-item {
        border: 1px solid #ddd;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1e293b;
        --dark: #f8fafc;
        --gray: #cbd5e1;
        --light-gray: #334155;
    }

    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .card {
        background: #1e293b;
        color: #f8fafc;
    }

    .skill-item {
        background: #334155;
        color: #f8fafc;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

.delay-6 {
    animation-delay: 0.6s;
    opacity: 0;
}