/* ==========================================================================
   BALDGUYONABIKE PORTFOLIO PORTAL DESIGN SYSTEM
   Modern Glossy Dark Theme with Vibrant Branded Cards
   ========================================================================== */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Nunito+Sans:wght@600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* --- Styling Variables --- */
:root {
    --bg-base: #0B0F19;
    --bg-gradient: linear-gradient(135deg, #07090E 0%, #0F172A 50%, #1E293B 100%);
    
    /* Neutral Interfaces */
    --panel-bg: rgba(30, 41, 59, 0.45);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-white: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #94A3B8;
    
    /* Brand Accent Colors */
    --color-cola: #E31B23;
    --color-daybreak: #F2A17E;
    --color-garrison: #002A54;
    --color-garrison-bright: #0088CC;
    --color-timber: #E63946;
    --color-timber-yellow: #FFB703;
    --color-resolv: #8B5CF6;
    --color-resolv-light: #A78BFA;
    --color-connekted: #1877F2;
    --color-connekted-light: #42A5F5;
    --color-payload-qr: #0EA5E9;
    --color-payload-qr-light: #F472B6;
    --color-hometeam: #0F4D8F;
    --color-hometeam-light: #F47B20;
    
    /* Design Settings */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Nunito Sans', sans-serif;
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-speed: 0.4s;
}

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

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

a:visited, a:active, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 100vw;
}

/* --- Ambient Floating Particle Canvas Background --- */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
    top: -10%;
    left: -10%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
}

.ambient-glow-right {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 161, 126, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -15%;
    right: -15%;
    pointer-events: none;
    z-index: 1;
    filter: blur(100px);
}

/* --- Navigation Header --- */
.main-header {
    border-bottom: 1px solid var(--panel-border);
    padding: 24px 0;
    position: relative;
    z-index: 10;
    background: rgba(11, 15, 25, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
}

.logo-link > div {
    min-width: 0;
    flex: 1 1 auto;
}

.logo-img-header {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover .logo-img-header {
    transform: scale(1.1) rotate(10deg);
}

.logo-text-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.brand-highlight {
    color: #00e5ff;
    font-weight: 600;
}

.logo-text-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

.portal-nav-link:hover,
.portal-nav-link:focus-visible {
    color: #e0f2fe !important;
    background: rgba(59, 130, 246, 0.1);
    box-shadow:
        0 0 14px rgba(59, 130, 246, 0.35),
        0 0 28px rgba(0, 229, 255, 0.12);
    text-shadow: 0 0 12px rgba(125, 211, 252, 0.55);
}

/* --- Hero Banner Section --- */
.hero-section {
    padding: 80px 0 40px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-daybreak);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.hero-title span {
    background: linear-gradient(to right, var(--text-white) 30%, var(--color-daybreak) 60%, var(--color-garrison-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-kicker {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 20px;
    font-weight: 500;
    overflow-wrap: break-word;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    overflow-wrap: break-word;
    max-width: 680px;
    margin: 0 auto 28px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--text-white) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}

.hero-btn-secondary {
    border: 1px solid var(--panel-border);
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.04);
}

.hero-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hero-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Dynamic Showcase Card Grid --- */
.portal-section {
    padding: 40px 0 100px 0;
    position: relative;
    z-index: 10;
    scroll-margin-top: 24px;
}

.portal-section + .portal-section {
    padding-top: 0;
}

.portal-section:not(:last-of-type) {
    padding-bottom: 48px;
}

.portal-section--live {
    padding-bottom: 100px;
}

.portal-section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
    margin: 0 auto 28px;
    max-width: 1200px;
    width: 100%;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#live-websites .portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Glossy Showcase Card --- */
.showcase-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s var(--ease-premium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 540px;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.showcase-img-wrapper {
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--panel-border);
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s var(--ease-premium);
}

.showcase-card:hover .showcase-img {
    transform: scale(1.08);
}

.card-ambient-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.card-top-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-white);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 2;
}

.card-info-area {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- Branded Action Launch Tab --- */
.card-action-bar {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--ease-premium);
}

.action-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s;
    white-space: nowrap;
}

