* {
    box-sizing: border-box;
}
html {
    --font-scale: 1;
  }
/*
h1,h2,h3,h4,h5,h6 {
    color:  rgb(162,230,280)
}
*/
body{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: calc(var(--font-scale) * 1rem);
    overflow-y: scroll;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.side {
    flex: 30%;
    flex-direction: column;
    background-color: #f1f1f1;
    padding: 5%;
    display: flex;
}
.side p {
    margin: 1%;
}
.side img {
    width: 30%;
}
.dark-mode .side {
    flex: 30%;
    background-color: black !important;
    padding: 5%;
    color: white;
}
.main {
    flex: 70%;
    background-color: white;
    padding: 5%;
}

.dark-mode  .main {
    flex: 70%;
    background-color: #333; 
    padding: 5%;
    color: white;
}
.header {
    padding: 1%;
    text-align: center;
    background: #1abc9c;
    color: white;
    background-image: url(./images/Tech.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 280px;
}
.header h1 {
    font-size: calc(var(--font-scale) * 2rem);
    margin: 1%;
    color:  rgb(162,230,280)
}
.header img{
    width: 15%;
}
.header p {
    margin: 1%;
    color:  rgb(162,230,280);
    font-size: calc(var(--font-scale) * 1.25rem);
}
.navbar {
    overflow: hidden;
    background-color: rgb(162,230,250)
}
.dark-mode .navbar {
    overflow: hidden;
    background-color: #bebcbc;
}

.navbar a {
    float: left;
    display: block;
    color: rgb(0,0,132);
    text-align: center;
    padding: 1% 4%;
    text-decoration: none;
}
.dark-mode .navbar a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 1% 4%;
    text-decoration: none;
}
.navbar a.right {
    float: right;
}
.navbar a:hover {
    background-color: #ddd;
    color: black;
}
.dark-mode .navbar a:hover {
    background-color: black;
    color: white;
}
.footer {
    display: flex;
    flex-direction: column; /* stack thumbnails and button vertically */
    align-items: center; /* vertically centers if needed */
    justify-content: center; /* center if you want vertical centering in a page-height container */
    gap: 5%; /* space between items */
    padding: 1%;
    text-align: center;
    background: rgb(162,230,250);
}
.dark-mode .footer {
    background-color: #bebcbc;
}
.thumbnails {
    display: flex;
    gap: 5%; /* spacing between thumbnail items */
}

.project-thumbnail {
    display: inline-block;
}

.project-thumbnail img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
    box-shadow: none;
}
.project-thumbnail.active img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.progress-item label {
    min-width: 150px;
}
.progress-wrap {
    flex: 1;
    height: 20px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: rgb(162,230,250);
    transition: width 0.3s ease;
}
input[type="range"] {
     width: 50%;
    height: 6px;
    background: linear-gradient(to right, rgb(0,0,132), #3b82f6); /* nice gradient */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  /* Webkit thumb (Chrome, Safari, Edge) */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
  }
  
  input[type="range"]::-webkit-slider-thumb:hover {
    background: #4f46e5;
    transform: scale(1.2);
  }
  
  /* Firefox thumb */
  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
  }
  
  input[type="range"]::-moz-range-thumb:hover {
    background: #4f46e5;
    transform: scale(1.2);
  }
  button {
    background: linear-gradient(135deg, rgb(0,0,132), #3b82f6);
    color: white;
    padding: 0.75em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }
  
  button:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  }
  
  button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }

@media screen and (max-width: 700px) {
    .row {
        flex-direction: column;
    }
}
@media screen and (max-width: 400px) {
    .navbar a {
        float: none;
        width: 100%;
    }
    .header {
        min-height: 0px;
    }
    .header img{
        width: 40%;
    }
    .side {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .main {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}