:root {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gradient: linear-gradient(120deg, #0d6efd, #6f42c1, #d63384);
    --glass-dark: rgba(8, 12, 24, 0.75);
    --glass-light: rgba(255, 255, 255, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.35), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(214, 51, 132, 0.25), transparent 45%),
                #05060b;
    background-attachment: fixed;
    color: #f8f9fa;
    font-family: inherit;
    position: relative;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

[data-bs-theme="light"] body {
    background: #f5f6fb;
    color: #1f2430;
}

.glass {
    background: var(--glass-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(5, 6, 11, 0.45);
}

[data-bs-theme="light"] .glass {
    background: var(--glass-light);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(50, 50, 93, 0.08);
}

.btn-gradient {
    background-image: var(--gradient);
    border: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.45);
}

.btn-outline-light {
    transition: all 0.3s ease;
}

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

.hero-title {
    line-height: 1.15;
}

.hero-blob {
    position: absolute;
    inset: -50px;
    z-index: -1;
    filter: blur(55px);
    opacity: 0.75;
    background: var(--gradient);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    animation: blob 16s ease-in-out infinite;
}

@keyframes blob {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.1) translate(25px, -35px); }
    66% { transform: scale(0.95) translate(-15px, 25px); }
    100% { transform: scale(1) translate(0, 0); }
}

.site-nav {
    border-radius: 1rem;
    padding: 0.85rem 1.25rem;
    gap: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand > div {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.nav-brand .badge {
    line-height: 1;
    padding: 0.35rem 0.65rem;
}

.nav-brand strong {
    line-height: 1;
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}

.nav-collapse {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-width: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 600;
    line-height: 1;
    font-size: 1rem;
}

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

.nav-links a:hover {
    color: #0d6efd;
}

.nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.section-title {
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
}

.section-title i {
    color: #0d6efd;
}

[data-bs-theme="light"] .section-title {
    color: rgba(15, 23, 42, 0.65);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

footer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="light"] footer {
    color: rgba(15, 23, 42, 0.7);
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.social-icon {
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-arrow {
    transition: transform 0.3s ease;
}

.social-card:hover .social-arrow {
    transform: translate(4px, -4px);
}

[data-bs-theme="light"] .social-card {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-bs-theme="light"] .social-card:hover {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-meter {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.skill-meter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.skill-meter__label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-meter__bar {
    position: relative;
    margin-top: 0.55rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.skill-meter__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient);
    transition: width 1s ease-in-out;
    animation: fillBar 1.5s ease-in-out;
}

@keyframes fillBar {
    from { width: 0; }
}

.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-card {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

[data-bs-theme="light"] .stat-card {
    background: rgba(13, 110, 253, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .stat-card:hover {
    border-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.1);
}

.hero-card {
    background: rgba(5, 6, 11, 0.6);
    border-radius: 1.25rem;
}

[data-bs-theme="light"] .hero-card {
    background: rgba(255, 255, 255, 0.6);
}

.focus-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.focus-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.focus-headline .badge {
    background: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="light"] .focus-headline .badge {
    color: #1f2430;
    background: rgba(15, 23, 42, 0.1);
}

.focus-description {
    color: rgba(248, 249, 250, 0.75);
    font-size: 0.95rem;
}

[data-bs-theme="light"] .focus-description {
    color: rgba(15, 23, 42, 0.75);
}

.focus-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .focus-stat {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.focus-stat i {
    font-size: 1rem;
    color: #0d6efd;
}

.focus-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-control, .form-label {
    color: inherit;
}

.form-control {
    background-color: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

.form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

[data-bs-theme="light"] .form-control {
    background-color: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
    color: inherit;
}

@media (max-width: 768px) {
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-brand {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-collapse {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }

    .nav-collapse.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.35rem;
    }

    .nav-links a {
        padding: 0.35rem 0;
    }

    .nav-actions {
        display: none;
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .nav-collapse.is-open + .nav-actions {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-card {
        margin-top: 1rem;
    }
}

/* Contact Info Styles */
.contact-info li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

.contact-info i {
    width: 30px;
    text-align: center;
}

/* Scroll to top link */
footer a {
    color: inherit;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

/* Project cards enhancement */
article.glass {
    transition: all 0.3s ease;
}

article.glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] article.glass:hover {
    box-shadow: 0 15px 40px rgba(50, 50, 93, 0.15);
}

/* Project icon styles */
.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 1rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

article.glass:hover .project-icon {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1) rotate(5deg);
}

[data-bs-theme="light"] .project-icon {
    background: rgba(13, 110, 253, 0.15);
}

.bg-success {
    background-color: #198754 !important;
}

/* Focus card enhancements */
.focus-stat {
    transition: all 0.3s ease;
}

.focus-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

[data-bs-theme="light"] .focus-stat:hover {
    background: rgba(15, 23, 42, 0.08);
}


/* Setup/PC Specs Section - NEW DESIGN */
.spec-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.spec-highlight-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 1rem;
    font-size: 2rem;
    color: #0d6efd;
}

.spec-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

[data-bs-theme="light"] .spec-card {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.spec-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(248, 249, 250, 0.7);
}

.spec-card-header i {
    font-size: 1.25rem;
}

.storage-details {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="light"] .storage-details {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.storage-item i {
    width: 20px;
    text-align: center;
}

.storage-item span {
    min-width: 140px;
}

.storage-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

[data-bs-theme="light"] .storage-bar {
    background: rgba(15, 23, 42, 0.15);
}

.storage-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease;
}

.monitor-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(111, 66, 193, 0.15);
    border-radius: 1rem;
    font-size: 1.75rem;
    color: #6f42c1;
}

.monitors-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.monitor-card {
    padding: 1rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.monitor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(111, 66, 193, 0.3);
    transform: translateX(5px);
}

[data-bs-theme="light"] .monitor-card {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}

.monitor-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 50px;
}

.monitor-badge i {
    font-size: 1.5rem;
    color: #6f42c1;
}

.monitor-badge span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.6);
    font-weight: 600;
}

.monitor-specs {
    flex: 1;
}

/* Improved badge styles */
.badge {
    font-weight: 600;
    padding: 0.5em 0.85em;
}

/* Loading animation for icons */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.section-title i {
    animation: pulse 2s ease-in-out infinite;
}

/* Contact Cards */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* Modal Enhancements */
.modal-content {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #fff;
}

.modal-body {
    color: rgba(255, 255, 255, 0.9);
}

.modal-body label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.modal-body .form-control,
.modal-body .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Project Modal Specific */
#projectModal .modal-body h6 {
    color: #3b82f6;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#projectModal .modal-body ul {
    list-style: none;
    padding: 0;
}

#projectModal .modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

#projectModal .modal-body ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}