.action-icon {
    font-size: 1.1rem;
    transition: transform 0.4s var(--ease-premium);
}

/* ==========================================================================
   INDIVIDUAL BRAND CARD SPECIFIC OVERRIDES & HOVER GLOWS
   ========================================================================== */

/* 1. Cola Card */
.card-cola .card-tagline { color: var(--color-cola); }
.card-cola:hover {
    border-color: rgba(227, 27, 35, 0.35);
    box-shadow: 0 15px 40px rgba(227, 27, 35, 0.15);
    transform: translateY(-8px);
}
.card-cola:hover .card-action-bar {
    background: var(--color-cola);
    border-color: var(--color-cola);
    color: var(--text-white);
}

/* 2. Daybreak Card */
.card-daybreak .card-tagline { color: var(--color-daybreak); }
.card-daybreak:hover {
    border-color: rgba(242, 161, 126, 0.35);
    box-shadow: 0 15px 40px rgba(242, 161, 126, 0.15);
    transform: translateY(-8px);
}
.card-daybreak:hover .card-action-bar {
    background: var(--color-daybreak);
    border-color: var(--color-daybreak);
    color: var(--text-dark);
}

/* 3. Garrison Card */
.showcase-img--garrison {
    object-position: center 40%;
}

.card-garrison .card-tagline { color: var(--color-garrison-bright); }
.card-garrison:hover {
    border-color: rgba(0, 136, 204, 0.35);
    box-shadow: 0 15px 40px rgba(0, 136, 204, 0.15);
    transform: translateY(-8px);
}
.card-garrison:hover .card-action-bar {
    background: var(--color-garrison-bright);
    border-color: var(--color-garrison-bright);
    color: var(--text-white);
}

/* 4. Timber & Tink Card */
.card-timber-tink .card-tagline { color: var(--color-timber-yellow); }
.card-timber-tink:hover {
    border-color: rgba(230, 57, 70, 0.35);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.15);
    transform: translateY(-8px);
}
.card-timber-tink:hover .card-action-bar {
    background: var(--color-timber);
    border-color: var(--color-timber);
    color: var(--text-white);
}

/* 6. Resolv Card */
.card-resolv .card-tagline { color: var(--color-resolv-light); }
.card-resolv:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-8px);
}
.card-resolv:hover .card-action-bar {
    background: var(--color-resolv);
    border-color: var(--color-resolv);
    color: var(--text-white);
}

/* 7. Connekted Card */
.card-connekted .card-tagline { color: var(--color-connekted-light); }
.card-connekted:hover {
    border-color: rgba(24, 119, 242, 0.35);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.15);
    transform: translateY(-8px);
}
.card-connekted:hover .card-action-bar {
    background: var(--color-connekted);
    border-color: var(--color-connekted);
    color: var(--text-white);
}

/* 8. The Happy Paw Card */
.card-the-happy-paw .card-tagline { color: #A7F3D0; }
.card-the-happy-paw:hover {
    border-color: rgba(6, 78, 59, 0.35);
    box-shadow: 0 15px 40px rgba(6, 78, 59, 0.15);
    transform: translateY(-8px);
}
.card-the-happy-paw:hover .card-action-bar {
    background: #064E3B;
    border-color: #064E3B;
    color: var(--text-white);
}

/* 9. Payload QR Studio Card */
.card-payload-qr .card-tagline { color: var(--color-payload-qr); }
.card-payload-qr:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
    transform: translateY(-8px);
}
.card-payload-qr:hover .card-action-bar {
    background: linear-gradient(90deg, var(--color-payload-qr), var(--color-payload-qr-light));
    border-color: transparent;
    color: var(--text-white);
}

/* 10. Home Team HVAC Card */
.card-hometeam-hvac .card-tagline { color: var(--color-hometeam-light); }
.card-hometeam-hvac:hover {
    border-color: rgba(244, 123, 32, 0.35);
    box-shadow: 0 15px 40px rgba(15, 77, 143, 0.15);
    transform: translateY(-8px);
}
.card-hometeam-hvac:hover .card-action-bar {
    background: linear-gradient(90deg, var(--color-hometeam), var(--color-hometeam-light));
    border-color: transparent;
    color: var(--text-white);
}

