
/* ROOT VARIABLES - Dark Mode (Default) */
:root {
    /* Colors */
     --bg-primary: hsl(225, 47%, 7%);
     --bg-secondary: hsl(225, 47%, 10%);
     --bg-tertiary: hsl(225, 47%, 13%);
     --text-primary: hsl(0, 0%, 97%);
     --text-secondary: hsl(0, 0%, 60%);
     --text-muted: hsla(0, 0%, 100%, 0.7);
     --accent-blue: hsla(212, 49%, 34%, 0.95);
     --accent-purple: hsla(270, 41%, 41%, 0.95);
    /* Overlays */
     --overlay-light: rgba(255, 255, 255, 0.03);
     --overlay-lighter: rgba(255, 255, 255, 0.05);
     --overlay-lightest: rgba(255, 255, 255, 0.15);
    /* Borders */
     --border-subtle: rgba(255, 255, 255, 0.05);
     --border-light: rgba(255, 255, 255, 0.1);
     --border-medium: rgba(255, 255, 255, 0.2);
    /* Gradients */
     --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
     --gradient-reverse: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    /* Shadows */
     --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
     --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
     --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    /* Spacing */
     --container-padding: 40px;
     --container-width: 1000px;
     --gap-sm: 20px;
     --gap-md: 40px;
     --gap-lg: 60px;
    /* Transitions */
     --transition-fast: 0.3s ease;
     --transition-medium: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Firefox scrollbar styles */
 * {
     scrollbar-width: thin;
     scrollbar-color: var(--border-medium) var(--bg-primary);
}
/* RESET */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}
 html, body {
     width: 100%;
     height: 100%;
     font-family: sans-serif;
     display: block;
     background-color: var(--bg-primary);
     color: var(--text-primary);
     background-image: radial-gradient(circle at 100% 0%, var(--accent-blue) 0%, hsla(212, 49%, 34%, 0.15) 50%, transparent 100%), radial-gradient(circle at 0% 100%, var(--accent-purple) 0%, hsla(270, 41%, 41%, 0.15) 50%, transparent 100%), linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
     backface-visibility: hidden;
     -webkit-backface-visibility: hidden;
     -moz-backface-visibility: hidden;
     transform: translate3d(0, 0, 0);
     -webkit-transform: translate3d(0, 0, 0);
     -moz-transform: translate3d(0, 0, 0);
     overflow-x: hidden;
     scroll-behavior: smooth;
     transition: background-color var(--transition-medium), color var(--transition-medium);
}

 .container:first-of-type {
     min-height: 100vh;
     display: flex;
     justify-content: center;
     align-items: center;
     position: relative;
}
/* CONTAINER */
 .container {
     text-align: left;
     max-width: var(--container-width);
     width: 90%;
     margin: 0 auto;
     padding: var(--container-padding);
     display: flex;
     align-items: center;
     gap: var(--gap-lg);
     pointer-events: auto;
     z-index: 3;
     position: relative;
     justify-content: center;
}
 @keyframes floatWaves {
     0%, 100% {
         transform: rotate(-15deg) translateY(0px) scale(1);
    }
     50% {
         transform: rotate(-15deg) translateY(-10px) scale(1.01);
    }
}
/* TEXT WRAPPER */
 .text-content {
     display: flex;
     flex-direction: column;
     gap: var(--gap-sm);
     animation: fadeIn 1s ease-out;
}
 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}

