body {
    background-color: #352D46;
    color: #c8c3e2;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.logo {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.logo-image{
    width: 450px;
    margin-bottom: -125px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2A2437;
    height: 72.5vh;
    width: 35vw;
    margin: 0 auto;
    padding: 20px 0;
    box-shadow: 0 0 40px rgba(169, 146, 212, 0.3), 
                0 0 80px rgba(169, 146, 212, 0.2),
                0 0 120px rgba(169, 146, 212, 0.1);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin-top: 12vh;
    margin-bottom: auto;
}

.twitch-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

/* Universal styling for all links in the content area */
.content a {
    background: linear-gradient(135deg, #5f4b8b, #a992d4);
    color: #e2e0f3;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(42, 36, 55, 0.4);
    width: 150px;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
}

.content a:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #a992d4, #c8c3e2);
    border-color: #e2e0f3;
    box-shadow: 0 6px 16px rgba(169, 146, 212, 0.6);
    color: #2a2437;
}

.content a:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(42, 36, 55, 0.6);
}

.line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a992d4, transparent);
}

.credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
    color: #a992d4;
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(169, 146, 212, 0.1);
    border: 1px solid rgba(169, 146, 212, 0.2);
    gap: 8px;
    margin-top: 5vh;
}

.credits p {
    margin: 0;
}

.credits a {
    color: #c8c3e2 !important;
    text-decoration: underline;
    font-weight: normal !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    display: inline !important;
    font-size: 12px !important;
}

