

:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-deep: #05050a;
    /* Matrix Bg base */
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-cyan: #ff0055;
    --accent-purple: #0575E6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --matrix-color: rgba(0, 150, 255, 0.4);
    /* Logo shadow (dark theme: visible white halo + depth) */
    --logo-shadow: 0 0 14px rgba(255,255,255,0.18), 0 8px 24px rgba(0,0,0,0.45);
    --logo-hover-shadow: 0 0 22px rgba(255,255,255,0.22), 0 12px 36px rgba(0,0,0,0.35);
} 

[data-theme="light"] {
    --bg-color: #ffffff;
    /* Monochrome logo shadows for light mode */
    --logo-shadow: 0 6px 18px rgba(0,0,0,0.12);
    --logo-hover-shadow: 0 8px 24px rgba(0,0,0,0.15);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-deep: #f0f2f5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-cyan: #ff0055;
    /* Keep accent for brand brand */
    --accent-purple: #0575E6;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --matrix-color: rgba(0, 0, 0, 0.1);
    /* Subtle matrix in light mode */
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    /* Ensures fast text rendering fallback */
    font-feature-settings: "liga" 1;

}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Matrix Animation */
.jp-matrix {
    background-color: var(--bg-deep);
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    /* fixed constant cell size to avoid shrinking on resize */
    --cell-size: 44px;
    font-size: calc(var(--cell-size) * 0.85);
    color: var(--matrix-color);
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    pointer-events: none;
    transition: background-color 0.3s, color 0.3s;
    /* Leave 15% top and bottom empty for a clean background */
    padding: 15vh 8px;
    box-sizing: border-box;
} 

.jp-matrix>span {
    display:flex;
    align-items:center;
    justify-content:center;
    width: var(--cell-size);
    height: var(--cell-size);
    min-width: var(--cell-size);
    min-height: var(--cell-size);
    text-align: center;
    text-shadow: 0 0 5px var(--accent-purple);
    user-select: none;
    transition: color 0.5s, text-shadow 0.5s, transform 0.25s;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    font-weight: 400;
    backface-visibility: hidden;
    transform: translateZ(0);
    font-size: calc(var(--cell-size) * 0.75); /* constant glyph size */
    -webkit-text-size-adjust: none; /* prevent mobile auto text scaling */
    -ms-text-size-adjust: none;
}


@media (max-width: 600px) {
    .jp-matrix {
        /* keep constant cell size on small screens as well */
        padding: 10vh 6px; /* slightly smaller vertical padding for mobile */
    }
} 

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .float-animation, .float-delayed, .glitch::before, .glitch::after, .tetris-loader, .tetris-block, .jp-matrix>span {
        animation: none !important;
        transition: none !important;
    }
} 

.jp-matrix>span:nth-child(19n + 2) {
    animation: smooth-pulse 3.5s ease-in-out infinite 0.2s;
}

.jp-matrix>span:nth-child(29n + 1) {
    animation: smooth-pulse 4.1s ease-in-out infinite 0.7s;
}

.jp-matrix>span:nth-child(11n) {
    color: rgba(100, 200, 255, 0.7);
    animation: smooth-pulse 2.9s ease-in-out infinite 1.1s;
}

.jp-matrix>span:nth-child(37n + 10) {
    animation: smooth-pulse 5.3s ease-in-out infinite 1.5s;
}

.jp-matrix>span:nth-child(41n + 1) {
    animation: smooth-pulse 3.9s ease-in-out infinite 0.4s;
}

.jp-matrix>span:nth-child(17n + 9) {
    animation: smooth-pulse 2.8s ease-in-out infinite 0.9s;
}

.jp-matrix>span:nth-child(23n + 18) {
    animation: smooth-pulse 4.3s ease-in-out infinite 1.3s;
}

.jp-matrix>span:nth-child(31n + 4) {
    animation: smooth-pulse 5.6s ease-in-out infinite 0.1s;
}

