/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties (Variables) for easy color changes */
:root {
    --primary-color: #1c262d; /* Near-Black / Dark Gray */
    --secondary-color: #3498db; /* Vibrant Blue */
    --tertiary-color: #2ecc71; /* Vibrant Green */
    --background-light: #f4f7f9; /* Light Gray */
    --text-dark: #333;
    --text-light: #fff;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.8rem; }
p { font-size: 1.1rem; }

a.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

a.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.6);
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--secondary-color);
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li .cta-button {
    padding: 10px 25px;
    font-size: 1rem;
}

/* Hero Section - Updated for better compatibility */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://conectaviajero.live/123.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 150px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

#hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-in-out 0.2s;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    font-weight: 600;
}

.hero-benefits span {
    font-size: 1.2rem;
}

.hero-benefits i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* General Sections */
section {
    padding: 80px 0;
}

.section-subheading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #555;
}

/* Problem-Solution Section */
#problem-solution {
    background-color: #fff;
    padding: 80px 0;
}

#problem-solution .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

#problem-solution img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

#problem-solution img:hover {
    transform: scale(1.02);
}

/* Services Section */
#services {
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0;
}

.service-card li {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #555;
}

.service-card li::before {
    content: "✔️";
    margin-right: 10px;
    color: var(--tertiary-color);
}

/* How It Works Section */
#how-it-works {
    background-color: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 30px;
    border-radius: 15px;
    background-color: var(--background-light);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Why Us Section */
#why-us {
    background-color: var(--background-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 1rem;
    color: #555;
}

/* Testimonials Section */
#testimonials {
    background-color: #fff;
}

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

.testimonial-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Contact Section */
#contact {
    background-color: var(--background-light);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-group textarea {
    resize: vertical;
}

#contact-form .cta-button {
    width: 100%;
    font-size: 1.1rem;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

footer p {
    font-size: 0.9rem;
    margin-top: 10px;
}

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

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

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    #hero h1 { font-size: 3.5rem; }
    #hero p { font-size: 1.2rem; }
    nav ul { display: none; }
    #main-header .container { flex-direction: column; }
    .logo { margin-bottom: 10px; }
    #problem-solution .content-wrapper { grid-template-columns: 1fr; }
    .hero-benefits { gap: 15px; }
}