/* Landing Page Styles */

/* Hero Section */
.hero-section {
    min-height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.02) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .hero-title {
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: var(--muted-dark);
}

/* Hero CTA */
.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.hero-cta .btn:hover::before {
    left: 100%;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1rem 0;
    }
}


/* Flashcards Carousel */
.flashcards-container {
	position: relative;
	width: 100%;
	min-height: 400px; /* Minimum height, will be dynamically adjusted */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 2rem 0;
	transition: height 0.3s ease; /* Smooth height transitions */
}

.carousel-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.carousel-card {
	width: 350px;
	max-width: 350px;
	height: fit-content;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center center;
	will-change: transform, opacity;
}

/* Navigation arrows */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.3s ease;
	font-size: 1.2rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.carousel-nav-left {
	left: 20px;
}

.carousel-nav-right {
	right: 20px;
}

[data-bs-theme="dark"] .carousel-nav {
	background: rgba(37, 36, 36, 0.95);
	border-color: var(--primary-color);
}

[data-bs-theme="dark"] .carousel-nav:hover {
	background: var(--primary-color);
}

/* Small mobile specific carousel styles - only very small screens get single card layout */
@media (max-width: 480px) {
	.flashcards-container {
		min-height: 450px; /* Increased height for mobile */
		padding: 1rem 0;
		align-items: flex-start; /* Align to top instead of center */
	}
	
	.carousel-wrapper {
		align-items: flex-start; /* Align wrapper content to top */
	}
	
	.carousel-track {
		align-items: center; /* Align track content to top */
		justify-content: flex-start; /* Align to top, not center */
		padding-top: 60px; /* Space for arrows */
		width: 100%;
		position: relative;
		display: flex;
		flex-direction: column; /* Stack cards vertically if needed */
	}
	
	.carousel-card {
		width: calc(100vw - 80px); /* More margin for arrows */
		max-width: 320px; /* Slightly smaller max for mobile */
		min-width: 260px;
		margin: 0 auto; /* Center the card */
		display: block; /* Ensure proper display */
	}
	
	.carousel-nav {
		width: 40px;
		height: 40px;
		font-size: 1rem;
		top: 20px;
		transform: none !important; /* Override the translateY(-50%) centering */
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important; /* Keep hover scale effect but no translateY */
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important; /* Slight scale down on press */
	}
	
	.carousel-nav-left {
		left: 10px;
	}
	
	.carousel-nav-right {
		right: 10px;
	}
}

/* Medium screens (tablets, large phones) - get the king and ministers effect */
@media (min-width: 481px) and (max-width: 768px) {
	.flashcards-container {
		align-items: flex-start; /* Align to top for tablets too */
	}
	
	.carousel-wrapper {
		align-items: flex-start;
	}
	
	.carousel-track {
		align-items: flex-start;
	}
	
	.carousel-nav {
		top: 20px;
		transform: none !important;
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important;
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important;
	}
}

/* Very small screens */
@media (max-width: 400px) {
	.flashcards-container {
		min-height: 500px; /* Even more height for very small screens */
	}
	
	.carousel-card {
		width: calc(100vw - 70px); /* More space for arrows */
		max-width: 300px;
		min-width: 250px;
	}
	
	.carousel-nav {
		width: 35px;
		height: 35px;
		font-size: 0.9rem;
		top: 15px;
		transform: none !important; /* Override the translateY(-50%) centering */
	}
	
	.carousel-nav:hover {
		transform: scale(1.1) !important;
	}
	
	.carousel-nav:active {
		transform: scale(0.95) !important;
	}
	
	.carousel-nav-left {
		left: 5px;
	}
	
	.carousel-nav-right {
		right: 5px;
	}
}