:root {
    /* PALETTE */
    --bg-dark: #222831;
    --bg-card: rgba(57, 62, 70, 0.7);
    /* Made transparent for glass effect */
    --accent: #00ADB5;
    --text-main: #EEEEEE;

    --glow-accent: 0 0 20px rgba(0, 173, 181, 0.25);
    --danger: #ff4d4d;
    --success: #10b981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    /* Let clicks pass through */
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mono {
    font-family: 'Fira Code', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Header --- */
nav {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
}

.linkedin-link {
    font-size: 1.4rem;
    color: var(--text-main);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    color: var(--accent);
    opacity: 1;
    text-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    padding: 80px 0 100px 0;
    max-width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    max-width: 900px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Better readability over 3D bg */
}

.highlight {
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 680px;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Status Block - Glassmorphism */
.status-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 77, 77, 0.1);
    backdrop-filter: blur(5px);
    /* Blur effect */
    border-left: 3px solid var(--danger);
    padding: 16px 24px;
    border-radius: 0 4px 4px 0;
    max-width: 700px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 77, 77, 0.1);
}

.status-icon {
    color: var(--danger);
    font-size: 1.1rem;
    margin-top: 3px;
}

.status-alert {
    color: var(--danger);
    font-weight: 600;
}

.status-block.available {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    border-color: rgba(16, 185, 129, 0.1);
}

.status-block.available .status-icon,
.status-block.available .status-alert {
    color: var(--success);
}

.status-content {
    font-size: 1rem;
    line-height: 1.5;
}

.status-note {
    color: #b0b0b0;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(0, 173, 181, 0.1);
    /* Slight fill */
    backdrop-filter: blur(4px);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-accent);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 173, 181, 0.6);
    transform: translateY(-2px);
}

/* --- Section Styling --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-main);
}

.section-line {
    flex: 1;
    height: 1px;
    background: #393E46;
}

/* --- Skills Grid --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 120px;
    align-items: stretch;
}

/* Skill Card - Glassmorphism */
.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    /* The Magic Blur */
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
    transform: translateY(-5px);
    background: rgba(57, 62, 70, 0.85);
    /* Slightly less transparent on hover */
}

.skill-title {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.tag {
    background: rgba(34, 40, 49, 0.6);
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d1d1;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.tag i {
    color: var(--accent);
}

.skill-card:hover .tag {
    background: rgba(34, 40, 49, 0.9);
    border-color: rgba(0, 173, 181, 0.3);
    color: #fff;
}

/* --- Experience --- */
.timeline {
    margin-bottom: 120px;
    border-left: 2px solid #393E46;
    padding-left: 40px;
}

.job-item {
    position: relative;
    margin-bottom: 60px;
}

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

.job-marker {
    position: absolute;
    left: -46px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.job-role {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.job-company {
    color: var(--accent);
    font-weight: 600;
    margin-right: 10px;
    font-size: 1.1rem;
}

.job-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #888;
}

.job-desc {
    margin-top: 15px;
    color: #b0b0b0;
    max-width: 800px;
    font-weight: 300;
}

/* --- Education --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.edu-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.edu-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(62, 68, 77, 0.8);
}

.degree {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.school {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
}

.year {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    border-top: 1px solid #393E46;
    padding: 50px 0;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #777;
}

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

    .skills-container {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 20px;
    }

    .job-marker {
        left: -26px;
    }
}