/* Base styles */
* {
    margin: 0;
    padding: 0;
    font-family: "General Sans", sans-serif;
    box-sizing: border-box;
}

::selection{
    background-color: #eed26e;
    color: #152d44;
}
/* Styling for large capital "C" */
big {
    font-family: "Comfortaa", cursive;
    font-size: 30px;
}

/* Body and HTML setup */
html,
body {
    width: 100%;
    height: 100%;
    background-color: white;
    overflow-x: hidden;
}

#menu {
    display: none;
    position: absolute;
    background-color: olivedrab;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

#menuh4 a:hover {
    background-color: gray;
}

#nav:hover #menu {
    display: block;
    border-radius: 20px;
}

/* Circle effect styling */
#minicircle {
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 99999;
    border-radius: 50%;
    background-color: #ffffff;
}

/* General bounding class for wrapping elements */
.bounding {
    width: fit-content;
    overflow: hidden;
    color: blanchedalmond;
}

.bounding .boundingelem {
    transform: translateY(100%);
}

/* Main container */
#main {
    width: 100%;
    background-color: black;
    position: relative;
}

/* Hero section styles */
#hero {
    position: relative;
    color: #fff;
    width: 100%;
    height: 100vh;
    background-color: darkslategray;
}

/* Navigation bar styles */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 40px;
    color: blanchedalmond;
}

#nav a {
    text-decoration: none;
    font-size: 25px;
    color: blanchedalmond;
}

/* Heading styles */
#heading {
    margin-top: 90px;
}

#heading h1 {
    margin-left: 30px;
    opacity: .6;
    line-height: 1;
    font-size: 10vw;
    text-transform: uppercase;
    font-weight: 900;
}

#heading #secondh1 {
    margin-left: 230px;
}

/* Blocktext alignment */
.blocktext {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.blocktext h5 {
    text-transform: uppercase;
    font-size: 15px;
    text-align: right !important;
}

/* Smaller headings in hero section */
#chhotiheadings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 100px;
    padding-right: 50px;
}

#chhotiheadings h5 {
    text-transform: uppercase;
    margin-top: .5vw;
    font-size: 1vw;
}

/* Hero footer navigation and icon styles */
#herofooter {
    padding: 0 2vw;
    width: 100%;
    position: absolute;
    bottom: 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#herofooter a,
#footer a,
#subscribe h3 {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

#herofooter #iconset {
    display: flex;
    gap: 5px;
}

#herofooter .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #888;
}

/* Second section for showcasing projects */
#second {
    color: #fff;
    padding-right: 10vw;
    padding-top: 200px;
    background-color: #562838;
    width: 100%;
    height: 100vh;
}

.elem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 3.5vw 3vw;
    padding-right: 0;
    border-top: 1px solid #888;
}

.elem h1 {
    text-transform: uppercase;
    font-size: 7.6vw;
    opacity: .7;
}

.elemlast {
    border-bottom: 1px solid #888;
    margin-bottom: 20px;
}

/* Hide images initially and position */
.elem img {
    opacity: 0;
    pointer-events: none;
    height: 140%;
    /* width: 160px; */
    z-index: 999;
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 30px;
}

/* About section styling */
#about {
    display: flex;
    align-items: center;
    gap: 50px;
    columns: 200px;
    color: #fff;
    padding: 25vw 10vw;
    width: 100%;
    height: 50%;
    background-color: rgb(37, 31, 74);
}

#about img {
    width: 200px;
    border-radius: 15px;
    border: 3px solid rgb(95, 59, 168);
    transition: all 0.3s ease-in;
}

#about img:hover {
    transform: scale(1.1);
    box-shadow: 8px 8px 16px black;
}

/* Text about content */
#textabout {
    width: 20rem;
}

#textabout h5,
#subscribe h5 {
    text-transform: uppercase;
    opacity: .4;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#textabout p {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: sans-serif;
}

/* Let's talk button */
#textabout a {
    padding: 12px 22px;
    border: 1px solid #fff;
    border-radius: 100px;
    color: #fff;
    font-size: 15px;
    box-shadow: 2px 2px 0px white;
    transition: all 0.3s ease-in;
}

#textabout a:hover {
    background-color: rgb(95, 59, 168);
    transform: scale(1.1);
    box-shadow: 6px 6px 0px white;
}

#textabout a:active {
    background-color: #fff;
    color: black;
    box-shadow: 0px 0px 0px white;
}

/* Subscribe section styling */
/* Subscribe section */
#subscribe h3 {
    text-transform: uppercase;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

/* Underline effect for the subscribe link */
#subscribe h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #fff;
    transition: width 0.5s ease;
}

/* On hover, the underline will animate */
#subscribe h3:hover::after {
    width: 100%;
}

/* Apply similar hover effect as the social links in the footer */
#footerright a {
    position: relative;
    display: inline-block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

#footerright a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

#footerright a:hover::after {
    width: 100%;
}

#subscribe {
    color: #fff;
    padding: 20px 30px;
    padding-bottom: 7vw;
    background-color: rgb(21, 46, 23);
}

#subscribe h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #fff;
    transition: width 0.5s ease;
}

/* On hover, the underline will animate */
#subscribe h3:hover::after {
    width: 100%;
}

/* Footer section */
#footer {
    color: #fff;
    background-color: rgb(21, 46, 23);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 30px;
}

#footerleft {
    display: flex;
    gap: 20px;
}

#footerright {
    display: flex;
    gap: 30px;
}

#footerright a {
    position: relative;
    display: inline-block;
    font-size: 14px;
}

#footerright a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 20px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

#footerright a:hover::after {
    width: 100%;
}

body{
    cursor: none;
}
#nav:hover #menu {
    display: block;
    border-radius: 20px;
    /* cursor: pointer; */
}

#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 40px;
    color: blanchedalmond;
    cursor: none;
}

/* Responsive Styles */

/* Medium screen devices (tablets) */
@media (max-width: 768px) {
    #nav {
        flex-direction: column;
        text-align: center;
    }

    #heading h1,
    #second {
        font-size: 6vw;
    }

    #chhotiheadings {
        align-items: right;
        margin-top: 50px;
        padding-right: 20px;
    }

    #herofooter {
        flex-direction: column;
    }

    #about {
        flex-direction: column;
        padding: 10vw;
    }
}

/* Small screen devices (mobiles) */
@media (max-width: 480px) {
    #heading h1 {
        font-size: 12vw;
        margin-left: 0;
        text-align: center;
    }

    #second,
    #subscribe {
        padding: 20px 10px;
    }

    #herofooter {
        padding: 10px;
    }

    #about img {
        width: 150px;
    }

    #footer {
        flex-direction: column;
    }
}