@import url('reset.css');
@import url('menu.css');
@import url('button.css');
@import url('footer.css');



h1 {
    font-family: 'Caveat Brush', cursive;
    font-size: 81px;
}

h2 {
    font-family: 'Caveat Brush', cursive;
    font-size: 81px;
}

h3{
    font-size: 40px;
}

body {
    background-color: #0b0c10;
    color: #ffffff;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}







/* --- Hero Section --- */
/* --- Fix Hero Section --- */
.hero {
    position: relative;
    width: 100vw;  /* Full screen width */
    height: 100vh; /* Full screen height */
    background-image: url("../images/home_heroimage1.webp"); /* Use image as background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center;
}

/* Remove the <img> tag’s styling since we no longer need it */
.hero img {
    display: none;
}


.hero-content {
    position: absolute;
    top: 70%;
    left: 60%;
    transform: translate(-20%, -60%);
    text-align: center;
    color: white;
    max-width: 100%;
    padding: 4rem;
}


.hero h1 {
    font-family: 'Caveat Brush', cursive;
    font-size: 81px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;

}



/* Home Film Container (for desktop/tablet) */
.home_film_section {
    background-color: black;
} 

.home_film_section h1{
text-align: center;
}
.home_film_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop/tablet */
    gap: 20px; /* Space between the columns */
    padding: 3rem;
    
}

/* Each film item styling */
.home_film_item img {
    width: 100%; /* Ensure the images fill the container */
    height: auto; /* Keep the aspect ratio of the images */
}

.home_film_item img {
    transition: transform 0.3s ease;
}

.home_film_item:hover img {
    transform: scale(1.1); /* Scale the image on hover */
}


.home_film_item h3 {
    text-align: center; /* Center the text */
    margin-top: 10px; /* Space between image and text */
}
 
.home_film_btn{
    display: flex;
    align-items: center;
    justify-content: center;
}

.film-title-link {
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem; /* Match h3 size */
    font-weight: bold;
}

.film-title-link:hover {
    color: #ff6600; /* Change color on hover */
}


html {
    scroll-behavior: smooth;
}

.film_info1 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 3s ease-out, transform 3s ease-out;
}

.film_info1.visible {
    opacity: 1;
    transform: translateY(0);
}

.film_info2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 3s ease-out, transform 3s ease-out;
}

.film_info2.visible {
    opacity: 1;
    transform: translateY(0);
}




/* Walking Totoro Image */

.totoro-container {
    display: flex;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    width: 100vw;
    padding-top: 2rem;
}

.walking-totoro {
    width: auto;
    height: 40vh;
    animation: totoro-scroll 10s linear infinite;
}

@keyframes totoro-scroll {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}


/* --- Home About Section --- */
.tribute {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background-color: #0394C0;
}

.tribute-img {
    width: 50%;
    border-radius: 10px;
}

.tribute-content {
    width: 45%;
}

.about_hero img{
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.about_hero_content {
    position: absolute;
    top: 70%;
    left: 15%;
    transform: translate(-20%, -60%);
    text-align: left;
    color: white;
    max-width: 35%;
    padding: 0px;
}


.about_hero h1 {
    font-family: 'Caveat Brush', cursive;
    font-size: 81px;
}

.about_hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hayao Miyazaki Section */
.Hayao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 50px;
    gap: 40px;
    background-color: #111;
}

.history-img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.history-content {
    max-width: 600px;
}

.mononoke-img {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    border-radius: 10px;
}
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(6deg); }
    50% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.mononoke-container {
    display: inline-block; 
    animation: shake 1.5s infinite ease-in-out;
}

/* Call-to-Action Section */
.cta {
    background-color: #4a90b6; /* Blue background */
    color: white;
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: center; /* Space between heading and text */
    padding: 80px 80px;
}

.cta h1 {
    font-size: 81px; /* Bigger heading */
    font-family: 'Caveat Brush', cursive;
    flex: 1; /* Take up half of the space */
    align-items: center;
    justify-content: center;

}

.cta-content {
    flex: 1; /* Take up half of the space */
    display: flex;
    flex-direction: column;
    align-items: left; /* Align text to the left */
    gap: 20px; /* Space between paragraph and button */
    padding-left: 3rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 500px;
}






