/* ===================================
   CSS Variables - Digital Descent Theme
   =================================== */
:root {
    /* Colors from original design */
    --dark-purple: hsl(273, 75%, 11%);
    --burple: hsl(262, 71%, 27%);
    --ksu-purple: hsl(275, 54%, 33%);
    --purple-pink: hsl(320, 80%, 44%);
    --purple-pink-alt: hsl(320, 80%, 34%);
    --blue-green: hsl(168, 64%, 40%);
    --blue-green-alt: hsl(168, 60%, 30%);
    --section-bg: #1e0731;
    --white: hsl(0, 0%, 100%);
    --black_70: hsla(0, 0%, 0%, 0.7);
    --platinum: hsl(0, 0%, 90%);

    /* Gradients */
    --gradient-1: linear-gradient(90deg, var(--dark-purple) 0, var(--burple) 51%, var(--dark-purple));
    --gradient-2: linear-gradient(90deg, var(--ksu-purple), var(--burple));
    --gradient-3: linear-gradient(90deg, var(--purple-pink), var(--purple-pink-alt));
    --gradient-4: linear-gradient(90deg, var(--blue-green), var(--blue-green-alt));

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.35s ease;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 25px;
}

/* ===================================
   Reset
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-purple);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    background: none;
    border: none;
    font: inherit;
}

button {
    cursor: pointer;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--black_70);
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: var(--purple-pink);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--purple-pink-alt);
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-outline {
    text-shadow:
        3px 3px 0 var(--black_70),
        -1px -1px 0 var(--black_70),
        1px -1px 0 var(--black_70),
        -1px 1px 0 var(--black_70),
        1px 1px 0 var(--black_70);
}

.section {
    padding: 60px 0;
}

section#about,
section#games,
section#team,
section#news {
    background: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(3rem, 5vw, 4.6rem);
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 20px;
    max-width: max-content;
}

.underline {
    position: relative;
}

.underline::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 6px;
    background-image: var(--gradient-3);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--platinum);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    background-image: var(--gradient-2);
    background-size: 200%;
    color: var(--white);
    padding: 12px 35px;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0 25px;
    transition: var(--transition-normal);
    display: inline-block;
}

.btn:hover {
    background-position: right;
}

.bounce {
    transform: scale(1);
    transition: transform 0.2s;
}

.bounce:hover {
    transform: scale(1.1);
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Animated Background (Falling Lines)
   =================================== */
@keyframes panDown {
    0% {
        background-position: 0 0, center;
    }
    100% {
        background-position: 0 1000px, center;
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(39, 18, 65, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--burple);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: var(--burple);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    max-width: 200px;
    filter: drop-shadow(5px 5px 5px #222);
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-link {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 12px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--blue-green);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--purple-pink);
    transition: all var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    border-bottom: 10px solid var(--burple);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: url(../assets/images/hero-bg.png), var(--gradient-1);
    background-size: 1000px 1000px, cover;
    background-repeat: repeat;
    animation: panDown 10s linear infinite;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    color: var(--white);
    margin-bottom: 15px;
}

.hero-text {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--platinum);
    margin-bottom: 40px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--burple);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 2px solid var(--purple-pink);
    transition: all var(--transition-normal);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 2rem;
    color: var(--blue-green);
    margin-bottom: 15px;
}

.about-card p {
    font-size: 1.5rem;
    color: var(--platinum);
    line-height: 1.8;
}

/* ===================================
   Games Section
   =================================== */
section#games {
    padding: 80px 0;
    background: var(--section-bg);
}

section#games .container {
    max-width: none;
    padding: 0 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.game-card {
    background: var(--burple);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid var(--purple-pink);
    transition: all var(--transition-normal);
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--blue-green);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.game-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-placeholder {
    font-size: 6rem;
}

.game-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.game-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--purple-pink);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.game-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 2rem;
    color: var(--blue-green);
    margin-bottom: 15px;
}

.game-description {
    font-size: 1.5rem;
    color: var(--platinum);
    margin-bottom: 20px;
    line-height: 1.8;
}

.game-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: rgba(168, 100, 64, 0.3);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 1.3rem;
    border: 1px solid var(--purple-pink);
    color: var(--white);
}

