/* --- CSS Variables & Theme --- */
:root {
    /* Color Palette */
    --bg-base: #0a0f1d;
    --bg-panel: rgba(16, 24, 43, 0.7);
    --bg-panel-solid: #10182b;
    --accent-primary: #0ea5e9;
    /* Light futuristic blue */
    --accent-secondary: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.5);

    /* Text */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #cbd5e1;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    /* Tech feel */

    /* Borders & Shadows */
    --border-light: rgba(14, 165, 233, 0.2);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px var(--accent-glow);

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

.text-accent {
    color: var(--accent-primary);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-overlay {
    background: linear-gradient(180deg, rgba(10, 15, 29, 0) 0%, rgba(14, 165, 233, 0.03) 50%, rgba(10, 15, 29, 0) 100%);
}

.pb-50 {
    padding-bottom: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* --- Global Background Effects --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    transform: perspective(500px) rotateX(20deg) scale(1.5);
    transform-origin: top center;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
}

.primary-glow {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -100px;
    right: -200px;
}

.secondary-glow {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    bottom: -150px;
    left: -100px;
}

/* --- UI Components --- */
.tech-card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: var(--shadow-glow);
}

.tech-card:hover::before {
    opacity: 1;
}

.code-comment {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

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

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    font-weight: 400;
    opacity: 0.7;
    border: 1px solid var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-glow);
}

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

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--border-light);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green for online */
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero .name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .title {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    color: var(--accent-primary);
}

.hero-summary {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 90%;
}

.hero-summary strong {
    color: var(--accent-primary);
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(10, 15, 29, 0.5);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.contact-pill i {
    color: var(--accent-primary);
}

.contact-pill:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.image-frame {
    width: 380px;
    height: 480px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md) 100px var(--radius-md) var(--radius-md);
    padding: 15px;
    position: relative;
    background: var(--bg-panel);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: scan 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm) 85px var(--radius-sm) var(--radius-sm);
    filter: grayscale(20%) contrast(1.1);
}

.tech-stats {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.stat-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Summary Cards --- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.summary-card .card-icon {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.summary-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.summary-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Timeline --- */
.timeline-container {
    position: relative;
    max-width: 900px;
}

.timeline-block {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: var(--border-light);
}

.timeline-block:last-child::before {
    bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 6px;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.timeline-content {
    padding: 30px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.job-title {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--accent-primary);
}

.company {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.job-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.job-duties {
    padding-left: 20px;
}

.job-duties li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.job-duties li::before {
    content: '>';
    position: absolute;
    left: -15px;
    top: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Prior Roles */
.prior-roles {
    margin-top: 60px;
    padding-left: 50px;
}

.prior-roles-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.role-card.small {
    padding: 20px;
}

.role-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.role-card .company {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.role-card .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Skills & Achievements --- */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.skill-category h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    background: rgba(10, 15, 29, 0.8);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.tech-tag:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.sl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sl-box h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sl-box ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sl-box li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-box li i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.achieve-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.achieve-item {
    text-align: center;
    padding: 30px 20px;
}

.icon-large {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.achieve-item h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.achieve-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Education --- */
.edu-train-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.prime-border {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(10, 15, 29, 0.8));
}

.edu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 40px;
}

.edu-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.edu-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.uni {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.edu-date {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.cert-card h3 {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cert-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cert-list i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cert-list span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cert-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    text-align: center;
    background: var(--bg-panel-solid);
}

.footer-content .brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.footer-content .sub {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--border-light);
    color: var(--accent-primary);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-summary {
        margin: 0 auto 30px auto;
    }

    .hero-contacts {
        justify-content: center;
    }

    .image-frame {
        width: 100%;
        max-width: 400px;
    }

    .summary-grid,
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .achieve-grid {
        grid-template-columns: 1fr 1fr;
    }

    .edu-train-layout,
    .sl-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .job-header {
        flex-direction: column;
        gap: 10px;
    }

    .cert-list {
        grid-template-columns: 1fr;
    }

    .timeline-block {
        padding-left: 30px;
    }

    .timeline-block::before {
        left: -4px;
    }

    .timeline-marker {
        left: -12px;
    }

    .prior-roles {
        padding-left: 0;
    }
}