:root {
    --primary: #008aaa;
    --secondary: #d1884f;
    --tertiary: #3bbadb;
}

:root[data-bs-theme="dark"] {
    --bs-body-bg: #000000;
    --bs-body-color: #f1f1f1;

    --bs-card-bg: #111111;
    --bs-navbar-bg: #000000;
    --bs-border-color: #333333;
}

body {
    height: 100vh;
}

a {
    text-decoration: none !important;
}

.btn-primary {
    background-color: #008aaa !important;
    border-color: #008aaa !important;
}

.btn-outline-dark {
    border-color: #d1884f !important;
    color: #d1884f !important;
}

.btn-outline-dark:hover {
    background-color: #d1884f !important;
    color: #ffffff !important;
}

.badge {
    background-color: var(--secondary) !important;
}

.nav-link {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.profile-img {
    max-width: 500px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 576px) {
  .profile-img {
    max-width: 125% !important;   /* shrink to fit screen */
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -------------------------------------------
   Scroll Down Arrow (centered + bounce)
   ------------------------------------------- */
.scroll-down {
    position: absolute;
    bottom: 50px;              /* move arrow UP/DOWN */
    z-index: 10;

    display: flex;
    justify-content: center;
    width: 100%;
    cursor: pointer;

    animation: bounce 1.7s infinite;
}

.scroll-down i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.scroll-down i:hover {
    color: var(--secondary);
}

/* Mobile fix: raise the arrow slightly */
@media (max-width: 576px) {
  .scroll-down {
    bottom: 20px !important;
  }
}


@keyframes bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(14px); }
  60%  { transform: translateY(8px); }
  80%  { transform: translateY(12px); }
  100% { transform: translateY(0); }
}

.scroll-down {
  animation: bounce 2s cubic-bezier(.25,.46,.45,.94) infinite;
}



/*Timeline CSS, thanks again Levi*/
.timeline {
    position: relative;
    margin-left: 20px;
    border-left: 2px solid #6c757d;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background-color: #3bbadb;
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 6px;
}

.timeline-content {
    margin-left: 10px;
}

.timeline-content h5 {
    margin-bottom: 0.25rem;
}

.timeline-content ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 80px; /* Adjust gap as needed */
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


.tech-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.2s;
}

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

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-label {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.icon-wrapper:hover .icon-label {
    opacity: 1;
}

[data-bs-theme="light"] .icon-wrapper:hover .icon-label {
    color: #000000;
}


/* -------------------------------------------
   UNIVERSAL PROJECT CARD STYLE (main + school)
   ------------------------------------------- */

/* Card width + centering (desktop) */
#projects .card,
#schoolProjects .card {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
}

/* PERFECT SQUARE IMAGES (desktop) */
#projects .card-img-top,
#schoolProjects .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;      /* makes it a square */
    object-fit: cover;        /* fills square cleanly */
    object-position: center;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: transparent;
    padding: 0;               /* ensures full-size square */
}

/* Text spacing */
#projects .card-body,
#schoolProjects .card-body {
    padding: 1.1rem;
    text-align: left;
}

#projects .card-title,
#schoolProjects .card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

#projects .card-text,
#schoolProjects .card-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* -------------------------------------------
   RESPONSIVE: MOBILE + TABLET FIXES
   ------------------------------------------- */

/* Tablets / small laptops */
@media (max-width: 768px) {

    /* Cards take full width */
    #projects .card,
    #schoolProjects .card {
        max-width: 100%;
    }

    /* Image remains square but shrinks */
    #projects .card-img-top,
    #schoolProjects .card-img-top {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;            /* keeps perfect square via aspect-ratio */
    }
}

/* Small phones (iPhone SE / Galaxy Mini) */
@media (max-width: 480px) {

    #projects .card-img-top,
    #schoolProjects .card-img-top {
        aspect-ratio: 1 / 1;
        width: 100%;
    }
}





/*Found on Reddit, Bootstrap CSS for ICON color code with night and light mode*/
/* Default icon styling */
.bi {
  transition: color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.bi:hover {
  transform: scale(1.1);
}

/* Theme-based colors */
[data-bs-theme="dark"] #github-icon {
    color: #f1f1f1;
}

[data-bs-theme="light"] #github-icon {
    color: #000000;
}

[data-bs-theme="dark"] #linkedin-icon {
    color: #ffffff;
}

[data-bs-theme="light"] #linkedin-icon {
    color: #0a66c2;
}

[data-bs-theme="dark"] #email-icon {
    color: #ffffff;
}

[data-bs-theme="light"] #email-icon {
    color: #d63384;
}

