* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d1117;
    color: #e6edf3;
    font-family: "JetBrains Mono", monospace;
    transition: background-color .3s, color .3s;
}

a{
    color: inherit;
    text-decoration: none;
}

nav {
    padding: 25px 50px;
    border-bottom: 1px solid #21262d;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.navbar a {
    color: #8b949e;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.navbar a:hover  {
    color: #58a6ff;
}

main {
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.prompt {
    color: #58a6ff;
    margin-top: 30px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #8b949e;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
.button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #58a6ff;
    border-radius: 8px;
    color: #58a6ff;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: #58a6ff;
    color: #0d1117;
}

.secondary {
    border-color: #30363d;
    color: #c9d1d9;
}

.secondary:hover {
    background-color: #30363d;
    color: white;
}

.description {
    max-width: 650px;
    line-height: 1.8;
    color: #c9d1d9;
    margin-bottom: 40px;
}

html {
    scroll-behavior: smooth;
}

.terminal-list {
    list-style: none;
    margin: 20px 0 40px;
}

.terminal-list li {
    margin-bottom: 10px;
    color: #c9d1d9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    padding: 30px;
    border: 1px solid #30363d;
    border-radius: 12px;
    transition: all .2s ease;
}

.project-card:hover {
    border-color: #58a6ff;
    transform: translateY(-4px);
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.tech-stack span {
    border: 1px solid #30363d;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #8b949e;
}

.project-page {
    padding: 80px 40px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.logo {
    color: white !important;
    font-weight: 700;
    font-size: 1.2rem;
}

.active {
    color: #58a6ff !important;
}

.hero-content {
    flex: 1;
}

.music-player {
    width: 320px;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
}

.music-player h3 {
    margin: 20px 0;
}

.music-player input {
    width: 100%;
    margin-top: 20px;
}

.about-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 40px;
}

.photo-album-page {
    padding: 80px 40px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.photo-card {
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.9);

    justify-content: center;
    align-items: center;

    z-index: 999;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    width: 90%;
    text-align: center;
}

#modalImage {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

#modalDescription {
    color: #8b949e;
    line-height: 1.8;
}

.quote-box {
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 25px;
    border-left: 4px solid #58a6ff;
    background: #161b22;
    border-radius: 8px;
}

.quote-section {
    margin-top: 30px;
}

.quote {
    font-style: italic;
    line-height: 1.8;
    color: #c9d1d9;
}

.quote-author {
    margin-top: 15px;
    color: #8b949e;
    text-align: right;
}

.quote-box{
    background:#161b22;
    border-left:3px solid #58a6ff;
    border-radius:10px;
    padding:30px;
    box-shadow:0 0 20px rgba(88,166,255,.08);
}

.quote-box p{
    font-style: italic;
}

.spotify-section{
    margin-top:30px;
}

.spotify-card{
    display:flex;
    align-items:center;
    gap:16px;
    background:#171b22;
    border:1px solid #2b3342;
    border-radius:12px;
    padding: 16px;
    margin-top:10px;
}

.spotify-card img{
    width:72px;
    height:72px;
    border-radius:8px;
}

.spotify-info h3{
    margin:0;
    color:#fff;
}

.spotify-info p{
    margin:8px 0;
    color:#b8c0cc;
}

.spotify-info a{
    color:#3b82f6;
    text-decoration:none;
}

.spotify-info a:hover{
    text-decoration:underline;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    max-width:1100px;
    margin:80px auto;
    padding:0 30px;
}

.panel{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:12px;
    padding:25px;
}

.full{
    grid-column:1 / -1;
}

.panel h1{
    margin-bottom:15px;
}

.panel .prompt{
    margin:0 0 15px;
}

.panel .description{
    margin-bottom:0;
}

.quote-box{
    margin:0;
    padding:0;
    background:none;
    border:none;
    box-shadow:none;
}

.spotify-section{
    margin:0;
}

@media (max-width:900px){

.about-grid{
    grid-template-columns:1fr;
}

.full{
    grid-column:auto;
}

}

.live-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:15px;
}

.live-grid .spotify-card{
    margin:0;
    height:100%;
}

@media (max-width:700px){

.live-grid{
    grid-template-columns:1fr;
}

}

.local-status {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: -70px;
    margin-bottom: 40px;
}

.status-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
}

.status-card:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
}

.status-card .prompt {
    margin-top: 0;
}

#local-clock {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0 5px;
}

#weather-info {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0 5px;
}

.status-card > p:last-child {
    color: #8b949e;
    margin-top: 5px;
}

@media (max-width: 700px) {

    .local-status {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }

}

.weather-description {
    font-size: 1rem;
    font-weight: 400;
    color: #c9d1d9;
    margin-top: 5px;
}

.weather-wind {
    font-size: 0.85rem;
    font-weight: 400;
    color: #8b949e;
    margin-top: 8px;
}

.weather-temperature {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.weather-description {
    font-size: 1rem;
    color: #c9d1d9;
    margin-bottom: 15px;
}

.weather-details {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #8b949e
}

.sun-times {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
    font-size: 0.85rem;
    color: #c9d1d9
}

.local-date {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8b949e;
    margin-top: 5px
}

.random-site {
    margin-top: 20px;
}

.random-site .button {
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
}

#randomSiteText {
    margin-top: 12px;
    color: #8b949e;
    font-size: 0.85rem;
}

.chess-profile {
    margin-top: 30px;
}

.chess-profile h2 {
    margin-bottom: 25px;
}

.chess-ratings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.chess-ratings .panel {
    min-height: 150px;
}

.chess-ratings .panel div {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 20px;
}

.chess-profile .button {
    display: inline-block;
}

@media (max-width: 700px) {

    .chess-ratings {
        grid-template-columns: 1fr;
    }

}

.fide-card {
    margin-top: 20px;
}
