/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   BASE ELEMENTS
========================= */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

main {
    max-width: 1000px;
    margin: 20px auto;
}

section {
    margin-bottom: 40px;
}

a {
    color: white;
    text-decoration: none;
}

nav a {
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}


/* =========================
   LAYOUT ELEMENTS
========================= */

header {
	background-color: #fff;
	color: #384171;
	
}

footer,
#divider {
    background-color: #384171;
    color: white;
    text-align: center;
    padding: 5px 0;
}
header .header-container {
    display: flex;
	gap: 0;
	padding: 0;
	justify-content: space-between;
}

header .header-logo img {
    max-width: 50%;
}

.header-info,
.header-logo {
    text-align: left;
}

.header-info {
    padding: 20px 0;
    height: 250px;
	margin-left: 100px;
}
.header-logo img {
	height: 270px !important;
	width: auto !important;
	max-width: unset !important;
	border-radius: unset !important;
}

.header-info p {
    margin: 0;
}


/* =========================
   IDS
========================= */

#divider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 15px 0;
}

#services {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#services .service-box {
    background-color: #384171;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px 30px;
    border-radius: 8px;
    width: 100%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#services .service-box:hover {
    background-color: #2b3058;
    transform: translateY(-5px);
    cursor: pointer;
}

#projects {
    margin-bottom: 40px;
}

#projects .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 20px;
    margin-top: 20px;
}

#projects .image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    opacity: 0.8;
}

#projects .image-grid img:hover {
    opacity: 1;
}


/* =========================
   CLASSES
========================= */

.two-column {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
    padding: 20px 0;
}

.two-column img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.two-column h1,
.two-column h2,
.two-column p {
    margin-bottom: 10px;
}

.two-column a {
    color: #384171;
    text-decoration: underline;
}

.about-image {
    flex: 0 0 350px;
    max-width: 350px;
}

.about-image img {
    width: 100%;
	max-width: 100%;
    height: auto;
    display: block;
	background: white;
}


/* =========================
   MEDIA QUERY
========================= */

@media screen and (max-width: 768px) {

    .two-column {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
	
	.header-info {
		width: 100%;
		margin-left: 50px;
	}
	
	.two-column {
		padding: 20px 10px;
	}

    .two-column .about-image,
    .two-column .header-logo {
        margin-bottom: 20px;
    }

    header .header-logo img {
        max-width: 100%;
    }

    #projects {
        padding: 20px;
    }

    #projects .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    #projects .image-grid img {
        height: auto;
    }

    #services .service-box {
        text-align: center;
        padding: 15px 10px;
    }
}