:root {
    --bg-color: #0A0A1A; /* Very dark indigo */
    --primary-text-color: #E0E0EE; /* Soft white */
    --secondary-text-color: #A0A0B0; /* Muted grey */
    --accent-color: #00ACC1; /* Deep Teal */
    --glass-bg: rgba(15, 15, 30, 0.6); /* Darker, slightly more opaque glass */
    --glass-border: rgba(255, 255, 255, 0.08); /* Subtler border */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(at 20% 20%, hsla(212,40%,40%,0.3) 0px, transparent 50%),
        radial-gradient(at 80% 20%, hsla(280,40%,40%,0.3) 0px, transparent 50%),
        radial-gradient(at 20% 80%, hsla(180,40%,40%,0.3) 0px, transparent 50%),
        radial-gradient(at 80% 80%, hsla(340,40%,40%,0.3) 0px, transparent 50%);
    background-attachment: fixed;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%; /* Make the logo circular */
    object-fit: cover;   /* Prevent image distortion */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none; /* Hidden by default, shown in media query */
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001; /* Ensure it's above other content */
    padding: 10px; /* Make it easier to tap */
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--primary-text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0; /* Hide middle line when active */
}

/* --- Sections --- */
section {
    padding: 120px 5% 60px;
    /* min-height: 100vh; - Removed from general section, apply only to specific sections like #home */
    scroll-margin-top: 80px; /* Offset for fixed header when scrolling to section IDs */
    max-width: 1200px;
    margin: 0 auto;
}

section#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure home section takes full viewport height */
    text-align: center;
}

.hero-logo {
    width: 150px;
    margin-bottom: 1rem;
    border-radius: 50%; /* Make the logo circular */
    object-fit: cover;   /* Prevent image distortion */
}

#home h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--secondary-text-color);
}

/* --- Services Section --- */
#about,
#services { /* Apply general section styling to both */
    min-height: auto; /* Ensure these sections only take up necessary height */
    padding: 20px 5% 40px; /* Significantly reduced padding to bring sections much closer */
}

/* Specific styling for section titles */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: var(--secondary-text-color);
}

.intro p {
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two cards per line on larger screens */
    max-width: 900px; /* Widen the grid to accommodate two cards */
    margin: 0 auto; /* Center the grid */
    gap: 2rem;
}

.service-card p {
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(30px);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Final state for fade-in animation */
.glass-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    color: var(--secondary-text-color);
}

.service-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }

    nav {
        position: relative; /* Anchor for the absolute positioned mobile menu */
    }

    .hamburger {
        display: block; /* Show hamburger on smaller screens */
    }

    /* Hamburger animation for active state */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .services-grid {
        grid-template-columns: 1fr; /* Revert to one card per line on smaller screens */
    }

    nav ul {
        position: absolute;
        top: 100%; /* Position right below the nav bar */
        left: 0;
        width: 100%;
        background: rgba(25, 25, 35, 0.95); /* Darker, more opaque background for readability */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        border-radius: 0 0 20px 20px; /* Rounded bottom corners */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        padding: 1rem 0;
        /* Animation setup */
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none; /* Prevent interaction when hidden */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    nav ul.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li {
        margin: 1.5rem 0; /* More spacing for mobile links */
    }
}