* {
    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: 100px;
    background-image:
        url(https://images2.imgbox.com/c8/30/wN8kyQPr_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;
    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 styling */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.contact-container {
    text-align: center;
    padding: 30px;
    max-width: 720px;
    width:100%;
    background: 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: 10px;
    transform: rotateX(2deg) rotateY(1deg);
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;
}

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

h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    margin-top: 30px;
    color: white;
}

.intro{
    color:white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact{
    color:white;
    font-size: 1.5rem;
    margin-top: 30px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    background-color: #52c41a;
    color: white;
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: #45a529;
    transform: scale(1.05);
}

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) {

.contact-container {
height: 400px;
}

h1 {
   font-size: 1.8rem;
}

h2 {
    font-size: 1.8rem;

}

.intro{
    font-size: 1.2rem;
}

.contact{
    font-size: 1.2rem;
}

.contact-button {
    font-size: 0.95rem;
    margin-top: 50px;
}
}

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

    h1 {
       font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    
    }
    
    .intro{
        font-size: 1rem;
    }

    .contact{
        font-size: 1rem;
    }
    
    .contact-button {
        font-size: 0.95rem;
        margin-top:70px;
    }

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

    
}

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


@media screen and (max-width: 1280px) and (max-height: 720px) {

    .contact-container {
        height: 390px;
        max-width: 500px;
    }

h1 {
       font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.4rem;
    
    }
    
    .intro{
        font-size: 1rem;
    }
    
    .contact{
        font-size: 1rem;
    }
    
    .contact-button {
        font-size: 0.75rem;
        margin-top:70px;
    }
}


    @media screen and (max-width: 1280px) and (max-height: 600px) {
        body {
            padding-bottom: 40px; /* Reserve space for fixed footer */
        }

        /* Adjust Contact Container */
        .contact-container {
            height: 270px;
            max-width: 550px;
            padding: 15px; /* Reduced padding */
        }
    
        /* Adjust heading sizes and reduce margin between text */
        h1 {
            font-size: 1.4rem;
            margin-bottom: 15px; /* Reduced bottom margin */
        }
    
        h2 {
            font-size: 1.4rem;
            margin-top: 10px;  /* Reduced top margin */
            margin-bottom: 15px; /* Reduced bottom margin */
        }
    
        /* Adjust intro text */
        .intro {
            font-size: 1rem;
            margin-bottom: 10px; /* Reduced bottom margin */
        }
    
        /* Adjust contact text */
        .contact {
            font-size: 1rem;
            margin-top: 10px; /* Reduced top margin */
            margin-bottom: 30px; /* Reduced bottom margin */
        }
    
        /* Adjust contact button */
        .contact-button {
            font-size: 0.75rem;
            margin-top: 20px; /* Adjusted margin for better spacing */
        }
    
    }
    


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

    .navbar ul li a:hover {
        font-size: 15px;
    }
    
    .contact-container {
        height: 250px;
        max-width: 500px;
    }

h1 {
       font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.1rem;
    
    }
    
    .intro{
        font-size: 1rem;
    }
    
    .contact{
        font-size: 1rem;
    }
    
    .contact-button {
        font-size: 0.60rem;
        margin-top: -40px; /* Adjusted margin for better spacing */
    }

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

@media (max-width: 768px){  
.contact-button {
    font-size: 0.60rem;
    margin-top: 30px; /* Adjusted margin for better spacing */
}
}

@media (max-width: 428px){  
    .contact-button {
        font-size: 0.80rem;
        margin-top: 50px; /* Adjusted margin for better spacing */
    }
}