* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

:root {
    --bg: #0f1116;
    --surface: #181b24;
    --text: #f5f5f5;
    --muted: #d2d7e8;
    --accent: #ffb180;
    --highlight: #2f63e0;
    --button-blue: #5b86ea;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text); /* Link color */
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--highlight); /* Highlight color */
    position: absolute;
    left: 0;
    bottom: -6px;
}

nav ul li a:hover::after {
    width: 100%;
    transition: 0.3s;
}

a {
    color: var(--text); /* Default link color */
    text-decoration: none;
}


.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 50px;
    font-weight: 700;
}

.header-text h1 span {
    color: var(--accent);
}

/* About */
#about {
    padding: 80px 0;
    color: var(--muted);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* Add some gap between columns */
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px; /* Add margin to space out the subtitle */
    line-height: 1.05;
}

.about-me-text {
    margin: 20px 0;
    line-height: 1.65;
    color: var(--muted);
}

.about-me-text p {
    margin-bottom: 15px; /* Add margin to paragraphs */
}

ul {
    padding-left: 20px; /* Add padding to the left of the list */
}

ul li {
    margin-bottom: 10px; /* Add margin to the bottom of each list item */
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    position: relative;
}

.links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--highlight);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.3s;
}

.links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: var(--accent);
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* Services */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: var(--surface);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.3s, transform 0.3s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div p {
    line-height: 1.6;
    font-size: 14px;
}

.services-list div a {
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background-color: var(--highlight);
    transform: translateY(-10px);
}

/* Portfolio */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 300px; /* Set a fixed height for uniformity */
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    background-color: var(--bg); /* Background color to fill any gaps */
}

.work img {
    width: 100%;
    height: 100%; /* Ensure images cover the container */
    object-fit: contain; /* Ensure the whole image fits inside the container */
    border-radius: 10px;
    transition: transform 0.3s;
}

.layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--highlight));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    transition: transform 0.3s;
    transform: translateY(100%);
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 22px;
}

.layer a {
    margin-top: 20px;
    color: var(--highlight);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    transform: translateY(0);
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--button-blue);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--button-blue);
    transition: background 0.3s, color 0.3s;
}

.btn:hover,
.btn.btn2:hover,
form .btn2:hover {
    background: var(--highlight);
    color: #ffffff; /* Ensure the text color changes to a visible color if needed */
}

/* Contact */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-right h1 {
    text-align: center;
    width: 100%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--muted);
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons a:hover {
    color: var(--highlight);
    transform: translateY(-5px);
}

.contact-left a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-left a:hover {
    color: var(--highlight);
}

form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn.btn2,
form .btn2 {
    display: inline-block;
    background: var(--button-blue);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    align-self: center; /* Center the button */
}

#contact .contact-right button.btn.btn2 {
    background-color: var(--button-blue) !important;
    border: 1px solid var(--button-blue) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.2;
}

#contact .contact-right button.btn.btn2:hover {
    background-color: var(--highlight) !important;
    border-color: var(--highlight) !important;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--surface);
    padding: 15px;
    margin: 15px 0;
    color: var(--text);
    font-size: 18px;
    border-radius: 6px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--surface);
    font-weight: 300;
    margin-top: 20px;
}

nav .fa-solid {
    display: none;
}

/* Add this to your styles.css */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
}

#sideMenu {
    z-index: 20; /* Ensure the menu is above the overlay */
}

/* Ensure the rest of your content has a lower z-index */
body *:not(#overlay):not(#sideMenu) {
    z-index: 0;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    #header {
        background-image: url(images/phone-background.png);
    }

    .container{
        flex-basis: 100%;
    }
    .header-text h1 {
        font-size: 30px;
        padding-top: 10px;
    }

    .sub-title {
        font-size: 42px;
    }

    .header-text {
        margin-top: 70%;
        font-size: 16px;
        margin-left: -20px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: var(--highlight);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.3s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .tab-contents.active-tab{
        text-align: left;
        margin-left: -17px;
    }

    .tab-contents{
        text-align: left;
        margin-left: -17px;
    }

    .about-col-2{
        text-align: left;
        margin-left: -17px;
    }
        
    .contact-left, .contact-right {
        flex-basis: 100%;
    }

    .contact-left {
        text-align: center;
    }

    .layer h3 {
        font-size: 20px;
    }
}

#message {
    color: #61b752;
    margin-top: -40px;
    display: block;
    text-align: center;
}

/* Change the highlight color */
::selection {
    background-color: var(--highlight); /* Highlight color */
    color: #ffffff; /* Text color */
}

.contact-left p:hover {
    text-decoration: underline;
    cursor: pointer;
}

.clickable {
    position: relative;
    cursor: pointer;
}

#copy-message {
    position: absolute;
    background: var(--surface);
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    top: -30px;
    left: 0;
    z-index: 100;
    white-space: nowrap;
}

/* AWS Badge Styling */
.aws-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.aws-badge-container div {
    width: 150px;
    height: 270px;
    border: none; /* Ensure no borders are around the iframe */
}