/* LOGO WRAPPER - ENHANCED STYLING */
 .logo {
     display: inline-block;
     width: 220px;
     height: 220px;
     transform: rotate(-15deg);
     position: relative;
     transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7), 0 5px 15px rgba(0, 0, 0, 0.6);
     border-radius: 12px;
     overflow: hidden;
     background: linear-gradient(135deg, #597c8529, #5b939c24);
     margin-right: 30px;
     animation: floatWaves 6s ease-in-out infinite;
}
 @keyframes buzz {
     0%, 100% {
         transform: rotate(-5deg) scale(1.08) translateY(-5px);
    }
     20% {
         transform: rotate(-3deg) scale(1.08) translateY(-5px);
    }
     40% {
         transform: rotate(-7deg) scale(1.08) translateY(-5px);
    }
     60% {
         transform: rotate(-3deg) scale(1.08) translateY(-5px);
    }
     80% {
         transform: rotate(-7deg) scale(1.08) translateY(-5px);
    }
}

 .logo:hover {
     transform: rotate(-5deg) scale(1.08) translateY(-5px);
     box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 12px 30px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
     animation: buzz 0.6s !important;
}
 .logo svg {
     transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 .logo:hover svg {
     transform: scale(0.95) translateY(2px);
}
/* TITLE & TAGLINE - ENHANCED */
 h1 {
     font-size: 4rem;
     margin-bottom: 15px;
     font-weight: 800;
     letter-spacing: -1px;
     pointer-events: auto;
     transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     transform: scale(1) translateX(0) translateY(0) translateZ(0);
}
 h1:hover {
     color: white;
     background: none;
     transform: scale(1.02) translateX(8px) translateY(-8px) translateZ(2px);
}
 h1 span:first-child {
     margin-right: 0;
     transition: margin-right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
 h1:hover span:first-child {
     margin-right: 0.5em;
}
 h1 .words {
     position: relative;
}
 h1 .words span {
     position: absolute;
     left: 0;
     opacity: 0;
}
 h1 .words span:first-child {
     opacity: 1;
     position: relative;
     transform: translateX(0);
}
 h1:hover .words span {
     text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    /* Total animation time: 8 words × 2s per word = 16s total cycle */
     animation: rotateWords 12s ease-in-out infinite;
}
/* Delays: each word starts at 2s intervals 2s × (n-1) -1s where n is the word position */
 h1:hover .words span:nth-child(1) {
     animation-delay: -1s;
}
 h1:hover .words span:nth-child(2) {
     animation-delay: 1s;
}
 h1:hover .words span:nth-child(3) {
     animation-delay: 3s;
}
 h1:hover .words span:nth-child(4) {
     animation-delay: 5s;
}
 h1:hover .words span:nth-child(5) {
     animation-delay: 7s;
}
 h1:hover .words span:nth-child(6) {
     animation-delay: 9s;
}
/** Each word needs to appear for 2s, then disappear for the rest of the animation. 2s / 16s = 12.5% of the animation time. **/
 @keyframes rotateWords {
     0% {
         opacity: 0;
    }
     3%, 9.5% {
         opacity: 1;
    }
     12%, 100% {
         opacity: 0;
    }
}
 @keyframes shimmer {
     0% {
         background-position: 400% 0;
    }
     100% {
         background-position: -400% 0;
    }
}
 p {
     font-size: 2rem;
     color: var(--text-secondary);
     line-height: 1.4;
     transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* RESPONSIVE ADJUSTMENTS */
 @media (max-width: 900px) {
     :root {
         --container-padding: 30px;
         --gap-lg: 40px;
    }
     .container {
         gap: var(--gap-lg);
         padding: var(--container-padding);
    }
     .logo {
         width: 250px;
         height: 250px;
    }
     h1 {
         font-size: 3.5rem;
    }
     p {
         font-size: 1.8rem;
    }
}
 @media (max-width: 768px) {
     :root {
         --container-padding: 20px;
         --gap-lg: 30px;
    }
     .container {
         flex-direction: column;
         text-align: center;
         gap: var(--gap-lg);
    }
     .text-content {
         align-items: center;
    }
     .logo {
         width: 200px;
         height: 200px;
         margin-right: 0;
    }
     h1 {
         font-size: 3rem;
    }
     p {
         font-size: 1.6rem;
    }
}
 @media (max-width: 480px) {
     .container {
         padding: var(--container-padding);
         gap: var(--gap-lg);
    }
     .logo {
         width: 150px;
         height: 150px;
    }
     h1 {
         font-size: 2.5rem;
    }
     p {
         font-size: 1.4rem;
    }
}
/* MENU STYLES */
 .menu {
     position: fixed;
     top: 2rem;
     right: 2rem;
     display: flex;
     gap: 2rem;
     z-index: 1000;
     align-items: center;
}
 .menu a {
     color: var(--text-muted);
     text-decoration: none;
     font-size: 0.9rem;
     position: relative;
     transition: all 0.3s ease;
     opacity: 0.6;
}
 .menu:hover a {
     opacity: 0.8;
}
 .menu a:hover {
     color: var(--text-primary);
     opacity: 1;
     text-decoration: none;
}
 .menu a::after {
     content: '';
     position: absolute;
     width: 100%;
     height: 1px;
     bottom: -4px;
     left: 0;
     background-color: currentColor;
     transform: scaleX(0);
     transform-origin: right;
     transition: transform 0.3s ease;
}
 .menu a:hover::after {
     transform: scaleX(1);
     transform-origin: left;
}
 @media (max-width: 768px) {
     .menu {
         top: 1rem;
         right: 1rem;
         gap: 1rem;
    }
     .menu a {
         font-size: 0.9rem;
    }
}

.scroll-link {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    animation: bounce 3s infinite;
    cursor: pointer;
    pointer-events: auto;
    z-index: 9999;
}

.scroll-link svg {
    width: 32px;
    height: 32px;
}

.scroll-link:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(-50%) scale(1.05);
}
 @keyframes bounce {
     0%, 20%, 50%, 80%, 100% {
         transform: translateX(-50%) translateY(0);
    }
     40% {
         transform: translateX(-50%) translateY(-6px);
    }
     60% {
         transform: translateX(-50%) translateY(-3px);
    }
}
 #features {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     direction: rtl;
     background: linear-gradient(135deg, hsla(225, 47%, 10%, 1) 0%, hsla(225, 47%, 13%, 1) 100%);
}

#features .text-content{
    text-align: center;
}
#features p{
    font-size: medium;
}
 #features .container {
     flex-direction: column;
     gap: 3rem;
}
 #features h2 {
     font-size: 3.5rem;
     margin-bottom: 1rem;
     background: linear-gradient(135deg, #ffffff 0%, #e1e1e1 100%);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
}
 .features-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 2.5rem;
     perspective: 1000px;
}
 .feature-card {
     background: var(--overlay-light);
     border: 1px solid var(--border-subtle);
     border-radius: 16px;
     padding: 2.5rem;
     transform-style: preserve-3d;
     transform: perspective(1000px) rotateX(10deg);
     transition: all var(--transition-slow);
     backdrop-filter: blur(10px);
     box-shadow: var(--shadow-lg);

     text-align: right;
}
 .feature-card:hover {
     transform: perspective(1000px) rotateX(0deg) translateY(-10px);
     background: var(--overlay-lighter);
     border-color: var(--border-light);
}
 .feature-card h3 {
     font-size: 1.5rem;
     margin-bottom: 1rem;
     color: var(--text-primary);
     position: relative;
}
 .feature-card h3::before {
     content: '';
     position: absolute;
     width: 30px;
     height: 2px;
     background: linear-gradient(90deg, hsla(212, 49%, 34%, 0.8), hsla(270, 41%, 41%, 0.8));
     bottom: -8px;
     left: 0;
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.3s ease;
}
 .feature-card:hover h3::before {
     transform: scaleX(1);
}
 .feature-card p {
     font-size: 1rem;
     line-height: 1.6;
     color: var(--text-secondary);
     margin-top: 1rem;
}
 .feature-icon {
     font-size: 2rem;
     margin-bottom: 1.5rem;
     opacity: 0.8;
     transition: all 0.3s ease;
}
 .feature-card:hover .feature-icon {
     opacity: 1;
     transform: translateY(-5px);
}
 @media (max-width: 968px) {
     .features-grid {
         grid-template-columns: repeat(2, 1fr);
    }
}
 @media (max-width: 768px) {
     .features-grid {
         grid-template-columns: 1fr;
         gap: 1.5rem;
    }
     #features .container {
         gap: 3rem;
    }
     .feature-card {
         padding: 2rem;
    }
}
 .feature-section {
     min-height: 100vh;
     display: flex;
     align-items: center;
     position: relative;
     overflow: hidden;
}
 .feature-section:nth-child(odd) {
     background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}
 .feature-section .container {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
     align-items: center;
}
 .feature-section:nth-child(even) .container {
     direction: rtl;
}
 .feature-section:nth-child(even) .feature-content {
     direction: ltr;
}
 .feature-content {
     max-width: 500px;
}
 .feature-content .gradient-title {
     font-size: 2.5rem;
     margin-bottom: 1.5rem;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
}
 .feature-content p {
     font-size: 1.2rem;
     margin-bottom: 2rem;
}
 .feature-image {
     position: relative;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: var(--shadow-lg);
     transition: transform var(--transition-medium);
}
 .feature-image:hover {
     transform: translateY(-10px);
}
 .feature-image img, .feature-image video {
     width: 100%;
     object-fit: cover;
     object-position: left;
     display: block;
}
 @media (max-width: 968px) {
     .feature-section .container {
         grid-template-columns: 1fr;
         text-align: center;
    }
     .feature-content {
         max-width: 100%;
    }
}
.compat-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(88, 125, 255, 0.18), transparent 50%), radial-gradient(circle at 20% 10%, rgba(255, 130, 255, 0.18), transparent 55%), linear-gradient(200deg, rgba(10, 19, 44, 0.95), rgba(7, 12, 26, 0.92));
    overflow: hidden;
    isolation: isolate;
    direction: rtl;
}