/* General Arrow Animation on Hover */
.showcase-card:hover .action-icon {
    transform: translate(4px, -4px);
}

/* --- Page Footer --- */
.site-footer {
    border-top: 1px solid var(--panel-border);
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
    background: rgba(11, 15, 25, 0.4);
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 clamp(16px, 4vw, 24px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
}

.footer-brand-block {
    flex: 1 1 280px;
    max-width: 520px;
}

.footer-copyright {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-hub-disclaimer {
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.footer-tools-section {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 28px clamp(16px, 4vw, 24px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tools-section--solo {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    border-bottom: none;
    padding-top: 32px;
    padding-bottom: 40px;
}

.footer-section-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.footer-tools-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.footer-demo-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 24px) 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    justify-content: center;
    font-size: 0.75rem;
}

.footer-demo-links a {
    color: var(--text-muted) !important;
}

.footer-demo-links a:hover {
    color: var(--text-white) !important;
}

.footer-games-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #3B82F6;
    font-weight: 600;
    text-decoration: none !important;
    font-family: var(--font-display);
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-games-link:hover {
    color: #60A5FA;
    transform: translateY(-2px);
}

.footer-promo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.footer-games-link:hover .footer-promo-icon {
    transform: scale(1.08);
}

.games-link-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-games-link:hover .games-link-logo {
    transform: scale(1.1) rotate(10deg);
}

.footer-games-link.footer-home-link {
    color: var(--text-muted);
}

.footer-games-link.footer-home-link:hover {
    color: var(--text-white);
}

.footer-games-link.footer-home-link .brand-highlight {
    color: #00e5ff;
}

.footer-games-link.footer-home-link:hover .brand-highlight {
    color: #7df9ff;
}

.footer-site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.footer-site-links a:hover {
    color: var(--text-white);
}

/* --- Layout Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    width: 100%;
    box-sizing: border-box;
}

/* --- Static Info Pages (About, Privacy, Contact) --- */
.static-page-section {
    padding: 48px 0 80px;
    position: relative;
    z-index: 10;
    flex: 1;
}

.static-page-card {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: clamp(28px, 5vw, 48px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.static-page-card h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.static-page-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.static-page-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.static-page-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: #60A5FA;
}

.static-page-card p,
.static-page-card li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.static-page-card p {
    margin: 1rem 0;
}

.static-page-card ul {
    margin: 1rem 0 1rem 1.25rem;
    padding-left: 0.5rem;
}

.static-page-card li {
    margin: 0.5rem 0;
}

.static-page-card a:not(.btn-link):not(.back-link) {
    color: #60A5FA;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.static-page-card a:not(.btn-link):not(.back-link):hover {
    color: #93C5FD;
}

.static-page-card strong {
    color: var(--text-white);
    font-weight: 600;
}

.static-page-card code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-white);
}

.static-callout {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3B82F6;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.5rem 0;
}

.static-callout p:last-child {
    margin-bottom: 0;
}

.static-contact-block {
    text-align: center;
    margin: 2rem 0;
}

.btn-link {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    border: 2px solid #3B82F6;
    border-radius: 8px;
    color: #60A5FA !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-link:hover {
    background: #3B82F6;
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2.5rem;
    padding: 10px 20px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-muted) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.back-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.04);
}

.footer-site-links a[aria-current="page"] {
    color: var(--text-white);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 48px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.8rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-kicker {
        font-size: 0.95rem;
    }

    .hero-tag {
        letter-spacing: 0.15em;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .logo-link {
        width: 100%;
    }

    .portal-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .portal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #live-websites .portal-grid {
        grid-template-columns: 1fr;
    }

    .card-action-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .action-label {
        white-space: normal;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand-block {
        max-width: none;
    }

    .footer-site-links {
        justify-content: center;
        width: 100%;
    }

    .footer-games-link {
        font-size: 1rem;
    }

    .static-page-card {
        padding: clamp(20px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .logo-text-title {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7.5vw, 2.2rem);
    }

    .portal-section {
        padding-bottom: 64px;
    }

    .showcase-card {
        min-height: 0;
    }
}
