/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Ubuntu', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
    position: relative;
    color: #fff;
}

/* Background GIF */
.bg {
    background: url('https://i.ibb.co/sdM23b4t/Firefly-large-and-very-dense-white-smoke-waves-slowly-swirling-on-a-pure-black-background-for-compo.gif') no-repeat center center/cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: blur(0px);
    transition: filter 0.3s ease;
}

/* Loading Text */
.loading-text {
    font-size: 50px;
    color: #fff;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Main Content Container */
.content-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel.visible {
    opacity: 1;
    transform: scale(1);
}

.hidden {
    display: none;
}

/* Navigation Buttons */
.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.glass-button {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #8B0000;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #600000;
    transform: translateY(-3px) scale(1.05);
}

.discord-button {
    background: rgba(88, 101, 242, 0.25);
    color: #ffffff;
}

.discord-button:hover {
    background: rgba(88, 101, 242, 0.4);
    color: #ffffff;
}

/* Image Slider Panel */
.image-slider {
    width: 100%;
    overflow: hidden;
    z-index: 2;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    border-radius: 12px;
}

.image-slider.reverse {
    margin-top: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 220px;
}

.slider-track {
    display: flex;
    position: absolute;
    height: 100%;
    animation: scrollSlider 60s linear infinite;
}

.reverse .slider-track {
    animation: scrollSliderReverse 60s linear infinite;
}

.slider-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 12px;
    transition: transform 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slider-track img:hover {
    transform: scale(1.1) rotateY(10deg);
}

/* Continuous Sliding Keyframes */
@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollSliderReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    z-index: 3;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #8B0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
}

/* Content styles */
h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #ddd;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    color: #aaa;
    font-size: 0.9rem;
    z-index: 2;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Discord Widget Styles */
.discord-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    margin-top: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.discord-widget.visible {
    opacity: 1;
    transform: scale(1);
}

.discord-widget h2 {
    margin-bottom: 20px;
    color: #8B0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
}

.iframe-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== ABOUT PAGE SPECIFIC STYLES ========== */
.profile-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto 30px;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-title {
    color: #8B0000;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.tagline {
    font-style: italic;
    color: #aaa;
    margin: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    padding-top: 20px;
}

/* ========== PROJECT PAGE SPECIFIC STYLES ========== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-card {
    background: rgba(25, 25, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #8B0000;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
}

.project-description {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #aaa;
}

.feature-list li:before {
    content: "•";
    color: #8B0000;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.project-tag {
    display: inline-block;
    background: rgba(139, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .glass-panel {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .slider-track img {
        width: 250px;
        height: 160px;
    }
    
    .slider-container {
        height: 180px;
    }
    
    .loading-text {
        font-size: 40px;
    }
    
    .iframe-container {
        height: 400px;
    }
    
    /* About page responsive */
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    /* Project grid responsive */
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .slider-track img {
        width: 200px;
        height: 140px;
    }
    
    .slider-container {
        height: 160px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .iframe-container {
        height: 350px;
    }
    
    .discord-widget h2 {
        font-size: 1.5rem;
    }
    
    /* About page responsive */
    .profile-title {
        font-size: 1.5rem;
    }
    
    /* Project card responsive */
    .project-title {
        font-size: 1.6rem;
    }
}