*{
    margin : 0;
    padding : 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body{
    background: #080808;
    color: #fff;
}

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

#typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.container{
    padding: 10px 10%;
}

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

.logo{
    width: 140px;   
}

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

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #ff004f;
}
/* ---------------------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{
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}
.Subtitle{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.tab-title{
    display: flex;
    margin: 20px 0 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-color: #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 0;
}
.tab-contents ul li span{
    color: #b54769;
    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: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s ;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(0) scale(1);
}
.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: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background-color: #ff004f;
    color: #fff;
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 24px rgba(255,0,79,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ---------------------Portfolio--------------------------- */
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}
.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transform: translateY(0) scale(1);
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.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;
    font-size: 14px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.layer h2{
    font-weight: 300;
    margin-bottom: 20px;
}
.layer a {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.layer a:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}
.work .img{
    border-radius: 10px;
    height: 100 px;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.work:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 24px rgba(255,0,79,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
}
.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 2px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ff004f;
    transition: width 0.3s ease;
    z-index: -1;
}
.btn:hover::before {
    width: 100%;
}
/* -------------Contact--------------------------- */
.contact-left{
    flex-basis: 40%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #ff004f;
    margin-right: 20px;
    font-size: 20px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background: #ff004f;
}
.contact-right{
    width: 100%;
}
form input, form textarea {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
form input:focus, form textarea:focus {
    border-color: #ff004f;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.2);
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #ff004f;
}
/* ----------------CSS for small screen----------------- */
nav .fa-solid{
    display: none;
}
@media only screen and (max-width: 600px){
    #header{
        background-image: url(images/phone-background.png);
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.3s ease;   
    }
    nav ul li{
        display: block;
        margin: 25px;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;  
        left: 25px;
        cursor: pointer;
    }
    nav ul.show-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    .Subtitle{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 16px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;   
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
}
@media only screen and (max-width: 1200px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 768px) {
    .work-list {
        grid-template-columns: 1fr;
    }
}
#msg{
   color: #61b752;
   margin-top: -40px;
   display: block; 
}
.hidden-work {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-work.show-work {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease forwards;
}

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

#seeMoreBtn {
    transition: all 0.5s ease;
}

#seeMoreBtn:hover {
    background: #ff004f;
    color: white;
}

/* --- Fade-in Up Animation for Cards --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Light/Dark Mode Styles --- */
body.light-mode {
    background: #f7f7f7;
    color: #222;
}
body.light-mode #header {
    background-image: url(images/Background_image.png);
}
body.light-mode .container,
body.light-mode .services-list div,
body.light-mode .work,
body.light-mode .layer,
body.light-mode .about-col-1 img,
body.light-mode .contact-left,
body.light-mode .contact-right,
body.light-mode .copyright {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light-mode .btn,
body.light-mode .btn2,
body.light-mode .btn.btn2 {
    color: #fff;
    background: #ff004f;
    border-color: #ff004f;
}
body.light-mode .btn:hover,
body.light-mode .btn2:hover {
    background: #fff;
    color: #ff004f;
}
body.light-mode .services-list div:hover,
body.light-mode .work:hover {
    background: #ff004f !important;
    color: #fff !important;
}
body.light-mode .social-icons a {
    color: #444;
}
body.light-mode .social-icons a:hover {
    color: #ff004f;
}
body.light-mode .layer {
    background: linear-gradient(rgba(255,255,255,0.7), #ff004f);
}
body.dark-mode {
    background: #080808;
    color: #fff;
}

/* --- Prominent Download Button --- */
.prominent-btn {
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255,0,79,0.15);
    border-width: 3px;
    margin-top: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.prominent-btn:focus {
    outline: 3px solid #ff004f;
    outline-offset: 2px;
}

/* --- Contact Form Validation Feedback --- */
input.error, textarea.error {
    border-color: #ff004f !important;
    background: #fff0f5 !important;
    color: #ff004f !important;
}
label.error-message {
    color: #ff004f;
    font-size: 0.95em;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

/* --- Service Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: block;
    opacity: 1;
}
.modal-content {
    background-color: #fefefe;
    color: #333;
    margin: 10% auto;
    padding: 30px 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-content {
    transform: translateY(0);
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-btn:hover,
.close-btn:focus {
    color: #ff004f;
    text-decoration: none;
}
.modal h2 {
    color: #ff004f;
    margin-top: 0;
    font-size: 2em;
}
.modal p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.modal ul li {
    font-size: 1.05em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}
.modal ul li::before {
    content: '✔';
    color: #ff004f;
    position: absolute;
    left: 0;
    top: 2px;
}
.modal-contact-btn {
    display: inline-block;
    margin-top: 10px;
}
body.light-mode .modal-content {
    background-color: #fff !important;
    color: #333 !important;
}

/* --- Skills Icons Scroller --- */
#skills-icons {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 30px 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.skills-icons-container {
    display: flex;
    gap: 48px;
    animation: scroll-icons 18s linear infinite;
    font-size: 2.5em;
    color: #ff004f;
    align-items: center;
    white-space: nowrap;
}
#skills-icons i {
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}
#skills-icons i:hover {
    color: #fff;
    transform: scale(1.2) rotate(-10deg);
}
@keyframes scroll-icons {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skills-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #111;
    border-top: 2px solid #ff004f;
    border-bottom: 2px solid #ff004f;
}

.skills-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollSkills 25s linear infinite;
}

.skills-track span i {
    font-size: 32px;
    color: #ff004f;
    margin: 0 30px;
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.skills-track span i:hover {
    color: #fff;
    transform: scale(1.2) rotate(-10deg);
}

@keyframes scrollSkills {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Optional: Pause on hover */
.skills-marquee:hover .skills-track {
    animation-play-state: paused;
}
------------------------------------------------

body.light-mode #skills-icons i {
    color: #ff004f;
}
body.light-mode #skills-icons i:hover {
    color: #222;
}