.jp-matrix>span:nth-child(43n + 20) {
    animation: smooth-pulse 3.6s ease-in-out infinite 1.8s;
}

.jp-matrix>span:nth-child(13n + 6) {
    animation: smooth-pulse 3.2s ease-in-out infinite 1.2s;
}

.jp-matrix>span:nth-child(53n + 5) {
    animation: smooth-pulse 4.9s ease-in-out infinite 0.5s;
}

.jp-matrix>span:nth-child(47n + 15) {
    animation: smooth-pulse 5.9s ease-in-out infinite 1s;
}

@keyframes smooth-pulse {

    0%,
    100% {
        color: var(--matrix-color);
        text-shadow: 0 0 5px transparent;
    }

    30% {
        color: var(--accent-purple);
        text-shadow: 0 0 10px var(--accent-purple);
    }

    50% {
        color: var(--accent-cyan);
        text-shadow: 0 0 10px var(--accent-cyan);
    }

    70% {
        color: var(--text-primary);
        text-shadow: 0 0 10px var(--text-primary);
    }
} 



/* Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--accent-cyan);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-cyan), 0 0 10px var(--accent-purple);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-cyan);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    padding: 0.1rem 0.25rem;
    border-radius: 6px;
    box-shadow: var(--logo-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.logo:hover {
    transform: translateY(-2px) scale(1.03);
    /* Neutral monochrome hover shadow */
    box-shadow: var(--logo-hover-shadow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Sections */
section {
    padding: 5rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;

    /* Glass Box Styles on the Container */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.section-title span {
    /* Gradient Text Styles on the Span */
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-content {
    text-align: center;
}

.glitch {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Glitch effect css */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
    /* match background to hide */
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(117px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(31px, 9999px, 83px, 0);
    }

    40% {
        clip: rect(74px, 9999px, 84px, 0);
    }

    60% {
        clip: rect(16px, 9999px, 116px, 0);
    }

    80% {
        clip: rect(2px, 9999px, 66px, 0);
    }

    100% {
        clip: rect(69px, 9999px, 112px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(56px, 9999px, 116px, 0);
    }

    20% {
        clip: rect(107px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(32px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(4px, 9999px, 32px, 0);
    }

    80% {
        clip: rect(119px, 9999px, 6px, 0);
    }

    100% {
        clip: rect(77px, 9999px, 13px, 0);
    }
}

.role-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
/* Uiverse Button (Red/Blue) */
.uiverse-button {
    align-items: center;
    background-image: linear-gradient(144deg, #ff0055, #0055ff 50%, #00ddeb);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(255, 0, 85, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    font-family: var(--font-heading);
    font-size: 16px;
    /* Adjusted size */
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.uiverse-button:active,
.uiverse-button:hover {
    outline: 0;
    transform: scale(1.05);
    /* Added slight scale */
}

.uiverse-button:focus {
    outline: 3px solid rgba(255,0,85,0.25);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255,0,85,0.06);
}

.social-icon:focus {
    outline: 3px solid rgba(5,85,255,0.18);
    outline-offset: 3px;
}

.read-more:focus {
    outline: 3px solid rgba(5,85,255,0.18);
    outline-offset: 3px;
} 

.uiverse-button span {
    background-color: rgb(5, 6, 45);
    padding: 12px 24px;
    /* Adjusted padding */
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uiverse-button:hover span {
    background: none;
}

.uiverse-button:active {
    transform: scale(0.9);
}

/* Sticky Footer Bar */
.sticky-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    animation: slideUp 0.5s ease-out forwards 1s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.secondary-button {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.secondary-button:hover {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-purple);
}

/* Skills Tags */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 242, 96, 0.2);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    color: var(--text-primary);
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Updates / LinkedIn Card */
.linkedin-card {
    width: 350px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-purple);
    /* placeholder */
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
}

.profile-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
}

.profile-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Theme-aware link preview text */
.whatsapp-preview-content .whatsapp-preview-title {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    transition: color 0.25s ease;
}

.whatsapp-preview-content .whatsapp-preview-domain {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}

/* Fix for button overlapping */
.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Optional: Adds a subtle separator line */
    /* text-align: right;  Aligns button to the right for better aesthetics */
}

.read-more:not(.uiverse-button) {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more:not(.uiverse-button):hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Contact Icons - Specific Colors */
.social-icons-container {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon.linkedin:hover {
    color: #0077b5;
    transform: translateY(-10px);
    text-shadow: 0 0 15px #0077b5;
}

.social-icon.github:hover {
    color: #ffffff;
    transform: translateY(-10px);
    text-shadow: 0 0 15px #9b59b6;
}

.social-icon.itch:hover {
    color: #ff6a00;
    transform: translateY(-10px);
    text-shadow: 0 0 15px #ff6a00;
}

.social-icon.email:hover {
    color: var(--accent-cyan);
    transform: translateY(-10px);
    text-shadow: 0 0 15px var(--accent-cyan);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}


/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Adjust for mobile/desktop */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    margin-left: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.date {
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Updates Grid */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    justify-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile Menu to be implemented if needed */
    }

    .glitch {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 30px;
    }

    .timeline-item::before {
        left: -26px;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* BB-8 Toggle Switch */
/* From Uiverse.io by abdullah-sameh */
.switch {
    --toggle-size: 0.3;
    /* Scaled down for navbar */
}

.switch *,
.switch *::after,
.switch *::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.switch {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 170px;
    height: 90px;
    background-color: #b7cecc;
    position: relative;
    border-radius: 999px;
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    cursor: pointer;
    -webkit-transform: scale(var(--toggle-size));
    -ms-transform: scale(var(--toggle-size));
    transform: scale(var(--toggle-size));
    /* Fix layout displacement due to transform scale */
    margin: -30px -60px;
}

.moons {
    position: absolute;
    width: 100px;
    height: 65px;
    overflow: hidden;
    top: 0;
    left: -10px;
}

.moons .star {
    position: absolute;
    width: 1px;
    height: 1px;
    top: 45px;
    left: 30px;
    border-radius: 999px;
    background-color: #ffffff;
}

.moons .star.star-1 {
    top: 100%;
    left: 75px;
    -webkit-transition: .2s;
    -o-transition: .2s;
    transition: .2s;
}

.moons .star.star-2 {
    top: 100%;
    left: 65px;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

.moons .star.star-3 {
    top: 100%;
    left: 85px;
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
}

.moons .star.star-4 {
    top: 100%;
    left: 60px;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.moons .star.star-5 {
    top: 100%;
    left: 44px;
    -webkit-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
}

.moons .first-moon {
    position: absolute;
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    width: 30px;
    height: 30px;
    top: 100%;
    left: 30px;
    background-color: #e0d6d6;
    border-radius: 999px;
}

.moons::before,
.moons::after {
    -webkit-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #dde4e6;
    border-radius: 999px;
    top: 100%;
    left: 70px;
}

.moons::after {
    width: 5px;
    height: 5px;
    left: 81px;
    -webkit-transition: .8s;
    -o-transition: .8s;
    transition: .8s;
}

.sand {
    position: absolute;
    width: 100%;
    height: 45px;
    bottom: 0px;
    left: 0;
    border-radius: 0 0 999px 999px;
    overflow: hidden;
}

.suns {
    position: absolute;
    border-radius: 1in;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 30px;
    box-shadow: 0 0 15px #EAB308;
    -webkit-box-shadow: 0 0 15px #EAB308;
    background-color: #EAB308;
    -webkit-transition: .6s;
    -o-transition: .6s;
    transition: .6s;
}

.sand::before {
    position: absolute;
    width: 100%;
    height: 25px;
    bottom: 0px;
    left: 0;
    content: "";
    background-color: #B69C77;
    border-radius: 0 0 999px 999px;
}

.bb8 {
    position: absolute;
    left: -18%;
    width: 140px;
    -webkit-transform: scale(0.45);
    -ms-transform: scale(0.45);
    transform: scale(0.45);
    -webkit-transition: left .4s;
    -o-transition: left .4s;
    transition: left .4s;
}

.slider {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
} 

.antennas {
    position: absolute;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    left: 28%;
}

.antenna {
    background: #e0d2be;
    position: absolute;
    width: 2px;
}

.antenna.short {
    height: 20px;
    top: -65px;
    left: 50px;
}

.antenna.long {
    border-top: 6px solid #020204;
    border-bottom: 6px solid #020204;
    height: 36px;
    top: -80px;
    left: 56px;
}

.head {
    -webkit-transition: -webkit-transform .4s;
    transition: -webkit-transform .4s;
    -o-transition: transform .4s;
    transition: transform .4s, -webkit-transform .4s;
    background-color: ghostwhite;
    border-radius: 90px 90px 25px 25px;
    -moz-border-radius: 90px 90px 25px 25px;
    -webkit-border-radius: 90px 90px 25px 25px;
    height: 63px;
    margin-left: -45px;
    overflow: hidden;
    position: absolute;
    width: 95px;
    z-index: 1;
    top: -56px;
    left: 56%;
}

.head .stripe {
    position: absolute;
    width: 100%;
}

.head .stripe.one {
    background: #7699B7;
    height: 7px;
    opacity: 0.8;
    z-index: 1;
    top: 3px;
}

.head .stripe.two {
    background: #CD7640;
    height: 4px;
    top: 14px;
}

.head .stripe.three {
    background: #999;
    height: 4px;
    opacity: 0.5;
    bottom: 3px;
}

.head .stripe.detail {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 200px;
    bottom: 7px;
    left: -38%;
    -webkit-transition: left 0.4s;
    -o-transition: left 0.4s;
    transition: left 0.4s;
}

.head .detail {
    height: 7px;
}

.head .detail.zero {
    background-color: #CD7640;
    width: 2%;
    margin-left: 3px;
}

.head .detail.one {
    background-color: #CD7640;
    width: 8%;
    margin-left: 3px;
}

.head .detail.two {
    background-color: #CD7640;
    width: 6%;
    margin-left: 5px;
}

.head .detail.three {
    background-color: #CD7640;
    width: 4%;
    margin-left: 45px;
    height: 5px;
    margin-top: 2px;
}

.head .detail.four {
    background-color: #CD7640;
    width: 10%;
    margin-left: 4px;
}

.head .detail.five {
    background-color: #CD7640;
    width: 2%;
    margin-left: 3px;
}

.head .eyes {
    display: inline-block;
    height: 100%;
    position: absolute;
    width: 100%;
    -webkit-transition: left 0.4s;
    -o-transition: left 0.4s;
    transition: left 0.4s;
    left: 22%;
}

.head .eye {
    border-radius: 50%;
    display: block;
    position: absolute;
}

.head .eye.one {
    background: #020204;
    border: 4px solid lightgray;
    height: 30px;
    width: 30px;
    top: 12px;
    left: 12%;
}

.head .eye.one:after {
    background: white;
    border-radius: 50%;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    width: 3px;
    top: 4px;
    right: 4px;
}

.head .eye.two {
    background-color: lightgrey;
    border: 1px solid #020204;
    height: 16px;
    width: 16px;
    top: 30px;
    left: 40%;
}

.head .eye.two:after {
    background: #020204;
    border-radius: 50%;
    content: "";
    display: block;
    height: 10px;
    position: absolute;
    width: 10px;
    top: 2px;
    left: 2px;
}

.ball {
    background-color: ghostwhite;
    border-radius: 50%;
    height: 165px;
    overflow: hidden;
    position: relative;
    width: 165px;
    -webkit-transition: -webkit-transform .4s;
    transition: -webkit-transform .4s;
    -o-transition: transform .4s;
    transition: transform .4s, -webkit-transform .4s;
}

.lines {
    border: 2px solid #B19669;
    border-radius: 50%;
    height: 400px;
    opacity: 0.6;
    position: absolute;
    width: 400px;
}

.lines.two {
    top: -10px;
    left: -250px;
}

.ring {
    background: #CD7640;
    border-radius: 50%;
    height: 70px;
    margin-left: -35px;
    position: absolute;
    width: 70px;
}

.ring:after {
    background-color: ghostwhite;
    border-radius: 50%;
    content: "";
    display: block;
    height: 73%;
    margin-top: -36%;
    margin-left: -36%;
    position: absolute;
    width: 73%;
    top: 50%;
    left: 50%;
}

.ring.one {
    margin-left: -40px;
    height: 90px;
    width: 100px;
    top: 2%;
    left: 42%;
}

.ring.two {
    height: 40px;
    width: 80px;
    -ms-transform: rotate(50deg);
    -webkit-transform: rotate(50deg);
    transform: rotate(50deg);
    top: 65%;
    left: 8%;
}

.ring.two:after {
    top: 100%;
}

.ring.three {
    height: 37px;
    width: 80px;
    -ms-transform: rotate(-50deg);
    -webkit-transform: rotate(-50deg);
    transform: rotate(-50deg);
    top: 68%;
    left: 84%;
}

.ring.three:after {
    top: 110%;
}

.shadow {
    background: #3A271C;
    -webkit-box-shadow: 5px 0 50px #3A271C;
    box-shadow: 5px 0 50px #3A271C;
    border-radius: 50%;
    height: 23.3333333333px;
    opacity: 0.25;
    position: absolute;
    width: 110px;
    left: 28px;
    z-index: -1;
    bottom: -8px;
}

/* actions */

.slider:checked+.switch .bb8 {
    left: 29%;
}

.slider:checked+.switch .bb8 .ball {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.slider:hover+.switch .bb8 .eyes {
    left: 60%;
}

.slider:checked:hover+.switch .bb8 .eyes {
    left: -20%;
}

.slider:active+.switch .bb8 .head {
    -webkit-transform: translate(35px, 3px) rotateZ(17deg);
    -ms-transform: translate(35px, 3px) rotate(17deg);
    transform: translate(30px, 3px) rotateZ(17deg);
}

.slider:checked:active+.switch .bb8 .head {
    -webkit-transform: translate(-35px, 6px) rotateZ(-17deg);
    -ms-transform: translate(-35px, 6px) rotate(-17deg);
    transform: translate(-35px, 6px) rotateZ(-17deg);
}

.slider:active+.switch .antennas {
    -webkit-transform: translate(35px, -20px) rotateZ(17deg);
    -ms-transform: translate(35px, -20px) rotate(17deg);
    transform: translate(35px, -20px) rotateZ(17deg);
}

.slider:active:not(:hover)+.switch .antennas {
    -webkit-transform: translate(35px, -10px) rotateZ(17deg);
    -ms-transform: translate(35px, -10px) rotate(17deg);
    transform: translate(35px, -10px) rotateZ(17deg);
}

.slider:checked:active+.switch .antennas {
    -webkit-transform: translate(-35px, 10px) rotateZ(-17deg);
    -ms-transform: translate(-35px, 10px) rotate(-17deg);
    transform: translate(-35px, 15px) rotateZ(-17deg);
}

.slider:checked:active:not(:hover)+.switch .antennas {
    -webkit-transform: translate(-30px, 20px) rotateZ(-17deg);
    -ms-transform: translate(-30px, 20px) rotate(-17deg);
    transform: translate(-25px, 25px) rotateZ(-17deg);
}

.slider:hover+.switch .antennas,
.slider:checked+.switch .antennas {
    left: 6%;
}

.slider:hover+.switch .stripe.detail,
.slider:checked+.switch .stripe.detail {
    left: 0;
}

.slider:checked:hover+.switch .antennas {
    left: 28%;
}

.slider:checked:hover+.switch .stripe.detail {
    left: -38%;
}

.slider:checked+.switch {
    background-color: #112350;
}

.slider:checked+.switch .suns {
    top: 50px;
}

.slider:checked+.switch .moons .first-moon {
    top: 15px;
    -webkit-box-shadow: 0 0 10px #B8CCCD;
    box-shadow: 0 0 10px #B8CCCD;
}

.slider:checked+.switch .moons::after {
    top: 38px;
    -webkit-box-shadow: 0 0 15px #B8CCCD;
    box-shadow: 0 0 15px #B8CCCD;
}

.slider:checked+.switch .moons::before {
    top: 34px;
    -webkit-box-shadow: 0 0 15px #B8CCCD;
    box-shadow: 0 0 15px #B8CCCD;
}

.slider:checked+.switch .moons .star {
    -webkit-box-shadow: 0 0 20px 2px #fff;
    box-shadow: 0 0 20px 2px #fff;
}

.slider:checked+.switch .moons .star.star-1 {
    top: 20px;
}

.slider:checked+.switch .moons .star.star-2 {
    top: 15px;
}

.slider:checked+.switch .moons .star.star-3 {
    top: 15px;
}

.slider:checked+.switch .moons .star.star-4 {
    top: 45px;
}

.slider:checked+.switch .moons .star.star-5 {
    top: 53px;
}
/* WhatsApp Style Link Preview */
.whatsapp-link-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.whatsapp-link-preview:hover {
    background: rgba(50, 50, 50, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-preview-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--glass-border);
}

.whatsapp-preview-content {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.whatsapp-preview-domain {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: lowercase;
    margin-bottom: 4px;
    display: block;
}

.whatsapp-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading screen (Tetris-style) - themed via CSS variables */
.tetris-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.tetris-loader-root {
  /* Reuse the same glass effect as .social-icons-container */
  background: var(--glass-bg);
  padding: 1.25rem 1.5rem;
  min-width: 13rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: var(--font-body, system-ui);
  color: var(--text-primary);
}

/* Theme-aware tints: white-ish on dark theme, dark-ish on light theme */
:root .tetris-loader-root {
  /* default (assume dark) — make loader slightly lighter */
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

[data-theme="light"] .tetris-loader-root {
  /* In light theme, tint darker so loader stands out */
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-primary);
}

[data-theme="dark"] .tetris-loader-root {
  /* In dark theme, make it subtly white-tinted */
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.tetris-loader {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
}

.tetris-block {
  --tetris-size: 2.2rem;

  width: var(--tetris-size);
  height: var(--tetris-size);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-primary);

  background: linear-gradient(135deg, var(--accent-purple, #5b68ff), var(--accent-cyan, #b54dff));
  border-radius: 0.45rem;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(8, 10, 26, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  transform-origin: center;
  animation: tetris-loader-drop 2.4s cubic-bezier(0.25, 0.7, 0.2, 1.05) infinite;
}

.tetris-block:nth-child(1) { animation-delay: 0s; }
.tetris-block:nth-child(2) { animation-delay: 0.15s; }
.tetris-block:nth-child(3) { animation-delay: 0.3s; }
.tetris-block:nth-child(4) { animation-delay: 0.45s; }
.tetris-block:nth-child(5) { animation-delay: 0.6s; }
.tetris-block:nth-child(6) { animation-delay: 0.75s; }
.tetris-block:nth-child(7) { animation-delay: 0.9s; }

@keyframes tetris-loader-drop {
  0% {
    opacity: 0;
    transform: translateY(-7rem) rotate(-90deg);
  }
  20% {
    opacity: 1;
    transform: translateY(-2rem) rotate(-40deg);
  }
  55% {
    transform: translateY(0) rotate(0deg);
  }
  65% {
    /* bounce */
    transform: translateY(0.35rem) rotate(0deg);
  }
  75% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.tetris-loader-text {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tetris-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
