:root {
    --bg-color: #0d1117;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-glow: rgba(88, 166, 255, 0.4);
    --glass-bg: rgba(22, 27, 34, 0.65);
    --glass-border: rgba(240, 246, 252, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animation */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob1 {
    width: 400px;
    height: 400px;
    background: #1f6feb;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: #8957e5;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob3 {
    width: 250px;
    height: 250px;
    background: #238636;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    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); }
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header & Tabs */
.header {
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #c9d1d9, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: center;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: var(--text-main);
    background: rgba(88, 166, 255, 0.1);
}

.tab-btn.active::before {
    transform: scaleX(1);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Content Area */
.content-area {
    min-height: 400px;
    position: relative;
}

.tab-content {
    display: none;
    padding: 2.5rem;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

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

/* Sections Styling */

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.timeline-content p {
    margin-bottom: 1rem;
}

.tech-stack {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-stack li {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.project-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.project-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Interests */
.intro-text {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interest-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
    cursor: default;
}

.interest-pill:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
