/* General Reset & Base Styles */
:root {
    --primary-color: #0056b3; /* Deep Blue */
    --secondary-color: #007bff; /* Bright Blue */
    --accent-color: #e9f5ff; /* Light Blue */
    --text-color: #333;
    --heading-color: #003d80; /* Darker Blue */
    --light-bg: #f8f9fa;
    --white: #fff;
    --footer-bg: #343a40;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center;}
h3 { font-size: 1.3rem; color: var(--primary-color); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 3rem 1rem;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.nav-links {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}

.nav-links.active {
    display: block; /* Show when active */
}

.nav-links li {
    margin: 1rem 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background-color: var(--accent-color);
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: block; /* Show on mobile */
    background: none;
    border: none;
    color: var(--primary-color);
}

/* Hero Section */
/* Desktop Hero - hidden on mobile */
.desktop-hero {
    display: none;
}

/* Mobile Hero - shown on mobile, hidden on desktop */
.mobile-hero {
    background-color: var(--accent-color);
    padding: 2rem 1rem;
    text-align: center;
    display: block;
}

.mobile-hero .hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mobile-hero h1 {
    margin-bottom: 1rem;
}

.mobile-hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mobile-hero .hero-image-container {
    width: 80%;
    max-width: 260px;
    height: auto;
    margin: 1.5rem auto 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.hero-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.mobile-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 75%;
    max-width: 220px;
    margin: 0;
}

/* Desktop Hero Section */
#hero {
    background-color: var(--accent-color);
    padding: 4rem 1rem;
    text-align: center;
}

#hero .hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#hero h1 {
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-trial {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.6);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 25px; /* Rounded button */
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
}

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

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: 2px solid var(--primary-color);
    margin-left: 0.8rem;
}

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

/* Updated Hero Image Styles */
.hero-image-container {
    width: 80%;
    max-width: 300px;
    height: auto; /* Adjust height based on image */
    margin: 2rem auto 0;
    border-radius: 8px;
    overflow: hidden; /* Ensure image stays within bounds */
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container, might crop */
}

/* Features Section */
#features {
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item-link {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
    display: block; /* Make the link take up the grid space */
}

.feature-item {
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    font-size: 0.9rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2.8rem; /* Slightly adjusted size */
    margin-bottom: 1rem;
    color: var(--secondary-color);
    /* Ensure icon aligns well if needed */
    line-height: 1;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
}
.feature-item p span {
    display: block;
    font-style: italic;
    color: #555;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Style for the 'Learn More' text */
.learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.feature-item-link:hover .learn-more {
    color: var(--primary-color);
}

/* Stagger feature item animations */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

/* About Section */
#about {
    background-color: var(--light-bg); /* Light background for separation */
    text-align: center; /* Center align text */
    padding: 4rem 1rem; /* More vertical padding */
}

#about h2 {
    margin-bottom: 1.5rem; /* Increased space below heading */
}

#about p {
    max-width: 800px; /* Limit width for readability */
    margin: 0 auto; /* Center the paragraph block */
    font-size: 1.1rem; /* Slightly larger text */
    line-height: 1.8; /* Improved line spacing */
    color: #555; /* Slightly softer text color */
}

/* Testimonials Section */
#testimonials {
    background-color: var(--white); /* Back to white */
    padding-bottom: 3rem; /* Reduce padding */
}

.testimonial-carousel-container {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
}

.testimonial-carousel {
    position: relative;
    height: 320px; /* Fixed height for carousel */
    overflow: hidden;
}

.testimonial-item {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary-color);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.country-flag {
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.user-name {
    font-weight: bold;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.testimonial-item p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.rating {
    color: #ffc107; /* Gold star color */
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.testimonial-item footer {
    font-weight: 500;
    color: #777;
    text-align: right;
    font-size: 0.85rem;
}

/* Carousel Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.control-prev, .control-next {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.control-prev:hover, .control-next:hover {
    background-color: var(--primary-color);
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--secondary-color);
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form button[type="submit"] {
    display: block; /* Make button block level */
    width: 100%; /* Full width */
    margin-top: 1rem;
    /* Reuse cta-button styles where applicable */
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
}

footer p {
    font-size: 0.9rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in to sections (can be triggered by JS later if needed) */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    /* Optionally add delay or use JS Intersection Observer for trigger */
}

/* Mobile Styles */
@media (max-width: 767px) {
    .secondary-button {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
    
    .cta-button {
        display: block;
        width: 100%;
    }
    
    .hero-trial {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Ensure mobile hero is shown and desktop hidden */
    .desktop-hero {
        display: none;
    }
    
    .mobile-hero {
        display: block;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
    
    section { padding: 4rem 2rem; }
    
    /* Ensure desktop hero is shown and mobile hidden */
    .desktop-hero {
        display: block;
    }
    
    .mobile-hero {
        display: none;
    }

    .menu-toggle {
        display: none; /* Hide hamburger */
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        border-top: none;
    }

    .nav-links li {
        margin: 0 0 0 1.5rem; /* Space between links */
    }
    .nav-links a {
        padding: 0.2rem 0.5rem;
        display: inline;
    }
    .nav-links a:hover {
        background-color: transparent;
    }

    #hero {
        padding: 5rem 2rem;
        text-align: left;
        display: flex; /* Use flexbox for side-by-side layout */
        align-items: center; /* Vertically align content and image */
        gap: 2rem; /* Space between text and image */
        max-width: 1100px; /* Limit width */
        margin: 0 auto; /* Center the hero section */
    }

    .hero-content {
        flex: 1; /* Allow text content to take available space */
        margin: 0; /* Reset margin */
        max-width: none; /* Reset max-width */
    }

    #hero h1 {
        font-size: 3rem;
    }

    /* Adjust hero image container for tablet+ */
    .hero-image-container {
        flex-basis: 350px;
        height: auto; /* Let image height dictate */
        min-height: 250px; /* Minimum height */
        margin: 0;
        max-width: none;
        width: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Testimonial carousel adjustments for tablet */
    .testimonial-carousel-container {
        max-width: 600px; /* Wider container */
    }
    
    .testimonial-carousel {
        height: 300px; /* Slightly shorter height */
    }
    
    .testimonial-item p {
        font-size: 1rem;
    }

    .feature-item {
        padding: 2.5rem 1.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }

    section { padding: 5rem 2rem; }

    .logo {
        font-size: 1.8rem;
    }

    #hero {
        padding: 6rem 2rem;
        gap: 3rem;
    }

    .hero-content {
       flex: 1.2; /* Give slightly more space to text */
    }

     #hero p {
        font-size: 1.2rem;
    }

    /* Adjust hero image container for desktop */
    .hero-image-container {
        max-width: 500px;
        height: 350px; /* Fixed height for desktop */
    }
    
    .hero-image {
        height: 100%;
        object-position: center;
    }

    #about p {
        max-width: 800px;
    }
    
    /* Testimonial carousel adjustments for desktop */
    .testimonial-carousel-container {
        max-width: 750px; /* Even wider container */
    }
    
    .testimonial-carousel {
        height: 280px; /* Better height for desktop */
    }
    
    .testimonial-item {
        padding: 2rem; /* More padding */
    }
    
    .testimonial-item p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .testimonial-carousel-container {
        max-width: 800px;
    }
} 