*    
{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    list-style: none;
}
body
{
    background-color: black;
}
#skills {
    background: black;
    width: auto;
    height: 82vh; /* Adjust height to auto for fluidity */
    padding-top: 6rem;
    transition: 0.5s;
}
.skill {
    font-size: 3rem;
    margin-bottom: 150px;
    padding-bottom: 10px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #b74b4b;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: textcolor 2s ease-in-out infinite alternate;
}

.container1, .container2, .container3 {
    display: flex;
    /* flex-wrap: wrap; Added flex-wrap for responsiveness */
    max-width: 75rem;
    margin: 20px auto;
    gap: 2rem;
    justify-content: center; /* Center items in each container */
}

p {
    color: white;
}

.box1, .box2, .box3, .box4, .box5, .box6 {
    position: relative;
    display: flex;
    width: 48%; /* Adjust width to make them responsive */
    height: 70px;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 6px 20px;
    border-radius: 18px;
    transition: 1s;
    font-size: 17px;
    cursor: default;
    margin-bottom: 1rem; /* Add space between boxes */
}

.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover, .box6:hover {
    transform: scale(1.03);
}

.box1 .wordpress::before,
.box2 .html::before,
.box3 .critical::before,
.box4 .adapt::before,
.box5 .creativity::before,
.box6 .problem::before {
    height: 5px;
    width: 92%;
    position: absolute;
    content: " ";
    background: grey;
    top: 60px;
    left: 18px;
    border-radius: 35px;
}

.box1 .wordpress::after,
.box2 .html::after,
.box3 .critical::after,
.box4 .adapt::after,
.box5 .creativity::after,
.box6 .problem::after {
    height: 5px;
    position: absolute;
    content: " ";
    background: #b74b4b;
    box-shadow: 0 0 6px #b74b4b;
    top: 60px;
    left: 18px;
    border-radius: 35px;
    animation: line 3s forwards;
}


@media screen and (max-width: 768px) {
    .skill {
        font-size: 2rem;
    }

    .container1, .container2, .container3 {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .box1, .box2, .box3, .box4, .box5, .box6 {
        width: 100%;
        font-size: 16px;
        height: auto;
        padding: 12px 20px;
    }

    .boxA, .boxB, .boxC, .boxD {
        width: 100px;
        height: 100px;
        font-size: 18px;
    }

}

@media screen and (max-width: 480px) {
    .skill {
        font-size: 1.5rem;
    }

    .container1, .container2, .container3 {
        flex-direction: column;
        gap: 1rem;
        width: 80% !important;
    }

    .box1, .box2, .box3, .box4, .box5, .box6 {
        width: 100%;
        height: 80px;
        font-size: 14px;
        padding: 10px 15px;
    }

    .numbershow {
        margin: 3rem 0;
        flex-direction: column;
        gap: 1.5rem;
    }

    .boxA, .boxB, .boxC, .boxD {
        width: 90px;
        height: 90px;
        font-size: 16px;
    }
}
p{
    color: white;
}
.box1, .box3, .box5 {
    position: relative;
    display: flex;
    width: 50rem;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 6px 20px;
    border-radius: 18px;
    transition: 1s;
    font-size: 17px;
    cursor: default;
    animation: fadeinleft 2s ease-in-out;
}
.box2, .box4, .box6 {
    position: relative;
    display: flex;
    width: 50rem;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 6px 20px;
    border-radius: 18px;
    transition: 1s;
    font-size: 17px;
    cursor: default;
    animation: fadeinright 2s ease-in-out;
}
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover, .box6:hover {
    transform: scale(1.03);
}
.box1 .wordpress::before,
.box2 .html::before,
.box3 .critical::before,
.box4 .adapt::before,
.box5 .creativity::before,
.box6 .problem::before {
    height: 5px;
    width: 92%;
    position: absolute;
    content: " ";
    background: grey;
    top: 60px;
    left: 18px;
    border-radius: 35px;
}
.box1 .wordpress::after,
.box2 .html::after,
.box3 .critical::after,
.box4 .adapt::after,
.box5 .creativity::after,
.box6 .problem::after {
    height: 5px;
    position: absolute;
    content: " ";
    background: #b74b4b;
    box-shadow: 0 0 6px #b74b4b;
    top: 60px;
    left: 18px;
    border-radius: 35px;
    animation: line 3s forwards;
}

.box1 .wordpress::after { width: 78.65%; }
.box2 .html::after { width: 55.6%; }
.box3 .critical::after { width: 72.08%; }
.box4 .adapt::after { width: 69.25%; }
.box5 .creativity::after { width: 73.8%; }
.box6 .problem::after { width: 64.7%; }

.numbershow {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 8rem;
    animation: fadeinup 1s ease-in-out;
    transition: 0.4s;
}

.boxA, .boxB, .boxC, .boxD {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 125px;
    height: 125px;
    border: 3px solid var(--primary);
    padding: 18px;
    gap: 15px;
    transition: 0.5s;
    border-radius: 18px;
}
.boxA:hover, .boxB:hover, .boxC:hover, .boxD:hover {
    box-shadow: var(--primary) 0px 0px 16px;
}

.number, .infinite {
    color:var(--primary);
    box-shadow: none;
    animation: fadeinup 1s ease-in-out;
}

.number {
    font-size: 20px;
    font-weight: 600;
}

.infinite {
    font-size: 2rem;
    margin-top: 12px;
}

.text {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    box-shadow: none;
}
/* For tablets and smaller screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .skill {
        font-size: 2rem;
    }

    .container1, .container2, .container3 {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .box1, .box2, .box3, .box4, .box5, .box6 {
        width: 100%;
        font-size: 16px;
        height: auto;
        padding: 12px 20px;
    }

    .boxA, .boxB, .boxC, .boxD {
        width: 100px;
        height: 100px;
        font-size: 18px;
    }

    .numbershow {
        margin: 4rem 0;
        flex-direction: column;
        gap: 2rem;
    }
}

/* For mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    /* Adjust the skill font size */
    .skill {
        font-size: 1.5rem;
    }

    /* Make containers column-based on small screens */
    .container1, .container2, .container3 {
        flex-direction: column;
        gap: 5rem;
        width: 80% !important; /* Ensure containers don't exceed screen width */
    }

    /* Adjust boxes to fit better on smaller screens */
    .box1, .box2, .box3, .box4, .box5, .box6 {
        width: 100%; /* Make boxes full width */
        height: 80px; /* Adjust height to look proportional */
        font-size: 14px; /* Smaller text for readability */
        padding: 10px 15px; /* Adjust padding for better layout */
    }

    /* Ensure the box animations and hover effects are preserved */
    .box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover, .box6:hover {
        transform: scale(1.03); /* Hover effect stays the same */
    }

    /* Adjust the box shadows, borders, and animations for smaller screens */
    .box1 .wordpress::before,
    .box2 .html::before,
    .box3 .critical::before,
    .box4 .adapt::before,
    .box5 .creativity::before,
    .box6 .problem::before {
        height: 4px; /* Slightly smaller line height */
        width: 90%; /* Adjust width of the indicator */
        position: absolute;
        content: " ";
        background: grey;
        top: 50px; /* Adjust top to make sure it's within view */
        left: 10px; /* Adjust left for better alignment */
        border-radius: 35px;
    }

    .box1 .wordpress::after,
    .box2 .html::after,
    .box3 .critical::after,
    .box4 .adapt::after,
    .box5 .creativity::after,
    .box6 .problem::after {
        height: 4px; /* Slightly smaller line height */
        position: absolute;
        content: " ";
        background: #b74b4b;
        box-shadow: 0 0 6px #b74b4b;
        top: 50px; /* Adjust top for better alignment */
        left: 10px; /* Adjust left for better alignment */
        border-radius: 35px;
        animation: line 3s forwards;
    }

    /* Adjust widths of the after pseudo-elements for smaller screens */
    .box1 .wordpress::after { width: 78.65%; }
    .box2 .html::after { width: 55.6%; }
    .box3 .critical::after { width: 72.08%; }
    .box4 .adapt::after { width: 69.25%; }
    .box5 .creativity::after { width: 73.8%; }
    .box6 .problem::after { width: 64.7%; }
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    background-color: #000000;
    color:#b74b4b;
    position: relative;
    transition: background-color 0.3s ease;
    height: 15vh;
}

