/**
 * SPA Styles - Page transition effects and animations
 */

/* ==================== SPA Page Transitions ==================== */

.spa-page {
    opacity: 0;
    transform: translateY(15px) scale(0.99);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.spa-page.spa-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.spa-page.spa-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    pointer-events: none;
}

/* ==================== Navigation Active State ==================== */

.spa-nav-active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
}

.spa-nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--accent-color, #ff4081);
    border-radius: 3px 3px 0 0;
}

/* Mobile drawer active state */
.mdui-drawer .spa-nav-active {
    background-color: rgba(63, 81, 181, 0.12) !important;
}

[data-theme="dark"] .mdui-drawer .spa-nav-active {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* ==================== Loading Indicator ==================== */

.spa-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--accent-color, #ff4081) 0%,
            var(--primary-color, #3f51b5) 50%,
            var(--accent-color, #ff4081) 100%);
    background-size: 200% 100%;
    animation: spa-loading 1.5s infinite;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
}

.spa-loading.active {
    opacity: 1;
}

@keyframes spa-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== Fade In Animations ==================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Slide Animations ==================== */

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== Scale Animation ==================== */

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== Version Cards Container ==================== */

.version-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.version-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.version-card:hover::before {
    opacity: 0.05;
}

.version-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px var(--shadow-color),
                0 0 0 1px var(--primary-color);
}

/* Version Preview Image */
.version-preview-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.version-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-card:hover .version-preview-image img {
    transform: scale(1.08);
}

.version-preview-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.1) 50%,
                rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-card:hover .version-preview-overlay {
    opacity: 1;
}

.version-preview-overlay .version-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.version-card:hover .version-preview-overlay .version-card-icon {
    transform: scale(1);
}

.version-preview-overlay .version-card-icon i {
    color: var(--primary-color);
    font-size: 32px;
}

.version-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.version-card:hover .version-badge {
    transform: scale(1.05);
}

.version-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.version-description {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
}

.version-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.version-card:hover .version-card-arrow {
    background: var(--primary-color);
    transform: translateX(4px);
}

.version-card-arrow i {
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.version-card:hover .version-card-arrow i {
    color: white;
}

/* ==================== Social Links ==================== */

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #fff;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.social-icons a i {
    font-size: 20px;
}

/* ==================== Mobile Responsive ==================== */

