/* Tokyo Cyberpunk Theme - Force Dark Mode */
:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --background-dark: #0a0a0a;
    --background-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --neon-glow: 0 0 20px;
    --button-hover-scale: 1.05;
    --particle-color: rgba(0, 255, 255, 0.6);
    --grid-color: rgba(0, 255, 255, 0.1);
}

/* Force dark mode regardless of system preference */
@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #00ffff;
        --secondary-color: #ff00ff;
        --accent-color: #ffff00;
        --background-dark: #0a0a0a;
        --background-darker: #000000;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
    
    body {
        background: #000000 !important;
        background-image: linear-gradient(135deg, #000000 0%, #0a0a0a 100%) !important;
        color: #ffffff !important;
    }
    
    html {
        background: #000000 !important;
    }
    
    * {
        background-color: transparent !important;
    }
    
    h1, h2, h3, h4, h5, h6, p, span, a, div {
        color: #ffffff !important;
    }
}

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

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: var(--background-darker) !important;
    background-image: linear-gradient(135deg, var(--background-darker) 0%, var(--background-dark) 100%) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Additional force dark styling */
html {
    background: var(--background-darker) !important;
}

*:not(.fa):not(.fab):not(.fas) {
    color: var(--text-primary) !important;
}

/* Ensure all text elements are visible */
h1, h2, h3, h4, h5, h6, p, span, a, div {
    color: var(--text-primary) !important;
}

.profile-name {
    color: var(--text-primary) !important;
}

.profile-subtitle {
    color: var(--text-secondary) !important;
}

.link-button {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.link-button .handle {
    color: var(--text-secondary) !important;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 800px 800px, 800px 800px, 600px 600px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--particle-color), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 0, 255, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 0, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--particle-color), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 0, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particlesFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    33% { transform: translateY(-20px) rotate(120deg); opacity: 0.8; }
    66% { transform: translateY(20px) rotate(240deg); opacity: 0.6; }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.profile-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-image {
    position: relative;
    display: inline-block;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: var(--neon-glow) var(--primary-color);
    transition: all 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
    box-shadow: var(--neon-glow) var(--secondary-color);
    border-color: var(--secondary-color);
}

.profile-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: var(--neon-glow) var(--primary-color);
    margin: 0;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin: 0;
}

.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.link-button:visited {
    color: var(--text-primary) !important;
}

.link-button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--text-primary) !important;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-2px) scale(var(--button-hover-scale));
    background: rgba(255, 255, 255, 0.1);
}

.link-button i {
    font-size: 1.5rem;
    margin-right: 16px;
    width: 24px;
    text-align: center;
}

.link-button span:first-of-type {
    font-weight: bold;
    font-size: 1.1rem;
    flex: 1;
    text-align: left;
}

.link-button .handle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Platform-specific colors */
.instagram {
    border-color: #E4405F;
}

.instagram:hover {
    border-color: #E4405F;
    box-shadow: var(--neon-glow) #E4405F;
}

.instagram i {
    color: #E4405F;
}

.twitter {
    border-color: var(--text-primary);
}

.twitter:hover {
    border-color: var(--text-primary);
    box-shadow: var(--neon-glow) var(--text-primary);
}

.twitter i {
    color: var(--text-primary);
}

.website {
    border-color: var(--primary-color);
}

.website:hover {
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow) var(--primary-color);
}

