:root {
    --primary-color: #3b82f6;
    --text-main: #1e293b;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --glass-shadow: rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #f1f5f9;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #bae6fd;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #fbcfe8;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 60%;
    width: 400px;
    height: 400px;
    background: #ddd6fe;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 15px 30px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.glass-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
}

.glass-nav a:hover {
    background: var(--glass-highlight);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .glass-nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }

    .glass-nav a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* Layout container */
.container {
    max-width: 1000px;
    margin: 120px auto 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.1);
}

.glass-card h2 {
    font-size: 2.2rem;
    /* margin-bottom: 30px; */
    color: var(--text-main);
    /* display: flex; */
    align-items: center;
    gap: 15px;
}

.glass-card h2 i {
    color: var(--primary-color);
}

/* Hero Section */
.hero-content {
    text-align: center;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    /* margin-bottom: 20px; */
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /* margin-bottom: 10px; */
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.about-text {
    text-align: left;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .about-text {
        padding: 20px;
    }
}

.about-text p {
    margin-bottom: 15px;
}

.about-text strong {
    color: var(--text-main);
}

.about-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.15rem;
}

.btn-download:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-download i {
    margin-right: 8px;
}

/* Career Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.timeline-content .date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Collapsible Projects section */
.projects-details {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-details:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.projects-details summary {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary-color);
    list-style: none;
    /* remove default triangle */
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.projects-details summary::-webkit-details-marker {
    display: none;
}

.projects-details[open] summary {
    margin-bottom: 15px;
}

.projects-details[open] summary i {
    transform: rotate(90deg);
}

.projects-details summary i {
    transition: transform 0.3s ease;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    cursor: default;
}

.project-item h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-item .duration {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
}

.project-item ul {
    list-style-type: none;
    padding-left: 5px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.project-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.project-item ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    position: absolute;
    left: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: var(--glass-highlight);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
}

/* Portfolio Grid */
.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid white;
    transition: all 0.3s ease;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-muted);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: white;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-item a,
.contact-item p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}