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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #080808;
    color: #fff;
}

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

@media only screen and (max-width: 768px) {
    #header {
        background-image: url('images/phone-background.png');
        background-attachment: fixed;
        background-position: center;
    }
}

.container {
    padding: 10px 10%;
}

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

.logo {
    font-family: 'Arial', sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    /* White for the rest of the logo */
    transition: 0.5s ease;
    cursor: pointer;
    margin-top: 15px;
}

.logo .highlight {
    color: #ff004f;
    /* Bright pink color for the highlighted letter */
}

.logo:hover {
    transform: scale(1.1);
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 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 {
    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%;
}

.about-col-2 p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.sub-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

/* --------------projects-------------- */
/* General Styles for the Project Section */
#projects {
    color: #fff;
    padding: 60px 0;
}

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

#projects .sub-title {
    margin-bottom: 60px;
    text-align: center;
}

/* Styles for Project List */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Individual Project Cards */
.projects-list div {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.5s, transform 0.5s;
}

/* Icon Styling */
.projects-list div i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

/* Project Title */
.projects-list div h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

/* Project Description */
.projects-list div p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

/* Buttons for Details and Code */
.projects-list div a {
    color: #4CAF50;
    /* Button Text Color */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: color 0.3s;
}

.projects-list div a:hover {
    color: #76ff03;
}

/* Hover Effect for Project Cards */
.projects-list div:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    background: #ff004f;
}

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

    /* Adjust Project Card Padding and Font Sizes for Mobile */
    .projects-list div {
        padding: 15px;
    }

    .projects-list div i {
        font-size: 2rem;
    }

    .projects-list div h2 {
        font-size: 1.3rem;
    }

    .projects-list div p {
        font-size: 0.9rem;
    }

    .projects-list div a {
        font-size: 0.85rem;
    }
}

/* Extra Small Screens (Mobile Phones) */
@media (max-width: 480px) {

    /* Make Grid Layout a Single Column for Mobile Phones */
    .projects-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .projects-list div {
        padding: 10px;
    }

    .projects-list div i {
        font-size: 1.8rem;
    }

    .projects-list div h2 {
        font-size: 1.2rem;
    }

    .projects-list div p {
        font-size: 0.85rem;
    }

    .projects-list div a {
        font-size: 0.8rem;
    }
}

/* --------------skills-------------- */

/* General Container Styles */
#skills {
    background-color: #1a1818;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
}

#skills .sub-title {
    margin-bottom: 60px;
    text-align: center;
}

/* Column Styles */
#skills .col-md-6 {
    margin-bottom: 30px;
}

/* Progress Bar Container */
.progress {
    position: relative;
    height: 25px;
    background-color: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-bar {
    position: relative;
    background-color: #ff004f;
    line-height: 25px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    box-shadow: inset 0 -3px 5px rgba(255, 0, 79, 0.6);
    transition: width 0.6s ease;
}

/* Adding Gradient and Animation for a Stylish Look */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border-radius: 50px;
    opacity: 0.3;
    z-index: 1;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    height: 100%;
    width: 50px;
    background: rgba(255, 255, 255, 0.4);
    animation: shine 2s infinite linear;
    transform: skewX(-20deg);
    z-index: 2;
}

@keyframes shine {
    from {
        left: -50px;
    }

    to {
        left: 100%;
    }
}

/* Skill Section Headers */
#skills h4 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

/* Additional Styling for Responsive Design */
@media (max-width: 768px) {
    #skills .row {
        text-align: center;
    }

    #skills .col-md-6 {
        margin-bottom: 50px;
    }
}

/* --------------contact-------------- */
#contact .sub-title {
    margin-top: 60px;
}

.contact-left {
    flex-basis: 35%;
    text-align: center;
}

.contact-left p {
    margin-top: 30px;
    text-align: center;
    transition: transform 0.5s ease;
    font-size: 1.2rem;
}

.contact-left a.hover-me {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.contact-left a.hover-me:hover p {
    transform: translateY(-5px);
}

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

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

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 20px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s ease;
}

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

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    transition: transform 0.5s;
    text-decoration: none;
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn.btn2:hover {
    background: #e60045;
    transform: translateY(-5px);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 30px;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .contact-left {
        flex-basis: 100%;
    }

    .contact-left p {
        font-size: 1rem;
    }

    .social-icons a {
        font-size: 25px;
    }

    .btn.btn2 {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* --------------css for small screens-------------- */
nav .fas {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        background-image: url(images/phone-background.png);
        background-attachment: fixed;
        background-position: center;
    }

    .header-text {
        margin-top: 40%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
        margin-right: 100px;
    }

    nav .fas {
        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.5s;
    }

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

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .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;
    }
}

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