*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    src: url('Poppins/Poppins-Black.ttf') format('truetype'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body{
    background: #f8f9fa;
    color:#2c3e50;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100%;
    margin: 0;
    padding: 0;
}
#header{
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    background-position: center;
    background-size: cover;
    position: relative;
}

#header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(115, 132, 155, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(115, 132, 155, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.container{
    padding: 10px 6%;
}

.logo{
    padding: 7px;
    width: 300px;
    margin-left: 3%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 18px;
}

nav ul li a{
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
}

nav ul li a:hover{
    color: #667eea;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-content{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 6%;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-text{
    flex: 0 0 60%;
    text-align: left;
    color: #ffffff;
    font-size: 28px;
}

.header-text p{
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.header-image{
    flex: 0 0 35%;
    overflow: hidden;
    border-radius: 30px;
    height: 65vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-image:hover{
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.header-image img{
    width: 140%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin-left: -20%;
}

.header-text h1{
    color: #ffffff;
    margin-top: 10px;
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.header-text span{
    background: linear-gradient(135deg, #8b9ff7 0%, #a77dd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 72px;
}


/* -------------ABOUT------------ */
#about{
    padding: 100px 0;
    background: #ffffff;
    color: #2c3e50;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 60px;
}

.about-col-1{
    flex: 0 0 35%;
    min-width: 300px;
}

.about-col-2{
    flex: 1 1 60%;
    min-width: 0;
}

.about-col-2 p{
    font-size: 18px;
    line-height: 1.8;
    color: #5a6c7d;
}

.about-photo{
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-photo:hover{
    transform: scale(1.02);
}

.subtitle{
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.tab-titles{
    display: flex;
    margin: 30px 0px 40px;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
}

.tab-links{
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #7a8a99;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-links:hover{
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease;
}

.tab-links.active-link{
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.tab-links.active-link::after{
    width: 100%;
}

.tab-contents ul li{
    list-style: none;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.tab-contents ul li:hover{
    transform: translateX(5px);
}

.tab-contents ul li span{
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*------------Portfolio---------*/
#portfolio{
    padding: 100px 0;
    background: #ffffff;
    color: #2c3e50;
}
#portfolio h1{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 60px;
}

.timeline{
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.timeline-item{
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(even){
    justify-content: flex-end;
}

.timeline-icon{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 0 6px #ffffff, 0 8px 20px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.timeline-content{
    width: 45%;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-content:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
}

.timeline-item:nth-child(even) .timeline-content{
    text-align: left;
}

.timeline-date{
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-content h3{
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.project-links{
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-links a{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.project-links a:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.project-bullets{
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-bullets li{
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 15px;
}

.project-bullets li::before{
    content: '▹';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 20px;
    font-weight: bold;
}

.collaborator{
    margin-top: 20px;
    font-size: 12px;
    color: #7a8a99;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}


/*-----------Contact------------*/
#contact{
    background: #ffffff;
    padding: 100px 0;
}

.contact-left{
    flex-basis: 40%;
}
.contact-right{
    flex-basis: 55%;
}

.contact-left p{
    margin-top: 25px;
    font-size: 18px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
}

.contact-left p i{
    color: #667eea;
    margin-right: 15px;
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.btn2{
    color: white;
    font-size: 16px;
    display: inline-block;
    margin-top: 30px;
}

.social-icons{
    margin-top: 40px;
    display: flex;
    gap: 15px;
}
.social-icons a{
    text-decoration: none;
    font-size: 24px;
    color: white;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.social-icons a:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 2px solid #e9ecef;
    outline: none;
    background: #f8f9fa;
    padding: 18px 20px;
    margin: 15px 0;
    color: #2c3e50;
    font-size: 16px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus{
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

form input::placeholder,
form textarea::placeholder {
    color: #a0a9b4;
}

form .btn2{
    padding: 16px 60px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/*---------CSS for small screens --------------*/
nav .fa-solid{
    display: none;
}

@media only screen and (max-width:840px) {
    .logo{
        width: 130px;
        padding: 0px;
    }
}

@media only screen and (max-width:665px) {
    #header{
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
        overflow-x: hidden;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
    }
    .header-content{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 5% 40px 5%;
        gap: 30px;
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .container{
        padding: 10px 5%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .header-text{
        flex: 0 0 auto;
        font-size: 16px;
        text-align: center;
        order: 2;
    }
    .header-text p{
        font-size: 12px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    .header-text h1{
        font-size: 32px;
        margin-top: 0;
        line-height: 1.2;
    }
    .header-text h1 span{
        font-size: 32px;
    }
    .header-image{
        flex: 0 0 auto;
        width: 70%;
        max-width: 280px;
        height: 350px;
        order: 1;
        border-radius: 20px;
        margin: 0;
    }
    .header-image img{
        height: 100%;
        display: block;
    }

    #about, #portfolio, #contact{
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .subtitle{
        font-size: 36px;
    }

    .tab-titles{
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-links{
        padding: 12px 20px;
        font-size: 14px;
    }

    .timeline::before{
        left: 30px;
    }

    .timeline-item{
        justify-content: flex-end !important;
        padding-left: 80px;
    }

    .timeline-icon{
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .timeline-content{
        width: 100%;
        padding: 20px;
    }

    .timeline-content h3{
        font-size: 20px;
    }

    .project-links{
        flex-direction: column;
        gap: 10px;
    }

    .project-links a{
        justify-content: center;
        width: 100%;
    }

    .project-bullets li{
        font-size: 14px;
    }

    .row{
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .row{
        flex-wrap: wrap;
    }

    .about-col-1{
        flex: 0 0 100%;
        min-width: auto;
        margin-bottom: 30px;
    }

    .about-col-2{
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
        max-width: 100%;
    }

    nav .fa-solid{
        display: block;
        font-size: 25px;
        padding: 20px;
    }
    nav ul{
        background: #e9e9e9;
        position: fixed;
        top: 0;
        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;
    }

    .subtitle{
        font-size: 40px;
    }

    .about-col-1,.about-col-2{
        flex-basis: 100%;
    }

    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14pxS;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 15px;
    }

    .contact-left,.contact-right{
        flex-basis: 100%;
    }
}
