body {
    background-color: #c0e0ef;
    margin: 0;
}


.hero {
    padding: 60px 20px;
    text-align: left;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 550;
    font-family: 'Courier New', Courier, monospace;
    max-width: 500px;
}

.laptop-display {
    display: flex;
    justify-content: center;
    position: relative;
    width: min(40vw, 900px);
    margin: auto;
}


.laptop-display button {
    background-color: transparent;
    border: none;
}


.laptop-frame {
    width: 100%;
    display: block;

}

.laptop-screen {
    position: absolute;
    top: 4%;
    left: 9%;
    width: 84%;
    height: 82%;
    overflow: hidden;
    border: none;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.desktop {
    width: 100%;
    height: 100%;
    background: url("images/desktop.jpg") center / cover no-repeat;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem;
    padding: 1rem;
}


svg {
    width: 3rem;
    height: 3rem;
    pointer-events: none;
}

.laptop-project{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#project-name{
    margin-top: -0.05rem;
    height: auto;
    width: 4.5rem;
    background-color: rgba(255, 255, 255, 0.373);
    border: 1px solid #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    padding: 0.1rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#project-name2{
    margin-top: -0.05rem;
    height: auto;
    width: 6rem;
    background-color: rgba(255, 255, 255, 0.373);
    border: 1px solid #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    padding: 0.2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}


.carousel-modal {
    position: absolute;
    inset: 0;
    background: black;
    display: none;
    z-index: 20;
}

.carousel-modal.active {
    display: block;
}

.close-carousel {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 30;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.carousel, .carousel-track {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}




.first-section{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 10px;
}


.intro{
    top: 0;
    width: 35rem;
    margin-left: 5rem;
}


.heading1{
    text-align: left;
    font-size: 50px;
    margin-left: 5rem;
    font-family:'Courier New', Courier, monospace;
    width: fit-content;

}


.heading2{
    text-align: left;
    font-size: 80px;
    margin-left: 5rem;
    font-family: Cochin;
    line-height: 0%;
    margin-bottom: 0;
    width: fit-content;
}


.heading3{
    text-align: left;
    font-size: 80px;
    margin-left: 10rem;
    font-family: Cochin;
    line-height: 0%;
    margin-bottom: 0;
    width: fit-content;
}


.about-me{
    font-size: 18px;
    line-height: 200%;
    font-weight: 550;
    font-family:'Courier New', Courier, monospace;
}





.white-bar{
    background-color: white;
    width: 100%;
    height: 100px;
    margin-bottom: 100px;
    box-shadow:
    0 0 15px #c0e0ef, 
    0 0 15px #67c5f0,
    0 0 30px #38c0ff,
    0 0 40px #2fbcfd;
}


.heading1-2{
    text-align: center;
    font-size: 50px;
    margin-left: 60px;
    font-family:'Courier New', Courier, monospace;
}




.laptop-container {
    position: relative;
    width: 450px;
    height: 300px; 
    margin-top: 35%;
}




.contact-box{
    width: 100px;
    height: 60px;
    margin: 20px;
    text-align: center;
    line-height:200%;
    font-size:22px;
    font-weight:800;
    perspective: 1000px;
}


.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}


.contact-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}


.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: black 1px solid;
    box-shadow: 0 0 5px #0ce0ef,
    0 0 10px #67c5f0,
    0 0 20px #75a6ff,
    0 0 35px #a4edfd;
    background-image: linear-gradient(180deg, rgb(255, 255, 255), rgb(142, 204, 255));
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden; 
    border-radius: 8px;
}


.flip-box-back {
    transform: rotateY(180deg);
}


.computer-contact-label{
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}


.computer-contact-label:hover{
    text-decoration: underline;
}


.svg{
    width: 40px;
    height: 40px;
}


#underlining{
    font-size:12px;
    font-weight:200;
    margin-top: -10%;
}


.contact-boxes{
    justify-content: space-evenly;
    align-items:center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}


.mini-nav{
    background-color: #c0e0ef;
    position: relative;
    height: 20px;
    width: 100%;
    left: 0;
    top: 0;
    border-bottom: black 2px solid;
    display: flex;
    gap: 10px;
    padding: 2px 10px;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
}




