@font-face { 
    font-family: "MyCustomFontText"; 
    src: url("../subTitle.otf"); 
}

@font-face { 
    font-family: "MyCustomFont"; 
    src: url("../Title.otf"); 
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color, #222222);
    transition: background-color 0.5s ease;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.title {
    position: absolute;
    width: 100%;
    height: 33.33vh;
    display: flex;
    font-size: 33.33vh;
    color: white;
    text-transform: uppercase;
    font-family: 'MyCustomFont', sans-serif;
    font-weight: 500;
    transform: scaleX(1.3);
    transition: transform 1.5s ease-out, left 1.5s ease-out, opacity 1.5s ease-out, -webkit-text-stroke 0.5s ease-out;
    opacity: 0;
    white-space: nowrap;
    word-spacing: 20vw;
}

.top-left {
    top: 0;
    left: -100%;
}

.middle {
    top: 33.33vh;
    left: 100%;
    transform: translateX(-25%) scaleX(1.3);
}

.bottom-left {
    bottom: 0;
    left: -100%;
}

.logo {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    height: 70vh; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
    max-width: 25vw; /* Ensure the width does not exceed a certain limit */
    border-top: 10px solid #5b4b49;
    border-bottom: 10px solid #5b4b49;
    opacity: 0;
    object-fit: cover; /* Ensures the image covers the container */
    object-position: center; /* Centers the image */
}

.logo.fade-in {
    opacity: 1;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px white;
}

.enquire-circle {
    position: absolute;
    bottom: 6vw;
    right: 18vw;
    background-color: #c6bbba;
    color: #222222;
    font-family: 'MyCustomFont', sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    transition: transform 1.5s ease-out, left 1.5s ease-out, opacity 1.5s ease-out, -webkit-text-stroke 0.5s ease-out;
}

.enquire-circle:hover {
    background-color: #5b4b49;
    color: white;
}

.rectangle {
    position: absolute;
    top: 4vw; /* Adjust the top position as needed */
    right: 16vw; /* Adjust the right position as needed */
    color: white;
    width: 22vw; /* Adjust the width as needed */
    height: 25vh; /* Adjust the height as needed */
    border-radius: 10px; /* Optional: for rounded corners */
    font-family: 'MyCustomFont', sans-serif;
    display: flex; /* Enables flexbox */
    align-items: flex-end; /* Aligns items at the bottom */
    padding: 10px; /* Optional: adds padding inside the div */
    box-sizing: border-box; /* Ensures padding is included in the width and height */
    overflow: hidden; /* Ensures the pseudo-element does not overflow */
    transition: transform 1.5s ease-out, left 1.5s ease-out, opacity 1.5s ease-out, -webkit-text-stroke 0.5s ease-out;
}

.rectangle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(198, 187, 186, 0.8) 0%, transparent 100%);
    border-radius: 10px; /* Match the border-radius of the parent */
    transition: transform 0.5s ease-out;
    transform: translateY(100%);
}

.rectangle:hover::before {
    transform: translateY(0);
}

/* Glitch effect */
@keyframes glitch {
    0% {
        transform: translate(0);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, -2px);
        opacity: 0.8;
        color: #ff0000;
    }
    20% {
        transform: translate(2px, 2px);
        opacity: 0.8;
        color: #00ff00;
    }
    30% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        color: #0000ff;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 0.8;
        color: #ff0000;
    }
    50% {
        transform: translate(-2px, -2px);
        opacity: 1;
        color: white;
    }
    60% {
        transform: translate(2px, 2px);
        opacity: 0.8;
        color: #00ff00;
    }
    70% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        color: #0000ff;
    }
    80% {
        transform: translate(2px, -2px);
        opacity: 0.8;
        color: #ff0000;
    }
    90% {
        transform: translate(-2px, -2px);
        opacity: 1;
        color: white;
    }
    100% {
        transform: translate(0);
        opacity: 1;
    }
}

.glitch {
    animation: glitch 0.5s infinite;
}

.info-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20vh;
    width: 80vw;
    height: auto;
}

.parallax-container {
    position: relative;
    overflow: hidden;
    height: 30vh;
    width: 100%;
}

.parallax-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.info-area, .info-area2, .info-area3 {
    padding: 20px;
    background-color: #222222;
    color: white;
    width: 100vw;
}



.info-area2 h1 {
    font-family: 'MyCustomFontText', sans-serif;
    font-size: 5vw; /* Adjust the size as needed */
    color: #c6bbba;
    text-align: center;

}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    margin-left: 100px;
    margin-right: 100px;
}

.grid-header {
    font-weight: bold;
    text-align: center;
    background-color: #c6bbba;
    color: #222222;
    padding: 10px;
    border-radius: 5px;
}

.grid-item {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.sources-explanation {
    margin-top: 20px;
    margin-left: 100px;
    padding: 20px;
    background-color: #222222;
    border-radius: 10px;
    color: white;
    font-size: 0.5vw;
}

.info-area h1,
.info-area2 h1,
.info-area3 h1 {
    font-family: 'MyCustomFontText', sans-serif;
    font-size: 5vw; /* Adjust the size as needed */
    color: #c6bbba;
    text-align: center;
}

.about-content {
    display: flex;
    justify-content: space-between;
    padding: 5vw;
    font-family: 'Playfair Display', serif;
    font-size: 1.5vw;
}

.spaced-paragraph {
    margin-right: 40px; /* Adjust the value as needed */
    background-color: #1f1f1f;
    padding: 25px;
    border-radius: 10px;
}

/* Optional: Remove the right margin from the last paragraph */
.about-content .spaced-paragraph:last-child {
    margin-right: 0;
}

@media (max-width: 1100px) {
    .rectangle {
        display: none;
    }
}


.contact-button {
    display: block;
    width: 100vw;
    padding: 15px;
    margin-top: 20px;
    font-family: 'MyCustomFont', sans-serif;
    font-size: 2vw;
    font-weight: 500;
    color: white;
    background-color: var(--bg-color, #222222);
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #5b4b49;
}

@media (max-width: 700px) {
    
    .grid-item, .grid-header {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 5px; /* Reduce padding to fit content better */
    }
    
    .sources-grid-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;
    }

    .info-area, .info-area2, .info-area3, .contact-button {
        padding: 0px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
