/* Custom Fonts */
@font-face {
    font-family: 'CMereSansExtraBold';
    src: url('ffont/NSans-ExtraBold.woff2') format('woff2'),
        url('font/NSans-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'CMereScript';
    src: url('font/TRJN-Display.woff2') format('woff2'),
        url('font/TRJN-Display.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'CMereScriptItalic';
    src: url('font/TRJN-Italic-Display.woff2') format('woff2'),
        url('font/TRJN-Italic-Display.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
}

/* Root Variables */
:root {
    --black: #000;
    --white: #fff;
    --accent: #e60012;
}

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

html,
body {
    height: 100%;
    margin: 0;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-family: 'CMereScript', sans-serif;
    /* Default body font */
}

/* Header Styles */
header {
    height: 90vh;
    width: 100%;
    text-align: left;
    padding: 2rem 1rem;
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-family: 'CMereSansExtraBold', sans-serif;
    font-size: 5rem;
    text-transform: uppercase;
    line-height: 0.9;
    text-align: left;
    margin-bottom: 0.5rem;
}

header p {
    font-family: 'CMereScript', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

/* Project Section */
.project {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
}

.project img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
}

/* Description Section */
.description {
    padding: 1rem;
    max-width: 60%;
    margin: 0 auto;
    padding-top: 10vh;
    padding-bottom: 10vh;
    text-align: left;
}

.description p {
    font-family: 'CMereScript', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: var(--black);
    color: var(--white);
    text-align: left;
    padding: 2rem 1rem;
    margin: 1rem;
}

.contact a {
    color: var(--white);
    text-decoration: underline;
}

.blankspace {
    padding: 0.5rem;
}

/* Footer */
footer.contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--black);
    color: var(--white);
    padding: 2rem;
}
footer p {
    font-family: 'CMereScript', sans-serif;
    font-size: 1.5rem;
}

.circle {
    width: 50px;
    height: 50px;
    background-color: lightgrey;
    color: var(--black);
    font-family: 'CMereSansExtraBold', sans-serif;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

footer.contact .text {
    flex: 1;
}

footer.contact .text p {
    margin: 0;
    line-height: 1.5;
}

/* Carousel Style */
/* Carousel container */
.carousel {
    position: relative; /* Position relative for absolute positioning of arrows */
    display: flex;
    align-items: center; /* Align items vertically */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* Arrow container (shared styles) */
.carousel-arrow {
    position: absolute;
    top: 50%; /* Align vertically to the center */
    transform: translateY(-50%); /* Center the arrow vertically */
    background-color: white;
    border: 1px solid black;
    border-radius: 50%;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensure it appears above the images */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition for hover effect */
    cursor: pointer;
}

/* Left arrow */
.carousel-arrow.left-arrow {
    left: 20px; /* Position 20px from the left */
}

/* Right arrow */
.carousel-arrow.right-arrow {
    right: 20px; /* Position 20px from the right */
}

/* Arrow image */
.carousel-arrow img {
    width: 20px; /* Adjust arrow size */
    height: auto;
}

/* Show arrows on hover */
.carousel:hover .carousel-arrow {
    opacity: 1; /* Make the arrows visible */
}

/* Responsive Header Title for Mobile */
@media (max-width: 600px) {
    header {
        text-align: center; /* Center the text horizontally */
        justify-content: center; /* Center the content vertically */
    }

    header h1 {
        font-size: clamp(2rem, 10vw, 4rem); /* Dynamically adjust font size */
        line-height: 1.2; /* Adjust line height for better spacing */
        text-align: center; /* Center the title text */
        margin-bottom: 1rem; /* Add spacing below the title */
    }

    header p {
        font-size: 1rem; /* Adjust paragraph font size for smaller screens */
        text-align: center; /* Center the paragraph text */
    }

    /* Description Section */
    .description {
        padding: 0.2rem;
        max-width: 90%;
        margin: 0 auto;
        padding-top: 10vh;
        padding-bottom: 10vh;
        text-align: left;
    }

    .description p {
        font-family: 'CMereScript', sans-serif;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}