/* --- Variables and Global Styles --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #3e85ef;
    --text-color: #e0e0e0;
    --text-muted-color: #8c8c8c;
    --border-color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* --- Header & Navigation --- */
header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav .logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 2.5rem;
}
nav ul li a {
    text-decoration: none;
    color: var(--text-muted-color);
    font-weight: 500;
    transition: color 0.2s ease;
}
nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Main Content & Typography (MODIFIED) --- */
main {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
main h1 {
    font-size: 2.8rem; /* Reduced from 3.5rem */
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}
main h2 {
    font-size: 1.8rem; /* Reduced from 2.2rem */
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
main .page-intro {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 900px; /* Increased from 700px to prevent early wrapping */
    margin-bottom: 4rem;
}

/* --- Homepage Specifics (MODIFIED) --- */
.hero {
    text-align: center;
    padding: 5rem 0;
}
.hero h1 {
    font-size: 3rem; /* Reduced from 3.5rem */
}
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted-color);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.button:hover {
    background-color: #2a71d8;
}
.content-section {
    padding: 4rem 0;
    text-align: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}
.feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}
.feature-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}
.text-button {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* --- Services & Contact Pages --- */
.service-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.service-section h2 {
    margin-top: 0;
    border-bottom: none;
}
.service-section ul {
    padding-left: 1.5rem;
    list-style-type: '✓  ';
}
.contact-details {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
}
.contact-details h2 {
    margin-top: 0;
    border-bottom: none;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.contact-details p {
    line-height: 1.5;
    margin-bottom: 0.7rem;
}
.contact-details p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    main h1, .hero h1 {
        font-size: 2.2rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted-color);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #2c2c2c;
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding */
}
.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive for contact grid */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* ADD THIS PART INSIDE */
    .contact-details {
        max-width: 100%;
        margin-top: 2rem;
    }
}

