:root {
    /* Colors */
    --bg-dark: #050505;
    /* Deep space black */
    --bg-card: rgba(15, 15, 20, 0.7);
    /* Darker glassmorphism */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #06b6d4;
    /* Cyan */
    --accent-2: #8b5cf6;
    /* Purple */

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

    /* Layout */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
    /* Hardware acceleration for animating blurred elements */
    will-change: transform;
    transform: translateZ(0);
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

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

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Particles (Space Theme) */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95); /* Made slightly more opaque to compensate for removed blur */
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
}

.hero .subtitle {
    color: var(--accent-1);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero .title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero .headline {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* About Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bio-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

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

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    border: 3px solid var(--bg-dark);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.company {
    color: var(--accent-1);
    font-weight: 500;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(15, 15, 20, 0.95); /* Adjusted opacity for legibility without blur */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(6, 182, 212, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.glass-card p {
    color: var(--text-secondary);
}

/* Consulting */
.glass-banner {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.8), rgba(5, 5, 10, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.banner-text p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* Inline Links */
.inline-link {
    color: var(--accent-1);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-1);
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.cert-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cert-item i {
    color: var(--accent-1);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.3);
}

/* CV Container */
.cv-container {
    width: 75%;
    max-width: 1000px;
    height: 85vh;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 2rem auto 0 auto;
}

.cv-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

    .glass-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .banner-text .section-title {
        text-align: center !important;
    }

    .timeline {
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero .headline {
        font-size: 1.2rem;
    }
}