@import 'styles.css';
@import 'header_footer.css';


/* =============== Hero Section =============== */

#home {
    height: 100vh;  
	background: 
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), /* Black overlay with transparency */
        url('/images/valeaschiopului.jpg'); /* Background image */
	background-size: cover;
    background-position: center;
    color: var(--font-clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
	padding-top: 100px;
}

.hero-content {
    padding: 4rem;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-around;
    width: 100%;
}

.hero-carousel h1 {
    color: var(--font-clr-white);
}

.hero-content-particle {
    height: 450px;
	max-width: 400px;
    text-align: left;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.hero-content-particle-right {
    position: absolute;
    left: 100%; /* Start outside the viewport */
    transition: left 1.5s ease-in-out; /* Smooth transition */
}

.hero-content-particle-right.slide-in {
    left: 62%; /* End position */
}

.hero-content-particle-left {
    position: absolute;
    left: -100%; /* Start outside the viewport */
    transition: left 1.5s ease-in-out; /* Smooth transition */
}

.hero-content-particle-left.slide-in {
    left: 18%; /* End position */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
	margin-bottom: 1rem;
}

.btn-container {
	width: 100%;
	display: flex;
	align-items:flex-start;
	justify-content: left;
}

.carousel, .hero-carousel {
    width: 100%; /* Adjust width as needed */
    overflow: hidden; /* Hide overflowing content */
    position: relative;
}

.hero-carousel-container {
    display: flex; /* Align items horizontally */
    transition: transform 0.5s ease-in-out; /* Smooth swipe animation */
    will-change: transform; /* Optimize animation performance */
}

.hero-carousel-item {
    min-width: 100%; 
    box-sizing: border-box;
    line-height: 1.2;
}
/* =============== Free book Section =============== */

.input-form {
	padding: 0.7em 1em;
	margin: 0;
	border-radius: 5px;
}

#index-about {
    /*height: 100vh; /* Full viewport height */
	min-height: 500px;
    background-attachment: fixed;
	background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), /* Black overlay with transparency */
        url('/images/ID15.png');
	background-size: cover;
    background-position:top;
    
    display: flex;
    flex-direction: row;
    justify-content:space-around; /* Push content to the bottom */
}

#index-about p {
	font-size: 1.4rem;
	line-height: 2rem;
	text-align: justify;
    font-weight: 300;
    color: var(--font-clr-grey);
}

.index-about-box {
    width: 400px; /* Controls the box width */
    margin: 2rem; /* Centers the box and adds vertical spacing */
    padding: 1.5rem;
    text-align: left; /* Center-aligns text */
    background-color: var(--bkgd-clr-white-transp);
}

.index-about-box img {
    display: block; /* Prevent extra space caused by inline images */
    width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains aspect ratio */

}

.hero-content-particle h1 {
	font-size: 40px;
}

/* =============== Testimonials =============== */
.full-width{
    width: 100%;
}

.background_black {
	background: black;
}

#reviews {
    min-height: 100vh; /* Full viewport height */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), /* Black overlay with transparency */
        url('/images/openBook.png'); /* Background image */
    background-size: cover;
    background-position:top;
    
    display: flex;
    flex-direction: row;
    justify-content:space-around; /* Push content to the bottom */
}

.reviews-section {
    width: 400px;
    min-height: 300px;
}

.reviews-section-img {
    width: 400px;
    min-height: 300px;
    background-image: url('/images/Review.jpg');
    background-size: cover;
    background-position:top;
}

#reviews h1 {
	font-size: 1.2rem;
	padding: 1rem 0;
	text-transform: uppercase;
}

#reviews h2 {
	font-size: 2.1rem;
	padding: 1rem 0;
	text-transform: uppercase;
}

#reviews h3 {
	font-size: 1.1rem;
	padding: 1rem 0 2rem 0;
	font-weight: 100;
}

#reviews h4 {
	line-height: 1.4;
}

#reviews p {
	line-height: 3;
	font-size: 0.8rem;
}

#reviews h1, h2, h3, h4, p {
	color: var(--font-clr-white);
}

#reviews h1, h2, h3, h4 {
	text-align: left;
}

.review-section-review {
    background-color: var(--font-clr-grey);
    text-align: left;
	padding: 0 1rem 0 1rem;
	border-radius: 10px;
}

.reviews-section a {
	text-decoration: underline; /* Remove underline (optional) */
	color: var(--font-clr-white);
}

.reviews-section a:hover {
	color: var(--clr-red-btn);
}

.carousel-container {
    display: flex; /* Align items horizontally */
    transition: transform 0.5s ease-in-out; /* Smooth swipe animation */
    will-change: transform; /* Optimize animation performance */
}

.carousel-item {
    min-width: 100%; /* Each item takes up the full width of the carousel */
    box-sizing: border-box;
    padding: 1rem 2rem;
    text-align: left;
    font-size: 1rem;
    color: var(--font-clr-white);
	line-height: 1.4;
}



/* Controls */
.carousel-controls {
    text-align: center;
    margin-top: 1rem;
}

.carousel-controls button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.review-section-review::before {
    content: open-quote;
    font-size: 2rem;
    vertical-align: -0.4rem;
	color: var(--clr-red-btn);
	font-size: 3rem;
}


/* ============ Small screens ============== */
@media screen and (max-width: 1000px) {
    .hero-content-particle {
        max-width: 350px;
    }
}

@media(min-width: 850px) {

}

@media(max-width: 850px) {
    #home {
        height: auto; /* Let the section adjust based on content */
        padding-top: 0px; /* Reduce top padding */
        text-align: center; /* Ensure text stays centered */
    }

    .hero-content {
        flex-direction: column; /* Stack content vertically */
        padding: 2rem; /* Reduce padding */
    }

    .hero-content-particle {
        max-width: 500px;
        height: 350px;
    }


    .hero-content-particle-right.slide-in {
        left: 5%; /* End position */
    }
        
    .hero-content-particle-left.slide-in {
        left: 5%; /* End position */
    }
   
    .btn-container {
        justify-content: center; /* Center buttons on smaller screens */
        margin-top: 1rem;
    }

    .hero-content-particle-right,
    .hero-content-particle-left {
        position: relative; /* Remove animations for simplicity */
        left: auto;
        transition: none; /* Disable sliding animation */
    }
    
    #index-about {
        flex-direction: column;
    }

    .reviews-section-img {
        display: none;
    }

    .reviews-section {
        width: 350px;
        min-height: 300px;
    }

    .index-about-box {
        width: auto; /* Controls the box width */
        margin: 1rem; /* Centers the box and adds vertical spacing */
        padding: 1rem;
    }
}

/* For screens smaller than 480px (common breakpoint for phones) */
@media screen and (max-width: 480px) {
    .hero-content-particle {
        max-width: 350px;
    }

    .hero-content h1 {
        font-size: 1.9rem; /* Further reduce heading size */
    }

    .hero-content p {
        font-size: 1.3rem; /* Further reduce paragraph size */
    }

    .hero-content-particle {
        max-width: auto; /* Reduce image size further */
    }

    .btn-container {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }

    .btn-container a, .btn-container button {
        margin-bottom: 10px; /* Add spacing between buttons */
    }
}