.compat-section::before,
.compat-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.compat-section::before {
    background-image: radial-gradient(2px 2px at 215px 35px, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1.5px 1.5px at 20px 140px, rgba(255, 255, 255, 0.55), transparent), radial-gradient(2px 2px at 320px 60px, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1px 1px at 420px 180px, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1.5px 1.5px at 520px 90px, rgba(255, 255, 255, 0.5), transparent);
    background-size: 240px 220px;
    opacity: 0.45;
    animation: twinkle 14s linear infinite;
}

.compat-section::after {
    background: radial-gradient(450px 450px at 20% 110%, rgba(63, 104, 255, 0.35), transparent 70%);
}

.compat-layout {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(450px, 1.2fr);
    gap: var(--gap-lg);
    padding-top: calc(var(--container-padding) * 1.5);
    padding-bottom: calc(var(--container-padding) * 1.5);
    position: relative;
    z-index: 1;
    direction: rtl;
}

.compat-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: right;
}

.compat-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(173, 188, 255, 0.75);
}

.compat-intro h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: rgba(229, 237, 255, 0.94);
}

.compat-intro p {
    font-size: 1.15rem;
    color: rgba(209, 219, 255, 0.78);
    max-width: 90%;
}

.compat-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.compat-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(99, 118, 255, 0.12);
    border: 1px solid rgba(143, 162, 255, 0.25);
    color: rgba(207, 221, 255, 0.78);
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}

