/* Font import */
@font-face {
    font-family: 'Former';
    src: url('../assets/fonts/former.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PermanentMarker';
    src: url('../assets/fonts/PermanentMarker-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Former', Arial, sans-serif;
    background-color: #1e1e1e;
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Tiger section styles */
.tiger-section {
    width: 100%;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    margin-top: -20vh;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.tiger-section.visible {
    opacity: 1;
}

.tiger-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.1s ease-out;
}

.tiger-image {
    max-width: 80%;
    max-height: 80vh;
    opacity: 0.5;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tiger-quote {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

.tiger-quote p {
    font-family: 'PermanentMarker', cursive;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    transition: opacity 0.3s ease-out;
    opacity: 0;
}

.tiger-quote.visible p {
    opacity: 1;
}

/* Header styles */
header {
    padding: 20px 20px 0 0;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
}

.contact-button-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-button-container:hover {
    transform: scale(1.05);
}

#contact-button {
    max-width: 150px;
}

/* Main content styles */
main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.content-container {
    max-width: 60%;
    padding-left: 90px;
    padding-top: 180px;
    position: relative;
    z-index: 20;
    transition: transform 0.1s ease-out;
}

.description {
    font-size: 2.5rem;
    line-height: 1.6;
    letter-spacing: 1px;
    font-weight: normal;
    max-width: 100%;
    word-wrap: break-word;
    text-wrap: balance;
    transition: opacity 0.3s ease-out;
}

.image-container {
    max-width: 40%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 50;
}

.oven-lady {
    max-width: 100%;
    max-height: 70vh;
    transition: transform 0.3s ease-out;
    transform-origin: bottom right;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #2a2a2a;
    margin: 10% auto;
    padding: 40px 30px 30px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    font-family: 'PermanentMarker', cursive;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    padding: 5px 10px;
    z-index: 200;
    transition: color 0.3s;
}

.close-button:hover {
    color: white;
}

h2 {
    margin-bottom: 20px;
    font-weight: normal;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'PermanentMarker', cursive;
}

.contact-intro {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #ddd;
    font-family: 'PermanentMarker', cursive;
    font-size: 1.1rem;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-family: 'PermanentMarker', cursive;
}

input, textarea {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 3px;
    font-family: 'PermanentMarker', cursive;
    font-size: 0.9rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'PermanentMarker', cursive;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: normal;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

.submit-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .description {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        position: relative;
        height: 150vh; /* Increased from 100vh to provide more scrollable space */
        display: flex;
        align-items: flex-start; /* Align to top instead of center */
        justify-content: flex-start;
    }
    
    .content-container {
        max-width: 100%;
        padding-left: 0;
        padding-top: 25vh; /* Add significant top padding to push content down */
        margin-bottom: 40px;
        position: relative;
    }
    
    .image-container {
        position: fixed;
        max-width: 60%;
        justify-content: center;
        bottom: 20px;
        right: 20px;
    }
    
    .description {
        font-size: 1.5rem;
    }
    
    .tiger-quote p {
        font-size: 1.8rem;
    }
    
    .tiger-section {
        margin-top: calc(-20vh - 60px); /* Significantly increased negative margin to move it much higher */
        min-height: 80vh; /* Increased height to add more space below */
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 100px; /* Add padding at the bottom for more scrollable space */
    }
    
    .tiger-container {
        height: auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 90%;
    }
    
    #contact-button {
        max-width: 120px;
    }
    
    .description {
        font-size: 1.2rem;
    }
    
    .content-container {
        padding-top: 30vh; /* Even more padding for smaller screens */
    }
    
    .tiger-quote p {
        font-size: 1.4rem;
    }
    
    .tiger-section {
        min-height: 70vh; /* Increased height for smaller screens */
        margin-top: calc(-15vh - 60px); /* Significantly increased negative margin for smaller screens */
        padding-bottom: 150px; /* Even more padding at the bottom for smaller screens */
    }
    
    .image-container {
        max-width: 70%; /* Slightly larger on small screens */
        bottom: 10px; /* Closer to bottom */
    }
    
    main {
        height: 100vh; /* Full height to allow for proper spacing */
    }
}