* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --white-color: white;
    --black-color: black;
    --background-color: #38bdf8;
    --background-color2: #27ae60;
    --background-color3: rgba(0, 0, 0, 0.85);
    --bg-color4: rgba(0, 0, 0, 0.08);
    --bg-color5: rgba(15, 23, 42, 0.85);
    --color: #0284c7;
    --color2: #555555;
    --color3: #1e8449;
    --color4: #0369a1;
    --color5: #cccccc;
    --bg-contact: black;
}

body.darkmode {
    --white-color: #e5e7eb;
    --black-color: #111827;

    --background-color: #7e00ec;
    --background-color2: #14532d;
    --background-color3: rgb(13, 0, 0);
    --bg-color4: rgba(255, 255, 255, 0.05);
    --bg-color5: rgba(17, 24, 39, 0.95);

    --color: #38bdf8;
    --color2: #0a0a0a;
    --color3: #4ade80;
    --color4: #60a5fa;
    --color5: #303133;
}

/* =========================
   BODY
========================= */

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black-color);
    background-color: var(--white-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* =========================
   THEME SWITCH
========================= */

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 15px;
    right: 25px;
    background-color: var(--white-color);
    border: 1px solid var(--black-color);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1500;
}

#theme-switch:hover {
    box-shadow: 0 4px 14px var(--background-color3);
}

#theme-switch i {
    color: var(--black-color);
    font-size: 18px;
}

#theme-switch i:last-child {
    display: none;
}

.darkmode #theme-switch i:first-child {
    display: none;
}

.darkmode #theme-switch i:last-child {
    display: block;
}

/* =========================
   HEADER
========================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    min-height: 70px;
    box-shadow: 0 2px 10px var(--black-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-title {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 70px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color2);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color);
}

/* =========================
   LOGO
========================= */

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    background: url('gallery/sunset.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white-color);
    margin-bottom: 120px;
}

.hero-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    background-color: var(--white-color);
    color: var(--color);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* =========================
   INFO STRIP
========================= */

.info-strip {
    background: var(--background-color3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: center;
    padding: 1rem 5%;
    gap: 1rem;
}

.info-card {
    min-width: 0;
}

.info-card strong {
    display: block;
    color: var(--background-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.info-card span {
    font-size: 0.9rem;
    color: var(--white-color);
    word-wrap: break-word;
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
    padding: 5rem 0;
    background-color: var(--white-color);
    scroll-margin-top: 120px;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image-box {
    flex: 1;
    min-width: 280px;
}

.about-image-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--background-color3);
    object-fit: cover;
    max-height: 400px;
}

.about-text-box {
    flex: 1.2;
    min-width: 280px;
}

.about-text-box h2 {
    font-size: 2rem;
    color: var(--black-color);
    margin-bottom: 1rem;
}

.about-text-box p {
    color: var(--color2);
    margin-bottom: 1.2rem;
}

/* =========================
   BUTTON
========================= */

.btn-secondary {
    display: inline-block;
    background-color: var(--color);
    color: var(--white-color);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color4);
}

/* =========================
   GALLERY
========================= */

#gallery {
    padding: 5rem 0;
    background-color: var(--white-color);
    border-top: 1px solid var(--white-color);
    border-bottom: 1px solid var(--white-color);
}

.content-section {
    padding: 4rem 0;
    margin-top: 80px;
    scroll-margin-top: 120px;
}

.container,
.container1 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   SECTION HEADERS
========================= */

.section-header,
.section-header1 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2,
.section-header1 h2 {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    width: 100%;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 240px;
    background-color: var(--white-color);
    box-shadow: 0 4px 15px var(--bg-color4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--bg-color4);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--bg-color5) 100%
    );
    color: var(--white-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px var(--bg-color4);
}

.card-tag {
    font-size: 0.7rem;
    background-color: var(--color);
    color: var(--white-color);
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================
   CONTACT
========================= */

.contact-section {
    padding: 4rem 0;
}

.card {
    width: 100%;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--background-color3);
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color5);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color);
}

.submit-btn {
    width: 100%;
    background-color: var(--color);
    color: var(--white-color);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--color4);
}

/* =========================
   MODAL
========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color3);
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    margin: 50px auto 0;
    border-radius: 8px;
    object-fit: contain;
}

#modal-caption {
    text-align: center;
    color: var(--white-color);
    margin: 15px auto 0;
    font-size: 1.1rem;
    max-width: 90%;
    word-wrap: break-word;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--white-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--white-color);
    border-top: 1px solid var(--white-color);
    color: var(--color2);
    font-size: 0.9rem;
}

.footer p {
    word-wrap: break-word;
}

/* =========================================================
   TABLETS
   769px - 1024px
========================================================= */

