/* ==== Base ==== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #f3f4f6;
}

/* Make images behave */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    color: #0ea5e9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Containers */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==== Header & Navigation ==== */

.site-header {
    background: #020617;
    color: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 52px;
    height: auto;
}

.logo-text h1 {
    font-size: 1.1rem;
    margin: 0;
}
.logo-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Nav */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #f9fafb;
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.nav-links a {
    color: #e5e7eb;
    font-weight: 500;
}
.nav-links a:hover {
    color: #f97316;
}

/* ==== Hero ==== */

.hero {
    background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #020617 100%);
    color: #f9fafb;
    padding: 3.5rem 0 3.25rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h2 {
    font-size: clamp(1.9rem, 2.5vw + 1.6rem, 2.6rem);
    margin: 0 0 1rem;
}
.hero-text p {
    max-width: 34rem;
    margin: 0 0 1.75rem;
    color: #e5e7eb;
}

.hero-image img {
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

/* Buttons */

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #f97316;
    color: #111827;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.25);
}
.btn-primary:hover {
    background: #fb923c;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(248, 113, 113, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: #e5e7eb;
    color: #e5e7eb;
}
.btn-outline:hover {
    background: #e5e7eb;
    color: #020617;
}

/* ==== Sections ==== */

.section {
    padding: 3.25rem 0;
    background: #f3f4f6;
}

.section.light {
    background: #ffffff;
}

.section h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    color: #4b5563;
    max-width: 38rem;
}

/* Two-column layout */

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: flex-start;
}

.bullet-list {
    padding-left: 1.1rem;
    margin: 0.5rem 0 0;
}
.bullet-list li + li {
    margin-top: 0.25rem;
}

/* ==== Cards (Services) ==== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}
.card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* ==== Projects ==== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #ffffff;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-text {
    padding: 0.85rem 1rem 1.05rem;
}

.project-text h4 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
}
.project-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* ==== Contact ==== */

.contact-section {
    border-top: 1px solid #e5e7eb;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}
.contact-list li + li {
    margin-top: 0.25rem;
}

.contact-list strong {
    font-weight: 700;
}

/* Form layout */

.contact-form {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.contact-form label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
}

.contact-form input,
.contact-form textarea {
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
    background: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.small {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

/* ==== Footer ==== */

.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.5rem 0 1.75rem;
    margin-top: 0.5rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
}

.footer-inner p {
    margin: 0.15rem 0;
}

.site-footer a {
    color: #e5e7eb;
}

/* ==== Responsive ==== */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-image {
        order: -1;
    }

    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        inset: 100% 0 auto 0;
        background: #020617;
        flex-direction: column;
        padding: 0.75rem 1.5rem 1rem;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .nav-links.nav-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 640px) {
    .cards-grid,
    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem 1.25rem;
    }
}
