/* Base Styling & Variables */
:root {
    --primary-color: #007bff; /* Uphold-like blue */
    --secondary-color: #f8f9fa; /* Light background */
    --text-color: #333;
    --dark-color: #212529;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--dark-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

/* --- Header & Navigation (Flexbox) --- */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav { display: none; }
    header .container { justify-content: center; }
}

/* --- Call to Action Button --- */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    margin-top: 20px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out, background var(--transition-speed);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* --- Sections Styling --- */
section {
    padding: 80px 0;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

.about, .testimonials {
    background: var(--secondary-color);
}

/* --- Hero Section (Flexbox) --- */
.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 0 100px 0;
    text-align: left;
}

.hero-content { flex: 1.2; }

.hero-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--dark-color);
}

.hero-image {
    flex: 1;
    min-height: 300px;
    background: #e9ecef; /* Placeholder for image/mockup */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: bold;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Hero adjustment */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h2 { font-size: 2.5rem; }
    .hero-image { margin-top: 40px; }
}


/* --- Services/Products Section (CSS Grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Testimonials Section (CSS Grid) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer a { color: #ccc; }
footer a:hover { color: var(--primary-color); }

/* --- Smooth Animations (CSS Keyframes & Utility Classes) --- */

/* 1. Basic Fade In Up for Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* 2. Scroll-Based Fade In (Controlled by JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* --- Rain Animation --- */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 500;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background-color: rgba(0, 123, 255, 0.6); /* Blueish 'liquid' rain */
    border-radius: 1px;
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    0% { transform: translateY(-10vh) scaleY(0.5); opacity: 0.5; }
    100% { transform: translateY(100vh) scaleY(1); opacity: 1; }
}