:root {
    /* Dark mode palette - using a single accent color */
    --bg-color: #0a0a0a;
    --surface-color: rgba(20, 20, 20, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #10b981;
    /* Emerald Green for a focused, technical aesthetic */
    --primary-color-dim: rgba(16, 185, 129, 0.15);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05), transparent 50%);
    background-attachment: fixed;
}

::selection {
    background: var(--primary-color-dim);
    color: #fff;
}

/* Ambient Glow Effect (Background) */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* Sticky Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 100;
}

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

.nav-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.nav-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color-dim);
}

.cert-link {
    text-decoration: none;
    align-items: center;
    cursor: pointer;
}

.cert-link:hover {
    background: var(--primary-color-dim);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

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

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

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

section {
    scroll-margin-top: 80px;
    /* Offset for sticky nav */
    margin-bottom: 5rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(80vh - 60px);
    position: relative;
    padding-top: 1rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 auto;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero-image img {
    width: clamp(180px, 20vw, 260px);
    height: clamp(180px, 20vw, 260px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface-border);
    box-shadow: 0 0 40px var(--primary-color-dim);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.4);
}

.hero-text {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color-dim);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    width: fit-content;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero p.summary {
    font-size: 1.15rem;
    max-width: 750px;
    color: #d4d4d8;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
    line-height: 1.7;
}

.hero p.summary strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 1s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link i {
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    cursor: pointer;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary-color);
    background: var(--primary-color-dim);
}

/* Section Headings */
.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.section-heading::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--surface-border) 0%, transparent 100%);
}

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

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* Glass Cards */
.glass-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
    transform: translateX(100%);
}

/* Experience Specifics */
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.exp-company {
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--primary-color-dim);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.exp-details {
    list-style: none;
}

.exp-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.exp-details li strong {
    color: #d4d4d8;
    font-weight: 500;
}

/* Project Specifics */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--text-main);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Competencies & Skills */
.skill-category i {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: block;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

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

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary-color-dim);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary-color);
}

/* Education & Certs */
.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.edu-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.03);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid var(--surface-border);
}

.icon-aws {
    color: #ff9900;
}

.icon-edu {
    color: var(--text-main);
}

.edu-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.edu-info p.inst {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-info p.desc {
    font-size: 0.85rem;
    color: #8f8f9d;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    text-align: center;
    color: #71717a;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

a {
    color: #81D9FE;
    text-decoration: none;
}

a:hover {
    color: #00bbff;
    text-decoration: underline;
}

.social-links a {
    color: #71717a;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
}

.social-links a:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-main);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.video-modal-close:hover {
    color: var(--primary-color);
}

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-top {
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-text {
        align-items: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero h2 {
        text-align: center;
    }

    .hero p.summary {
        font-size: 1.05rem;
        text-align: center;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .edu-grid,
    .projects-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-date {
        margin-top: 0.5rem;
    }
}

.hero h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: var(--font-mono);
}