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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    /* If you want to keep fade-in logic, remove or adapt as needed */
}

/* ------------------- Header & Navbar ------------------- */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    position: relative;
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin-right: auto;
}

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

nav li {
    margin-left: 20px;
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px;
}

nav a:hover,
nav a.active {
    color: #1abc9c;
}

/* Basic dropdown parent */
.dropdown {
    position: relative;
    /* for absolute-positioned .dropdown-content */
}

/* Hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 180px;
    top: 35px;
    left: 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Dropdown items */
.dropdown-content a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #1abc9c;
}

/* Show it on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ------------------- Hero Section ------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #1abc9c);
    /* no big logo background */
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    max-width: 700px;
    padding: 20px;
}

.hero-logo {
    width: 200px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #1abc9c;
    color: #fff;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #16a085;
}

/* ------------------- Container (optional) ------------------- */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ------------------- Services Section ------------------- */
.services-section {
    /* Subtle greenish gradient (change to your liking) */
    background: linear-gradient(to right, #f0f9f7, #f4fcfb);
    padding: 80px 0;
    /* extra top/bottom space */
}

.services-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    /* left/right spacing */
}

/* Center the heading, maybe make it larger */
.services-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

/* Paragraph or short intro text */
.services-section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    /* centers the paragraph, adds bottom spacing */
    line-height: 1.8;
}

/* The grid of cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Each service card */
.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #1abc9c;
    /* small accent on left edge */
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 0;
    /* or your desired spacing */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    /* space below the cards */
}

.services-bottom-text {
    margin-top: 20px;
    line-height: 1.8;
}

/* ------------------- Headings & Section Titles ------------------- */
h1,
h2,
h3,
.section-title {
    color: #2c3e50;
}

.section-title {
    font-size: 24px;
    /* Add more space above and below the line: */
    margin-top: 40px;
    /* space above */
    margin-bottom: 20px;
    /* space below */
    padding-bottom: 10px;
    /* space between text and line */
    border-bottom: 2px solid #2c3e50;
}

/* ------------------- Paragraph & Links ------------------- */
p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

a {
    color: #3498db;
    /* standard link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------- Footer & Back to Top ------------------- */
footer {
    text-align: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    position: relative;
    margin-top: 0;
}

footer p {
    margin: 0;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #16a085;
}

/* ------------------- Responsive Tweaks ------------------- */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* single-column layout on mobile */
    }
}