.box{
    border: black 2px solid;
    border-radius: 15%;
    background-color: white;
    width: 220px;
    height: 200px;
    margin-top: 60px;
    text-align: center;
    font-family: cochin;
    line-height: 540%;
    font-size: 35px;
    box-shadow: 5px 5px 5px grey;
    font-weight:bold;
}


.box:hover{
    cursor: pointer;
    transform: scale(1.05);  
    transition: transform 0.5s;
    box-shadow: 10px 10px 5px grey;
    background-image: linear-gradient(180deg, rgb(255, 255, 255), #c0e0ef);
    box-shadow:
    0 0 15px #c0e0ef, 
    0 0 15px #67c5f0,
    0 0 30px #38c0ff,
    0 0 40px #2fbcfd;
}


.boxes{
    justify-content: space-evenly;
    align-items:center;
    display: flex;
    flex-direction: row;
    margin-left: 20%;
    margin-right: 20%;
    flex-wrap: wrap;
}




.project-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
}

.project-card {
    background-image: linear-gradient(180deg, rgb(255, 255, 255), #c0e0ef);
    border: 2px solid black;
    border-radius: 12px;
    padding: 25px;
    width: 350px;
    box-shadow: 5px 5px 5px grey;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #c0e0ef, 0 0 15px #67c5f0, 0 0 30px #38c0ff, 0 0 40px #2fbcfd;
}

.project-title {
    font-size: 28px;
    font-family: Cochin;
    margin-bottom: 15px;
    color: #333;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    border: solid 1px #001aff;
    background-image: radial-gradient( circle 476px at 44.8% 51.5%,  rgba(168,229,253,1) 0%, rgba(244,244,254,1) 42.3%, rgba(244,244,254,1) 100.2% );
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-weight: 800;
    transition: color 0.3s;
}

.project-link:hover {
    color: #2fbcfd;
}




.contact-section {
    background-image: radial-gradient( circle farthest-corner at 17.6% 50.7%,  rgba(25,0,184,1) 0%, rgba(0,0,0,1) 90% );
    padding: 40px 20px;
    margin-top: 100px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
    
}

.contact-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 50px;
    color: #2fbcfd;
    font-weight: bold;
}


.contact-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: white;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background-image: linear-gradient(180deg, rgb(255, 255, 255), #c0e0ef);
    color: #000;
    border: 2px solid black;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px #c0e0ef, 0 0 20px #67c5f0, 0 0 40px #38c0ff;
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: #2fbcfd;
    margin-bottom: 15px;
}

.card-label {
    font-family: Cochin;
    font-size: 24px;
    color: rgb(0, 0, 0);
    margin: 10px 0 5px 0;
}

.card-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #000000;
    margin: 0;
}

.contact-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.footer-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: white;
}











@media screen and (max-width: 600px) {
    
    html {
        margin: 0;
        padding: 0;
        width: 100vw;
    }
    
    .body{
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .laptop-display{
        display: none;
    }

    .heading1{
        font-size: 30px;
        margin-left: 5%;
        padding-bottom: 2%;
    }

    .heading2{
        font-size: 40px;
        margin-left: 60px;
    }

    .heading3{
        font-size: 40px;
        margin-left: 150px;
    }

    .hero-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .intro {
        width: 90%;
    }

    .intro p {
        font-size: 16px;
        margin-right: 10%;
        padding-bottom: 5%;
    }

    .about-me{
        font-size: 16px;
        text-align: center;
        padding-top: 5%;
        padding-bottom: 30%;
    }

    .white-bar{
        position: relative;
        width: 100vw;
        right: 0;
        left: 0;
    }

    .boxes{
        margin-left: 5%;
        margin-right: 5%;
        gap: 20px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 5%;
    }
    .box{
        margin-top: 20px;
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
        font-size: 20px;
        line-height: 500%;
        border-radius: 20%;
        font-weight:bold;

    }

    .heading1-2{
        font-size: 30px;
        margin-left: 5%;
        margin-right: 5%;
        margin-top: -10%;
        padding-bottom: 5%;
    }

    .project-section{
        margin: 0%;
    }


    .title-box{
        width: 90px;
        height: 90px;
        text-align: center;
        line-height: 150%;
        font-size: 18px;
        float: left;
        margin: 2%;
        margin-top: 4%;
    }


    .contact-label {
        font-size: 30px;
    }

    .contact-card {
        padding: 20px;
        width: 60%;
        margin: auto;
    }

    #live-link {
        display: none;
    }
}