
body{
    background-color: rgb(20,24,39);
    margin: 0;
    padding: 0;
    min-height: 200vh;
    overflow-x: hidden;
    font-family: "Space Grotesk", sans-serif;
}
h1{
    color:rgb(228,228,228);
    font-family:"press start 2P";
}

p{
    font-size: 25px;
    color:rgb(228, 228, 228);
}
li{
    color:rgb(228, 228, 228);
}
#l4{
    color:rgb(228, 228, 228);
}
ol{
    color: rgb(228,228,228);
}
h3{
    color:rgb(228,228,228)
}
dl{
    color:rgb(228,228,228)
}
dt{
    color:rgb(228,228,228)
}
dd{
    color:rgb(228,228,228)
}
a{
    color:rgb(228,228,228);
    font-family:"dm mono";
}
html{
    scroll-behavior: smooth;
}
#opening {
    padding: 80px 20px 80px 0;
    margin-left: clamp(20px, 12vw, 205px);
    box-sizing: border-box;
}
.opening-container {
    border-left: 2px solid rgb(126, 135, 165);
    border-top: 2px solid rgb(126, 135, 165);
    border-bottom: 2px solid rgb(126, 135, 165);
    padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 45px);
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}
#opening h1{
    font-size: clamp(24px, 4.5vw, 55px);
    margin: 15px 0;
    line-height: 1.3;
}
#opening h3{
    font-family: "dm mono";
    color: rgb(126,135,165);
    font-size: clamp(12px, 1.5vw, 15px);
    margin: 0 0 20px 0;
}
/*about me section*/
#about-me{
    padding: 40px 20px 40px 0;
    margin-left: clamp(20px, 12vw, 205px);
    max-width: 800px;
    box-sizing: border-box;
    font-family: "dm mono";
    transform:translate(50px,400px);
}
#about-me h3{
    font-family: "dm mono";
    color: rgb(126,135,165);
    font-size: clamp(12px, 1.5vw, 15px);
    margin: 0 0 20px 0;
}
.bg{
    position: fixed;
    height:100vh;
    width:100vw;
    top: 0;
    left: 0;
    background: url();
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.navbar{
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    background-color: rgb(30,35,53);
    border: 1px solid rgb(126, 135, 165);
}
.navbar ul{
    list-style-type: none;
    background-color:rgb(30,35,53);
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}
.navbar a{
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align:left;

}
.navbar a:hover{
    
    border: 1px solid rgb(126, 135, 165)
    
}
.navbar li{
    float: right;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .navbar ul {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    .navbar li {
        float: none;
    }
    .navbar a {
        padding: 10px;
    }
}

.btn{
    width: 200px;
    height: 60px;
    color: black;
    background: white;
    font-size:20px;
    text-decoration:none;
    margin:50px;
    display:flex;
    align-items: center;
    justify-content: center;
    transform:translate(0px,0px)



}

.btn1 span{
    margin: left 10px;
    width:0;
    overflow:hidden;
    transition:0.5s;
}
.btn1:hover span{
    width:30px;

}
#projects {
    text-align:center;
    transform: translateY(600px);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 20px;
}
#projects h3{
    font-family: "dm mono";
    color: rgb(126,135,165);
    font-size: clamp(12px, 1.5vw, 15px);
    margin: 0 0 20px 0;
}
.card-container{
    display:flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 100px;
    overflow-x: auto;
}
.card{
    width:325px;
    flex-shrink: 0;
    background-color: rgb(30,35,58);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:0px 2px 4px rgba(0,0,0,0.2);
}
.card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.card-body{
    padding: 16px;
    
}
.card-body h3{
    font-size: 28px;
    margin-bottom: 8px;
    color: #fff;
    font-family: "dm mono";
}
.card-body p{
    color:#fff;
    font-size:15px;
    font-family: "dm mono";
    line-height:1.3;

}
.card-body .C-btn{
     display:inline-block;
     padding:8px 16px;
     background-color: #333;
     text-decoration: none;
     border-radius: 4px;
     margin-top:16px;
     color:#fff;


}

/*Expanding card content*/
/* Hide extra content by default */
.extra-content {
    display: none;
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    font-family: "dm mono";
    line-height: 1.3;
}

/* If you want the image to start cropped or smaller and expand later */
.card-img {
    width: 100%;
    height: 200px; /* Starting height */
    object-fit: cover;
    transition: height 0.3s ease; /* Makes the expansion smooth */
}

/* --- THE EXPANDED STATES --- */

/* Reveal text when card has the .expanded class */
.card.expanded .extra-content {
    display: block;
}

/* Make image show completely when expanded */
.card.expanded .card-img {
    height: auto; /* Reveals full image */
}
/* contacts CSS */
#contacts h3{
    font-family: "dm mono";
    color: rgb(126,135,165);
    font-size: clamp(12px, 1.5vw, 15px);
    margin: 0 0 20px 0;

}
#contacts{
    text-align: center;
    transform:translateY(1000px)
}
#contacts .contacts-links{
    display: inline-flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}
#contacts a{
    text-decoration:none;
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
.C1-label, .C2-label{
    color:rgb(126,135,165);
    font-size: 15px;
    min-width: 80px;
}
.C1-value, .C2-value{
    font-size:25px
}
#contacts .C1:hover,
#contacts .C2:hover{
    background-color: rgb(35, 41, 60);
}