*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff;
    padding-top: 70px;
}

body.light-mode {
    background: #f0f0f0;
    color: #333;
}

#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.95);
    padding: 8px 0;
    backdrop-filter: blur(10px);
    height: 70px;
    padding: 12px 0;
}

body.light-mode #header {
    background: rgba(240, 240, 240, 0.95);
}

.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    height: 46px;
    padding-top: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ff004f;
    color: white;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    order: 1;
    margin-top: -5px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

nav ul {
    order: 2;
    display: flex;
    align-items: center;
    margin-top: -50px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 0 18px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}

body.light-mode nav ul li a {
    color: #333;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.6s;
}

nav ul li a:hover::after{
    width: 100%;
}

.btn.resume-btn{
    padding: 10px 20px;
    display: inline-block;
    background-color: #ff004f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.7s, transform 0.5s;
    font-weight: 500;
    border: 2px solid #ff004f;
    font-size: 14px;
    order: 3;
}

.btn.resume-btn:hover {
    background: transparent;
    transform: scale(1.05);
}

.social-icons-header {
    display: flex;
    gap: 18px;
    order: 4;
    margin-top: -5px;
}

.social-icons-header a {
    text-decoration: none;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .social-icons-header a {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.social-icons-header a:hover {
    color: #ff004f;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .social-icons-header a:hover {
    background: rgba(0, 0, 0, 0.2);
}

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.8));
    padding: 0 10%;
}

body.light-mode .hero {
    background: linear-gradient(rgba(240,240,240,0.95), rgba(240,240,240,0.9));
}

.header-text {
    max-width: 800px;
}

.intro-line {
    font-size: 18px;
    color: #ff004f;
    margin-bottom: 10px;
    font-weight: 400;
}

body.light-mode .intro-line {
    color: #ff004f;
}

.name {
    font-size: 80px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #fff;
}

body.light-mode .name {
    color: #333;
}

.subtitle {
    font-size: 60px;
    font-weight: 600;
    margin: 10px 0 30px 0;
    color: #ccc;
    line-height: 1.1;
}

body.light-mode .subtitle {
    color: #666;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 600px;
}

body.light-mode .description {
    color: #555;
}

.hero-buttons {
    display: block;
    gap: 20px;
    flex-wrap: wrap;
}

.learn-more-btn {
    color: #ff004f !important;
    background: transparent;
    border: none !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    margin-top: -35px;
}

.subtitle {
    position: relative;
    min-height: 72px; 
}

.contact-description{
    font-size: 16px !important;
    text-align: center;
     margin: 20px 0 30px 0 !important;
     line-height: 1.6;
}

.cursor {
    animation: blink 1s infinite;
    color: #fff !important;
}

.projects-btn {
    padding: 15px 35px;
    background-color: transparent;
    color: #ff004f;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid #ff004f;
    transition: all 0.3s ease;
    display: flex;
    margin-top: 30px !important;
    margin-right: 400px !important;
}

.projects-btn:hover {
    background-color: #ff004f;
    color: white;
    transform: translateY(-2px);
}

/* ---------------about--------------*/
#about{
    padding: 80px 0px;
}

body.light-mode #about {
    color: #333;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.image{
    width: 400px;
    height: auto;
}

.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: 40px;
    font-weight: 580;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

body.light-mode .sub-title {
    color: #333;
}

.about-description {
    color: #ababab;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

body.light-mode .about-description {
    color: #000;
}

.tab-titles{
    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: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.6s;
}

.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;
    font-weight: 600;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/*---------projects------------*/
#projects{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work a{
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.light-mode .work {
    box-shadow: 0 10px 30px rgba(0,0,0,0.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), #6c3446);
    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;
    color: white;
}

.layer h3{
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 22px;
}

.work:hover{
    transform: translateY(-10px);
}

.work:hover img{
    transform: scale(1.05);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.7s, transform 0.5s;
    font-weight: 500;
}

body.light-mode .btn {
    color: #333;
}

.btn:hover{
    background: #ff004f;
    transform: scale(1.05);
}

/*--------------contact--------------*/
#contact {
    padding: 50px 0 0;
}

