/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff; /* White navbar */
    color: #1a1a1a;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #0d1b2a; /* dark navy */
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #1a1a1a; /* dark text */
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #1e88e5; /* blue hover */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1a1a1a; /* dark lines */
    border-radius: 3px;
    transition: all 0.4s ease;
}

/* Hamburger Open State */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: #ffffff; /* white mobile menu */
        padding-top: 6rem;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #0d1b2a;
    }

    .nav-links a:hover {
        color: #1e88e5;
    }

    .hamburger {
        display: flex;
    }
}

/* ================= HERO SECTION ================= */
.hero {
    background: linear-gradient(135deg, #1e88e5, #42a5f5); /* blue gradient */
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-top: 70px;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn.primary {
    background: #1e88e5;
    color: #fff;
}

.cta-buttons .btn.primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.cta-buttons .btn.secondary {
    background: #fb8c00;
    color: #fff;
}

.cta-buttons .btn.secondary:hover {
    background: #ef6c00;
    transform: translateY(-2px);
}

/* Responsive adjustments for hero buttons */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .cta-buttons .btn { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .cta-buttons { flex-direction: column; gap: 0.8rem; }
    .cta-buttons .btn { width: 100%; padding: 0.7rem; font-size: 0.95rem; }
}

/* ================= FEATURES ================= */
.features {
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0d1b2a; /* navy heading */
}

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

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.feature-item:hover { transform: translateY(-6px); }

.feature-item h3 { color: #1e88e5; margin-bottom: 1rem; }
.feature-item p { font-size: 1rem; line-height: 1.4; }

/* ================= TESTIMONIALS ================= */
.testimonials {
    padding: 4rem 2rem;
    background: #eef3fa; /* soft blue background */
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0d1b2a;
}

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

.testimonial-item {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-style: italic;
    transition: 0.3s;
}

.testimonial-item:hover { transform: translateY(-4px); }

.testimonial-item h4 {
    margin-top: 1rem;
    font-weight: bold;
    color: #1e88e5;
}

/* ================= FOOTER ================= */
footer {
    background: #0d1b2a; /* dark navy */
    color: #e5e5e5;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

footer p { font-size: 0.9rem; }

footer a {
    color: #e5e5e5;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #1e88e5;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Text Animations for Index Page */
.hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
    opacity: 0;
}

.features h2 {
    animation: fadeInLeft 1s ease-out 0.6s both;
    opacity: 0;
}

.feature-item h3 {
    animation: fadeInUp 1s ease-out 0.8s both;
    opacity: 0;
}

.feature-item p {
    animation: fadeInUp 1s ease-out 1s both;
    opacity: 0;
}

.testimonials h2 {
    animation: fadeInRight 1s ease-out 0.6s both;
    opacity: 0;
}

.testimonial-item p {
    animation: fadeInUp 1s ease-out 0.8s both;
    opacity: 0;
}

.testimonial-item h4 {
    animation: fadeInUp 1s ease-out 1s both;
    opacity: 0;
}

footer p {
    animation: fadeInUp 1s ease-out 1.2s both;
    opacity: 0;
}
