/*Home Page Styling*/
body {
    background: var(--white);
}

.navbar {
    background-color: var(--white); 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
}

.navbar .brand-name {
    display: flex;
    align-items: center;
    gap: 7px; 
}

.navbar .brand-name .logo {
    width: 15px; 
    height: auto;
}

.navbar .CampusConnect {
    font-size: 1rem;
    color: var(--black);
}

.navbar-nav{
    display: flex;
    gap: 15px; 
    align-items: center;
    justify-content: center;
    margin-right: 5rem;
    text-decoration: none;
    list-style: none;
}

.navbar-nav .nav-link {
    color: var(--black);
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid var(--black);
    border-radius: 50px; 
    background-color: var(--white);
    text-decoration: none;
    /*transition: background-color 0.3s ease, color 0.3s ease;*/
}

.navbar-nav .nav-link, a{
    text-decoration: none;
}

.navbar .btn-primary {
    padding: 8px 25px;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--black);
    color: var(--white);
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*Profile/Cart icons styling*/
.icons a{ 
    margin: 0px 8px;
}

.cart-icon img{
    width: 24px;
    height: 24px;
}

.profile-icon img{
    width: 24px;
    height: 24px'
}
/*Hero Background */

.hero-background {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 100vh; /* Match your hero section height */
}

.ambient-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Behind your hero content */
}

.word {
    position: absolute;
    opacity: 0.30; 
    font-size: 1.4rem;
    font-weight: 500;
    animation: float 20s infinite ease-in-out;
    font-family: inherit; 
}

.emoji {
    position: absolute;
    opacity: 0.20; 
    font-size: 2rem;
    animation: float 25s infinite ease-in-out;
}

.word:nth-child(1) { top: 7%; left: 20%; animation-duration: 25s; }
.word:nth-child(2) { top: 10%; left: 85%; font-size: 1.8rem; animation-duration: 30s; }
.word:nth-child(3) { top: 60%; left: 5%; font-size: 1.5rem; animation-duration: 22s; }
.word:nth-child(4) { top: 60%; left: 90%; animation-duration: 28s; }
.word:nth-child(5) { top: 75%; left: 15%; font-size: 2rem; animation-duration: 35s; }
.word:nth-child(6) { top: 7%; left: 50%; animation-duration: 26s; }
.word:nth-child(7) { top: 70%; left: 80%; animation-duration: 24s; }
.word:nth-child(8) { top: 30%; left: 75%; font-size: 2rem; animation-duration: 32s; }
.word:nth-child(9) { top: 20%; left: 10%; animation-duration: 27s; }
.word:nth-child(10) { top: 85%; left: 40%; animation-duration: 29s; }
.word:nth-child(11) { top: 35%; left: 18%; font-size: 2.2rem; animation-duration: 31s; }
.word:nth-child(12) { top: 85%; left: 55%; animation-duration: 23s; }
.word:nth-child(even) { color: #9D4EDD; } 

.word:nth-child(1),
.word:nth-child(5),
.word:nth-child(9) { 
    color: #FF6B6B; 
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-15px) translateX(10px) rotate(0.5deg); }
    66% { transform: translateY(10px) translateX(-5px) rotate(-0.3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .word { animation: none; }
}
/*Hero Content*/
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
}

.hero, text-muted{
    font-weight: 0;
    font-size: 1.1rem;
}

.hero h1{
    font-size: 4.5rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-family: var(--header-font);
}

.hero .mt-3{
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 20px;
}

.hero .mt-4{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.hero .mt-4 .btn{
    margin-top: 20px;
    border-radius: 10px;
    padding: 15px 25px ;
    margin: 12px;
    font-size: 1.1rem;
    color: var(--black);
}


.hero .mt-4 .browse-events{
background-color: var(--black);
  color: white;
}

.hero .mt-4 .create-events{
    background-color: var(--primary-grey);
    color: var(--black);
}

.hero .stats{
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-size: 1rem;
    color: var(--black);
}

.hero .stats #text-center{
    text-align: center;
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.hero .stats #text-center .numbers{
    font-size: 1.3rem;
}

.event-created, .partner-uni{
    background-color: var(--black);
    color: var(--white);
}

.active-users{
    background-color: var(--primary-grey);
    color: var(--black);
}

/* Info Section Styling */
.info-container {
    padding: 50px 0;
    text-align: center;
}

.info-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--subeader-font);
}

.info-container p {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 40px;
}

.info-container .cards-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    padding: 24px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--primary-grey);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    width: 250px;
    height: auto;
}

.info-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: var(--subeader-font);
}

.info-card p {
    font-size: 1rem;
    color: var(--black);
}

.info-card img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

/* Upcoming Events Section Styling */
.upcoming-events-container {
    padding: 50px 0;
    text-align: left;
    margin-bottom: 50px;
}

.upcoming-events-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    padding: 0 24px;
    font-family: var(--subeader-font);
}

.upcoming-events-container p {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 20px;
    padding: 0 24px;
}

.upcoming-events-container .event-cards-container{
    background-color: var(--white);
    height: auto;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-snap-align: center;
}
/*Reviews Section Styling*/
.testimonials {
    padding: 50px 20px;
    overflow: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #212529;
}

.testimonials-content {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: var(--primary-grey);
    border-radius: 15px;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    animation: slideHorizontal 40s linear infinite;
    width: max-content;
}

/* Pause animation on hover */
.testimonials-slider:hover {
    animation-play-state: paused;
}

/* Individual testimonial card */
.testimonials-item {
    background: var(--white);
    width: 370px;
    border-radius: 14px;
    padding: 1.5rem;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-accent);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonials-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-accent);
    border: 1.5px solid #e8c4bb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.text-box h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
}

.text-box span {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.36);
    display: block;
    margin-top: 0.2rem;
}

.testimonials-item p {
    color: var(--dark-grey);
    line-height: 1.65;
    font-style: italic;
    font-size: 0.875rem;
}

.t-divider {
    height: 0.5px;
    background: rgba(0,0,0,0.08);
    margin: 1rem 0;
}

/* Animation */
@keyframes slideHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 5 - 2rem * 5));
    }
}
.testimonials-content::before,
.testimonials-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-content::before {
    left: 0;
    background: linear-gradient(to right, #f7f7f7, transparent);
}

.testimonials-content::after {
    right: 0;
    background: linear-gradient(to left, #f7f7f7, transparent);
}

@media (max-width: 768px) {
    .testimonials-item {
        flex: 0 0 280px;
    }
    
    @keyframes slideHorizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 5 - 2rem * 5)); }
    }
}

/*Getting Started Styling*/
.get-started-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 90px 0;
}

.get-started-container img{
    width: 40px;
    height: auto;
    margin-bottom: 15px;
}

.get-started-container h2{
    font-size: 2.3rem;
    margin-bottom: 10px;
    font-family: var(--subeader-font);
}

.get-started-container p{
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

.get-started-container .btn-dark{
    background-color: var(--black);
    border: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 50px ;
    border-radius: 10px;
}

/*Mobile styling*/
@media (max-width: 768px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .stats {
        flex-direction: column;
        gap: 20px;
        margin: 0px 30px;
    }

    .info-container .cards-container {
        flex-direction: column;
        align-items: center;
        justify-self: center;
        gap: 20px;
    }

    .upcoming-events-container .event-cards-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .event-card {
        width: 100%;
        height: auto;
    }

    .upcoming-events-container h2, p{  
        text-align: center;
    }

    .upcoming-events-container h2{
        font-size: 2.9rem;
    }
}