@media (max-width: 1024px) {

    .main-header {
        padding: 1rem 3%;
    }

    .nav-links {
        gap: 14px;
        margin-right: 60px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 70vh;
        margin-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-container {
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   MOBILE
   768px AND BELOW
========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    .main-header {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 12px 70px 12px 15px;
        min-height: auto;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .site-title {
        font-size: 1rem;
        text-align: center;
        white-space: normal;
    }

    .nav-links {
        width: 100%;
        margin-right: 0;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* THEME BUTTON */

    #theme-switch {
        width: 42px;
        height: 42px;
        top: 12px;
        right: 12px;
    }

    #theme-switch i {
        font-size: 16px;
    }

    /* HERO */

    .hero {
        min-height: 75vh;
        margin-bottom: 50px;
    }

    .hero-overlay {
        padding: 2.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* INFO STRIP */

    .info-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 1rem;
    }

    .info-card strong {
        font-size: 0.75rem;
    }

    .info-card span {
        font-size: 0.8rem;
    }

    /* ABOUT */

    .about-section {
        padding: 3rem 0;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-image-box,
    .about-text-box {
        width: 100%;
        min-width: 0;
    }

    .about-image-box img {
        max-height: 300px;
    }

    .about-text-box h2 {
        font-size: 1.7rem;
    }

    .about-text-box p {
        font-size: 0.95rem;
    }

    /* CONTENT */

    .content-section {
        padding: 3rem 0;
        margin-top: 30px;
    }

    .container,
    .container1 {
        padding: 0 1rem;
    }

    /* SECTION HEADERS */

    .section-header,
    .section-header1 {
        margin-bottom: 2rem;
    }

    .section-header h2,
    .section-header1 h2 {
        font-size: 1.8rem;
    }

    /* GALLERY */

    #gallery {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-card {
        height: 230px;
    }

    /* CONTACT */

    .contact-section {
        padding: 3rem 0;
    }

    .card {
        padding: 1.3rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    /* MODAL */

    .modal {
        padding: 15px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 75vh;
        margin-top: 60px;
    }

    #modal-caption {
        font-size: 0.95rem;
    }

    .close-modal {
        top: 12px;
        right: 18px;
        font-size: 34px;
    }

    /* FOOTER */

    .footer {
        padding: 18px 12px;
        font-size: 0.8rem;
    }
}

/* =========================================================
   SMALL PHONES
   480px AND BELOW
========================================================= */

@media (max-width: 480px) {

    /* HEADER */

    .main-header {
        padding: 10px 55px 10px 10px;
        gap: 8px;
    }

    .header-left {
        gap: 8px;
    }

    .logo {
        width: 34px;
        height: 34px;
    }

    .site-title {
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 6px 12px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    /* THEME */

    #theme-switch {
        width: 38px;
        height: 38px;
        right: 10px;
        top: 10px;
    }

    #theme-switch i {
        font-size: 14px;
    }

    /* HERO */

    .hero {
        min-height: 70vh;
        margin-bottom: 30px;
    }

    .hero-overlay {
        padding: 2rem 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.65rem;
    }

    /* INFO */

    .info-strip {
        padding: 0.8rem;
    }

    .info-card strong {
        font-size: 0.7rem;
    }

    .info-card span {
        font-size: 0.75rem;
    }

    /* ABOUT */

    .about-section {
        padding: 2.5rem 0;
    }

    .about-container {
        padding: 0 0.8rem;
    }

    .about-text-box h2 {
        font-size: 1.5rem;
    }

    .about-text-box p {
        font-size: 0.88rem;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }

    /* SECTIONS */

    .content-section {
        padding: 2.5rem 0;
        margin-top: 20px;
    }

    .container,
    .container1 {
        padding: 0 0.8rem;
    }

    .section-header h2,
    .section-header1 h2 {
        font-size: 1.5rem;
    }

    /* GALLERY */

    #gallery {
        padding: 2.5rem 0;
    }

    .gallery-grid {
        gap: 15px;
    }

    .gallery-card {
        height: 210px;
        border-radius: 10px;
    }

    .card-overlay {
        padding: 12px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-tag {
        font-size: 0.6rem;
        padding: 3px 7px;
    }

    /* CONTACT */

    .contact-section {
        padding: 2.5rem 0;
    }

    .card {
        padding: 1rem;
        border-radius: 10px;
    }

    .form-card {
        gap: 12px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 11px;
    }

    /* MODAL */

    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 70vh;
        margin-top: 60px;
    }

    #modal-caption {
        font-size: 0.85rem;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    /* FOOTER */

    .footer {
        padding: 15px 10px;
        font-size: 0.75rem;
    }
}

/* =========================================================
   VERY SMALL PHONES
   360px AND BELOW
========================================================= */

@media (max-width: 360px) {

    .site-title {
        font-size: 0.78rem;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        gap: 5px 8px;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .section-header h2,
    .section-header1 h2 {
        font-size: 1.3rem;
    }

    .gallery-card {
        height: 190px;
    }

    .card {
        padding: 0.8rem;
    }
}

/* =========================================================
   LANDSCAPE PHONES
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        min-height: 100vh;
    }

    .hero-overlay {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .info-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
========================================================= */

img,
video,
iframe {
    max-width: 100%;
}

input,
textarea,
button,
select {
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}




