/* style.css */

/* BASE STYLES & RESET */
*, *::before, *::after {
    box-sizing: border-box;
    transition: .5s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    color: #07376f;
}

/* TYPOGRAPHY */
p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #07376f;
}

h2, h3, h4 {
    font-family: Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h2 { font-size: 2.5rem; font-weight: 600; color: #0D77EE; }
h3 { font-size: 1.8rem; font-weight: 600; color: #0D77EE; }
h4 { font-size: 1.3rem; font-weight: 700; color: #0D77EE; }

.topline {
    border-top: 2px solid rgba(13, 119, 238, 0.2);
    padding-top: 1rem;
}

/* DIAGONAL COLOR SECTION */
.diagonalColor {
    position: relative;
    isolation: isolate;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.diagonalColor::after {
    content: '';
    background-image: linear-gradient(45deg, #0D77EE, #0BB1E9, #01F7C3, #6CC481);
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: skewY(-5deg);
}

/* HEADER & WRAPPER STYLES */
.wrapperColor {
    max-width: 50rem;
    margin-inline: auto;
    padding-inline: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.project-detail-title {
    line-height: 0.8;
    font-size: 4rem;
    margin: 0;
    font-family: "Tourney", sans-serif;
    font-weight: 500;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.contrastBlock {
    text-align: center;
    font-size: 1.25rem;
    color: white;
    background-color: #07376f;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    line-height: 1.5;
    align-self: flex-end;
}

/* MAIN PROJECT CONTENT */
#projectDetailContent {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.content-wrapper {
    max-width: 50rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* IMAGE STYLING */
.image-container {
    position: relative;
    margin: 3rem 0;
    background-color: rgba(24,176,230, 0.1);
    overflow: hidden;
}

.image-content-box {
    padding: 1rem;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: 0.9rem;
    text-align: center;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* FOOTER */
footer {
    background-color: #07376f;
    padding: 2rem;
    text-align: center;
    color: white;
    font-size: 1rem;
    /* Removed fixed height so it grows with icons */
    padding-bottom: 8rem; 
}

.colorbar_footer {
    width: 100%;
    height: 0.75rem;
    background-image: linear-gradient(45deg, #0D77EE, #0BB1E9, #01F7C3, #6CC481);
}

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: white;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #01F7C3; /* Your accent cyan color */
    transform: translateY(3px);
}

/* --- FLOATING MENU STYLES --- */
.floating-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #07376f;
    z-index: 1000;
    background-clip: padding-box;
    padding-bottom: 10px;
}

.floating-menu-inner {
    max-width: 50rem;
    margin-inline: auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: linear-gradient(45deg, #0D77EE, #0BB1E9, #01F7C3, #6CC481);
    z-index: 1001;
}

.float-btn {
    text-decoration: none;
    color: white;
    font-family: "Tourney", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.float-btn.play {
    background-color: #01F7C3;
    color: #07376f;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    justify-content: center;
    min-width: 200px;
}

.float-btn.play:hover {
    color: white;
    background-color: #0BB1E9;
}

.float-btn.back {
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
}

.float-btn.back:hover {
    border-color: #01F7C3;
    color: #01F7C3;
}

/* GALLERY & VIDEO SPECIFIC */
.image-gallery {
    position: relative; 
}

.image-gallery .image-slide {
    display: none;
}

.image-gallery .image-slide.active {
    display: block;
    animation: fade-in 0.7s; 
}

@keyframes fade-in {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 119, 238, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: bold;
    user-select: none;
    line-height: 1;
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.gallery-control:hover {
    background-color: #01F7C3; 
    color: #07376f;
}

.video-container {
    margin-top: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container .caption {
    margin-top: 0;
    margin-bottom: 1rem;
}

@media (max-width: 700px) {
    .project-detail-title {
        font-size: 3rem; 
        text-align: center;
        width: 100%;
    }
    .wrapperColor { align-items: center; }
    .contrastBlock {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    .colorbar_footer { height: 0.5rem; }
}