/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: black;
    color: white;
    scroll-behavior: smooth;
}

/* Header Section */
#header {
    width: 100%;
    height: 100vh;
    background: url(img/ddQQ.png) center/cover;
}

.logo {
    padding-top: 30px;
    height: 150px;
    width: 140px;
}

#logocen {
    padding-top: 35px;
    width: 80px;
    height: 60px;
}

.container {
    padding: 10px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 20%;
    height: 3px;
    background: rgb(248, 199, 107);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header Text */
.header-text {
    text-align: center;
    padding: 10px;
}

#p1, #p2 {
    font-size: 30px;
    color: white;
    padding-top: 100px;
}

h1 {
    color: rgb(248, 199, 107);
    text-align: center;
}

/* About Section */
#about {
    padding: 20% 0 80px;
    color: rgb(248, 199, 107);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.abt-col1 {
    flex-basis: 35%;
}

.abt-col1 img {
    width: 100%;
    padding-left: 40px;
    border-radius: 90px;
}

.abt-col2 {
    flex-basis: 60%;
    color: white;
    font-weight: 300;
}

/* Tabs */
.tabtitles {
    display: flex;
    margin: 20px 0;
    color: yellow;
}

.tablinks {
    margin-right: 50px;
    color: rgb(248, 199, 107);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.tablinks::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    bottom: -8px;
    left: 0;
    transition: 0.5s;
}

.tablinks:hover::after {
    width: 100%;
}

.tabcontents {
    display: none;
    color: white;
    font-weight: 400;
}

.tabcontents.activetab {
    display: block;
}

/* Services Section */
.servicelist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 40px;
}

.servicelist div {
    background-color: grey;
    border-radius: 5px;
    padding: 40px;
    transition: transform 0.3s, background-color 0.3s;
}

.servicelist div:hover {
    background: rgb(248, 199, 107);
    transform: translateY(-10px);
}

/* Work Section */
.worklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 40px;
}

.worklist div {
    background-color: grey;
    border-radius: 5px;
    padding: 40px;
    transition: transform 0.3s;
}

.worklist div:hover {
    background-color: lightgrey;
    transform: scale(1.05);
}

/* Contact Section */
#contact {
    background-color: rgb(248, 199, 107);
    flex-basis: 50%;
    padding: 40px 50px;
}

#cv, #submit {
    background-color: #ff004f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

#submit {
    background-color: rgb(248, 199, 107);
    color: black;
}

/* Input Fields */
.input-field {
    background-color: rgba(57, 53, 53, 0.877);
    width: 60%;
    height: 40px;
    color: white;
    border: none;
    padding: 10px;
}

#msg {
    height: 80px;
}

/* Footer */
#footer {
    background-color: rgb(255, 153, 0);
    text-align: center;
    padding: 20px;
}

#fp {
    font-size: 20px;
    font-weight: 300;
    background-color: rgb(247, 184, 108);
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header-text h1 {
        font-size: 1.5em;
    }

    .row {
        flex-direction: column;
    }

    .abt-col1 img, #abtimg {
        width: 80%;
        margin: 0 auto;
    }

    .tabtitles, .tabcontents ul {
        text-align: center;
    }

    .servicelist, .worklist {
        padding: 0 20px;
    }
}
