:root {
    --bg-dark: #05070a;
    --bg-card: rgba(15, 18, 25, 0.6);
    --accent: #bae6fd;
    --accent-glow: rgba(186, 230, 253, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, .logo-text {
    font-family: 'Outfit', sans-serif;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-img {
    height: 1.5em;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
    background: var(--accent);
}

.btn-sub {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.15);
    color: #ffffff;
    border: 1px solid rgba(88, 101, 242, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.15);
}

.btn-discord:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.85);
    border-color: rgba(88, 101, 242, 1);
}

.showcase {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide-img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.slide-img:hover {
    transform: scale(1.02);
}

.side-by-side-slide {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.side-by-side-slide .slide-img {
    width: calc(50% - 0.5rem);
}

.slide-caption {
    padding: 1.5rem 0 0.25rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.slide-subcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slide-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.slide-btn.prev { left: 1rem; }
.slide-btn.next { right: 1rem; }

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent);
    text-decoration: none;
}

.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 128px;
    height: 128px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 900;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.easter-egg:hover {
    transform: scale(1.1);
}

.easter-egg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.easter-egg:hover img {
    opacity: 1;
}

.easter-egg::after {
    content: "Sheepies Say Hi!";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-80%) translateY(10px);
    background-color: var(--bg-card);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.easter-egg:hover::after {
    opacity: 1;
    transform: translateX(-80%) translateY(-10px);
    transition-delay: 0.3s;
}
