:root {
    /* Portfolio Brand Colors - Purple theme */
    --bg-primary: #050505;
    --bg-secondary: #0f1115;
    --bg-tertiary: #1a1d24;

    /* Primary Accent Color - Purple */
    --accent-primary: #8b5cf6;
    /* Secondary Accent Color (for gradients) */
    --accent-secondary: #a855f7;
    /* Gradient used on buttons and text */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border-color: #2e3545;
    --card-bg: rgba(30, 35, 45, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Layout */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.brand-by {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.tech-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-label {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-pill:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .tech-stack {
        flex-direction: column;
    }
}

/* Features/Skills Grid */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    margin-bottom: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    background: rgba(30, 35, 45, 0.6);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

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

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Skill Card Specific */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.skill-list {
    list-style: none;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Experience Section */
.experience-section {
    padding: 100px 0;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.experience-card:hover {
    border-color: var(--accent-primary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-title {
    font-size: 1.25rem;
    color: var(--accent-secondary);
}

.experience-period {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 9999px;
}

.experience-highlights {
    list-style: none;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.highlight-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Achievement Card */
.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    border-color: #fbbf24;
    transform: translateY(-5px);
}

.trophy-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.trophy-icon.gold {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.trophy-icon.bronze {
    filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.4));
}

.achievement-title {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.achievement-year {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Project Card */
.project-card {
    text-align: center;
}

.project-card .btn {
    margin-top: 16px;
}

/* Service Card */
.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 16px;
}

.credibility-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

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

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .features,
    .experience-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        width: auto;
        height: 0;
        overflow: hidden;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        height: auto;
        min-height: calc(100vh - 73px);
        padding: 40px 32px;
    }

    .nav-links a {
        font-size: 1.25rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.3s;
    }

    .experience-header {
        flex-direction: column;
    }

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

/* ===== HUB PAGE STYLES ===== */
.hub-hero {
    padding-top: 140px;
    padding-bottom: 40px;
    text-align: center;
}

.hub-hero h1 {
    font-size: 3rem;
}

.hub-filters {
    padding: 20px 0 40px;
}

.filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.hub-projects {
    padding-bottom: 100px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hub-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hub-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hub-icon {
    font-size: 2.5rem;
}

.hub-tag {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hub-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.hub-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.hub-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.hub-link.primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.hub-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.hub-card-add {
    border-style: dashed;
    opacity: 0.6;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.hub-card-add:hover {
    opacity: 1;
}

/* Hub Thumbnail */
.hub-thumbnail {
    width: 100%;
    height: 160px;
    margin: -24px -24px 16px -24px;
    width: calc(100% + 48px);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.hub-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-thumbnail img {
    transform: scale(1.05);
}

.hub-card.has-thumbnail .hub-card-header {
    justify-content: flex-end;
}

.hub-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    grid-column: 1 / -1;
}

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

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