/* body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0; /* Equal left and right padding */
    background-color: #f4f4f4;
    box-sizing: border-box;
}

/* main */
main {
    background: #fff;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Font */
h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

h2 {
    color: #90EE90;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 24px;
}

h3 {
    color: #8bc34a;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 10px;
    box-sizing: border-box;
}

.cta h2 {
    margin-bottom: 20px;
    border-bottom: none;
    color: #fff;
}

/* Button */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* head */
header {
    background: #fff;
    padding: 1rem 20px; /* Ensure equal left and right padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; /* Ensure header is full width */
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
}

header img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

header h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Ensure list items wrap if necessary */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* hero */
.hero-canvas {
    width: 100%;
    height: 240px;
    /* background: linear-gradient(135deg, #3498db, #2c3e50); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.hero-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('https://source.unsplash.com/random/1200x800?career') no-repeat center center; */
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-canvas h1,
.hero-canvas p {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-canvas h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-canvas p {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* footer */
.footer-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

footer {
    background: #2980b9;
    color: #fff;
    text-align: center;
    padding: 1rem 20px;
    margin-top: 20px;
    width: 100%; /* Ensure footer is full width */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

.social-icons img {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
}

.social-icons img:hover {
    transform: scale(1.2); /* Scale the images on hover */
}

/* System Styles */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-canvas {
        height: 350px;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-text p {
        font-size: 1.2em;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header {
        flex-direction: row;
        align-items: flex-start;
    }

    nav ul {
        display: flex;
        list-style: none;
    }

    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: var(--primary-color);
    }

    .menu-toggle {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-canvas {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .canvas-container {
        flex-direction: row;
        justify-content: space-between;
        font-size: 18px;
    }

    .canvas {
        width: 30%;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    header {
        padding: 1rem 20px; /* Ensure equal padding on small screens */
    }

    header h1 {
        font-size: 20px;
        padding: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0; /* Reset padding */
        margin: 0; /* Reset margin */
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero-canvas h1 {
        font-size: 28px;
    }

    .hero-canvas p {
        font-size: 18x;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-item,
    .service-item {
        padding: 15px;
    }

    .feature-item h3,
    .service-item h3 {
        font-size: 18px;
    }

    .feature-item p,
    .service-item p {
        font-size: 14px;
    }

    .canvas-container {
        flex-direction: row;
        justify-content: space-between;
        font-size: 10px;
    }

    .canvas {
        width: 30%;
    }

    footer {
        padding: 1rem 20px;
    }
}
