html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://static1.detourista.com/wp/wp-content/uploads/Unorganized/Bohol-Attractions-Featured-Image-1200x628.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    margin: 0 0 15px 0;
}

p {
    margin-bottom: 1.5rem;
}


.hero {
    background-image: url('https://static1.detourista.com/wp/wp-content/uploads/Unorganized/Cebu-Attractions-Featured-Image-1200x628.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 20px;
    width: 90%;
}

.hero-content h1 {
    white-space: nowrap;
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #00d2d3;
    display: inline-block;
    padding-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px black;
}

.scroll-btn {
    background-color: #00d2d3;
    color: #222;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
}

.scroll-btn:hover {
    transform: scale(1.1);
    background-color: white;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}


.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card.expanded {
    grid-column: 1 / -1;
}

.card-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.header-text {
    position: relative;
    z-index: 2;
    color: white;
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 0.9rem;
    color: #ddd;
}

.card-header button {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.card-header button:hover {
    background: white;
    color: #333;
}


.card-content {
    display: none;
    padding: 30px;
    border-top: 5px solid #00d2d3;
}

.card-content.show {
    display: block;
    animation: fadeIn 0.5s ease;
}


.journal-img {
    display: block;
    margin: 15px auto;
    width: auto; 
    max-width: 100%;
    max-height: 450px; 
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.journal-img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-grid .journal-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.close-btn {
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #555;
}


.reflection-section {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.portfolio-card {
    background: #222; 
    padding: 10px;
    min-height: 400px; 
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    border-radius: 8px;
    object-fit: cover;
    height: 350px; 
    cursor: pointer; 
    transition: 0.3s;
}

.mySlides img:hover {
    opacity: 0.8;
}


.slide-caption {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.5);
    pointer-events: none; 
}


.dot {
    cursor: pointer;
    height: 30px;
    width: 30px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.6s ease;
    color: #333;
}

.active, .dot:hover {
    background-color: #00d2d3;
    color: white;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}


.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}


.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}


@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}


.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    .hero-content h1 { white-space: normal; font-size: 2rem; }
    .modal-content { width: 100%; }
}