:root {
    /* Colors - Technical/Cloud Theme */
    --bg-dark: #0d1117;
    --bg-medium: #161b22;
    --bg-accent: #1f2428;
    /* Slightly lighter for contrast */

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;

    --accent-blue: #58a6ff;
    --accent-green: #238636;
    --border: #30363d;

    --mono-font: 'Fira Code', monospace;
    --sans-font: 'Inter', sans-serif;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--sans-font);
    line-height: 1.6;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle effect */
}

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

/* Typography & Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations & Transitions */
html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Premium Ease */
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Premium Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.section-panel {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 1rem;
}

/* Alternating Backgrounds */
.section-dark {
    background-color: var(--bg-dark);
}

.section-medium {
    background-color: var(--bg-medium);
}

.section-accent {
    background-color: var(--bg-accent);
    text-align: center;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--mono-font);
    font-weight: 700;
    color: var(--accent-blue);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* 1. Summary Hero */
.hero-section {
    padding: 8rem 0;
    position: relative;
    /* Subtle grid background */
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: fadeIn 1.2s ease-out;
}

.terminal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(35, 134, 54, 0.15);
    color: var(--accent-green);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-family: var(--mono-font);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(35, 134, 54, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-section h1 .highlight {
    font-size: 1.5rem;
    /* Smaller than main name */
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.core-strengths {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-medium);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.strength-item h3 {
    font-size: 1rem;
    font-weight: 600;
}

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

.skill-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.tag {
    font-family: var(--mono-font);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
}

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

.project-card {
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

.project-desc {
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1.5rem;
}

.source-link {
    font-size: 0.85rem;
    font-family: var(--mono-font);
    color: var(--accent-blue);
}

/* 4. Education (Timeline) */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent-blue);
    border-radius: 50%;
    border: 4px solid var(--bg-medium);
}

.timeline-date {
    color: var(--accent-blue);
    font-family: var(--mono-font);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-org {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.cert-card {
    display: flex;
    gap: 1rem;
    align-items: start;
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cert-icon {
    font-size: 2rem;
}

.cert-level {
    display: inline-block;
    background: var(--border);
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.cert-id {
    font-family: var(--mono-font);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 7. Contact */
.contact-wrapper {
    max-width: 600px;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-wrapper p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-btn.primary {
    background: var(--accent-blue);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(88, 166, 255, 0.2);
}

.contact-btn.primary:hover {
    background: #1f6feb;
    box-shadow: 0 8px 15px rgba(88, 166, 255, 0.3);
    transform: translateY(-2px);
}

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

.social-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.final-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--mono-font);
}

/* Premium Button Styles */
.btn-linkedin {
    background: #0077b5;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 119, 181, 0.2);
}

.btn-linkedin:hover {
    background: #006097;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 119, 181, 0.3);
}

.btn-github {
    background: #24292e;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-github:hover {
    background: #2f363d;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-resume {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(46, 160, 67, 0.2);
}

.btn-resume:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(46, 160, 67, 0.3);
}

/* Icons */
.btn-icon {
    font-size: 1.1rem;
}

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

    .nav-links {
        display: none;
    }
}