body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #222222;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Arrange children vertically */
    margin: 0 auto;
    position: relative;
    min-height: 1390px;
    height: auto;
    width: 50%; /* Adjust as needed */
    text-align: center;
    color: #232b39;
    border-radius: 15px;
    box-sizing: border-box;
}

@media(max-width:992px) {
    .container {
        width: 70%;
        min-height: 1450px;
        height: auto;
    }
}
@media(max-width:577px) {
    .container {
        width: 100%;
        min-height: 1500px;
        height: auto;
    }
}

.background {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./assets/background.gif') no-repeat center center/cover;
    z-index: 1;
    border-radius: 15px;
}

.user-name{
    color: white;
}

.content {
    top: 50px;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.user-image {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}


.links {
    display: flex;
    flex-wrap: wrap;        
    gap: 12px;              
    justify-content: center;
    align-items: stretch;  
    margin-top: 18px;
    padding: 0 8px;
}

.link-item {
    display: inline-flex;          
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    text-decoration: none;
    color: #00bcd4;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    min-width: 160px;        
    max-width: 320px;
    flex: 1 1 160px;               
    box-sizing: border-box;
}

.link-item:hover {
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    color: #00bcd4;
}

.link-item img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .link-item {
        min-width: 120px;
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}

.spotify-frame h2 {
    color: #ffffff; /* Set heading color */
    margin: 0 0 12px 0; /* Space below */
    font-size: 1.15rem; /* Adjust font size as needed */
    text-align: left; /* Align text */
}


.spotify-frame {
    height: 0; 
    overflow: hidden; 
    transition: height 0.5s ease; /* Smooth transition */
    margin-top: 20px;    
}

.spotify-frame.active {
    height: 380px; 
}
#toggle-button {
    min-width: 160px; /* Same minimum width as link items */
    margin-top: 20px; /* Spacing from other elements */
    font-size: 1rem; /* Adjust font size if needed */
    border: none;
    background-color: rgba(255, 255, 255, 0.03); /* Background effect */
    color: #00bcd4; /* Text color from link items */
    border-radius: 10px; /* Matches link item */
    padding: 10px 14px; /* Like link items */
    transition: background 0.3s ease; /* Transition effect */
    cursor: pointer; /* Pointer cursor */
}

#toggle-button:hover {
    background: rgba(255, 255, 255, 0.06); /* Background on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Shadow on hover */
}



.suggested-projects {
    margin-top: 30px;
    width: 100%;
    color: white;
    padding: 8px;
}

.suggested-projects h2 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: #ffffff;
    text-align: left;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    justify-content: center;
}

.project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    transition: transform .16s ease, box-shadow .16s ease;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, #171a20 0%, #1b2026 100%);
    backdrop-filter: none;
}

.project-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.project-desc {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: #00bcd4;
    text-decoration: none;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}


@media (max-width: 520px) {
  .projects-grid {
    gap: 10px;
    padding: 0;
  }

  .project-card {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.92rem;
    max-width: 100%;
  }

  .project-title {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .project-desc {
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .project-link {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .links {
    gap: 8px;
    padding: 0 6px;
  }

  .link-item {
    min-width: 120px;
    padding: 8px 10px;
    font-size: 0.92rem;
    flex: 1 1 120px;
  }
}

.user-subtitle {
    margin: 6px 0 0 0;
    color: #cfcfcf;
    font-size: 0.95rem;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
}


@media (max-width: 420px) {
    .user-subtitle {
        font-size: 0.88rem;
    }
}

.site-footer {
    margin-top: 20px;
    color: #dcdcdc;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    background: transparent;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.separator {
    height: 1px; /* Line height */
    background-color: rgba(255, 255, 255, 0.1); /* Light grey color */
    margin: 20px 0; /* Space above and below the line */
}
