/*
Main CSS for Portfolio Project
- Layout and scrollbars
- Banner and video
- Content and section styling
- Photo gallery blocks
- Offers stacking animation
- Navbar
- Canvas background
- Battery status widget
- Learning Outcomes (LO) sections
- Evidence buttons and PDF links
*/

/* Import Rowdies font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@400;700&display=swap');

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Rowdies', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #F4F1EE;
}

/* Banner section with video background */
.banner {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 20%;
    left: 160px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    max-width: 600px;
}

/* Main content area */
.content {
    padding: 40px;
    padding-left: 160px;
    padding-right: 160px;
    font-size: 24px;
    text-align: left;
}

/* Photo gallery styles */
.photos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.photo-block {
    width: 80%;
    //max-width: 100%;
    //height: 500px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    cursor: pointer;
}

.photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.photo-block:hover .photo-overlay {
    opacity: 1;
}

.photo-block:hover img {
    transform: scale(1.05);
}

html, body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Offers stacking animation section */
.offers {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

.offers__wrapper {
    position: relative;
    width: 800px;
    height: 600px;
    transform-style: preserve-3d;
}

.offers-block {
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(300px);
    backface-visibility: hidden;
    overflow-y: auto;
}

/* Initial stacked positions for each block */
.offers-block:nth-child(1) {
    transform: translateY(300px) rotate(-3deg);
}

.offers-block:nth-child(2) {
    transform: translateY(300px) rotate(2deg);
}

.offers-block:nth-child(3) {
    transform: translateY(300px) rotate(-1deg);
}

.offers-block:nth-child(4) {
    transform: translateY(300px) rotate(1.5deg);
}

.offers-block:nth-child(5) {
    transform: translateY(300px) rotate(-2deg);
}

/* Update the stacked positions */
.offers-block.stacked-1 {
    transform: translateY(0) rotate(-3deg) !important;
}

.offers-block.stacked-2 {
    transform: translateY(0) rotate(2deg) !important;
}

.offers-block.stacked-3 {
    transform: translateY(0) rotate(-1deg) !important;
}

.offers-block.stacked-4 {
    transform: translateY(0) rotate(1.5deg) !important;
}

.offers-block.stacked-5 {
    transform: translateY(0) rotate(-2deg) !important;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding-right: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.navbar li {
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ccc;
}

.navbar a.active {
    border-bottom: 2px solid white;
}

/* Canvas background for animation */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #F4F1EE;
}

/* Battery status widget */
.battery-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.battery-icon {
    display: inline-block;
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-radius: 2px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 4px;
    background-color: white;
    border-radius: 0 2px 2px 0;
}

.battery-level {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: white;
    transition: width 0.3s ease;
}

.charging-icon {
    color: #4CAF50;
}

/* Photo link styling */
.photo-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 80%;
}

/* Learning Outcomes (LO) content styling */
.lo-content {
    padding: 40px;
    max-width: 90%;
    margin: 0 auto;
}

.lo-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.lo-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.lo-section {
    margin-bottom: 60px;
    padding: 30px;
    background: #f4f1ee;
    border-radius: 10px;
}

.lo-section h2 {
    color: #000;
    margin-bottom: 30px;
    font-size: 28px;
}

.lo-description, .lo-evidence, .lo-reflection {
    margin-bottom: 30px;
}

.lo-description h3, .lo-evidence h3, .lo-reflection h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.lo-description p, .lo-reflection p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

/* Evidence buttons styling */
.evidence-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.evidence-btn {
    padding: 12px 24px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.evidence-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

/* PDF button styling */
.pdf-button {
    display: inline-block;
    margin: 4px 8px 4px 0;
    padding: 8px 16px;
    background: #0074d9;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.pdf-button:hover {
    background: #005fa3;
}