/* General Styling */
body {
    background: linear-gradient(to bottom, #0f3b64, #62bbf5);
    color: white;
    font-family: 'Caveat Brush', cursive;
    margin: 0;
    padding: 0 ;
}

/* Page Title */

.film-section h1{ 
    text-align: center;
    margin-top: 10rem ;

}

.film-container h1 {
    text-align: left;
    font-size: clamp(81px);
    margin-top: 50px;
}

.film-container h2 {
    text-align: right;
    font-size: clamp(81px);
    margin-top: 50px;
}

.film-container h3{
    font-size:clamp(40px);
}



.film{
    /* turns on CSS Grid */
    display: grid;
    height: 61vh;
    width: 100vw;
    padding: 3rem;
   
    /* Set up grid track template here */
    grid-template-columns: repeat(3, 1fr);



}

/* Centered Filmstrip */
.film_img{
    grid-column-start: 2; /* Always in the center */
    justify-content: center;
    align-content: center;


}

.film_img img{
    width: 100vw;
    object-fit: cover;
    max-width: 475px;
    border-radius: 10px;
}

/* Alternating Text Placement */
.film_info1 {
    grid-column-start: 3; 
    grid-row-start: 1;
   
    text-align: left;
    margin-left: 2rem;
    word-wrap: break-word;

}

.film_info2 {
    grid-column-start: 1; /* Even films: Text on the left */
    grid-row-start: 1;
    font-size-adjust: initial;
    text-align: right;
    margin-right: 2rem;
    word-wrap: break-word;

}



.film-bg {
    width: 100vw;
    height:300vh; /* Full screen height */
    background: url('../images/film_totoro_grass.jpg') no-repeat center center;
    background-size: cover; /* Ensures it covers the whole screen */
}

/* Hero Section */

.contact_hero{
    background-image: url(../images/contact_heroimage1.jpg);
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    padding:2rem
}

.hero-text h1 {
    
    border-radius: 10px;
    padding-top: 40rem;
    text-align: center;
    justify-content: center;
}

.hero-text p{
    text-align: center;
    justify-content: center;

}

/* Contact Form Section */
.contact-form {
    text-align: center;
    padding: 5rem;
    background-color: black;
}

form {
    width: 100%;
    height: 80%;
    text-align:left;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    padding-top: 8rem;
    


}

.form-group {
    width: 100%;
    margin-bottom: 15px;

}

input, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
 
    color: white;
}
 .custom-divider{
    color: white;
 }




/* Button styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e91e63;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

.btn:hover {
    background: #9b1441;
}




@media (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    .container {
        width: 90%; /* Reduce width to fit better on tablets */
        margin: 0 auto;
    }

    h1 {
        font-size: 5rem; /* Reduce heading size */
    }

    .film {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two columns */
        align-items: center;
    }

    .film_img img{
        width: 50vw;
    
    }


    
    
}



    /* --- Responsive Design --- */