.website i {
    color: var(--primary-color);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 420px;
        padding: 35px 18px;
    }
    
    .members-grid {
        gap: 16px;
    }
    
    .member-card {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 380px;
        padding: 30px 16px;
        gap: 25px;
    }
    
    .profile-name {
        font-size: 1.9rem;
    }
    
    .profile-subtitle {
        font-size: 1rem;
    }
    
    .link-button {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .link-button i {
        font-size: 1.3rem;
        margin-right: 12px;
    }
    
    .link-button span:first-of-type {
        font-size: 1rem;
    }
    
    .link-button .handle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .members-section,
    .social-feed-section,
    .information-section {
        margin-top: 40px;
    }
    
    .iframe-container {
        height: 500px;
    }
    
    .member-header {
        gap: 12px;
    }
    
    .member-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-description {
        font-size: 0.8rem;
    }
    
    .feed-container {
        padding: 24px;
    }
    
    .feed-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 25px 15px;
        gap: 20px;
    }
    
    .profile-image img {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.7rem;
    }
    
    .profile-subtitle {
        font-size: 0.9rem;
    }
    
    .link-button {
        padding: 12px 14px;
        border-radius: 8px;
    }
    
    .link-button i {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .link-button span:first-of-type {
        font-size: 0.95rem;
    }
    
    .link-button .handle {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .member-card {
        padding: 16px;
    }
    
    .member-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .member-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-description {
        font-size: 0.75rem;
    }
    
    .member-links {
        gap: 6px;
    }
    
    .member-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .feed-container {
        padding: 20px;
    }
    
    .feed-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .feed-message {
        font-size: 1rem;
    }
    
    .feed-note {
        font-size: 0.75rem;
    }
    
    .iframe-container {
        height: 400px;
    }
    
    .external-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 12px;
        gap: 18px;
    }
    
    .profile-image img {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-button {
        padding: 10px 12px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .profile-image img {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .profile-subtitle {
        font-size: 0.8rem;
    }
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Animations */
.profile-image {
    animation: float 6s ease-in-out infinite;
}

/* Members Section Styling */
.members-section {
    width: 100%;
    margin-top: 60px;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary) !important;
    text-shadow: var(--neon-glow) var(--primary-color);
    margin: 0 0 10px 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.members-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.member-card {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.member-card:hover::before {
    left: 100%;
}

.member-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow) var(--primary-color);
}

.member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.member-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--background-darker);
    box-shadow: var(--neon-glow) var(--primary-color);
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary) !important;
    margin: 0 0 4px 0;
}

.member-description {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    margin: 0;
    opacity: 0.8;
}

.member-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.member-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary) !important;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.member-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.member-link.website {
    border-color: var(--primary-color);
}

.member-link.website:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.member-link.instagram {
    border-color: #E4405F;
}

.member-link.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 0 10px #E4405F;
}

.member-link.twitter {
    border-color: var(--text-primary);
}

.member-link.twitter:hover {
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--text-primary);
}

/* Social Feed Section */
.social-feed-section {
    width: 100%;
    margin-top: 60px;
}

.feed-container {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 0, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.feed-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--background-darker);
    animation: pulse 2s infinite;
}

.feed-message {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    margin: 0;
}

.feed-note {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Future Social Post Styling */
.social-post {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.post-info {
    flex: 1;
}

.post-author {
    font-weight: bold;
    color: var(--text-primary) !important;
    font-size: 0.9rem;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.post-platform i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.post-content {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-media img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.view-original {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-original:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 8px var(--primary-color);
}

/* Information Section Styling */
.information-section {
    width: 100%;
    margin-top: 60px;
}

.iframe-container {
    position: relative;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 600px;
    transition: all 0.3s ease;
}

.iframe-container:hover {
    border-color: var(--accent-color);
    box-shadow: var(--neon-glow) var(--accent-color);
}

.info-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    background: #ffffff;
}

.iframe-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.external-link:hover {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 10px var(--accent-color);
    transform: translateY(-1px);
}

/* Glitch Effect for Profile Name */
.profile-name {
    position: relative;
}

.profile-name::before,
.profile-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.profile-name::before {
    animation: glitch1 2s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.profile-name::after {
    animation: glitch2 2s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

/* Pulse effect for buttons */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.link-button:hover {
    animation: pulse 1.5s infinite;
}

/* Typing animation for subtitle */
.profile-subtitle {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    animation: typing 3s steps(20, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}