.compat-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.compat-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 84, 182, 0.35), rgba(19, 27, 51, 0.4));
    box-shadow: inset 0 0 40px rgba(127, 162, 255, 0.2), 0 20px 60px rgba(6, 12, 32, 0.7);
}

.compat-orbit::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px dashed rgba(162, 186, 255, 0.4);
    animation: orbitSpin 26s linear infinite reverse;
}

.compat-orbit::after {
    content: "";
    position: absolute;
    inset: 44px;
    border-radius: 50%;
    border: 1px solid rgba(86, 112, 221, 0.2);
    filter: blur(0.3px);
}

.compat-core {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, rgba(35, 46, 98, 0.95), rgba(20, 30, 70, 0.9));
    box-shadow: 0 0 40px rgba(150, 178, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: rgba(229, 236, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.3;
    backdrop-filter: blur(6px);
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.compat-node {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: rgba(10, 17, 36, 0.72);
    box-shadow: 0 12px 28px rgba(2, 6, 18, 0.6), inset 0 0 24px rgba(137, 157, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 166, 255, 0.35);
    outline: 1px solid rgba(12, 18, 38, 0.6);
    outline-offset: -4px;
}

.compat-node img {
    width: 54px;
    height: 54px;
}

.compat-node:nth-child(2) {
    top: 6%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatNode 7s ease-in-out infinite;
}

.compat-node:nth-child(3) {
    top: 50%;
    right: 2%;
    transform: translate(50%, -50%);
    animation: floatNode 9s ease-in-out infinite;
}

.compat-node:nth-child(4) {
    bottom: 4%;
    left: 50%;
    transform: translate(-50%, 50%);
    animation: floatNode 8s ease-in-out infinite;
}

.compat-node:nth-child(5) {
    top: 50%;
    left: 2%;
    transform: translate(-50%, -50%);
    animation: floatNode 10s ease-in-out infinite;
}

.compat-card {
    background: rgba(12, 20, 42, 0.68);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid rgba(110, 138, 238, 0.32);
    box-shadow: 0 18px 40px rgba(4, 8, 22, 0.6);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 1.2rem;
    width: 100%;
    max-width: 500px;
    min-width: 380px;
    text-align: right;
    direction: rtl;
}

.compat-card h3 {
    font-size: 1.35rem;
    color: rgba(228, 236, 255, 0.92);
}

.compat-card p {
    font-size: 0.98rem;
    color: rgba(204, 214, 255, 0.72);
    line-height: 1.6;
}

.compat-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.compat-logos .db-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.7rem;
    background: rgba(19, 30, 58, 0.9);
    border: 1px solid rgba(118, 140, 233, 0.25);
    position: relative;
    overflow: hidden;
}

.compat-logos img {
    width: 44px;
    height: 44px;
}

.compat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    justify-content: flex-start;
}

