:root {
    --primary-color: #1ca2ff;
    --secondary-color: #105e95;
    --type-dark: #333;
    --type-black: #181818;
    --light-color: #f9f9f9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--type-dark);
    background: var(--light-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dark {
    color: var(--type-dark);
}

.blue {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

sub {
    background: var(--primary-color);
    color: #fff;
    padding: 1.5rem 0;
}

nav ul {
    list-style: none;
}

nav a.btn {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    padding: 0;
}

nav a:hover {
    filter: opacity(0.7);
}

a,
a:visited {
    color: var(--primary-color);
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu,
.sub-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.sub-content {
    justify-content: space-around;
}

.sub-content li {
    text-align: center;
    line-height: 1.4rem;
    font-size: 1rem;
}

.sub-content li .large {
    font-size: 3em;
    font-weight: bold;
}

.sub-content li img {
    height: 4em;
    margin-bottom: 1em;
}

.logo {
    background-color: white;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    flex: 0;
}

.logo img,
.logo a {
    height: 120px;
}

@media (max-width: 768px) {

    .logo img,
    .logo a {
        height: 80px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 0.5rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}

section ul {
    margin-top: 1rem;
}

section ul li {
    list-style-position: inside;
    list-style: disc;
}

ul li::marker {
    color: var(--primary-color);
}

.hero {
    background: #ffffff;
    color: var(--type-dark);
    padding: 3rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1em;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    vertical-align: bottom;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

a.btn,
button.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1.3rem;
    cursor: pointer;
    border: 0;
}

.service button.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1.3rem;
    cursor: pointer;
    border: 0;
}

.btn-link {
    text-decoration: none;
    color: var(--type-dark);
    font-weight: bold;
    font-size: 2rem;
}

button.link {
    font-size: 1.2em;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    border: 0;
    background: transparent;
    cursor: pointer;
}


.btn-link img {
    height: 1.5em;
    line-height: 1em;
    vertical-align: middle;
}

.btn:hover {
    filter: opacity(0.7);
}

section {
    padding: 4rem 0;
    flex: 1;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0 0.8rem 0;
    font-weight: 600;
}

.service h3 {
    text-align: center;
}

.service p {
    padding: 1rem 1.5rem;
}

.service-grid,
.skill-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


@media (max-width: 768px) {

    a.btn,
    button.btn {
        padding: 0.75rem 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-text h1,
    .hero-text p {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-image {
        margin-top: 0rem;
    }

    a.btn {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {

    .service-grid,
    .skill-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .sub-content {
        zoom: 0.6;
    }

    sub {
        padding: 0.6rem 0;
    }

    section {
        padding: 1rem 0;
    }

    .hero {
        padding: 1rem;
    }
}

.service,
.skill-card,
.pricing-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service {
    padding: 1rem 0;
}

.service img {
    width: 100%;
    border-radius: 0;
}

.service ul {
    padding: 0 4rem;
}

.service ul li {
    font-size: 1.1em;
}

.pricing-card {
    padding: 1.5rem 3rem;
}

.service i,
.pricing-card i,
.skill-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


.service .card-link {
    display: inline-block;
    text-align: center;
    height: 1em;
    line-height: 1em;
    margin: 1em 0;
}

.service .card-link a {
    font-size: 1.2em;
    text-decoration: none;
}

.service .card-link i {
    font-size: 1em;
    vertical-align: center;
}

.service .icon {
    height: 2rem;
    width: auto;
    border-radius: 0;
    margin-bottom: 1rem;
}

#services h2 i {
    color: var(--type-dark);
}

.service h3,
.skill-card h3,
.pricing-card h3 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1rem;
}

.skill-card p,
.pricing-card p {
    flex: 1;
    text-align: left;
}

.pricing-card p {
    text-align: center;
    line-height: 1.2em;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

footer {
    background: var(--type-black);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    footer {
        font-size: 0.8rem;
        margin-top: 2rem;
    }
}

.price {
    font-weight: bold;
    font-size: 2em;
    color: var(--primary-color);
}

#contact {
    padding-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 0 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

.contact-form select.clean {
    color: #757575;
}

.contact-form option.placeholder {
    color: #757575;
}

.contact-form select option {
    color: var(--type-dark);
}

.contact-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
}

.contact-form #cancelBtn {
    background: var(--type-dark);
}

.contact-form button:hover {
    opacity: 0.9;
}

.thank-you-msg {
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.5rem;
    color: #59ba74;
    font-weight: bold;
}

.error-msg {
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.5rem;
    color: #ea6060;
    font-weight: bold;
}

.pricing-card img {
    width: 100%;
    border-radius: 0.5rem;
}

#modalHeader {
    margin: 1rem 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding-top: 1rem;
    border-radius: 8px;
    max-width: 600px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 0rem;
    right: 1rem;
    font-size: 2.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.no-scroll {
    overflow: hidden;
}

body.not-found .hero {
    padding: 1rem 0;
}

body.not-found .hero-image img {
    border: none;
}