.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.4);
}

.back-to-top:hover {
    background: #6ba3e8;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

.rainy-footer {
    background:
        radial-gradient(ellipse at 20% 10%, #2c3e50 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, #34495e 0%, transparent 60%),
        linear-gradient(180deg, rgba(44, 62, 80, 0.9) 0%, #1a252f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.rainy-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rainy-footer-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.rainy-footer-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(138, 185, 205, 0.05);
    animation: rain-float 20s ease-in-out infinite;
}

.rainy-footer-shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.rainy-footer-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 6s;
}

.rainy-footer-shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: 12s;
}

@keyframes rain-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.rainy-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 20px;
    position: relative;
    z-index: 1;
}

.rainy-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.rainy-footer-section {
    color: rgba(255, 255, 255, 0.8);
}

.rainy-footer-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rainy-footer-title i {
    color: rgba(138, 185, 205, 0.9);
}

.rainy-footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rainy-footer-subtitle i {
    color: rgba(138, 185, 205, 0.9);
}

.rainy-footer-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rainy-footer-stats {
    display: flex;
    gap: 30px;
}

.rainy-stat {
    text-align: center;
}

.rainy-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: rgba(138, 185, 205, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.rainy-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.rainy-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rainy-footer-links li {
    margin-bottom: 12px;
}

.rainy-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
    overflow: hidden;
}

.rainy-footer-link:hover,
.rainy-footer-link.rainy-hover {
    color: rgba(138, 185, 205, 0.95);
    transform: translateX(5px);
}

.rainy-footer-link i {
    font-size: 12px;
    opacity: 0.8;
}

.rainy-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rainy-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.rainy-footer-copyright a {
    color: rgba(138, 185, 205, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rainy-footer-copyright a:hover {
    color: rgba(138, 185, 205, 1);
}

.rainy-footer-powered {
    margin-top: 8px;
}

.rainy-highlight {
    color: rgba(138, 185, 205, 0.95);
    font-weight: 600;
}

.rainy-heart {
    color: #e74c3c;
    animation: rainy-heartbeat 2s ease-in-out infinite;
}

@keyframes rainy-heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.rainy-footer-social {
    display: flex;
    gap: 15px;
}

.rainy-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(138, 185, 205, 0.15);
    border: 1px solid rgba(138, 185, 205, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rainy-social-link:hover,
.rainy-social-link.rainy-pulse {
    background: rgba(138, 185, 205, 0.3);
    border-color: rgba(138, 185, 205, 0.5);
    color: rgba(138, 185, 205, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 185, 205, 0.3);
}

.rainy-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(138, 185, 205, 0.2);
    border: 1px solid rgba(138, 185, 205, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(138, 185, 205, 0.95);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.rainy-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rainy-back-to-top:hover {
    background: rgba(138, 185, 205, 0.7);
    border-color: rgba(138, 185, 205, 0.8);
    color: rgba(44, 62, 80, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 185, 205, 0.4);
}

.rainy-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(138, 185, 205, 0.9), rgba(74, 144, 226, 0.7));
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(138, 185, 205, 0.6);
}

@media (max-width: 768px) {
    .rainy-footer-container {
        padding: 30px 15px 15px;
    }

    .rainy-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .rainy-footer-title {
        font-size: 20px;
    }

    .rainy-footer-subtitle {
        font-size: 16px;
    }

    .rainy-footer-stats {
        justify-content: center;
        gap: 40px;
    }

    .rainy-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .rainy-footer-social {
        justify-content: center;
    }

    .rainy-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.water-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(138, 185, 205, 0.4);
    transform: scale(0);
    animation: water-ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes water-ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.rainy-friend-links-section {
    background: rgba(138, 185, 205, 0.08);
    border-top: 1px solid rgba(138, 185, 205, 0.2);
    border-bottom: 1px solid rgba(138, 185, 205, 0.2);
    padding: 40px 0;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.rainy-friend-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 185, 205, 0.06) 0%, transparent 50%, rgba(138, 185, 205, 0.04) 100%);
    pointer-events: none;
}

.rainy-friend-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.rainy-friend-links-header {
    text-align: center;
    margin-bottom: 30px;
}

.rainy-friend-links-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rainy-friend-links-title i {
    color: rgba(138, 185, 205, 0.9);
    font-size: 22px;
}

.rainy-friend-links-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
}