/* ===================================
   Team Section
   =================================== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-member {
    text-align: center;
    width: 200px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.team-member:hover {
    transform: scale(1.05);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 25%;
    border: 4px solid var(--purple-pink);
    background: var(--black_70);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.avatar-placeholder {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
}

.avatar-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25%;
    transition: opacity 0.3s ease-in-out;
}

.avatar-image-default {
    opacity: 1;
}

.avatar-image-hover {
    opacity: 0;
}

.team-member:hover .avatar-image-default {
    opacity: 0;
}

.team-member:hover .avatar-image-hover {
    opacity: 1;
}

.member-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--white);
}

.member-role {
    font-size: 1.5rem;
    color: var(--blue-green);
    font-weight: 600;
}

.member-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.member-social a {
    color: var(--purple-pink);
    transition: color var(--transition-fast);
}

.member-social a:hover {
    color: var(--blue-green);
}

.member-social svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===================================
   News Section
   =================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.news-card {
    padding: 10px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 4px solid var(--burple);
    border-radius: var(--radius-md);
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: var(--burple);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 500px;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-green);
}

.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

.news-card .content {
    transition: transform 0.4s ease;
    background: linear-gradient(180deg, rgba(2, 0, 36, 0) -10%, var(--burple) 20%);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    transform: translateY(calc(100% - 90px));
    z-index: 1;
}

.news-card:hover .content {
    transform: translateY(0);
}

.news-date {
    color: var(--blue-green);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 2rem;
    color: var(--blue-green);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-link {
    color: var(--purple-pink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-normal);
}

.news-link:hover {
    gap: 10px;
    color: var(--blue-green);
}

/* ===================================
   Blog Post Page
   =================================== */
.post-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    border-bottom: 10px solid var(--burple);
    overflow: hidden;
    background-image: url(../assets/images/hero-bg.png), var(--gradient-1);
    background-size: auto, cover;
    background-repeat: repeat;
    animation: panDown 20s linear infinite;
}

.post-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.post-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: var(--platinum);
}

.post-date,
.post-author {
    color: var(--blue-green);
}

.post-content-wrapper {
    background: var(--dark-purple);
    padding: 60px 20px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.8;
}

.post-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    color: var(--blue-green);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--blue-green);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

.post-content p {
    font-size: 1.6rem;
    color: var(--platinum);
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    font-size: 1.6rem;
    color: var(--platinum);
    margin-bottom: 0.8rem;
    list-style: disc;
}

.post-content ol li {
    list-style: decimal;
}

.post-content strong {
    color: var(--white);
    font-weight: 600;
}

.post-content a {
    color: var(--purple-pink);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.post-content a:hover {
    color: var(--blue-green);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--ksu-purple);
    border-left: 5px solid var(--purple-pink);
    border-radius: var(--radius-sm);
}

.post-content blockquote p {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.post-content blockquote footer {
    font-size: 1.4rem;
    color: var(--blue-green);
    font-style: normal;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.post-content code {
    background: var(--black_70);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--purple-pink);
}

.post-content pre {
    background: var(--black_70);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 1.4rem;
    color: var(--white);
}

.post-cta {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    color: var(--white);
}

/* ===================================
   Footer
   =================================== */
.footer {
    position: relative;
    width: 100%;
}

.footer a {
    color: inherit;
}

.footer-content {
    padding: 50px 20px 20px;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    color: var(--white);
    border-top: 10px solid var(--burple);
    background-image: url(../assets/images/hero-bg.png), var(--gradient-1);
    background-size: auto, cover;
    background-repeat: repeat;
    animation: panDown 20s linear infinite;
}

.footer-brand {
    margin-bottom: 30px;
    display: grid;
    place-content: center;
    text-align: center;
}

.footer-brand .logo {
    display: block;
    margin: 0 auto 15px;
    max-width: 400px;
}

.footer-brand .logo img {
    max-width: 100%;
}

.footer-brand .text {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--burple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background-image: var(--gradient-3);
    background-color: transparent;
    color: var(--white);
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon svg path {
    fill: none;
    stroke: var(--burple);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon svg polygon {
    fill: var(--burple);
    stroke: none;
}

.social-icon svg circle {
    fill: var(--burple);
}

.social-icon:hover svg path {
    stroke: var(--white);
}

.social-icon:hover svg polygon,
.social-icon:hover svg circle {
    fill: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.footer-column h3 {
    color: var(--blue-green);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    text-decoration: underline;
    text-decoration-color: var(--purple-pink);
    text-decoration-thickness: 2px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 1.4rem;
    color: var(--platinum);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--purple-pink);
    color: var(--white);
    font-size: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: -3px 3px 15px rgba(236, 72, 153, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-15px);
}

.back-to-top:hover {
    background: var(--blue-green);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--gradient-2);
        padding: 30px 20px;
        gap: 0;
        transition: left var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: auto;
        padding: 100px 15px 40px;
    }

    .post-content {
        padding: 0;
    }

    .post-header {
        padding: 100px 15px 40px;
    }
}
