@font-face {
    font-family: 'aldrich';
    src: url(fonts/aldrich/Aldrich-Regular.ttf) format('truetype');
}
@font-face {
    font-family: 'homespun';
    src: url(fonts/homespun/homespun.ttf) format('truetype');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
}
.containerFooter {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    margin-top: 15px;
}
.portfolioBtn {
    display: flex;
    flex-direction: column;

    transition: all 0.15s ease;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #353535;
    cursor: pointer;

    height: 275px;
    width: 350px;
    margin: 15px;
}
.portfolioBtn h3 {
  margin: 0;
  text-align: center;
}

.portfolioBtn img {
  flex-grow: 1;
  object-fit: contain;
  max-height: 100%;
  width: 100%;
}

.portfolioBtn h4 {
  margin: 0;
  text-align: center;
}
.portfolioBtn:hover {
    transform: translateX(4px);
    background-color: #5b5b5b;
}
.portfolioBtn:active {
    background-color: rgba(100, 0, 0, 0.5);
}

.topHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 10vh;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}
.headerBrand {
    display: flex;
    align-items: center;
}
.headerButton {
    background-color: black;
    display: none;
}

.navbar-nav .nav-link {
    color: rgb(180, 180, 180);
    transition: color 0.3s ease;
    text-decoration: none;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    font-size: 15px;
}

.navbar-nav .nav-link:hover {
    color: #4fedff;
    text-decoration: underline;
}

.pretty-button {
    color: #4fedff;
    transition: color 0.3s ease;
    font-size: 15px;
    margin-left: 5%;
}

.pretty-button:hover {
    color: #4fedff;
    text-decoration:underline;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }
    .containerFooter {
        font-size: x-small;
    }
    .headerNav {
        display: none;
    }
    .headerButton {
        display: flex;
    }
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-item {
  width: 100%;
  height: 750px;
  overflow: hidden;
  display: inline-block;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 539.98) {
    .carousel {
        height: 400px;
    }
    .carousel-caption {
        top: 133px;
        font-size: 10px;

    }
}
  
@media (min-width: 540px) and (max-width: 919.98px) {
    .carousel {
        height: 600px;
    }
    .carousel-caption {
        top: 233px;
        font-size: 15px;
    }
}
  
@media (min-width: 920px){
    .carousel {
        height: 800px;
    }
    .carousel-caption {
        top: 333px;
        font-size: 20px;

    }
}

.typewriter-text {
    white-space: nowrap;
    overflow: hidden;
}

.rainbow-line {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, 
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
    background-size: 1500% 100%;
    animation: rainbow 8s linear infinite;
}
  
  @keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


/*PROJECT LIST CSS*/
.sidebar {
    background-color: #020617;
    min-height: 100vh;
    border-right: 1px solid #1e293b;
}
.project {
    display: none;
}

.media-box {
    width: 40vh;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}
.media-box img,
.media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-media-box {
    margin: auto;
    width: 75%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}
.banner-media-box img,
.banner-media-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-btn {
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    position: relative;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.project-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: transparent;
    border-radius: 8px 0 0 8px;
    transition: 0.15s;
}
.project-btn.active::before {
    background: #60a5fa;
}

.project-btn:hover {
    background-color: #1e293b;
    border-color: #334155;
    transform: translateX(4px);
}

.project-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #4fedff;
}

.project-btn:active {
    transform: translateX(2px);
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    padding: 4px 10px;
    font-size: 12px;

    background: #1e293b;
    color: #cbd5f5;

    border-radius: 999px;
    border: 1px solid #334155;

    white-space: nowrap;
}