/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #070709;
    --bg-surface: #111116;
    --bg-surface-light: #1a1a24;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --accent-primary: #14b8a6;
    /* Teal */
    --accent-secondary: #f59e0b;
    /* Amber */
    --accent-glow: rgba(20, 184, 166, 0.3);

    /* Utility colors */
    --warning: #f59e0b;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);

    /* Spacing */
    --section-padding: 6rem 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for sticky navbar */
}

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

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ==========================================================================
   Utility Classes & Effects
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.title-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

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

.text-warning {
    color: var(--warning);
}

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

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(20, 184, 166, 0.3), 0 0 15px rgba(245, 158, 11, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-primary);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-secondary);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

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

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

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

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

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

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero .name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero .summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

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

.social-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

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

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.github-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.github-stats .stat-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 12px;
}

.github-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.github-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
    }
}

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

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.skill-category {
    padding: 2rem;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-header h3 {
    font-size: 1.25rem;
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    /* Adjust based on dot */
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.responsibilities {
    color: var(--text-secondary);
    margin-left: 1.25rem;
}

.responsibilities li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: disc;
}

.responsibilities li::marker {
    color: var(--accent-primary);
}

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

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-index {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.icon-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.icon-link:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: #f97316;
    /* Orange hover effect */
}

.project-title.highlight {
    color: #f97316;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex-grow: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.project-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat-item i {
    width: 16px;
    height: 16px;
}

.btn-live {
    background: #d9531e;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--transition-fast);
}

.btn-live:hover {
    background: #ea5f25;
    color: white;
}

.btn-live i {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.btn-live:hover i {
    transform: translate(3px, -3px);
}

.project-tag-simple {
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Certifications & Achievements
   ========================================================================== */
.multi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .multi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.cert-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.education-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.edu-card {
    padding: 2rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.edu-header h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.degree {
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-heading {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(5px);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-details .value {
    font-weight: 500;
    color: var(--text-primary);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}

.social-circle:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    padding: 2.5rem;
}

.form-heading {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

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

.footer-links a {
    color: var(--text-secondary);
}

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



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

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

.delay-5 {
    transition-delay: 500ms;
}

.delay-6 {
    transition-delay: 600ms;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(11, 11, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -4px;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

/* ==========================================================================
   Built, Won, Certified Section (Interactive Credential Wall)
   ========================================================================== */
.credentials-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 992px) {
    .credentials-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 5rem;
    }

    .credentials-intro {
        flex: 1;
        position: sticky;
        top: 100px;
    }

    .credentials-wall {
        flex: 1.5;
    }
}

.credentials-wall {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cred-card {
    padding: 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.cred-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cred-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-normal);
}

.cred-card:hover::before {
    transform: scaleY(1);
}

.spotlight-card::before {
    background: #f59e0b;
    /* Gold/Orange for spotlight */
}

.cred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cred-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cred-header h4 {
    font-size: 1.25rem;
    margin: 0;
    transition: color var(--transition-fast);
}

.cred-card:hover .cred-header h4 {
    color: var(--accent-primary);
}

.spotlight-card:hover .cred-header h4 {
    color: #f59e0b;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #10b981;
    /* Emerald green */
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verified-badge i {
    width: 14px;
    height: 14px;
}

.spotlight-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #f59e0b;
    /* Gold */
    background: rgba(245, 158, 11, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.spotlight-label i {
    width: 14px;
    height: 14px;
}

.cred-expand {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cred-card:hover .cred-expand {
    max-height: 200px;
    opacity: 1;
    margin-top: 1.5rem;
}

.cred-expand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.cred-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ==========================================================================
   Code Card & Social Proof (About Section)
   ========================================================================== */
.code-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bg-danger {
    background: #ff5f56;
}

.bg-warning {
    background: #ffbd2e;
}

.bg-success {
    background: #27c93f;
}

.code-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e5e7eb;
}

.code-content .keyword {
    color: #f97316;
}

.code-content .variable {
    color: #60a5fa;
}

.code-content .operator {
    color: #f87171;
}

.code-content .property {
    color: #a78bfa;
}

.code-content .string {
    color: #34d399;
}

.code-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.code-socials a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.code-socials a:hover {
    color: var(--accent-primary);
}

.social-proof-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proof-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proof-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proof-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.proof-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-outline-small {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-outline-small:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.ml-auto {
    margin-left: auto;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-badge.quickdraw {
    border-left: 2px solid #f59e0b;
}

.achievement-badge.yolo {
    border-left: 2px solid #a855f7;
}

.achievement-badge h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.achievement-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.earned-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.bg-accent {
    background: #a855f7;
}

.linkedin-stats {
    display: flex;
    gap: 1rem;
}

.l-stat {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.l-stat i {
    margin-bottom: 0.5rem;
    width: 20px;
    height: 20px;
}

.l-stat h5 {
    font-size: 1.25rem;
}

.l-stat p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Technologies Grid
   ========================================================================== */
.tech-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tech-card-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 0;
}

.tech-tag {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 1rem 0;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform var(--transition-fast);
}

.tech-icon-item:hover {
    transform: translateY(-5px);
}

.tech-icon-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-border-blue {
    border-top: 2px solid #3b82f6;
}

.tech-border-orange {
    border-top: 2px solid #f97316;
}

.tech-border-purple {
    border-top: 2px solid #a855f7;
}

.tech-border-green {
    border-top: 2px solid #10b981;
}

/* ==========================================================================
   Built Systems Section (Bento Grid)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        grid-column: 1 / -1;
    }

    .featured-card .bento-content {
        display: flex;
        flex-direction: column;
    }
}

.bento-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-header {
    margin-bottom: 1rem;
}

.bento-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-chips span {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-hook {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.bento-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    /* Pushes actions to bottom */
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.btn-action i {
    width: 16px;
    height: 16px;
}

.btn-action:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.primary-action {
    color: var(--accent-primary);
    border-color: rgba(249, 115, 22, 0.3);
    /* using orange/accent theme */
}

.primary-action:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

/* ==========================================================================
   Hero Section Layout Updates
   ========================================================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-card {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.floating-pill {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.pill-1 {
    animation-delay: 0s;
}

.pill-2 {
    animation-delay: 3s;
}

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

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

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

.hero-stats-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Animated Background (Fire Mode)
   ========================================================================== */
.animated-bg.fire-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fire-base {
    position: absolute;
    bottom: -20%;
    left: 0;
    width: 100%;
    height: 40%;
    background: radial-gradient(ellipse at bottom, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
    filter: blur(40px);
}

.fire-glow {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: firePulse 5s ease-in-out infinite alternate;
}

.fire-red {
    width: 100vw;
    height: 300px;
    background: rgba(239, 68, 68, 0.15);
    left: -10%;
    animation-delay: 0s;
}

.fire-orange {
    width: 100vw;
    height: 250px;
    background: rgba(249, 115, 22, 0.2);
    right: -5%;
    animation-delay: 1.5s;
}

.fire-yellow {
    width: 100vw;
    height: 200px;
    background: rgba(250, 204, 21, 0.15);
    left: 10%;
    bottom: -15%;
    animation-delay: 3s;
}

@keyframes firePulse {
    0% { transform: scale(1) translateY(0); opacity: 0.2; }
    50% { transform: scale(1.05) translateY(-15px); opacity: 0.4; }
    100% { transform: scale(1.02) translateY(-5px); opacity: 0.3; }
}

.sparks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spark {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: #ffbd2e;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(249, 115, 22, 0.8);
    opacity: 0;
    animation: sparkRise linear infinite;
}

.spark.s1 { left: 15%; animation-duration: 3s; animation-delay: 0s; width: 3px; height: 3px; }
.spark.s2 { left: 35%; animation-duration: 4.5s; animation-delay: 1.5s; background: #ff5f56; }
.spark.s3 { left: 55%; animation-duration: 2.5s; animation-delay: 0.5s; }
.spark.s4 { left: 75%; animation-duration: 5s; animation-delay: 2s; width: 5px; height: 5px; background: #f97316; }
.spark.s5 { left: 85%; animation-duration: 3.5s; animation-delay: 3s; }
.spark.s6 { left: 25%; animation-duration: 4.5s; animation-delay: 1s; }
.spark.s7 { left: 65%; animation-duration: 3s; animation-delay: 2.5s; background: #ef4444; }
.spark.s8 { left: 5%; animation-duration: 4s; animation-delay: 0.2s; }
.spark.s9 { left: 10%; animation-duration: 3.8s; animation-delay: 0.7s; background: #f97316; }
.spark.s10 { left: 30%; animation-duration: 4.2s; animation-delay: 1.2s; width: 6px; height: 6px; }
.spark.s11 { left: 50%; animation-duration: 3.2s; animation-delay: 0.4s; background: #ff5f56; }
.spark.s12 { left: 70%; animation-duration: 5.1s; animation-delay: 2.1s; }
.spark.s13 { left: 90%; animation-duration: 4.7s; animation-delay: 1.8s; width: 3px; height: 3px; }
.spark.s14 { left: 20%; animation-duration: 3.9s; animation-delay: 0.9s; }
.spark.s15 { left: 40%; animation-duration: 4.6s; animation-delay: 2.4s; background: #f97316; }
.spark.s16 { left: 60%; animation-duration: 5.3s; animation-delay: 0.3s; }
.spark.s17 { left: 80%; animation-duration: 3.4s; animation-delay: 1.6s; }
.spark.s18 { left: 45%; animation-duration: 4.8s; animation-delay: 2.8s; width: 5px; height: 5px; }
.spark.s19 { left: 12%; animation-duration: 3.7s; animation-delay: 1.1s; background: #ff5f56; }
.spark.s20 { left: 88%; animation-duration: 4.1s; animation-delay: 0.6s; }

@keyframes sparkRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-50vh) translateX(30px) scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-100vh) translateX(-30px) scale(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fire-glow,
    .spark,
    .floating-pill {
        animation: none !important;
    }
}

/* ==========================================================================
   Mouse Scroll Indicator
   ========================================================================== */
.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    z-index: 10;
    position: relative;
    gap: 8px;
}

.scroll-down-indicator:hover {
    color: var(--accent-primary);
}

.css-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
    display: inline-block;
    transition: border-color 0.3s ease;
}

.css-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
    transition: background-color 0.3s ease;
}

.scroll-down-indicator:hover .css-mouse {
    border-color: var(--accent-primary);
}

.scroll-down-indicator:hover .css-mouse::before {
    background-color: var(--accent-primary);
}

.scroll-down-indicator .scroll-arrow {
    animation: bounce 2s infinite ease-in-out;
}

.scroll-down-indicator .lucide-chevron-down {
    width: 20px;
    height: 20px;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Cinematic Energy Pointer
   ========================================================================== */
.energy-cursor,
.energy-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.energy-cursor {
  width: 48px;
  height: 48px;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.92) 45%, rgba(255,120,40,0.18) 62%, rgba(255,90,20,0.0) 75%);
  box-shadow:
    0 0 18px rgba(255, 98, 0, 0.35),
    0 0 40px rgba(255, 68, 0, 0.18);
  transition: width .25s ease, height .25s ease, box-shadow .25s ease;
}

.energy-cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff7ed;
  box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 18px rgba(255,140,60,0.45);
}

.energy-cursor.is-hover {
  width: 60px;
  height: 60px;
  box-shadow:
    0 0 24px rgba(255, 98, 0, 0.45),
    0 0 60px rgba(255, 68, 0, 0.22);
}

@media (max-width: 768px) {
    .energy-cursor, .energy-cursor-dot {
        display: none !important;
    }
}
