* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic body styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow-x: hidden;
    background-image:
        url(https://images2.imgbox.com/4d/f5/fX0ZpO8m_o.jpeg),
        linear-gradient(to right, rgb(44, 62, 80), rgb(52, 152, 219));
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
    margin: 0;
    padding-bottom:55px; /* Reserve space for fixed footer */
}

input,
textarea {
    caret-color: transparent;
    /* Hide the cursor completely */
}

.icon {
    display: none;
}

/* This only works with JavaScript, 
if it's not present, don't show loader */
.no-js #loader {
    display: none;
}

.js #loader {
    display: block;
    position: absolute;
    left: 100px;
    top: 0;
}

.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(https://images2.imgbox.com/c6/f8/jzEiaRO4_o.gif) center no-repeat #f3f3f4;
}


/* Header (Nav Bar) styles */
header {
    background-color: rgba(0, 0, 0, 0.644);
    color: white;
    padding: 10px 0px;
    text-align: center;
    z-index: 1000;
    position: relative;
    height: auto; /* or 60px if you still want to fix it */
}

.navbar ul {
    list-style-type: none;
    padding: 1rem;
    margin: 0;
    display: flex;
    float: left;
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

.navbar ul li a:hover {
    color: orange;
    font-size: 1.55rem;
    transition: 0.3s ease-in-out;
}

/* Main content section styles */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* This makes the main content take up available space */
    padding: 20px;
    text-align: center;
}

/* Some styling for content */
.skill {
    list-style-type: none;
    width: 100%;
    color: white;
    max-width: 550px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.644);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 -4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.skill h1{
    font-size:30px;
}

.skill h3 {
    margin-bottom: 10px; /* Adds space between the heading and the bar */
    text-align: left; /* Aligns the heading text to the left */
}

.skill li {
    margin: 32px 0;
    padding: 10px;
}

.bar {
    background: #353b48;
    display: block;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px, 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.bar:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px, 10px rgba(0, 0, 0, 0.22);
}

.bar span {
    height: 14px;
    float: left;
    background: linear-gradient(135deg, rgba(41, 128, 185, 1)0%, rgba(255, 255, 255, 1)100%);
}

.CCNA {
    width: 80%;
    animation: CCNA 3s;
}

.HTML {
    width: 65%;
    animation: HTML 3s;
}

.CSS {
    width: 60%;
    animation: CSS 3s;
}

.System {
    width: 75%;
    animation: System 3s;
}

@keyframes CCNA {
    0% {
        width: 0%;
    }

    100% {
        width: 80%;
    }
}

@keyframes HTML {
    0% {
        width: 0%;
    }

    100% {
        width: 65%;
    }
}

@keyframes CSS {
    0% {
        width: 0%;
    }

    100% {
        width: 60%;
    }
}

@keyframes System {
    0% {
        width: 0%;
    }

    100% {
        width: 75%;
    }
}
    /* Footer styles */
    footer {
        background-color: rgba(0, 0, 0, 0.644); 
        font-size: 1rem;
        color: white;
        text-align: center;
        padding: 20px 20px;
        position: fixed;
        bottom:0;
        width: 100%;
    }

