* {
    margin-left: 10px;
    margin-right: 10px;
    padding: 0px;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: rgb(34, 34, 39);
    color: white;
}

#header {
    width: 100%;
    height: 400px;
    /* Updated to the correct spelling assuming an images folder */
    background-image: url(images/background.png); 
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Hide menu icons on desktop */
nav .fa-solid {
    display: none;
}

.logo {
    width: 260px;
    height: 90px;
    padding: 3px 2px;
    font-size: 55px;
    font-weight: 900;
    color: #ff004f;
    background-color: transparent; /* Fixed */
    border: 2px solid white;
    text-decoration: none;
    box-shadow: 0px 0px 6px 2px grey;
}

.logo:hover {
    content: '';
    font-style: italic;
    color: white;
    border: 4px solid #ff004f;
    width: 270px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0px;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0px;
    bottom: -8px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 80px;
}

.header-text {
    font-size: 30px;
    margin-top: 20px;
}

.header-text h1 {
    font-size: 50px;
    margin-top: 20px;
}            

.header-text h1 span {
    color: #ff004f;
}

/* --- LEAD MAGNET POPUP --- */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark background overlay */
    z-index: 9999; /* Ensures it sits on top of everything */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #262626;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    border: 1px solid #ff004f;
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.4);
}

.popup-content h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 25px;
}

.popup-content p {
    color: #ababab;
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border-radius: 6px;
    border: 1px solid red;
    background: #333;
    color: #fff;
    font-size: 16px;
    outline: none;
}
/* --- MOBILE POPUP ADJUSTMENTS --- */
@media only screen and (max-width: 768px) {
    .popup-content {
        padding: 25px 15px; /* Shrinks the bulky inner spacing */
        width: 95%; /* Lets it stretch a bit wider on tiny screens */
    }
    
    .popup-content h2 {
        font-size: 22px; /* Slightly smaller heading */
    }
    
    .popup-content p {
        font-size: 13px; /* Slightly smaller text */
        margin-bottom: 15px;
    }
    
    .popup-content input {
        padding: 10px;
        margin: 10px 0 15px;
    }
}

/* About */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    height: 450px;
    width: 90%;
    border: 2px solid;
    margin-top: 40px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: white;
}

.tab-titles {
    display: flex;
    margin: 20px 0px 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0px;
}

.tab-contents ul li span {
    color: #89193c;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* Service */
#services {
    padding: 30px 0;
}

.services-list {
    width: 100%;
    height: 300px;
    margin-top: 50px;
    float: left;
}

.div1 {
    width: 300px;
    height: 250px;
    float: left;
    margin: 0px 40px 0px 0px;
}

.div2 {
    width: 300px;
    height: 250px;
    float: left;
    margin: 0px 40px 0px 0px;
}

.div3 {
    width: 300px;
    height: 250px;
    float: left;
    margin: 0px 40px 0px 0px;
}

.services-list div {
    background: #2b2929;
    padding: 20px;
    border-radius: 15px;
}

.services-list div i {
    font-size: 40px;
}

.services-list div h2 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

.services-list div a {
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    margin-top: 10px;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
    transition: 0.5s;
}

/* Portfolio */
#portfolio {
    width: 100%;
    padding: 0px 0px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    overflow: hidden;
}

.work {
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
    border-radius: 10px;
    position: relative;
    display: block;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    margin: 0px 0px 0px 10px;
}

.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0px;
    bottom: 0px;
    overflow: hidden;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 40px;
    font-size: 14px;
}

.layer h3 {
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
}

.layer a {
    width: 60px;
    height: 60px; /* Fixed */
    color: #ff004f;
    font-size: 18px;
    text-decoration: none;
    background: #fcfbfb;
    line-height: 60px;
    text-align: center;
    margin-top: 20px;
    border-radius: 50px;
}

.work:hover img {
    overflow: hidden;
    transform: scale(1,1);
    transition: 2s;
}

.work:hover .layer {
    height: 100%;
    width: 100%;
    transition: height 0.6s; 
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid red;
    border-radius: 6px;
    text-decoration: none;
    color: #fd0202;
    padding: 14px 50px;
    background: #262626;
    font-size: 18px;
}

.btn:hover {
    background-color: red;
    color: #fff;
    transition: 0.5s;
    border: 1px solid white;
}

/* Contact */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #0f66e8; 
    margin-right: 15px;
    font-size: 25px;
}

.contact-left p i:hover {
    transition: 0.5s;
    color: red;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 10px;
    color: #1851c2;
    display: inline-block;
}

.social-icons a:hover {
    color: red;
    transform: translateY(-5px);
    transition: 0.5s;
}

.btn.btn2 {
    display: inline-block;
    color: white;
    background: red;
}

.contact-right form {
    width: auto;
    margin: 40px 0px 0px 150px;
}

form input, form textarea {
    width: 80%;
    height: auto;
    border: 1px solid red;
    outline: none;
    margin: 10px 50px;
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    color: #fff;
    background: #262626;
}


/* --- MOBILE RESPONSIVE DESIGN --- */
@media only screen and (max-width: 768px) {
    /* Header & Nav */
    .header-text {
        margin-top: 100px;
        font-size: 20px;
    }
    .header-text h1 {
        font-size: 35px;
    }
    
    /* Make the icons visible on mobile */
    nav .fa-solid {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }
    
    /* Style the sliding side menu */
    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px; /* Starts completely off-screen to the right */
        width: 200px;
        height: 100vh; /* Takes up full height of the screen */
        padding-top: 50px;
        z-index: 2; /* Ensures it sits on top of other content */
        transition: right 0.5s; /* Creates the smooth sliding animation */
    }
    
    nav ul li {
        display: block;
        margin: 25px;
    }
    
    /* Position the close 'X' icon inside the menu */
    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    /* About Section */
    .about-col-1, .about-col-2 {
        flex-basis: 100%; /* Stacks the image and text */
    }
    .about-col-1 {
        margin-bottom: 30px;
        text-align: center;
    }
    .about-col-1 img {
        width: 100%;
        height: auto;
    }
    .sub-title {
        font-size: 40px;
    }

    /* Services */
    .services-list {
        height: auto;
        margin-top: 20px;
    }
    .div1, .div2, .div3 {
        width: 100%;
        height: auto;
        float: none; /* Overrides the float so they stack */
        margin: 0 0 30px 0;
    }

    /* Portfolio */
    .work-list {
        grid-template-columns: 1fr; /* 1 column grid for mobile */
    }

    /* Contact */
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    .contact-right form {
        margin: 40px 0 0 0;
    }
    form input, form textarea {
        width: 100%;
        margin: 10px 0;
    }
}