:root {
    /* Color Palette */
    --bg-color: #0b1120;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-1: #38bdf8;
    /* Light Blue */
    --accent-2: #818cf8;
    /* Indigo */
    --accent-3: #c084fc;
    /* Purple */

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-1);
}

/* Background Blobs (Premium Vibe) */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    bottom: -100px;
    right: -200px;
    animation-delay: -5s;
}

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

    50% {
        transform: translate(50px, 30px) scale(1.05);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.glass-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-bottom: 4rem;
    transition: transform var(--transition-medium);
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-1);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switcher a {
    color: var(--text-muted);
    padding-bottom: 2px;
}

.lang-switcher a:hover {
    color: var(--text-primary);
}

.lang-switcher a.active {
    color: var(--accent-1);
}

.lang-switcher .divider {
    color: var(--glass-border);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 6rem;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    color: var(--accent-1);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.gradient-text {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--text-secondary);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.social-links a,
.location-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 6rem;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Reusing Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 i {
    color: var(--accent-1);
}

/* Typography specifics inside cards */
.glass-card p {
    margin-bottom: 1rem;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

/* Skills */
.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.tag.highlight {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--accent-1);
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.lang-level {
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 500;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Timeline (Experience) */
.section-title {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-title i {
    color: var(--accent-1);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), rgba(255, 255, 255, 0.05));
    border-radius: 2px;
}

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

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all var(--transition-fast);
}

.highlight-dot {
    border-color: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
    background: var(--accent-1);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-1);
    transform: translateX(-50%) scale(1.3);
}

.job-header {
    margin-bottom: 1.25rem;
}

.job-header h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.company {
    color: var(--text-primary);
    font-weight: 500;
}

.job-duties {
    list-style: none;
}

.job-duties li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.job-duties li:last-child {
    margin-bottom: 0;
}

.job-duties li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

/* Education Grid */
#education {
    margin-top: 4rem;
}

.edu-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem !important;
}

.edu-card h3 {
    display: none;
}

/* hide the base h3 if used */

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent-2);
    opacity: 0.8;
}

.edu-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.edu-details .uni {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.edu-details .year {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Certificates */
#certificates {
    margin-top: 3rem;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cert-list li i {
    color: var(--accent-3);
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Animations (Scroll Triggered) */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .left-col section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile fallback, or could add burger menu */
    }

    .hero {
        min-height: 60vh;
        padding-top: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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