/* Global Variables & Reset */
:root {
    --bg-color: #0f1115;
    --card-bg: rgba(30, 34, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #34d399);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(45, 212, 191, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glass Card Utility */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    margin-bottom: 40px;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header Section */
header.glass-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    z-index: 1;
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent);
}

.header-info {
    z-index: 1;
    flex: 1;
}

.header-info h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.job-title {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.grid-2 .glass-card {
    margin-bottom: 0;
}

/* Skills Section */
.skill-category {
    margin-bottom: 25px;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.experience-item {
    position: relative;
    margin-bottom: 50px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item::after {
    content: '';
    position: absolute;
    left: -35px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.experience-item:hover::after {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.role-title h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company {
    color: var(--accent);
    font-weight: 500;
}

.duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.responsibilities ul {
    list-style: none;
}

.responsibilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tech-stack-mini {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    color: var(--text-secondary);
}

.highlights {
    margin-top: 20px;
    padding: 15px;
    background: rgba(45, 212, 191, 0.05);
    border-radius: 12px;
    border-left: 3px solid #2dd4bf;
}

.highlights h4 {
    font-size: 0.95rem;
    color: #2dd4bf;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    header.glass-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .header-info h1 {
        font-size: 2.5rem;
    }

    .job-title {
        justify-content: center;
    }

    .contacts {
        justify-content: center;
    }

    .checklist {
        grid-template-columns: 1fr;
    }
}