*{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

/* Background color */
body{
    background: #080808;
    color: #fff;
    overflow-x: hidden;
}

/* Background image */
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10%;
}

nav {
    position: fixed;
    top: -20px;
    left: 0px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: transparent;
    padding: 10px 10%;
    margin-left: -15px;
    z-index: 1000;
}

.logo{
    width: 200px;
}

/* Navigation headers */ 
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 0px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background:#ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width:100%;
}

/* Header text */
.header-text{
    position: absolute;
    margin-top: 25%;
    margin-left: -4px;
    font-size: 30px;
    width: 100%;
}

.header-text p {
    /* Add animation for "Software Engineer" text */
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.header-text h1{
    margin-top: 20px;
    font-size: 60px;
    /* Add drop-down animation */
    transform: translateY(-100px);
    opacity: 0;
    animation: dropDown 1.2s ease-out 0.8s forwards;
}

.header-text h1 span{
    color: #ff004f;
}

/* Keyframe animation for the drop down effect */
@keyframes dropDown {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade in animation for the "Software Engineer" text */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* About me */
#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: 60%;
    border-radius: 15px;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

.about-text{
    padding-top: 25px;
    font-size: 20px;
    font-weight: 450;
    line-height: 2.5;
}

/* Background section */
#background{
    padding: 80px 0;
    color: #ababab;
}

.tab-titles{
    display: flex;
    margin: 50px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 24px;
    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: 30px 0;
}

.tab-contents ul li ul {
    padding-left: 35px;
    margin-top: 18px;
}

.tab-contents ul li ul li{
    list-style: disc;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 14px;
}

.tab-contents ul li span{
    color: #ff004f;
    font-size: 22px;
    line-height: 2;
}

.tab-contents{
    display: none;
    font-size: 20px;
}

.tab-contents.active-tab{
    display: block;
}

/* Projects */
#projects{
    padding: 30px 0;
}

.project-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.project-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.code_logo{
    height: 60px;
    width: 60px;
    margin-bottom: 20px;
}

.crop_logo{
    height: 50px;
    width: 50px;
    margin-bottom: 30px;
}

.controller_logo{
    height: 55px;
    width: 55px;
    margin-bottom: 25px;
}

.project-list div h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-list div p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 500;
}

.project-list ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: #fff;
}

.project-list div a {
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #ff004f;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.project-list div:hover a {
    outline: 1px solid #fff;
}

.project-list div a:hover {
    background-color: #b5023b;
}

.project-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}

/* Contact */
.contact-left{
    flex-basis: 35%;
}

.email-container img{
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 12px;
}

.phone-container img{
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 17px;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
    font-size: 18px;
}

.social-icon img{
    height: 30px;
    width: 30px;
    margin-top: 40px;
    margin-bottom: 10px;
    margin-right: 18px;
    transition: transform 0.5s;
    cursor: pointer;
}

.social-icon img:hover{
    transform: scale(1.2) translateY(-5px);
}

.social-icon {
    position: relative;
    z-index: 10;
}

.social-icon a {
    display: inline-block;
    position: relative;
}

.button{
    display:inline-block;
    padding: 14px 60px;
    text-decoration: none;
    background: #ff004f;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.5s ease;
    cursor: pointer;
    margin-top: 30px;
    border: none;
    outline: none;
}

.button:hover{
    background-color: #b5023b;
}

.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: 18px;
    border-radius: 6px;
    resize: none;
}

form .button{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    margin-bottom: 30px
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background-color: #dc3545;
}

/* CSS for small screens */
@media only screen and (max-width: 600px) {
    .header-text h1{
        font-size: 40px;
    }
    
    .header-text{
        margin-top: 35%;
    }
    
    .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%;
    }
    
    .sub-title{
        font-size: 40px;
    }
    
    nav ul li{
        margin: 0px 10px;
    }
    
    nav ul li a{
        font-size: 18px;
    }
}