/* ===============================
   General Styles
=============================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #EFE8F6;
    color: #4B0082;
    margin: 0;
    padding: 0;
}

/* ===============================
   Header Styling
=============================== */
header {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    color: white;
    background-color: #6A0DAD; /* fallback color */
    background-image: url('../images/img5.png.jpeg'); /* HEADER IMAGE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for text readability */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

header h1,
header p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ===============================
   Navigation
=============================== */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

nav a {
    text-decoration: none;
    color: #6A0DAD;
    font-weight: bold;
    font-size: 18px;
}

nav a:hover {
    color: #8A2BE2;
}

/* ===============================
   Sections
=============================== */
section {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(106, 13, 173, 0.2);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 8px;
    border-bottom: 1px solid #6A0DAD;
}

/* ===============================
   Projects
=============================== */
.project {
    margin-bottom: 30px;
}

.project h3 {
    margin-top: 0;
}

.project p a {
    text-decoration: none;
    color: #6A0DAD;
}

.project p a:hover {
    color: #8A2BE2;
}

/* ===============================
   Case Study Screenshots
=============================== */
.case-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.case-screenshots img {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(106, 13, 173, 0.2);
}

/* ===============================
   Contact Section
=============================== */
#contact {
    text-align: center;
}

#contact a {
    color: #6A0DAD;
    text-decoration: none;
}

#contact a:hover {
    color: #8A2BE2;
}

/* ===============================
   Footer
=============================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #6A0DAD;
    color: white;
    margin-top: 40px;
}

/* ===============================
   Responsive Styles
=============================== */
@media (max-width: 768px) {
    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 16px;
    }

    .case-screenshots img {
        width: 90%;
    }
}
