@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #8a2be2;
    --secondary-color: #4a0e81;
    --background-color: #120d1a;
    --text-color: #e0e0e0;
    --card-bg: #1f152e;
}

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

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

h1, h2, h3, h4 {
    color: #fff;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(18, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    transition: background 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a:hover {
    color: #fff;
}

main {
    padding-top: 80px; /* Header height */
}

section {
    padding: 4rem 5%;
    text-align: center;
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('tlo.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6); /* Add a semi-transparent overlay to make text more readable */
    padding: 2rem;
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 4rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), #c32aff);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

#about .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    flex-grow: 1;
}

#services .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-content {
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4);
}

.service-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-btn {
    margin-top: 1.5rem;
    width: 100%;
}

#methods .methods-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.method-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

footer {
    padding: 4rem 5%;
    text-align: center;
    background: var(--background-color);
    border-top: 1px solid var(--secondary-color);
}

footer .btn {
    margin: 1rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #1c1625;
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-content ul {
    margin-top: 1rem;
    text-align: left;
}

.modal-content li {
    margin-bottom: 0.5rem;
}

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