@media screen and (max-width: 1366px) {
    header {
        height:60px;
    }
    .navbar ul {
        list-style-type: none;
        padding-bottom: 8px;
        margin: 0;
        display: flex;
        /* Hide menu items initially using height */
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100%;
        /* Position the menu right below the hamburger icon */
        left: 0;
        background-color: rgba(0, 0, 0, 0.644);
        overflow: hidden;
        /* Hide overflow during transition */
        max-height: 0;
        /* Start with a height of 0 for transition */
        opacity: 0;
        /* Initially hide with opacity */
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        /* Smooth transition for roll-down */
        backdrop-filter: blur(5px);
        /* Adds a blur effect */
    }

    .navbar ul li a:hover {
        color: orange;
        font-size: 20px;
        transition: 0.3s ease-in-out;
    }

    .navbar ul.active {
        display: flex;
        /* Show menu items when active */
    }

    .navbar ul li a {
        padding: 10px 20px;
        /* Adjust padding for mobile view */
        font-size: 20px;
        /* Adjust font size for mobile view */
    }

    .icon {
        display: block;
        /* Show the toggle icon on small screens */
        float: right;
        width: 40px;
        /* Set the width of the icon */
        text-align: center;
        /* Center the icon horizontally */
        cursor: pointer;
        color: white;
        /* Set color for the icon link */
        font-size: 32px;
        /* Set font size for the icon */
        transition: color 0.3s;
        /* Smooth color transition */
        position: relative;
        /* Ensure the icon has relative positioning */
        right: 2.5%;
        top: 2px;
        /* Position from the top edge of its container */
    }

    .icon:hover {
        color: orange;
        /* Change color on hover */
    }

    .navbar ul.active {
        max-height: 500px;
        /* Adjust based on the height needed for the menu */
        opacity: 1;
        /* Fade in when active */
    }

    .navbar ul li a:focus,
    .navbar ul li a:active {
        text-decoration: underline;
        /* Underline the link when tapped */
    }

    .icon a {
        color: inherit;
        /* Ensure the link color is inherited */
        display: block;
        /* Ensure the link takes up the full area of the icon */
        width: 100%;
        /* Full width to cover the area */
        height: 100%;
        /* Full height to cover the area */
        line-height: inherit;
        /* Ensure the line height is inherited */
    }

    .icon a i {
        color: inherit;
        /* Ensure the Font Awesome icon color is inherited */
    }
    
main {
    padding: 10px;
    transform: scale(0.95);
    /* Slightly shrink the whole main content visually */
}

.skill {
    padding: 20px;
    max-width: 30%;
    font-size: 0.95rem;
}

.skill h1 {
    font-size: 1.5rem;
    }

.skill h3 {
font-size: 1rem;
}

footer {
    padding: 15px;
    font-size: 0.8rem;
}
}

@media screen and (max-width: 1280px) and (max-height: 1040px) {
   
    .skill {
        padding: 20px;
        max-width: 40%;
        font-size: 0.95rem;
    }
    
    .skill h1 {
        font-size: 1.8rem;
        }
    
    .skill h3 {
    font-size: 1.15rem;
    }
}


@media screen and (width: 1280px) and (max-height: 800px){
    .navbar ul li a {
        font-size: 18px;
    }

    .navbar ul li a:hover {
        color: orange;
        font-size: 18px;
        transition: 0.3s ease-in-out;
    }

    .skill {
        padding: 20px;
        max-width: 40%;
        font-size: 0.9rem;
    }

    .skill h1 {
        font-size: 1.5rem;
        }
    
    .skill h3 {
    font-size: 1rem;
    }
}

/* Responsive adjustments for screen 1280x600 */
@media screen and (max-width: 1280px) and (max-height: 600px) {
  
    .skill {
        width: 90%; /* Increase width of the skill container */
        max-width: 500px; /* Limit the max-width slightly */
        padding: 15px; /* Decrease padding for better space */
        font-size: 0.85rem; /* Make text a little smaller */
    }

    .skill h1 {
        font-size: 1.3rem; /* Decrease font size slightly */
    }

    .skill h3 {
        font-size: 0.9rem; /* Adjust subheading font size */
    }

    .bar {
        height: 8px; /* Smaller progress bars */
    }

    .bar span {
        height: 8px; /* Smaller progress bar height */
    }

    .skill li {
        margin: 10px 0; /* Reduce margin between skill items */
        padding: 6px; /* Adjust padding to fit smaller screens */
    }
}

        
@media screen and (max-width: 1024px) {
    .navbar ul li a:hover {
        color: orange;
        font-size: 20px;
    }

    .skill {
        padding: 20px;
        font-size: 0.9rem;
    }
   
    .skill h1 {
        font-size: 1.5rem;
        }
    
    .skill h3 {
    font-size: 1rem;
    }
}

@media screen and (width: 800px) and (max-height: 600px){
    .navbar ul li a {
        font-size: 15px;
    }

    .navbar ul li a:hover {
        font-size: 15px;
    }

    header {
        height:40px;
    }

    .icon {
        font-size: 26px;
        top: -4px;
    }

    .skill {
        padding: 20px;
        max-width: 45%;
        font-size: 0.9rem;
    }
   
    .skill h1 {
        font-size: 1.25rem;
        }
    
    .skill h3 {
    font-size: 0.85rem;
    }

    footer {
        padding: 10px;
        font-size: 0.7rem;
    }
}


@media screen and (max-width: 600px) {
    .skill {
      width: 90%;
      max-width: 100%; /* Override narrow max-widths */
      padding: 20px;
      font-size: 1rem;
    }
  
    .skill h1 {
      font-size: 1.4rem;
    }
  
    .skill h3 {
      font-size: 1rem;
    }
  }
  