@media (max-width: 768px) {

    

    .cta {
        flex-direction: column;
        text-align: center;
    }

    .cta h1 {
        text-align: center;
    }

    .cta-content {
        align-items: center;
        text-align: center;
    }

    /* Logo Styling */
    .logo {
        max-height: 8rem;
        align-items: flex-start;
    }

    /* General Menu Styling */
    .menu .menuWrap {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 100;
    }

    /* Hide default checkbox */
    .toggle {
        width: 60px;
        height: 60px;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

    /* Hamburger Icon */
    .hamburger {
        width: 60px;
        height: 60px;
        background: black;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border-radius: 5px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Hamburger Lines */
    .hamburger > div {
        position: relative;
        width: 30px;
        height: 3px;
        background-color: white;
        transition: all 0.4s ease;
    }

    .hamburger > div::before,
    .hamburger > div::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.4s ease;
    }

    .hamburger > div::before {
        top: -10px;
    }

    .hamburger > div::after {
        top: 10px;
    }

    /* When checked, animate into "X" */
    .toggle:checked + .hamburger > div {
        transform: rotate(45deg);
    }

    .toggle:checked + .hamburger > div::before {
        top: 0;
        transform: rotate(90deg);
    }

    .toggle:checked + .hamburger > div::after {
        top: 0;
        transform: rotate(90deg);
    }

    /* Dropdown Menu */
    .menu {
        position: absolute;
        top: 2.7rem; /* Position under hamburger */
        right: 5rem;
        background: rgba(224, 224, 224, 0);
        width: 150px;
        border-radius: 5px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    /* Show dropdown when checked */
    .toggle:checked ~ .menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .logo{
        z-index: 10000;
    }

    /* Menu Items */
    .menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .menu ul li {
        padding: 15px;
        display: flex;
        flex-direction: row;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    .menu ul li:last-child {
        border-bottom: none;
    }

    .menu ul li a {
        text-decoration: none;
        color: white;
        font-size: 18px;
        display: flex;
        flex-direction: row;
        transition: background 0.3s ease;
    }

    .menu ul li a:hover {
        background: var(--primaryNeutral);
    }

    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;

    }


    .hero-content {
        position: static;  /* Remove absolute positioning */
        transform: none;   /* Reset transformation */
        text-align: center;
        padding: 2rem; /* Adjust padding */
        width: 90%;  /* Avoid text touching screen edges */
        margin-top: 400px; /* Adjust this value to move it lower */
    }

    .hero h1 {
        font-size: 3rem; /* Adjust font size for smaller screens */
    }

    .hero p {
        font-size: 16px; 
    }
    .tribute {
        flex-direction: column;
        text-align: center;

    }

    .tribute-content h1 {
        font-size:3rem;

    }

    .tribute-img {
        width: 100%;
    }

    .tribute-content {
        width: 70%;
        margin-left: 30px;
        margin-right: 30px;
        padding-bottom:3rem;
    }

    section ul {
        flex-direction: column;
        
    }

    .home_film_section h1{
        font-size: 4rem;
    }

    .home_film_container {
        grid-template-columns: 1fr; /* 1 column for mobile */
        padding: 1rem; /* Adjust padding for mobile */
    }

    .home_film_item {
        text-align: center; /* Center the text and image on mobile */
        margin-bottom: 20px; /* Add space between each item */
    }

    .home_film_item img {
        width: 100%; /* Ensure images take full width on mobile */
        height: auto; /* Keep aspect ratio */
    }


    .about_hero_content {
        display: flex;
        position: absolute;
        top: 80%;
        flex-direction: column;
        align-items: center; /* Centers content horizontally */
        text-align: center; /* Ensures text is centered */
        max-width: 100%;
        padding-left: 5rem;

    }

    .about_hero_content h1,
    .about_hero_content p {
        text-align: center; /* Ensures text alignment */
    }

    .Hayao {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center everything horizontally */
        text-align: center; /* Ensures text is centered */
        padding: 20px; /* Adds spacing */
    }

    .history-img {
        width: 100%; /* Makes the image responsive */
        max-width: 400px; /* Adjust the size as needed */
        height: auto; /* Keeps aspect ratio */
        margin-bottom: 15px; /* Adds space below the image */
    }

    .history-content {
        max-width: 90%; /* Ensures text doesn't stretch too wide */
    }

    .history-content h1,
    .history-content p {
        text-align: center; /* Centers text */
    }

    .mononoke-container {
        display: flex;
        justify-content: center; /* Centers the Mononoke image */
        margin-top: 20px; /* Adds space above it */
    }

    .mononoke-img {
        max-width: 250px; /* Adjust size as needed */
        width: 100%;
        height: auto;
    }

    .film {
     display: flex;
        height: fit-content;
        flex-direction: column; /* Stack image and text */
        align-items: center;
        text-align: center;

    }

    .film_img img{
        width: 100%;
        max-width: 100%; /* Make images fully responsive */
       
    }

    .film_info1, .film_info2, .film_info1 h1, .film_info2 h2{
        max-width: 100%; /* Adjust text width for better readability */
        padding: 0 15px; /* Add padding for spacing */
        text-align: center;
        
    }

    .film-bg {
        width: 100vw;
        height: 100vh; /* Full screen height */
        background: url('../images/film_totoro_grass.jpg') no-repeat center center;
        background-size: cover; /* Ensures it covers the whole screen */
    }


    /* Hide normal nav and show hamburger */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
    }

    .menu a {
        font-size: 2rem;
        color: white;
        text-decoration: none;
        margin: 20px;
        transition: color 0.3s;
    }

    .menu a:hover {
        color: #ffcc00;
    }

    /* Show the hamburger */
    .hamburger {
        display: flex;
    
    }

    /* Show menu when active */
    #menu-toggle:checked ~ .menu {
        transform: translateY(0);

       ul {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }
    }

    /* Animate hamburger to close (X) */
    #menu-toggle:checked + .hamburger div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked + .hamburger div:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .hamburger div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hide normal menu on mobile */
    nav {
        display: none;
    }
}




    

