:root {
    --primary-color: #00A2FF;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --secondary-color: #6c757d;
    --dropshadow-color: #DCDCDC;
    --navbar-height: 70px;
}

/* Global Styles */
html {
    overflow-y: scroll;
}

html, body {
    height: 100%;
}

/* nav bar */
.custom-nav {
    position: fixed;
    top: 0;
    background-image: url("./Assets/topo_black.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    z-index: 1030;
    min-height: var(--navbar-height);
}

#navbarSupportedContent {
    background: transparent;
    width: 100%;
}

.navbar-collapse {
    transition: height 0.3s ease;
    overflow: hidden;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #00bfff !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #00bfff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #00bfff !important;
    font-weight: 600;
}

/* Landing */
.landing {
    background-color: var(--primary-color);
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: var(--navbar-height);
}

.landing-logo-image {
    width: auto;
    max-width: 350px;
    height: 100%;
    object-fit: contain;
}

/* page layout */
.page-buffer {
    padding: 0 40px;
    padding-top: 80px;
}

.padded-container {
    padding: 5rem 3rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Home page */
/* Project description */
.project-description {
    font-size: larger;
}

/* Technologies */
.technologies-list-container {
    display: flex;
    justify-content: center;
}

.technologies-list {
    display: flex;
    gap: 20px;
    width: 95%;
    list-style-type: none;
    overflow: scroll;
    padding-left: 0px;
}

.technology-square {
    width: 220px;
    height: 220px;
    padding: 20px;
    border-radius: 20px;
    background-color: #F0F0F0;
}

.technology-square img {
    height: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.technology-square .subtitle {
    color: gray;
    font-size: 0.9rem;
    margin: 0;
    line-height: 0.75;
}

.technology-square .name {
    font-size: 1.3rem;
}

/* Quick links */
.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Sponsor */
.sponsor-card {
    background: white;
    border-radius: 12px;
    min-height: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Timeline cards */
.timeline-section {
    padding: 4rem 2rem;
    max-width: 1250px;
    margin: 0 auto;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.phase-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 6px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color));
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.phase-complete {
    border-left-color: var(--success-color);
}

.phase-complete::before {
    background: linear-gradient(90deg, transparent, var(--success-color));
}

.phase-active {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 162, 255, 0.2);
}

.phase-active::before {
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.phase-upcoming {
    border-left-color: var(--secondary-color);
    opacity: 0.85;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-complete {
    background: #d4edda;
    color: #155724;
}

.badge-active {
    background: #d1ecf1;
    color: #0c5460;
    animation: pulse 2s infinite;
}

.badge-upcoming {
    background: #e2e3e5;
    color: #383d41;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.phase-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.phase-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.phase-card p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.phase-deliverables {
    margin-top: 1.5rem;
}

.phase-deliverables h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.phase-deliverables ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-deliverables li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.phase-deliverables li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.phase-upcoming .phase-deliverables li::before {
    content: '○';
    color: var(--secondary-color);
}

.phase-active .phase-deliverables li::before {
    content: '◐';
    color: var(--primary-color);
}

/* cards */

/* Team */
.team-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.team-card img {
    border-bottom: 4px solid #0d6efd;
}

.team-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.team-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003566;
}

.team-card .card-text {
    font-size: 0.95rem;
    color: #444;
}

/* Archive */
.archive-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.archive-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.archive-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003566;
    margin-bottom: 1rem;
}

.archive-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
}

/* Feature Boxes Requirements Page */
.feature-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.feature-box p {
    font-size: 0.9rem;
}

/* Feature Cards Project Page */
.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* GitHub Card Codebase Page */
.github-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* footer */
.footer-custom {
    margin-top: auto;
    background-color: #2D2F32;
}

/* Timeline - Mobile */
@media (max-width: 768px) {
    .timeline-cards {
        grid-template-columns: 1fr;
    }

    .phase-card {
        padding: 1.5rem;
    }
}

/* Navigation - Desktop */
@media (min-width: 992px) {
    #navbarSupportedContent .navbar-nav {
        flex-direction: row;
        align-items: center;
        margin-left: 1rem;
    }
}

/* Navigation - Mobile */
@media (max-width: 991px) {
    #navbarSupportedContent .navbar-nav {
        flex-direction: column;
        align-items: flex-end;
        padding-right: 20px;
    }

    #navbarSupportedContent .nav-link {
        padding: 10px 0;
        color: white;
    }
}