.rka-footer-scope {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --white: #ffffff;
    --gray: #cbd5e1;
    --gray-light: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.2);
    --shadow-glow: rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--white);
}

.rka-footer-scope .footer * {
    box-sizing: border-box;
}

.rka-footer-scope .footer {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        #334155 100%
    );
    padding: 5rem 0 3rem;
    position: relative;
    width: 100%;
    z-index: 10;
    overflow: hidden;
}

.rka-footer-scope .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle at 20% 20%,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(147, 51, 234, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(16, 185, 129, 0.06) 0%,
            transparent 50%
        );
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-5%, -5%) rotate(120deg);
    }
    66% {
        transform: translate(5%, 5%) rotate(240deg);
    }
}

.rka-footer-scope .footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.rka-footer-scope .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.rka-footer-scope .footer h3 {
    font-family: "Lora", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.rka-footer-scope .footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--shadow-glow);
}

.rka-footer-scope .footer p,
.rka-footer-scope .footer a {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    transition: var(--transition);
    font-weight: 400;
}

.rka-footer-scope .footer p {
    opacity: 0.9;
    text-align: left !important;
}

.rka-footer-scope .footer a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.rka-footer-scope .footer-links a {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: var(--transition);
    text-align: left !important;
    font-size: 14px;
}

.rka-footer-scope .footer-links a::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 1px;
}

.rka-footer-scope .footer-links a:hover::before {
    width: 1rem;
}

.rka-footer-scope .footer-links a:hover {
    background: rgba(59, 130, 246, 0.05);
    padding-left: 1rem;
    color: var(--white);
}

.rka-footer-scope .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.rka-footer-scope .social-icons a {
    font-size: 1.1rem;
    color: var(--gray);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.rka-footer-scope .social-icons a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.rka-footer-scope .social-icons a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-glow);
    border-color: var(--accent);
}

.rka-footer-scope .social-icons a:hover::before {
    opacity: 1;
}

.rka-footer-scope .newsletter {
    margin-top: 2rem;
}

.rka-footer-scope .newsletter p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rka-footer-scope .newsletter form {
    display: flex;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    align-items: stretch; /* Changed to stretch for consistent height */
}

.rka-footer-scope .newsletter form:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.rka-footer-scope .newsletter input {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    width: 100%; /* Changed to 100% to fill available space */
    outline: none;
    font-weight: 400;
    height: 100%; /* Ensure full height */
}

.rka-footer-scope .newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Increased opacity for better visibility */
    font-weight: 400; /* Slightly bolder for readability */
}

.rka-footer-scope .newsletter button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    background-size: 200% 100%;
    background-position: 0 0; /* Adjusted for consistent positioning */
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    border-radius: 8px;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.rka-footer-scope .newsletter button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.rka-footer-scope .newsletter button:hover::before {
    left: 100%;
}

.rka-footer-scope .newsletter button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 10px 25px var(--shadow-glow);
}

.rka-footer-scope .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
}

.rka-footer-scope .footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.rka-footer-scope .footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 300;
    margin-top: 1rem;
}

.rka-footer-scope .company-tagline {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0.8;
}

.rka-footer-scope .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.rka-footer-scope .floating-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .rka-footer-scope .footer {
        padding: 3.5rem 0 2rem;
    }
    .rka-footer-scope .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .rka-footer-scope .section-container {
        padding: 0 1.5rem;
    }
    .rka-footer-scope .newsletter form {
        max-width: 100%;
        padding: 0.5rem;
        display: flex;
        align-items: stretch; /* Maintain consistent height */
    }
    .rka-footer-scope .newsletter input {
        width: 100%; /* Full width for consistency */
        padding: 0.75rem;
    }
    .rka-footer-scope .newsletter button {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .rka-footer-scope .footer h3 {
        font-size: 1.4rem;
    }
    .rka-footer-scope .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .rka-footer-scope .footer {
        padding: 2.5rem 0 1.5rem;
    }
    .rka-footer-scope .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .rka-footer-scope .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .rka-footer-scope .social-icons {
        justify-content: center;
        gap: 0.75rem;
    }
    .rka-footer-scope .newsletter form {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        padding: 0.75rem;
    }
    .rka-footer-scope .newsletter input {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
        padding: 0.75rem;
        border-radius: 8px;
    }
    .rka-footer-scope .newsletter button {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }
    .rka-footer-scope .footer-links a {
        justify-content: center;
    }
    .rka-footer-scope .footer-links a::before {
        display: none;
    }
    .rka-footer-scope .footer-links a:hover {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .rka-footer-scope .footer {
        padding: 2rem 0 1rem;
    }
    .rka-footer-scope .section-container {
        padding: 0 1rem;
    }
    .rka-footer-scope .footer h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .rka-footer-scope .footer p,
    .rka-footer-scope .footer a {
        font-size: 0.85rem;
    }
    .rka-footer-scope .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .rka-footer-scope .newsletter p {
        font-size: 0.8rem;
    }
    .rka-footer-scope .newsletter form {
        padding: 0.5rem;
    }
    .rka-footer-scope .newsletter button {
        width: 100%;
    }
    .rka-footer-scope .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .rka-footer-scope .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rka-footer-scope .footer::before,
    .rka-footer-scope .floating-element {
        animation: none;
    }
    .rka-footer-scope * {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .rka-footer-scope {
        --primary: #000000;
        --secondary: #1a1a1a;
        --accent: #ffffff;
        --white: #ffffff;
        --gray: #cccccc;
    }
}
