
.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    height: auto; 
    text-decoration: none;
    font-weight: bold;
}


.social-button:hover {
    transform: translateY(-2px);
}


:root {
    color-scheme: light dark;
    --background-color: #ffffff;
    --text-color: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: rgba(3, 21, 160, 0.253);
        --text-color: #f0f0f0;

    }
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: sans-serif;
    margin: 0;              
    padding: 0;
    max-width: 100vw;      
    overflow-x: hidden;     
}


.linkedin-container {
    display: inline-block;
    width: 304px;          
    height: 280px;        
    border-radius: 14px;
    outline: 4px solid #ffffff;
    outline-offset: -4px;
    overflow: hidden;     
    background-color: transparent;
    box-sizing: border-box;
}


.linkedin-container .LI-profile-badge,
.linkedin-container iframe {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.connect-content {
    padding-left:20px;
}

.index-content {
    padding-left: 20px;
}

div.badge-base.LI-profile-badge::-webkit-scrollbar {
    display: none !important;
}

a.social-button, 
body > a[href*="github.com"] {
    margin-left: 0px !important;
    display: inline-block;
}


.home-button {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width:80px;
    height:40px;
    background-color:#F2F5F3;
    color: #1C1C1C;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius:15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /*transition: transform 0.2s, background-color 0.2s;*/
}

.home-button:hover {
    transform: translateY(-2px);
    background-color: #ffffff55;
}

.connect-button {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 97px;
    height:40px;
    background-color:#F2F5F3;
    color: #1C1C1C;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius:15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.connect-button:hover {
    transform: translateY(-2px);
    background-color: #ffffff55;
}

.extracurriculars-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width:167px;
    height:40px;
    background-color: #F2F5F3;
    color: #1c1c1c;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.extracurriculars-button:hover{
    transform:translateY(-2);
    background-color: #ffffff55;
}

.navbar {
    background-color: rgba(195, 195, 195, 0.08);
    border-radius: 15px;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    margin: 10px 15px 0 15px; 
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(16, 1, 58, 0.24);
    width: calc(100% - 30px); 
}

.projects-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    width:102px;
    height:40px;
    background-color:#F2F5F3;
    color:#1c1c1c;
    font-size:12px;
    text-decoration:none;
    font-weight:bold;
    border-radius:15px;
    box-shadow:0 4px 6px rgba(0,0,0,0.1);
}

.projects-button:hover {
    transform:translateY(-2px);
    background-color: #ffffff55;
}

.projects-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.projects-left {
    padding-left:40px;
}

.projects-right {
    padding-left:20px;
}

@media (max-width:768px){
  
  .navbar {
    justify-content: center;
    gap: 12px;
    margin: 10px auto;
    width: calc(100% - 30px); 
  }

 
  .home-button, 
  .connect-button, 
  .extracurriculars-button, 
  .projects-button {
    height: 32px;
    font-size: 9px;
    border-radius: 10px;
  }

.index-content{
    padding-left: 0;
    text-align: center;
}

    .home-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }

    home-left-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        width: 100%;
    }

    .home-left-sidebar .social-button {
        display: inline-block;
        margin: 0 auto;
    }

    .connect-content {
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .linkedin-container {
        margin: 0 auto;
        display: inline-block;
    }

    a.social-button {
        margin-left: 0 !important;
        display: inline-block;
    }

    .projects-columns{
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .projects-left, .projects-right {
        padding-left: 15px;
        text-align: left;
        padding-right: 15px;
    }

    .project-detailes-content ul {
        display: inline-block;
        text-align: left;
    }

    .project-details-content img {
        margin: 10px auto;
    }
}

.hardware-box {
    background-color: rgba(195, 195, 195, 0.08);
    border: 2px solid #ffffff;
    border-radius:15px;
    padding-top:10px;
    padding-left:20px;
    padding-bottom:10px;
    padding-right:20px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.hardware-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba (0,0,0,0.15);
}

iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.home-grid-container {
    display: grid;
    grid-template-columns: 1fr 306px;
    gap: 40px;
    margin: 30px 15px;        
    align-items: start;
    box-sizing: border-box;
}


.home-left-sidebar {
    display:flex;
    flex-direction: column;
    gap:20px;
}

.home-left-sidebar h3 {
    margin: 0 0 5px 0;
}

.home-left-sidebar .social-button {
    display: block;
    width: 304px;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
}

.home-left-sidebar .social-button img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .home-grid-container {
        grid-template-columns: 1fr;
        gap:30px;
    }
}

details.hardware-box {
    display: block;
    cursor: pointer;
    background-color: rgba(195, 195, 195, 0.08);
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


details.hardware-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


.project-header {
    outline: none;
    list-style: none; 
}


.project-header::-webkit-details-marker {
    display: none;
}


.toggle-hint {
    display: block;
    font-size: 11px;
    color: #888888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


details[open] .toggle-hint {
    content: "Click card to collapse details";
    visibility: hidden;
    height: 0;
    margin: 0;
}


.project-details-content {
    cursor: default; 
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
}

html {
    scrollbar-gutter: stable; 
}

.carousel-container {
    position:relative;
    max-width:800px;
    margin:auto;
    overflow:hidden;
    border-radius:8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width:100%;
}

.carousel-slide {
    min-width:100%;
    box-sizing: border-box;
}
.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: contain;
  background-color: #121626;
  display: block;
}

.carousel-btn {
    position: absolute;
    top:50%;
    transform:translateY(-50%);
    background-color:rgba(0,0,0,0.5);
    color:white;
    border:none;
    padding:16px;
    cursor:pointer;
    font-size:18px;
    border-radius:50%;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn {left:10px;}
.next-btn { right:10px;}

.home-button.active,
.projects-button.active,
.extracurriculars-button.active,
.connect-button.active {
    
    transform: none;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.35);
    background-color: #1c256b;
color: white;
border: 2px solid black;
}

.home-button.active:hover,
.projects-button.active:hover,
.extracurriculars-button.active:hover,
.connect-button.active:hover {
    transform: none;
    background-color: #4f8cff;
}

.featured-projects {
    margin: 20px 15px;
    margin-left: 0px;
}

.featured-projects h2 {
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

.featured-card {
    background: rgba(195,195,195,.08);
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.featured-card h3 {
    margin-top: 0;
}