.logo a {
    text-decoration: none;
    color: #b74b4b;
    font-size: 24px;
    font-weight: bold;
    letter-spacing:2px;
    transition: color 0.3s ease;
    
}

/* Navbar Styles */
.navbar ul {
    display: flex;
    gap:18px;
    list-style-type: none;
    padding: 0 30px;
}

.navbar li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
    transition: 1s;
    text-transform: uppercase;
    padding: 15px;
}

.navbar li a:hover {
    color: #b74b4b;
    text-decoration: underline 2px;
    transition: .3s;
    
}

/* Menu Icon for mobile view */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
}

.menu-icon span {
    background-color: white;
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Mobile Menu (hidden by default) */
.navbar ul {
    display: flex;
    
}

@media (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 60px;
        left: 25vh;
        width: 80%;
        background-color: #000000;
        flex-direction: column;
        align-items: center;
        display: none; /* Hidden by default */
        transition: all 0.3s ease-in-out;
    }

    .navbar.active ul {
        display: flex; /* Shows the menu when 'active' class is added */
    }

    .menu-icon {
        display: flex;
    }

    /* Hamburger Icon Animation */
    .menu-icon.open span:nth-child(1) {
        transform: rotate(50deg);
        position: relative;
        top: 6px;
    }

    .menu-icon.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open span:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        bottom:6px;
    }

    .navbar li {
        padding: 10px 0;
    }

    .navbar li a {
        font-size: 18px;
    }
}

/* Header hover effects */
.header:hover {
    background-color: #000000;
}
@media (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 60px;
        right: 1.5em;
        width: 250px;
        background-color: #000000;
        flex-direction: column;
        align-items: center;
        display: none; /* Hidden by default */
        transition: all 0.3s ease-in-out;
    }

    .navbar.active ul {
        display: flex; /* Shows the menu when 'active' class is added */
    }

    .menu-icon {
        display: flex;
    }

    /* Hamburger Icon Animation */
    .menu-icon.open span:nth-child(1) {
        transform: rotate(50deg);
        position: relative;
        top: 6px;
    }

    .menu-icon.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open span:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        bottom:6px;
    }

    .navbar li {
        padding: 10px 0;
    }

    .navbar li a {
        font-size: 18px;
    }
}

/* 
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: black;
} */