/* Variables and Base Styles */
:root {
    --primary-font: 'Open Sans', sans-serif;
    --text-color: #333333;
    --heading-color: #000000;
    --gray-bg: #ececec;
    --gray-card-bg: #cccccc;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.max-w-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

.gray-bg {
    background-color: var(--gray-bg);
}

.white-bg {
    background-color: var(--white);
}

.gray-card-bg {
    background-color: var(--gray-card-bg);
}

/* Header & Menu */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

#header.scrolled {
    background: rgba(169, 169, 169, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    /* Adjust based on logo size */
    width: auto;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu ul li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.menu ul li a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Burger Animation */
.burger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Masthead */
.masthead {
    height: 100vh;
    background-image: url('../images/masthead.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Our Services & About Us Texts */
h1,
h2 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 30px;
}

#our-services h1 {
    font-size: 56px;
    line-height: 1.1;
}

#our-works h2,
#about-us h2 {
    font-size: 56px;
    line-height: 1.1;
}

#our-services p,
#about-us p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
}

#our-services p:last-child,
#about-us p:last-child {
    margin-bottom: 0;
}

/* Our Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.work-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    flex-grow: 1;
    padding: 30px 20px;
    text-align: left;
}

.work-content h3 {
    font-size: 24px;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.work-content p {
    font-size: 14px;
    line-height: 24px;
    color: var(--text-color);
}

.more-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.more-content h3 {
    margin-bottom: 0;
    text-align: center;
}


/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 120px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left p {
    font-size: 13px;
    line-height: 29px;
    color: #aaaaaa;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item img {
    width: 20px;
    height: auto;
    margin-top: 5px;
}

.contact-item p {
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

/* Animations setup */
.animate-on-scroll {
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    #our-services h1,
    #our-works h2,
    #about-us h2 {
        font-size: 40px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .burger-menu {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .menu.open {
        right: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .menu ul li a {
        font-size: 20px;
    }
}