* {
    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;
    padding-bottom: 50px; /* Reserve space for fixed footer */
    background-image:
        url("https://onekomputer.com/images/mountain.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;
    overflow: hidden;
}

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 */
.container {
    list-style-type: none;
    width: 100%;
    color: white;
    max-width: 720px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.644);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.644), 0 -4px 8px rgba(0, 0, 0, 0.644);;
    /* Adds depth */
    transform: rotateX(2deg) rotateY(1deg);
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.container:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-4px); /* subtle lift */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.644), 0 -8px 16px rgba(0, 0, 0, 0.4);
}

.box-img {
    border-radius: 50%;
    width: 190px;
    height: 190px;
    object-fit: cover;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.65rem;
    letter-spacing: 2px;
    margin: 10px;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    margin: 15px;
}

p#info {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.linkedin-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    color: white;
    background-color: #0077b5;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.linkedin-btn:hover {
    background-color: #005983;
    transform: scale(1.05);
}
    /* 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: 1600px) and (max-height: 900px) {
    .container {
        max-width: 680px;
        padding: 30px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p#info {
        font-size: 1.2rem;
    }

    .box-img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .linkedin-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 1400px) and (max-height: 1050px) {
    .container {
        max-width: 680px;
        padding: 30px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p#info {
        font-size: 1.2rem;
    }

    .box-img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
}


@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 */
    }

    .container {
        max-width: 600px;
        padding: 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1rem;
    }

    p#info {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .box-img {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .linkedin-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

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

@media screen and (max-width: 1280px) and (max-height: 1040px) {
    .container {
        max-width: 680px;
        padding: 30px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p#info {
        font-size: 1.2rem;
    }

    .box-img {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    .linkedin-btn {
        display: inline-block;
        margin-top: 20px;
        padding: 12px 25px;
        font-size: 1.1rem;
}
}


@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;
    }    
    .container {
        max-width: 680px;
        padding: 30px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    p#info {
        font-size: 1rem;
    }

    .box-img {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
    }
    .linkedin-btn {
        font-size: 0.9rem;
}
}

@media screen and (width: 1280px) and (max-height: 720px){
    .container {
        max-width: 450px;
        padding: 10px;
    }

    h1 {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1rem;
    }

    p#info {
        font-size: 0.9rem;
    }

    .box-img {
        width: 130px;
        height: 130px;
        margin-bottom: 15px;
    }
    .linkedin-btn {
        font-size: 0.7rem;
}
}

    @media screen and (width: 1280px) and (max-height: 600px) {
 
        .container {
            list-style-type: none;
            width: 100%;
            color: white;
            max-width: 740px; /* Adjusted width for smaller screens */
            padding: 15px;
            background: rgba(0, 0, 0, 0.644);
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            position: relative;
            transition: transform 0.3s, box-shadow 0.3s;
            transform: rotateX(2deg) rotateY(1deg);
        }
    
        .container:hover {
            transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.644);
        }
    
        .box-img {
            border-radius: 50%;
            width: 100px; /* Smaller size for the image */
            height: 100px;
            object-fit: cover;
            margin-bottom: 10px;
        }
    
        h1 {
            font-size: 1rem;
            margin: 10px;
        }
    
        h2 {
            font-size: 0.9rem;
            margin: 10px;
        }
    
        p#info {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 10px;
        }
    
        .linkedin-btn {
            padding: 8px 16px;
            font-size: 0.7rem;
            background-color: #0077b5;
            color: white;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
    
        .linkedin-btn:hover {
            background-color: #005983;
            transform: scale(1.05);
        }
    }

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

    .container {
        max-width: 70%;
        padding: 25px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p#info {
        font-size: 1rem;
    }

    .box-img {
        width: 100px;
        height: 100px;
    }

    .linkedin-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media screen and (width: 800px) and (max-height: 600px){
    header {
        height:40px;
    }

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

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

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

    .container {
        max-width: 80%; /* Increase container width slightly */
        padding: 15px; /* Reduced padding for more space */
    }

    h1 {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 0.8rem;
    }

    p#info {
        font-size: 0.75rem;
    }

    .box-img {
        width: 100px;
        height: 100px;
    }

    .linkedin-btn {
        padding: 8px 16px;
        font-size: 0.65rem;
    }

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

@media screen and (max-width: 768px) {

    .container {
        max-width: 90%;
        padding: 15px;
        margin: auto;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    p#info {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .box-img {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }

    .linkedin-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

 }