.rainy-friend-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: start;
}

.rainy-friend-links-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(138, 185, 205, 0.12);
    border: 1px solid rgba(138, 185, 205, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rainy-friend-links-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 185, 205, 0.3), transparent);
    transition: left 0.5s ease;
}

.rainy-friend-links-list a:hover::before {
    left: 100%;
}

.rainy-friend-links-list a:hover {
    background: rgba(138, 185, 205, 0.2);
    border-color: rgba(138, 185, 205, 0.4);
    color: rgba(138, 185, 205, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 185, 205, 0.25);
}

.rainy-friend-links-list a i {
    font-size: 18px;
    color: rgba(138, 185, 205, 0.9);
    flex-shrink: 0;
}

.rainy-friend-links-list a span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.rainy-friend-links-list a::after {
    content: '\f08e';
    font-family: 'FontAwesome';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rainy-friend-links-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: rgba(138, 185, 205, 0.9);
}

.rainy-friend-links-list a:not([class*="fa-"])::before {
    content: '\f0c1';
    font-family: 'FontAwesome';
    font-size: 16px;
    color: rgba(138, 185, 205, 0.9);
    margin-right: 10px;
}

@media (max-width: 768px) {
    .rainy-friend-links-section {
        padding: 30px 0;
        margin: 30px 0;
    }

    .rainy-friend-links-container {
        padding: 0 15px;
    }

    .rainy-friend-links-title {
        font-size: 20px;
    }

    .rainy-friend-links-desc {
        font-size: 14px;
    }

    .rainy-friend-links-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .rainy-friend-links-list a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .rainy-friend-links-list a i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .rainy-friend-links-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rainy-friend-links-list a {
        padding: 10px 12px;
    }
}

.rainy-friend-links-list a[href*="github"] {
    border-color: rgba(138, 185, 205, 0.25);
}

.rainy-friend-links-list a[href*="github"]:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.4);
}

.rainy-friend-links-list a[href*="blog"] {
    border-color: rgba(138, 185, 205, 0.25);
}

.rainy-friend-links-list a[href*="blog"]:hover {
    background: rgba(138, 185, 205, 0.2);
    border-color: rgba(138, 185, 205, 0.4);
}

.rainy-friend-links-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.rainy-friend-links-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

.rainy-friend-links-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

.rainy-friend-links-empty a {
    color: rgba(138, 185, 205, 0.95);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(138, 185, 205, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.rainy-friend-links-empty a:hover {
    background: rgba(138, 185, 205, 0.2);
    border-color: rgba(138, 185, 205, 0.6);
}


.rain-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 2px;
    background: rgba(138, 185, 205, 0.6);
    animation: rain-fall linear infinite;
    border-radius: 0 0 50% 50%;
}

.rain-drop.size-1 {
    height: 15px;
    width: 1px;
}

.rain-drop.size-2 {
    height: 25px;
    width: 2px;
}

.rain-drop.size-3 {
    height: 35px;
    width: 3px;
}

.rain-drop.fast {
    animation-duration: 0.5s;
}

.rain-drop.medium {
    animation-duration: 0.8s;
}

.rain-drop.slow {
    animation-duration: 1.2s;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100vh) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(10deg);
        opacity: 0;
    }
}

.rain-drops {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rain-particle {
    position: absolute;
    width: 1px;
    height: 20px;
    background: rgba(138, 185, 205, 0.4);
    animation: rain-particle-fall linear infinite;
    border-radius: 0 0 50% 50%;
}

@keyframes rain-particle-fall {
    0% {
        transform: translateY(-100vh) translateX(0);
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.lightning-flash.active {
    animation: lightning-effect 0.3s ease-in-out;
}

@keyframes lightning-effect {

    0%,
    100% {
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    40% {
        opacity: 0.2;
    }

    60% {
        opacity: 0.9;
    }

    80% {
        opacity: 0.1;
    }
}

.rain-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(138, 185, 205, 0.6);
    border-radius: 50%;
    animation: rain-ripple-effect 2s ease-out;
    pointer-events: none;
}

@keyframes rain-ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}