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

html {
    scroll-behavior: smooth;
}

body {
    background: #121212;
    color: #f5f5f5;
}

#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: #f5f5f5; /* Link color */
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

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

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

a {
    color: #f5f5f5; /* 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: #cc5200;
}

/* About */
#about {
    padding: 80px 0;
    color: #cccccc;
}

.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: #f5f5f5;
    margin-bottom: 20px; /* Add margin to space out the subtitle */
}

.about-me-text {
    margin: 20px 0; /* Add margin to space out the text */
}

.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: #cc5200;
    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: #cc5200;
    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: #1f1f1f;
    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: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

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

.services-list div:hover {
    background-color: #cc5200;
    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: #121212; /* 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), #cc5200);
    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;
    transition: transform 0.3s;
    transform: translateY(100%);
}

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

.layer a {
    margin-top: 20px;
    color: #cc5200;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #f5f5f5;
    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 #cc5200;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.3s, color 0.3s;
}

.btn:hover,
.btn.btn2:hover,
form .btn2:hover {
    background: #cc5200;
    color: #121212; /* Ensure the text color changes to a visible color if needed */
}

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

.contact-right {
    flex-basis: 60%;
}

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

.contact-left p i {
    color: #cc5200;
    margin-right: 15px;
    font-size: 25px;
}

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

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

social-icons a:hover {
    color: #cc5200;
    transform: translateY(-5px);
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn.btn2,
form .btn2 {
    display: inline-block;
    background: #cc5200;
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    align-self: center; /* Center the button */
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #1f1f1f;
    padding: 15px;
    margin: 15px 0;
    color: #f5f5f5;
    font-size: 18px;
    border-radius: 6px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #1f1f1f;
    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;
    }

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

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

    nav ul {
        background: #cc5200;
        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;
    }
}

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

/* Change the highlight color */
::selection {
    background-color: #cc5200; /* Highlight color */
    color: #121212; /* Text color */
}

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

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

#copy-message {
    position: absolute;
    background: #1f1f1f;
    color: #cccccc;
    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 */
}
