/* --- Base Styles & Variables --- */
:root {
    --bg-dark: #1a1a1a; /* Dark grey */
    --bg-darker: #111;
    --accent-yellow: #ffd700; /* Gold/Yellow */
    --text-light: #f4f4f4;
    --text-dark: #333;
    --text-muted: #aaa;
    --border-color: #444;

    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean sans-serif */
    --font-headings: 'Segoe UI Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --transition-speed: 0.3s;
    --animation-delay: 0.15s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto; /* Center container */
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--accent-yellow);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; color: var(--text-light); }
h4 { font-size: 1.1rem; color: var(--accent-yellow); }

p {
    margin-bottom: 1rem;
}
/* Added class for consistent intro paragraphs below H2 */
p.section-intro {
    text-align: center;
    max-width: 700px; /* Constrain width */
    margin-left: auto; /* Center */
    margin-right: auto; /* Center */
    color: var(--text-muted); /* Slightly less prominent */
    margin-bottom: 2rem; /* Space before next element */
}


a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover, a:focus {
    color: #e6c300;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space */
}

/* --- Header --- */
.site-header {
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-yellow);
}

.main-nav ul {
    display: flex;
}

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

/* UPDATED Nav Link Styling */
.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0.1rem; /* Added tiny horizontal padding for spacing */
    position: relative; /* Needed for pseudo-element */
    display: inline-block; /* Ensures proper block context */
    vertical-align: middle; /* Align text properly */
    overflow: hidden; /* Keep effect contained */
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; /* Position at the bottom */
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: left var(--transition-speed) ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    left: 0; /* Slide in on hover/focus */
}


/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(26, 26, 26, 0.9)), url('placeholder-bg.jpg') no-repeat center center/cover;
    background-color: var(--bg-darker);
    position: relative;
}

.hero-section h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.hero-section h1::first-line {
    color: var(--accent-yellow);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto; /* Centering */
}


/* --- Content Sections --- */
.content-section {
    padding: 4rem 0;
}

.dark-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 1rem; /* Reduced bottom margin */
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}


/* --- Services List --- */
.services-list {
    max-width: 600px; /* Constrain width */
    margin: 2rem auto 0 auto; /* Center list block */
}
.services-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex; /* Use flex for alignment */
    align-items: center;
}
.services-list .icon {
    margin-right: 0.7rem;
    color: var(--accent-yellow);
    width: 25px; /* Ensure consistent icon space */
    text-align: center;
    flex-shrink: 0; /* Prevent icon shrinking */
}


/* --- Web App Highlight (UPDATED for Logo) --- */
.webapp-highlight {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px; /* Increased max-width slightly */
    margin: 2rem auto 0 auto; /* Centering */
    border: 1px solid var(--border-color);
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align items */
    gap: 1.5rem; /* Space between logo and text */
}

.webapp-logo {
    width: 100px; /* Control logo size */
    height: 100px;
    object-fit: cover; /* Ensure aspect ratio is maintained */
    border-radius: 5px; /* Optional: slightly rounded corners */
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.webapp-info {
    text-align: left; /* Align text left within its container */
    flex-grow: 1; /* Allow text block to take remaining space */
}

.webapp-info h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}
.webapp-info p {
    margin-bottom: 1rem;
    color: var(--text-muted); /* Subtle description */
}
.webapp-info .cta-button {
    margin-top: 1rem;
    margin-right: 1rem;
}
.learn-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.learn-more-link:hover {
    color: var(--accent-yellow);
}


/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}
.feature-item .icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--accent-yellow);
    display: inline-block;
    width: 25px; /* Align icons */
    text-align: center;
}
.feature-item h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .cta-button:focus {
    background-color: #e6c300;
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem; /* Increased space before footer */
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* --- Animations --- */
/* Initial state for load animations */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}
.animate-on-load.delay-1 { animation-delay: var(--animation-delay); }
.animate-on-load.delay-2 { animation-delay: calc(var(--animation-delay) * 2); }

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

/* Initial state for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State when element becomes visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .site-header .container {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap; /* Allow nav items to wrap */
    }
    .main-nav li {
        margin: 0.3rem 0.8rem; /* Adjust vertical/horizontal spacing */
    }

    .hero-section {
        min-height: 60vh;
        padding-top: 150px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .content-section { padding: 3rem 0; }

    /* Adjust webapp highlight on smaller screens */
    .webapp-highlight {
        flex-direction: column; /* Stack logo and text */
        text-align: center; /* Center text when stacked */
        max-width: 400px; /* Adjust width for stacked view */
    }
     .webapp-info {
        text-align: center; /* Ensure text is centered */
    }
    .webapp-logo {
        width: 80px; /* Slightly smaller logo */
        height: 80px;
        margin-bottom: 1rem; /* Space below logo */
    }


    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }

    .main-nav li { margin: 0.2rem 0.5rem; }
    .main-nav a { padding: 0.3rem 0; }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
     .webapp-highlight {
        padding: 1.5rem;
     }
}