@media (max-width: 768px) {
    .spa-page {
        padding: 0 8px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .social-links a {
        width: 80%;
        max-width: 200px;
        margin: 0 !important;
    }

    .version-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .version-preview-image {
        height: 180px;
    }

    .version-card-content {
        padding: 16px;
    }

    .version-preview-overlay .version-card-icon {
        width: 56px;
        height: 56px;
    }

    .version-preview-overlay .version-card-icon i {
        font-size: 28px;
    }

    .version-title {
        font-size: 16px;
    }

    .version-description {
        font-size: 13px;
    }

    .version-card-arrow {
        bottom: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }

    .version-card-arrow i {
        font-size: 18px;
    }

    .social-icons a {
        width: 48px;
        height: 48px;
    }

    .social-icons a i {
        font-size: 22px;
    }
}

/* ==================== Page Transition Overlay ==================== */

.spa-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #fff);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spa-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

[data-theme="dark"] .spa-transition-overlay {
    background-color: var(--bg-color, #121212);
}

/* ==================== Smooth Content Reveal ==================== */

.spa-content-reveal {
    clip-path: inset(0 0 100% 0);
    animation: revealContent 0.6s ease-out forwards;
}

@keyframes revealContent {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* ==================== Tool Cards (RandNum, RandPass) ==================== */

.tool-card {
    max-width: 600px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tool-card .mdui-card-primary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.tool-card .result-value {
    transition: transform 0.2s ease;
}

.tool-card .password-display {
    transition: transform 0.2s ease;
}

/* Dark mode for tool cards */
[data-theme="dark"] .tool-card {
    background-color: #1e1e1e;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tool-card .result-value {
    color: #64b5f6;
}

[data-theme="dark"] .tool-card .password-display {
    background-color: rgba(255, 255, 255, 0.05);
    color: #64b5f6;
    border-color: #4f5aa8;
}

[data-theme="dark"] .tool-card .result-container {
    background-color: rgba(63, 81, 181, 0.1);
    border-color: #4f5aa8;
}

[data-theme="dark"] .tool-card .mdui-textfield-input {
    color: rgba(255, 255, 255, 0.87);
}

[data-theme="dark"] .tool-card .mdui-textfield-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== Tool Card Responsive ==================== */

@media (max-width: 768px) {
    .tool-card {
        width: 95%;
        margin: 10px auto;
    }

    .tool-card .result-value {
        font-size: 2rem !important;
        min-height: 50px !important;
    }

    .tool-card .password-display {
        font-size: 1.1rem !important;
    }

    .tool-card .button-container {
        flex-direction: column;
        align-items: center;
    }

    .tool-card .button-container .mdui-btn {
        width: 80%;
        max-width: 250px;
    }
}

/* ==================== Clock Widget on Homepage ==================== */

.clock-widget-card {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-radius: 24px;
    padding: 32px;
    color: white;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(48, 43, 99, 0.4);
}

/* Animated background effects */
.clock-widget-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(139, 92, 246, 0.08) 60deg,
            transparent 120deg);
    pointer-events: none;
}

.clock-widget-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.clock-widget-content {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* Animated clock icon */
.clock-icon-wrapper {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.clock-icon-wrapper i {
    font-size: 42px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.clock-info {
    flex: 1;
}

.clock-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.clock-time {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Roboto Mono', 'SF Mono', 'Consolas', monospace;
    letter-spacing: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.clock-time .time-segment {
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.clock-time .time-colon {
    color: rgba(255, 255, 255, 0.8);
    animation: colonBlink 1s steps(1) infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

@keyframes colonBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.clock-date {
    font-size: 15px;
    opacity: 0.95;
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.clock-date::before {
    content: '📅';
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Floating particles */
.clock-widget-card .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.clock-widget-card .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.clock-widget-card .particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.clock-widget-card .particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

/* Glowing effect on hover */
.clock-widget-card:hover {
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
    transition: all 0.4s ease;
}

.clock-widget-card:hover .clock-icon-wrapper {
    animation: iconPulse 1s ease-in-out infinite;
}

/* Clock Widget Responsive */
@media (max-width: 600px) {
    .clock-widget-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .clock-widget-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .clock-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .clock-icon-wrapper i {
        font-size: 32px;
    }

    .clock-time {
        font-size: 2.8rem;
        justify-content: center;
    }

    .clock-date {
        justify-content: center;
    }

    .clock-label {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* Holiday display */
.clock-holiday {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 107, 107, 0.3) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fef3c7;
    animation: holidayGlow 2s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.clock-holiday:empty {
    display: none;
}

.clock-holiday .holiday-icon {
    font-size: 18px;
    animation: holidayBounce 1s ease-in-out infinite;
}

/* ==================== Weather Widget ==================== */

.weather-widget {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.weather-icon i {
    font-size: 24px;
    color: #ffffff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.weather-temp {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.weather-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: capitalize;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.weather-location i {
    font-size: 12px;
}

.weather-unit-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.weather-unit-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.weather-unit-toggle:active {
    transform: scale(0.95);
}

/* Weather loading state */
.weather-widget.loading .weather-icon i {
    animation: weatherSpin 1s linear infinite;
}

@keyframes weatherSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Weather error state */
.weather-widget.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Weather Widget Responsive */
@media (max-width: 768px) {
    .weather-widget {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .weather-content {
        justify-content: space-between;
    }
}

@keyframes holidayGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 107, 107, 0.3);
    }
}

@keyframes holidayBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Mobile holiday */
@media (max-width: 600px) {
    .clock-holiday {
        font-size: 12px;
        padding: 6px 12px;
    }

    .clock-holiday .holiday-icon {
        font-size: 16px;
    }
}

/* ====================================
   Countdown Promo Card
   ==================================== */
.countdown-promo-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35);
}

.countdown-promo-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.countdown-promo-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.countdown-promo-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.countdown-promo-particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.countdown-promo-particle:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) scale(1.5);
        opacity: 1;
    }
}

.countdown-promo-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.countdown-promo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: celebrateIcon 2s ease-in-out infinite;
}

.countdown-promo-icon i {
    font-size: 36px;
    color: white;
}

@keyframes celebrateIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.countdown-promo-info {
    flex: 1;
}

.countdown-promo-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.countdown-promo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-promo-desc {
    font-size: 14px;
    opacity: 0.85;
}

.countdown-promo-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.countdown-promo-arrow i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.countdown-promo-card:hover .countdown-promo-arrow {
    background: rgba(255, 255, 255, 0.35);
}

.countdown-promo-card:hover .countdown-promo-arrow i {
    transform: translateX(4px);
}

/* Countdown Promo Responsive */
@media (max-width: 600px) {
    .countdown-promo-card {
        padding: 20px;
        border-radius: 20px;
    }

    .countdown-promo-content {
        gap: 16px;
    }

    .countdown-promo-icon {
        width: 55px;
        height: 55px;
    }

    .countdown-promo-icon i {
        font-size: 28px;
    }

    .countdown-promo-title {
        font-size: 18px;
    }

    .countdown-promo-label {
        font-size: 11px;
    }

    .countdown-promo-desc {
        font-size: 12px;
    }

    .countdown-promo-arrow {
        width: 40px;
        height: 40px;
    }

    .countdown-promo-arrow i {
        font-size: 20px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .clock-widget-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ====================================
   Social Contact Section
   ==================================== */
.contact-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px;
}

[data-theme="dark"] .contact-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--card-bg);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

[data-theme="dark"] .social-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12),
                0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.social-card:hover::before {
    opacity: 0.15;
}

[data-theme="dark"] .social-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-card:hover .social-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.social-icon.github {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.social-card:hover .social-icon.github {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.5);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dc7 100%);
}

.social-card:hover .social-icon.facebook {
    background: linear-gradient(135deg, #3b9eff 0%, #1877f2 100%);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.6);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000 0%, #010101 100%);
    position: relative;
    overflow: visible;
}

.social-icon.tiktok::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #25f4ee 0%, #fe2c55 50%, #25f4ee 100%);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.9;
    animation: tiktok-gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes tiktok-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.social-card:hover .social-icon.tiktok::before {
    animation: tiktok-gradient 1.5s ease infinite;
    opacity: 1;
}

.social-card:hover .social-icon.tiktok {
    box-shadow: 0 8px 30px rgba(254, 44, 85, 0.6),
                0 0 40px rgba(37, 244, 238, 0.4);
}

.social-icon.tiktok i {
    color: #fff;
    position: relative;
    z-index: 1;
}

.social-icon.twitter {
    background: linear-gradient(135deg, #14171a 0%, #1c1f23 100%);
}

.social-card:hover .social-icon.twitter {
    background: linear-gradient(135deg, #1c1f23 0%, #000 100%);
    box-shadow: 0 8px 24px rgba(20, 23, 26, 0.6);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #d50000 100%);
}

.social-card:hover .social-icon.youtube {
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.6);
}

.social-icon.email {
    background: linear-gradient(135deg, #ea4335 0%, #d33426 100%);
}

.social-card:hover .social-icon.email {
    background: linear-gradient(135deg, #f06055 0%, #ea4335 100%);
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.6);
}

.social-name {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.social-card:hover .social-name {
    color: #1e293b;
    transform: translateY(-2px);
    font-weight: 700;
}

[data-theme="dark"] .social-name {
    color: #cbd5e1;
}

[data-theme="dark"] .social-card:hover .social-name {
    color: #f1f5f9;
}

/* Social Grid Responsive */
@media (max-width: 600px) {
    .social-grid {
        gap: 12px;
    }

    .social-card {
        padding: 16px 18px;
        min-width: 80px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .social-name {
        font-size: 11px;
    }
}