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

html{
    scroll-behavior: smooth;
}
body{
    background: #080808;
    color: #fff;
    line-height: 1.6;
}

#header{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.container{
    padding: 20px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

nav h1{
    font-size: 45px;
    font-weight: 600;
}
nav h1 span{
    color: #ff004f;
}

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

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

nav ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover{
    color: #ff004f;
}

nav ul li a::after{
    content: '';
    background-color: #ff004f;
    width: 0%;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

.header-text{
    margin-top: 15%;
    font-size: 24px;
}

.header-text h1{
    margin-top: 20px;
    font-size: 55px;
    line-height: 1.2;
}

.header-text h1 span{
    color: #ff004f;
}

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

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-col-1{
    flex-basis: 35%;
    min-width: 300px;
}

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

.about-col-1 img:hover{
    transform: scale(1.02);
}

.about-col-2 {
    flex-basis: 60%;
    min-width: 300px;
}

.sub-title{
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.sub-title::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #ff004f;
    border-radius: 2px;
}

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

.tab-links{
    margin-right: 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.tab-links:hover{
    color: #ff004f;
}

.tab-links::after{
    content: '';
    background: #ff004f;
    width: 0%;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: .5s;
}

.tab-links.active-link{
    color: #ff004f;
}

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

.tab-content ul li{
    list-style: none;
    margin: 20px 0;
    padding-left: 20px;
    position: relative;
}

.tab-content ul li::before{
    content: '▹';
    position: absolute;
    left: 0;
    color: #ff004f;
}

.tab-content ul li span{
    color: #ff004f;
    font-weight: 500;
    font-size: 16px;
}

.tab-content{
    display: none;
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* services */
#services{
    padding: 80px 0;
}

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

.service-card{
    background: #262626;
    padding: 40px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    transition: all 0.5s ease;
    border: 1px solid #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: #ff004f;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 79, 0.3);
}

.service-card i{
    font-size: 50px;
    margin-bottom: 30px;
}

.service-card h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.service-card p:not(.more-text){
    flex-grow: 1;
}

.more-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease, opacity 0.7s ease, margin 0.7s ease;
    opacity: 0;
    margin-top: 0;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.more-text.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.learn-more {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: #fff;
    color: #ff004f;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    align-self: flex-start;
}

.service-card:hover .learn-more{
    background: #080808;
    color: #fff;
}

.learn-more:hover {
    background-color: #080808 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* portfolio */
#portfolio{
    padding: 80px 0;
}

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

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.work img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.7), #ff004f);
    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;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 24px;
}

.layer p{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.layer a {
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.layer a:hover {
    background: #ff004f;
    color: #fff;
    transform: scale(1.1);
}

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

.work:hover .layer{
    height: 100%;
}

/* contact */
.contact{
    padding: 80px 0;
}

.contact-left{
    flex-basis: 35%;
    min-width: 300px;
}

.contact-right{
    flex-basis: 60%;
    min-width: 300px;
}

.contact-left p{
    margin-top: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

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

.btn{
    margin: 40px 10px 40px 0;
    padding: 15px 25px;
    background: #ff004f;
    display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn:hover{
    background: #e60045;   
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 79, 0.3);
}

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

.social-icons a{
    text-decoration: none;
    font-size: 35px;
    margin-right: 25px;
    color: #ababab;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #333;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus{
    border-color: #ff004f;
}

form .btn{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

nav .fa-solid{
    display: none;
}

#msg{
    color: #61b752;
    margin-top: -20px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {

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

    nav ul {
        
        background: #ff004f;
        position: fixed;
        top: -20px;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

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

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


    .container{
        padding: 20px 5%;
    }
    
    nav h1{
        font-size: 35px;
    }
    
    nav ul{
        margin-top: 20px;
    }
    
    .header-text{
        margin-top: 20%;
        font-size: 20px;
    }
    
    .header-text h1{
        font-size: 40px;
    }
    
    .sub-title{
        font-size: 32px;
    }
    
    .about-col-1, .about-col-2, .contact-left, .contact-right{
        flex-basis: 100%;
    }
    
    .tab-titles{
        justify-content: flex-start;
    }
    
    .tab-links{
        margin-right: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    nav h1{
        font-size: 28px;
    }
    
    .header-text h1{
        font-size: 32px;
    }
    
    .services-list, .work-list{
        grid-template-columns: 1fr;
    }
    
    .service-card, .work{
        min-width: 100%;
    }
    .contact-left span{
        font-size: 16px;
    }

}