.compat-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(57, 76, 162, 0.32);
    color: rgba(225, 232, 255, 0.78);
    font-size: 0.82rem;
}

@keyframes twinkle {
    0% {
        opacity: 0.4;
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.05) translate3d(2%, -3%, 0);
    }
    100% {
        opacity: 0.4;
        transform: scale(1) translate3d(0, 0, 0);
    }
}

@keyframes orbitSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@media (max-width: 968px) {
    .compat-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .compat-intro {
        text-align: center;
    }
    
    .compat-intro p {
        max-width: 100%;
    }
    
    .compat-highlights {
        justify-content: center;
    }
    
    .compat-orbit {
        width: 260px;
        height: 260px;
    }
    
    .compat-node {
        width: 74px;
        height: 74px;
    }
    
    .compat-node img {
        width: 46px;
        height: 46px;
    }
    
    .compat-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .compat-badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .compat-intro h2 {
        font-size: 2.6rem;
    }
    
    .compat-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compat-card {
        padding: 1.4rem;
        text-align: center;
    }
}
/* FOOTER STYLES */
footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%), radial-gradient(circle at 100% 100%, hsla(270, 41%, 41%, 0.03) 0%, transparent 50%), radial-gradient(circle at 0% 0%, hsla(212, 49%, 34%, 0.03) 0%, transparent 50%);
    padding: 5rem 0 1rem 0;
    border-top: 1px solid var(--border-subtle);
    direction: rtl;
}

footer .container {
    padding: 0;
    min-height: auto !important;
    pointer-events: auto;
    direction: rtl;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.link-category {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: right;
}

.link-category h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.link-category a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    pointer-events: auto;
    cursor: pointer;
}

.link-category a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    pointer-events: auto;
    cursor: pointer;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* SWORD METAL EFFECT */
.sword {
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, .8) 0%, rgba(172, 179, 211, 0.9) 100%), linear-gradient(135deg, #ccc 0%, #ccc 45%, #fff 50%, #ccc 55%, #ccc 100%);
    background-blend-mode: multiply;
    background-size: 100% 100%, 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shimmer 25s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -400% 0;
    }
    100% {
        background-position: 400% 0;
    }
}

.dynamic-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(231, 131, 211, 0.95) 0%, rgba(221, 22, 22, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 -1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    margin-bottom: 1rem;
    text-align: right;
}

.footer-attribution {
    text-align: center;
    padding: 2rem 0 1rem 0;
    font-size: 0.7rem;
    opacity: 0.8;
    transition: .2s;
    direction: rtl;
}

.footer-attribution:hover {
    opacity: 1;
}

.footer-attribution a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    pointer-events: auto;
    cursor: pointer;
}

.footer-attribution a:hover {
    opacity: 1;
}

a {
    color: #f3f3fa;
    text-decoration: none;
    opacity: 0.92;
    font-weight: 500;
    transition: color 0.2s, opacity 0.2s, text-decoration 0.2s;
}

a:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
}

canvas {
    position: absolute;
    top: 0;
    right: 0; /* تغییر از left به right */
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-category {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .link-category {
        text-align: right;
    }
    
    .dynamic-title {
        text-align: center;
    }
}
