/* Reset default browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global settings */
body {
    background-color: #36926c; 
    color: #ffffff; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6;
    padding: 20px;
}

/* Main container */
.container {
    max-width: 800px;
    margin: 0 auto; 
    padding-top: 40px; 
}

/* H1 Header */
header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.3;
}

hr {
    border: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4); 
    margin: 40px 0; 
}

/* Centered section title */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* Skills containers */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

/* H3 Header */
.skill-box h3 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e6f9f2;
}

/* Normal text */
.skill-box p {
    font-size: 1.1rem;
    color: #f0f0f0; 
}

/* Bold style */
.skill-box p strong {
    color: #e6f9f2; 
    font-weight: 700; 
}

/* RWD: Fit for mobiles (screens less than 600px) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.6rem; /* smaller title on mobiles */
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* YT container with 16:9 proportions */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proportions 16:9 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    margin-top: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* audio container */
.audio-tracks-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

/* text + audio player */
.audio-item {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
}

/* Song description */
.audio-track-title {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Audio Player */
.audio-item audio {
    width: 100%; 
    display: block;
}

/* Style for links */
a {
    color: #d1f0e4; 
    text-decoration: underline; 
    font-weight: bold;
    transition: color 0.2s ease; 
}

/* mouseover */
a:hover {
    color: #ffffff; 
}

/* Back Button */
.back-btn {
    display: inline-block;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
    background-color: #d1f0e4;
    color: #36926c; 
}

/* Creative Writing subpage formating */
.story-content h2 {
    font-size: 1.6rem;
    color: #d1f0e4;
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #d1f0e4;
    color: #36926c;
    border: none;
    outline: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    transform: scale(1.1); 
    background-color: #ffffff;
}



.inspiration-gallery {
    margin-top: 40px;
    margin-bottom: 60px; 
}

.gallery-title {
    font-size: 1.6rem;
    color: #d1f0e4;
    margin-bottom: 10px;
}

.gallery-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Gallery container */
.gallery-grid {
    width: 100%;
    text-align: center; 
    letter-spacing: -4px; 
}

/* Image + description */
.gallery-item {
    display: inline-block;
    vertical-align: top;
    width: 31%; 
    margin: 1%;
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 10px;
    border-radius: 6px;
    letter-spacing: normal; 
    text-align: left; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Gallery Image */
.gallery-item img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
}

/* Image description */
.gallery-caption {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 0 !important; 
}

/* RWD: Gallery resize for tablets */
@media (max-width: 768px) {
    .gallery-item {
        width: 48%; 
        margin: 1%;
    }
}

/* RWD: Gallery resize for mobiles */
@media (max-width: 480px) {
    .gallery-item {
        width: 98%; 
        margin: 1% 0;
    }
    .gallery-item img {
        height: auto; 
        max-height: 300px;
    }
}

.gallery-item img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.gallery-item img:hover {
    opacity: 0.9; 
}

/* Modal background */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9); 
    cursor: zoom-out; 
}

/* Zoomed in image */
.modal-content {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    max-width: 90%; 
    max-height: 85%; 
    object-fit: contain; 
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    
    animation: zoomIn 0.25s ease-out;
}

/* Close (x) button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.modal-close:hover {
    color: #d1f0e4;
}

/* Zoom in animation */
@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* RWD: Resize image for mobiles */
@media (max-width: 480px) {
    .modal-content {
        max-width: 95%;
        max-height: 75%;
    }
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

/* --- Tools and programs section --- */
.tools-section {
    margin-bottom: 40px;
    text-align: center;
}

.tools-section h3 {
    font-size: 1.2rem;
    color: #d1f0e4;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tool-card img {
    width: 24px;
    height: 24px;
    object-fit: contain; 
    display: block;
}

.tool-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* --- Panels grid --- */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px; 
    margin-bottom: 35px;
}

.panel-card {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 30px; 
    min-height: 320px; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.panel-card:hover {
    transform: translateY(-4px);
    border-color: #d1f0e4;
    background-color: rgba(255, 255, 255, 0.1);
}

.panel-card.active {
    border-color: #d1f0e4;
    background-color: rgba(209, 240, 228, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.panel-card h4 {
    font-size: 1.4rem;
    color: #d1f0e4;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.panel-card p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6; 
    margin-bottom: 20px;
    text-align: justify; 
}

/* "see more" button" */
.see-more-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #d1f0e4;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.see-more-btn:hover {
    color: #ffffff;
}

/* --- detailed text container --- */
.details-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.details-container.open {
    max-height: 2000px; 
    opacity: 1;
    margin-top: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-content {
    display: none;
}

.detail-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.detail-header h3 {
    font-size: 1.4rem;
    color: #d1f0e4;
}

.close-detail-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.close-detail-btn:hover {
    color: #d1f0e4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Switch to one column on mobiles */
@media (max-width: 900px) {
    .panels-grid {
        grid-template-columns: 1fr;
    }
    .panel-card {
        min-height: auto;
    }
}