.credits a:hover {
    color: #e2e0f3 !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Soon/disabled link styling */
#soon {
    background: linear-gradient(135deg, #6b6b6b, #9a9a9a) !important;
    color: #b0b0b0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

#soon:hover {
    transform: none !important;
    background: linear-gradient(135deg, #6b6b6b, #9a9a9a) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 8px rgba(42, 36, 55, 0.4) !important;
    color: #b0b0b0 !important;
}

#soon:active {
    transform: none !important;
}

/* GitHub section styling */
.github {
    position: relative;
    margin: 10px 0;
}

.github a {
    cursor: pointer;
}

/* Project popup styling - Full screen overlay */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(53, 45, 70, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.project-popup.show {
    opacity: 1;
    visibility: visible;
}

.project-container {
    background: #2A2437;
    border: 2px solid #a992d4;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    box-shadow: 0 20px 60px rgba(169, 146, 212, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.project-header {
    font-size: 32px;
    font-weight: 700;
    color: #e2e0f3;
    text-align: center;
    margin: 0;
    padding: 30px 40px 20px 40px;
    border-bottom: 3px solid #a992d4;
    flex-shrink: 0;
}

.project-content {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.project-content::-webkit-scrollbar {
    width: 8px;
}

.project-content::-webkit-scrollbar-track {
    background: rgba(169, 146, 212, 0.1);
    border-radius: 4px;
}

.project-content::-webkit-scrollbar-thumb {
    background: #a992d4;
    border-radius: 4px;
}

.project-content::-webkit-scrollbar-thumb:hover {
    background: #c8c3e2;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #e2e0f3;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    color: #a992d4;
    background: rgba(169, 146, 212, 0.1);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.project-item {
    background: rgba(169, 146, 212, 0.1);
    border: 1px solid rgba(169, 146, 212, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(169, 146, 212, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(169, 146, 212, 0.4);
}

.project-item h4 {
    margin: 0 0 12px 0;
    color: #e2e0f3;
    font-size: 20px;
    font-weight: 600;
}

.project-item p {
    margin: 0 0 15px 0;
    color: #c8c3e2;
    font-size: 15px;
    line-height: 1.5;
}

.tech-stack {
    font-size: 12px;
    color: #a992d4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.project-btn {
    background: linear-gradient(135deg, #5f4b8b, #a992d4) !important;
    color: #e2e0f3 !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(42, 36, 55, 0.3) !important;
    width: auto !important;
    display: inline-block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    flex: 1;
}

.project-btn:hover {
    background: linear-gradient(135deg, #a992d4, #c8c3e2) !important;
    color: #2a2437 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(169, 146, 212, 0.4) !important;
    border-color: #e2e0f3 !important;
}

.project-btn.demo {
    background: linear-gradient(135deg, #2d3748, #4a5568) !important;
    color: #e2e0f3 !important;
}

.project-btn.demo:hover {
    background: linear-gradient(135deg, #4a5568, #718096) !important;
    color: #e2e0f3 !important;
}

.coming-soon-message {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(169, 146, 212, 0.05);
    border: 2px dashed rgba(169, 146, 212, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.coming-soon-message:hover {
    background: rgba(169, 146, 212, 0.1);
    border-color: rgba(169, 146, 212, 0.5);
}

.coming-soon-message p {
    margin: 0;
    color: #a992d4;
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mobile and Tablet Responsive Styles */
@media screen and (max-width: 1200px) {
    .container {
        width: 50vw;
    }
}

@media screen and (max-width: 900px) {
    .container {
        width: 70vw;
        height: 80vh;
    }
    
    .logo-image {
        width: 350px;
        margin-bottom: -100px;
    }
    
    .project-container {
        max-width: 90vw;
        height: 85vh;
    }
    
    .project-header {
        font-size: 28px;
        padding: 25px 30px 15px 30px;
    }
    
    .project-content {
        padding: 25px 30px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 85vw;
        height: 75vh;
        padding: 15px 0;
    }
    
    .logo-image {
        width: 280px;
        margin-bottom: -80px;
    }
    
    .content {
        margin-top: 8vh;
        gap: 20px;
    }
    
    .links {
        margin-top: 1vh;
        margin-bottom: 1vh;
    }
    
    .content a {
        width: 180px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .project-container {
        max-width: 95vw;
        height: 90vh;
    }
    
    .project-header {
        font-size: 24px;
        padding: 20px 25px 15px 25px;
    }
    
    .project-content {
        padding: 20px 25px;
    }
    
    .project-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-item {
        padding: 20px;
    }
    
    .project-item h4 {
        font-size: 18px;
    }
    
    .project-item p {
        font-size: 14px;
    }
    
    .close-button {
        top: 10px;
        right: 15px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
    
    .credits {
        margin-top: 3vh;
        padding: 12px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        box-sizing: border-box;
    }
    
    .logo {
        padding: 15px 0;
    }
    
    .logo-image {
        width: 220px;
        margin-bottom: -60px;
    }
    
    .container {
        width: 95vw;
        height: 70vh;
        padding: 10px 0;
    }
    
    .content {
        margin-top: 6vh;
        gap: 15px;
    }
    
    .content a {
        width: 160px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .line {
        width: 90%;
    }
    
    .project-popup {
        padding: 20px 10px;
    }
    
    .project-container {
        max-width: 98vw;
        height: 95vh;
    }
    
    .project-header {
        font-size: 20px;
        padding: 15px 20px 12px 20px;
    }
    
    .project-content {
        padding: 15px 20px;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .project-item p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .tech-stack {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .project-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .close-button {
        top: 8px;
        right: 12px;
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
    
    .coming-soon-message {
        margin-top: 25px;
        padding: 20px;
    }
    
    .coming-soon-message p {
        font-size: 16px;
    }
    
    .credits {
        margin-top: 2vh;
        padding: 10px;
        font-size: 10px;
    }
    
    .credits a {
        font-size: 10px !important;
    }
}

/* Landscape orientation fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .container {
        height: auto;
        min-height: 85vh;
        padding: 15px 0 20px 0;
    }
    
    .logo-image {
        width: 200px;
        margin-bottom: -50px;
    }
    
    .content {
        margin-top: 4vh;
        gap: 12px;
    }
    
    .links {
        margin-top: 0.5vh;
        margin-bottom: 0.5vh;
        gap: 10px;
    }
    
    .content a {
        padding: 10px 16px;
        font-size: 13px;
        width: 140px;
    }
    
    .credits {
        margin-top: 1vh;
        padding: 8px;
        font-size: 9px;
    }
    
    .credits a {
        font-size: 9px !important;
    }
}