/* General Styles */
body {
    font-family: 'Arial', sans-serif; /* Choose a modern, clean font */
    margin: 0;
    padding: 0;
    background-color: #121212; /* Dark background for a modern feel */
    color: #f0f0f0; /* Light text for contrast */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

header {
    background-color: #1e1e1e; /* Slightly lighter dark color for header */
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 100; /* Ensure header stays on top */
}

header h1 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 1px;
    color: #ddd; /* Slightly less bright white for header text */
    transition: color 0.3s ease; /* Hover effect for logo */
}

header h1:hover {
    color: #fff;
}

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

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative; /* For underline animation */
    padding-bottom: 5px; /* Space for underline */
}

nav a:hover,
nav a:focus {
    color: #fff;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

main {
    padding: 50px 30px;
}

section {
    margin-bottom: 80px;
    opacity: 0; /* Initial opacity for fade-in animation */
    transform: translateY(20px); /* Initial position for slide-up animation */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 1px;
    position: relative; /* For underline animation */
    display: inline-block; /* To make underline work with text width */
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%; /* Underline width */
    height: 3px;
    background-color: #00bcd4; /* Accent color for underline */
    margin: 0 auto; /* Center the underline */
    left: 50%;
    transform: translateX(-50%);
}

section p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Hero Section Styles */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Minimum viewport height */
    text-align: center;
    margin-bottom: 0; /* Remove default section margin for hero */
    overflow: hidden; /* Clip the lines animation */
}

.hero-content {
    flex: 1;
    padding: 40px;
    z-index: 1; /* Ensure content is above lines */
}

#hero h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
    animation: fadeInHeading 1.5s ease-out forwards; /* Heading fade-in animation */
    opacity: 0; /* Initial opacity for animation */
    transform: translateY(-20px); /* Initial position for animation */
}

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

.hero-content .tagline {
    font-size: 1.3em;
    color: #ddd;
    margin-bottom: 40px;
    animation: fadeInUpTagline 1.5s 0.5s ease-out forwards; /* Tagline fade-in and slide-up animation with delay */
    opacity: 0; /* Initial opacity for animation */
    transform: translateY(20px); /* Initial position for animation */
}

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

.hero-visual {
    flex: 1;
    position: relative;
    overflow: hidden; /* Clip the lines within the visual area */
    min-height: 80vh; /* Match hero section height */
}

.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.3)); /* Subtle gradient */
    z-index: 0; /* Behind the content */
}

.animated-lines::before,
.animated-lines::after {
    content: '';
    position: absolute;
    width: 200%; /* Wider than container for rotation effect */
    height: 2px;
    background-color: rgba(0, 188, 212, 0.5); /* Accent color for lines */
    opacity: 0.7;
    animation: moveLines 20s linear infinite; /* Line movement animation */
}

.animated-lines::before {
    top: 25%;
    left: -50%;
    transform: rotate(30deg);
}

.animated-lines::after {
    top: 75%;
    left: -50%;
    transform: rotate(-30deg);
    animation-delay: -10s; /* Offset animation for variety */
}

@keyframes moveLines {
    0% {
        transform: translateX(0) rotate(30deg); /* Or -30deg for ::after */
    }
    100% {
        transform: translateX(100%) rotate(30deg); /* Or -30deg for ::after */
    }
}


/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.primary-button {
    background-color: #00bcd4;
    color: #fff;
    border: 2px solid transparent;
}

.primary-button:hover,
.primary-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
    background-color: #00a7bd; /* Slightly darker on hover */
}

.secondary-button {
    background-color: transparent;
    color: #00bcd4;
    border: 2px solid #00bcd4;
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: #00bcd4;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}


/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 5px;
    background-color: #252525;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover,
.feature-list li:focus {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.feature-list .icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    background-color: #00bcd4; /* Placeholder for icon background */
    border-radius: 50%;
    /* You would replace this with actual icon styling, e.g., using SVG icons as background images or icon fonts */
}

.feature-list li span {
    font-weight: 500;
}

/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    padding: 30px;
    background-color: #252525;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover,
.service-item:focus {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.service-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fff;
}

.service-item p {
    color: #ccc;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 30px auto 0;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 20px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #252525;
    color: #fff;
    font-size: 1em;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00bcd4; /* Accent color outline on focus */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing of textarea */
    min-height: 150px;
}

/* Footer Styles */
footer {
    background-color: #1e1e1e;
    padding: 30px;
    text-align: center;
    color: #888;
    border-top: 1px solid #2a2a2a;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 10px 0;
    }

    #hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        min-height: 40vh; /* Reduce visual height on smaller screens */
    }

    .hero-content {
        padding: 30px;
    }

    #hero h2 {
        font-size: 2.8em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack services on smaller screens */
    }
}