/* =========================
    Background Images START
    ======================== */

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .bg-home {
        background-image: url(../img/changanzs-natural-scenery-805679.jpg);
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    .bg-sub {
        background-image: url(../img/12019-iceland-2608985.jpg);
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

/* =======================
    Background Images END
    ===================== */

/* ======================
    Font Styles START
    ===================== */

/* Import font styles from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Prata&display=swap');

/* Font Classes for Website */
.prata-regular {
  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* ======================
    Font Styles END
    ===================== */

/* ======================
    Link Styles START
    ===================== */

    a {
        text-decoration: none;
        color: #0096c0;
    }

    a:hover {
        color: #FFFFFF;
    }

/* ======================
    Link Styles END
    ===================== */

/* ===================================
    Heading and Paragraph Styles START
    ================================== */

    h1 {font-size: 6rem;}
    h2 {font-size: 5rem;}
    h3 {font-size: 4rem;}
    h4 {font-size: 3rem;}
    h5 {font-size: 2rem;}
    h6 {font-size: 1.6rem;}

    h1, h2, h3, h4, h5, h6 {
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        padding: 0;
        margin: 0;
    }

    p {
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem;
        line-height: 1.75;
        padding: 0;
        margin: 0 0 20px 0;
    }

    hr {
        border-top: 1px solid #313739;
    }

  /* ===================================
    Heading and Paragraph Styles END
    ================================== */
    
/* =====================
    Button Styles START
    =================== */

    .action-btn {
        background-color: #0096c0;
        box-shadow: 0px 0px 3px 3px rgb(0, 0, 0, 0.2);
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
        text-decoration: none;
        font-size: 1.2rem;
        color: #FFFFFF;
        padding: 7px 17px 7px 17px;
        border: none;
        border-radius: 7px;
        cursor: pointer; 
    }

    .action-btn:hover {
        background-color: #313739;
        color: #FFFFFF;
    }

    /* =====================
    Button Styles END
    =================== */

    /* =====================
    Navbar Styles START
    =================== */

    .nav-container {
        background-color: #313739;
        box-shadow: 0px 0px 10px 10px rgb(178, 163, 1, 0.4);
        font-size: 1.2rem;
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
        height: 60px;
        width: 100%;
        position: sticky;
        top: 0;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 90%;
        max-width: 1200px;
        margin: auto;
    }

    .navbar ul {
        display: flex;
    }

    .nav-container .navbar {
        justify-content: space-between;
    }

    .navbar ul li {
        list-style-type: none;
    }

    .nav-container .navbar ul li {
        padding: 0px;
        margin: 0 20px;
    }

    .nav-container h6 {
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    .navbar h2 {
        padding: 0px;
        margin: 0;
    }

    .navbar a {
        color: #c29100;
        text-decoration: none;
    }

    .navbar a:hover {
        color: #FFFFFF;
    }

    @media screen and (min-width: 390px) and (max-width: 787px) {
        .nav-container {
            height: auto;
        }

        .nav-container .navbar {
            flex-direction: column;
        }
    }

    /* =====================
    Navbar Styles END
    =================== */

    /* =========================
    Page Containers Styles START
    ============================ */

    .homepage-container {
        background-color:rgb(255, 255, 255, 0.0);
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    .homepage-container h1 {
        margin: 150px 0 -10px 0;
    }

    .subpage-container {
        background-color:rgb(255, 255, 255, 0.5);
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        flex-grow: 1;
    }

    .grid-container {
        display: flex;
        justify-content: center;
    }

    .grid-cards {
        display: grid;
        width: 100%;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .grid-card {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(0, 0, 0, 0.5);
        color: #FFFFFF;
        height: 100px;
        border-radius: 10px;
        font-size: 1.2rem;
    }

    .grid-cards a:hover {
        background-color: rgb(0, 0, 0, 0.8);
        border-radius: 10px;
        color: #FFFFFF;
    }

    /* =========================
    Page Containers Styles END
    ============================ */

    /* =========================
    Subpage Content Styles START
    ============================ */

    .subpage-content {
        width: 80%;
        height: 100%;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    .photo {
        width: 95%;
        border-radius: 15px;
    }

    .subpage-content details {
        background: #f9f9f9;
        border: 1px solid #dddddd;
        border-radius: 10px;
        margin-bottom: 5px;
    }

    .subpage-content summary {
        padding: 20px;
        font-weight: bold;
        font-size: 1.1rem;
        color: #333333;
        cursor: pointer;
        outline: none;
        list-style-type: '😎 ';
        align-items: center;
        text-align: center;
    }

    .subpage-content summary:hover {
        background-color: #f0f0f0;
        border-radius: 10px;
    }

    .subpage-content details p {
        padding: 20px;
        margin: 10px;
        line-height: 1.5;
        color: #333333;
    }

    .subpage-content h2 {
        font-size: 1.5rem;
        color: #333333;
        padding-bottom: 5px;
        margin-top: 1.5rem;
    }

    .subpage-content ul {
        list-style: none;
        padding-left: 0;
    }

    .subpage-content li {
        background-color: rgb(255, 255, 255, 0.5);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .subpage-content li a {
        font-weight: bold;
        font-size: 1.2rem;
        color: red;
        text-decoration: none;
    }

    .subpage-content li a:hover {
        text-decoration: underline;
        color: #333333;
    }

    /* =========================
    Subpage Content Styles END
    ============================ */

    /* =========================
    Contact Form Styles START
    ============================ */

    form {
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.75;
    }

    input[type=text], select {
        width: 100%;
        padding: 20px;
        margin: 10px 0px 20px 0px;
        display:inline-block;
        border: 1px solid #333333;
        border-radius: 10px;
        box-sizing: border-box;
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem;
        line-height: 1.75;
    }

    input[type=email] {
        width: 100%;
        padding: 20px;
        margin: 10px 0px 20px 0px;
        display:inline-block;
        border: 1px solid #333333;
        border-radius: 10px;
        box-sizing: border-box;
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem;
        line-height: 1.75;
    }

    textarea {
        width: 100%;
        height: 150px;
        padding: 20px;
        margin: 10px 0px 20px 0px;
        box-sizing: border-box;
        
        border: 1px solid #333333;
        border-radius: 10px;
        background-color: #f8f8f8;

        resize: none;

        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1rem;
        line-height: 1.75;
    }

    input[type=submit] {
        width: 50%;
        background-color: #0096c0;
        box-shadow: 0px 0px 3px 3px rgb(0, 0, 0, 0.2);
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
        text-decoration: none;
        font-size: 1.2rem;
        color: #FFFFFF;
        padding: 7px 17px 7px 17px;
        border: none;
        border-radius: 7px;
        cursor: pointer; 
    }

    input[type=submit]:hover {
        background-color: #f5cac3;
        color: #FFFFFF;
    }
    

    /* =========================
    Contact Form Styles END
    ============================ */

    /* =========================
    Footer Styles START
    ============================ */

    .footer-container {
        background-color: rgb(0, 0, 0, 0.6);
        height: 20px;
        width: 100%;
        padding: 20px 0px 10px 0px;
    }

    .footer-content {
        text-align: center;
        color: #FFFFFF;
        font-size: 1.0rem;
        font-family: "Prata", serif;
        font-weight: 400;
        font-style: normal;
    }

    /* =========================
    Footer Styles END
    ============================ */

    /* =========================================
   Global & Page Styles (Core Setup) START
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 { margin-bottom: 0.5rem; color: #1a1a1a; }
header p { color: #666; font-size: 1.1rem; }

    /* =========================================
   Global & Page Styles (Core Setup) END
   ========================================= */

/* =========================================
   CSS Grid Container Styles (Responsiveness) START
   ========================================= */
.grid-container {
    display: grid;
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto; /* This centers the grid horizontally */
    grid-gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 2rem; /* Adds some breathing room on the sides for mobile */
}
/* =========================================
   CSS Grid Container Styles (Responsiveness) END
   ========================================= */

/* =========================================
   Card Flip Mechanics (The Core Logic) START
   ========================================= */

/* The outer wrapper sets up the 3D space */
.card-wrapper {
    background-color: transparent;
    height: 350px; 
    perspective: 1000px; 
}

/* This is the container that *actually rotates* */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Trigger the rotation on hover of the parent */
.card-wrapper:hover .card-inner {
    transform: rotateY(180deg); 
}


.card-front, .card-back {
    position: absolute; 
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- Front Face Styles --- */
.card-front {
    background-color: #0096c0; 
    color: white;
}

.card-front h2 {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* --- Back Face Styles --- */
.card-back {
    background-color: #313739; 
    color: white;
    transform: rotateY(180deg); 
}

.card-back h3 { margin-bottom: 1rem; color: #c29100; /* Gold accent */ }
.card-back p { font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   Card Flip Mechanics (The Core Logic) END
   ========================================= */