/* style.css */

:root {
    --primary-brand-color: #ffab40;
    --secondary-brand-color: #ffab40;
    --primary-hover-color: #f09d2d; /* Darker shade for hover */
    --dark-text-color: #000000;
    --light-text-color: #000000;
    --background-color: #fff;
    --section-background-color: #f8f9fa;
    --border-color: #dadce0;
    --font-family-sans: 'Google Sans', 'Roboto', sans-serif;
}

/* --- General & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--dark-text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
header {
    background-color: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease-in-out;
}

header.scrolled {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Adds space between logo and text */
}

.logo img {
    height: 36px; /* Adjust this value to fit your logo's aspect ratio */
    width: auto;
}

.logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary-brand-color);
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button-primary {
    background-color: var(--primary-brand-color);
    color: var(--dark-text-color); /* Ensure contrast on yellow */
    border: 1px solid var(--primary-brand-color);
}

.button-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
#hero {
    padding: 6rem 0;
}

#hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1; /* Give slightly more room to the visual element */
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0; /* Initially hidden for animation */
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-brand-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.hero-visual {
    flex: 1.3;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0; /* Initially hidden for animation */
}

.hero-visual img,
.hero-visual video {
    max-width: 110%; /* Allow for slight overlap for visual effect */
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Video Controls */
.video-container {
    position: relative;
    line-height: 0; /* Removes bottom space from video */
}

.video-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.video-container:hover .video-controls {
    opacity: 1;
    visibility: visible;
}

.video-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.video-controls button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-controls button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.play-icon, .unmute-icon {
    display: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections --- */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-light {
     background-color: var(--section-background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* How It Works section - 2x2 grid layout */
#how-it-works .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #how-it-works .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--background-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-top: 4px solid var(--secondary-brand-color);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

/* --- DEPRECATED Testimonial --- */
blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--light-text-color);
    border-left: 4px solid var(--primary-brand-color);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

cite {
    font-weight: 500;
}

/* --- Features List --- */
#features .features-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

#features .features-list li {
    padding-left: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffab40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left top;
    background-position: 0 0.2rem;
}

/* --- News Section --- */
.news-carousel-container {
    overflow: hidden;
    padding: 1rem 0;
}

.news-carousel-track {
    display: flex;
    animation: scroll-news 30s linear infinite;
    gap: 2rem;
}

.news-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-news {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.news-card {
    background: var(--section-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 350px;
    max-width: 350px;
    height: 320px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-card p:not(.news-category):not(.news-date) {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
    margin-top: auto;
}

.news-category {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-brand-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.news-link {
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-brand-color);
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-brand-color);
}

.team-member-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-member-title {
    color: var(--light-text-color);
}

/* --- Carousel Section --- */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    width: calc(250px * 10 + 1rem * 10); /* (Slide width * total slides) + (gap * total slides) */
    animation: scroll 40s linear infinite;
}

.carousel-slide {
    flex-shrink: 0;
    width: 250px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-250px * 5 - 1rem * 5)); } /* (Slide width * original slides) + (gap * original slides) */
}

/* --- Footer --- */
footer {
    background-color: var(--background-color);
    color: var(--light-text-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-brand-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 1rem; }
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul { padding: 0; flex-direction: column; text-align: center; }
    #hero .container { flex-direction: column; text-align: center; }
    .hero-content h2 { font-size: 2.5rem; }
}
