html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --accent-color: #bb86fc;
    --accent-hover: #9b59b6;
    --card-bg: #1e1e1e;
}

.text-accent {
    color: var(--accent-color) !important;
}

.border-accent-thick {
    border: 5px solid var(--accent-color);
}

.hidden-navbar {
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    background-color: #000000ee;
    backdrop-filter: blur(10px);
}

.navbar-scrolled {
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator img {
    width: clamp(45px, 6vw, 90px);
    height: auto;
}

.section-title {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.navbar {
    background-color: #000000cc;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--accent-color) !important;
    font-weight: bold;
}

.nav-link {
    color: #e0e0e0 !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.skill-badge {
    background-color: rgba(187, 134, 252, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(187, 134, 252, 0.25);
    font-size: 0.88rem;
    margin: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
}

.skill-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.btn-outline-accent {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transition: all 0.3s;
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: #121212;
}

.timeline-box {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    opacity: 0.6;
}

section {
    scroll-margin-top: 80px;
}

.project-title-container {
    margin-bottom: 15px;
}

.project-title-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.project-title-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-color) !important;
}

.project-title-link i {
    font-size: 1.15rem;
    color: var(--accent-color);
    transition: transform 0.25s ease, color 0.25s ease;
}

.project-title-link:hover i {
    transform: scale(1.15);
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Featured Project Styling */
.projects-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.featured-project-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.featured-project-card img {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-project-card .project-description {
    font-size: 1.05rem;
    line-height: 1.6;
}

.highlights-list {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlights-list li {
    margin-bottom: 8px;
}

.border-accent {
    border: 2px solid rgba(187, 134, 252, 0.4) !important;
}

.text-secondary-light {
    color: #b0b0b0 !important;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }

    .mobile-project-link {
        background: rgba(0, 0, 0, 0.85);
        padding: 12px;
        text-align: center;
    }

    .mobile-project-link a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
    }

    .featured-project-card {
        padding: 1.5rem !important;
    }
}

/* Flowchart Timeline Styling */
.flowchart-timeline {
    position: relative;
    padding: 2rem 0;
}

/* Central flow line */
.flowchart-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(187, 134, 252, 0.05));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.flowchart-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    z-index: 2;
}

.flowchart-item.left {
    left: 0;
    text-align: right;
}

.flowchart-item.right {
    left: 50%;
    text-align: left;
}

/* flowchart node icons */
.flowchart-node {
    position: absolute;
    width: 44px;
    height: 44px;
    right: -22px;
    background-color: #121212;
    border: 3px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
}

.flowchart-item.right .flowchart-node {
    left: -22px;
}

/* flowchart content cards */
.flowchart-content {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.3s ease;
}

.flowchart-item.left .flowchart-content {
    text-align: left;
}

.flowchart-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
}

/* Flowchart Mobile Adjustments */
@media (max-width: 768px) {
    .flowchart-timeline::after {
        left: 31px;
    }

    .flowchart-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .flowchart-item.left,
    .flowchart-item.right {
        left: 0;
    }

    .flowchart-node {
        left: 9px !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        top: 20px;
    }

    .flowchart-item.left .flowchart-content {
        text-align: left;
    }
}