/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #0f172a;
    --text: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Header & Navigation ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.25s, transform 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--light);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.page-hero {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

/* ===== Sections ===== */
.features,
.content-section,
.values {
    padding: 5rem 0;
}

.features h2,
.values h2,
.content-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1.2rem 1.2rem 0.4rem;
    color: var(--secondary);
}

.card p {
    padding: 0 1.2rem 1.5rem;
    color: var(--gray);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== Services ===== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.service-item.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.service-item.reverse img {
    order: 2;
}

.service-item img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.service-item p {
    color: var(--gray);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1.3rem;
}

.info-item strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.contact-form {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 4.5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cta p {
    margin-bottom: 1.8rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
footer {
    background: var(--secondary);
    color: #cbd5e1;
    padding-top: 3.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-brand .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

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

    .about-grid,
    .contact-grid,
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
    }

    .service-item.reverse img {
        order: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