.contact-left{
    flex-basis: 50%;
}

.contact-right{
    flex-basis: 45%;
}

.contact-left p{
    margin-top: 30px;
    font-size: 16px;
}

.contact-left p i{
    color: #ff004f;
    margin-right: 15px;
    font-size: 20px;
}

.social-icons{
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.desc_lines {
    color: #ff004f; 
}

.social-icons a{
    text-decoration: none;
    font-size: 28px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

body.light-mode .social-icons a {
    color: #666;
    background: rgba(0,0,0,0.05);
}

.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

body.light-mode .social-icons a:hover {
    background: rgba(0,0,0,0.1);
}

.btn.btn2{
    display: inline-block;
    background-color: #ff004f;
    color: white;
    border: none;
    cursor: pointer;
}

.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;
    resize: vertical;
}

body.light-mode form input, 
body.light-mode form textarea {
    background: #e0e0e0;
    color: #333;
}

form .btn2{
    padding: 14px 60px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    margin-top: 50px;
}

body.light-mode .copyright {
    background: #e0e0e0;
    color: #333;
}

.contact-left {
    text-align: center;
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
    font-weight: 500;
}


/*----------------css for small screens ---------------------*/
nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 768px){
    .hero {
        padding: 80px 5% 40px !important;
        height: auto !important;
        min-height: 100vh;
        text-align: center;
        display: block;
    }    
    
    body {
        padding-top: 60px;
    }
    
    #header {
        padding: 8px 0;
        height: 60px;
    }
    
    nav {
        height: 44px;
    }
    
    .header-text{
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .name {
        font-size: 36px !important;
        line-height: 1.2;
        margin-bottom: 10px;
        word-wrap: break-word;
    }
    
    .subtitle {
        font-size: 28px !important;
        min-height: 50px;
        margin: 5px 0 20px 0;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .description {
        font-size: 15px !important;
        line-height: 1.5;
        margin-bottom: 25px;
        text-align: center;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .learn-more-btn {
        margin-top: 0 !important;
        order: 2;
        font-size: 15px;
    }
    
    .projects-btn {
        margin: 0 !important;
        order: 1;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 15px;
        margin-top: 10px !important;
    }
    
    /* Rest of your existing mobile styles for nav, etc. */
    nav .fa-solid{
        display: block;
        font-size: 25px;
        order: 5;
    }
    
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
        flex-direction: column;
        margin-top: -5px;
        display: flex;
        align-items: center;
        order: 2;
    }
    
    nav ul li{
        display: block;
        margin: 25px;
    }
    
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    
    nav ul li .resume-btn{
        background: transparent;
        border: 2px solid #fff;
        border-radius: 6px;
        padding: 10px 20px;
        text-align: center;
        color: #fff;
        display: block;
        font-size: 16px;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    nav ul li .resume-btn:hover{
        background: #fff;
        color: #ff004f;
        transform: none;
    }
    
    .sub-title{
        font-size: 40px;
        text-align: center;
    }
    
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    
    .about-col-1{
        margin-bottom: 30px;
    }
    
    .about-col-2{
        font-size: 14px;
    }
    
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    
    .copyright{
        font-size: 14px;
    }
    
    .social-icons-header {
        gap: 15px;
    }
    
    .social-icons-header a {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Extra small screens */
@media only screen and (max-width: 480px){
    .hero {
        padding: 70px 4% 30px !important;
        min-height: 90vh;
    }
    
    .name {
        font-size: 32px !important;
    }
    
    .subtitle {
        font-size: 24px !important;
        min-height: 45px;
    }
    
    .description {
        font-size: 14px !important;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .projects-btn {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 250px;
    }
    
    .learn-more-btn {
        font-size: 14px;
    }
}