:root {
    --primary-color: #0a7cff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.navbar {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    margin-left: 1.5rem;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    position: relative; /* Needed for absolute positioning of children */
    background: transparent; /* tsParticles will handle background visual */
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Hide overflowing particles */
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind hero content */
    pointer-events: none; /* Allow interaction with content above */
}

.hero-content {
    max-width: 800px;
    position: relative; /* Ensure hero content is above particles */
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #0062cc;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.services {
    padding: 4rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 64px;
    height: 64px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: var(--secondary-color);
}

.about {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-text {
    text-align: center;
}

.contact {
    padding: 4rem 0;
    text-align: center;
    background: var(--dark-color);
    color: #fff;
}

.footer {
    padding: 2rem 0;
    text-align: center;
    background: #1c2023;
    color: #fff;
}

/* Animations */
.hero, .services, .about, .contact {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Page Header */
.page-header {
    background: var(--dark-color);
    color: #fff;
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Details */
.service-details {
    padding: 4rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.service-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-content.reverse .service-image {
    order: 2;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
}

.service-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-text ul li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 4rem 0;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

/* Responsive */
@media (max-width: 992px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Add padding to body to account for fixed navbar */
    }

    .navbar .container {
        flex-direction: column;
    }

    .navbar nav {
        margin-top: 1rem;
    }

    .hero-title, .page-title {
        font-size: 2.5rem;
    }

    .hero-subtitle, .page-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .about-content, .service-content, .service-content.reverse {
        grid-template-columns: 1fr;
    }

    .about-image, .service-image {
        margin-top: 2rem;
    }

    .service-content.reverse .service-image {
        order: 0;
    }

    .services, .about, .contact, .service-details {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title, .page-title {
        font-size: 2rem;
    }

    .hero-subtitle, .page-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}
