@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* --- CSS Variables & Theme --- */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141417;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #00f2fe; /* Cyan matching Gyuki */
    --accent-secondary: #4facfe;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Interactive cursor variables, updated by JS */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body[dir="rtl"] {
    font-family: 'Cairo', var(--font-sans);
    text-align: right;
}

body[dir="rtl"] .desktop-nav, body[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

/* --- Header Icons --- */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
}
body[dir="rtl"] .header-icons {
    margin-right: 0;
    margin-left: 1.5rem;
}
.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}
.icon-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.lang-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(20, 20, 23, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
    backdrop-filter: blur(10px);
}
.lang-dropdown {
    position: relative;
}
.lang-dropdown:hover .lang-menu {
    display: flex;
}
.lang-option {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
}
body[dir="rtl"] .lang-option {
    text-align: right;
}
body[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}
.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* --- Interactive Background --- */
.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 242, 254, 0.05),
        transparent 40%
    );
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.font-mono {
    font-family: var(--font-mono);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px rgba(0, 242, 254, 0.5);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s ease-out;
    cursor: pointer;
    border: 1px solid transparent;
    will-change: transform, box-shadow, background-position;
}

.btn-primary {
    background: linear-gradient(45deg, #FF9A44 0%, #00f2fe 50%, #FF9A44 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background-position: right center;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 90vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* --- 3D Tilt Visual (Gyuki) --- */
.hero-visual {
    flex: 1;
    perspective: 1000px; /* Enable 3D space */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tilt-element {
    width: 100%;
    max-width: 400px;
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-panel {
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.extension-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Add a 3D pop-out effect to children */
.extension-mockup > * {
    transform: translateZ(30px);
}

.gyuki-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.gyuki-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.gyuki-badge span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.extension-ui {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fallback-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fake-search {
    width: 100%;
    height: 40px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
}

.fake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fake-btn {
    height: 50px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: -20px; right: 20px; animation-delay: 0s; }
.icon-2 { bottom: 40px; left: -20px; animation-delay: 2s; }
.icon-3 { bottom: -10px; right: 40px; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Sections --- */
.section {
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 4rem;
}

.dark-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255,255,255,0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* --- Split Layout (Little Managers) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.check {
    color: var(--accent-primary);
    font-weight: bold;
}

/* Chat Mockup */
.chat-mockup {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
}

.chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 250px;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 20px;
    max-width: 80%;
    font-size: 0.95rem;
}

.chat-bubble.ai {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-bubble.user {
    background: var(--text-primary);
    color: var(--bg-primary);
    align-self: flex-end;
    border-top-right-radius: 0;
}

.typing .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    margin-right: 3px;
    animation: blink 1.4s infinite both;
}

.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
}

.chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    outline: none;
}

.send-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 20px;
    padding: 0 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand .company-info {
    color: var(--text-secondary);
    margin-top: 1rem;
}
.footer-brand .designer-info {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.link-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Scroll Reveal Animations --- */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="bottom"] { transform: translateY(60px); }
[data-reveal="fade"] { transform: scale(0.95); }

[data-reveal].reveal-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 8rem 2rem;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    position: absolute;
    width: 320px;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring effect */
    z-index: 1;
    text-align: left;
    backdrop-filter: blur(10px);
}

/* Initial stacked state */
.testimonial-card:nth-child(1) { transform: rotate(-5deg) scale(0.9) translateY(10px); z-index: 1; }
.testimonial-card:nth-child(2) { transform: rotate(2deg) scale(0.95) translateY(5px); z-index: 2; }
.testimonial-card:nth-child(3) { transform: rotate(-1deg) scale(1) translateY(0); z-index: 3; box-shadow: 0 15px 40px rgba(0, 242, 254, 0.1); }

/* Spread active state */
.spread-active .testimonial-card:nth-child(1) {
    transform: translateX(-350px) rotate(-3deg) scale(1);
}
.spread-active .testimonial-card:nth-child(2) {
    transform: translateX(0) rotate(0deg) scale(1.05);
    z-index: 5; /* Bring center to front */
}
.spread-active .testimonial-card:nth-child(3) {
    transform: translateX(350px) rotate(3deg) scale(1);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-primary);
}

.author-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.author-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .spread-active .testimonial-card:nth-child(1) { transform: translateY(-340px) rotate(-2deg); }
    .spread-active .testimonial-card:nth-child(2) { transform: translateY(0) scale(1.05); z-index: 5;}
    .spread-active .testimonial-card:nth-child(3) { transform: translateY(340px) rotate(2deg); }
    
    .testimonials-container {
        height: 1000px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .split-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
}


/* --- Testimonials 3D Ring Section --- */
.testimonials-section {
    padding: 8rem 5%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.testimonials-ring {
    position: relative;
    width: 380px;
    height: 420px;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: rotateX(0deg) rotateY(0deg);
}

.spread-active .testimonials-ring {
    transform: rotateX(-5deg) rotateY(0deg);
    animation: ringRotate 40s linear infinite;
}

@keyframes ringRotate {
    0% { transform: rotateX(-5deg) rotateY(0deg); }
    100% { transform: rotateX(-5deg) rotateY(360deg); }
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    transform: translate(-50%, -50%) translateZ(0px) rotateY(0deg);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s;
    opacity: 0;
    backface-visibility: hidden;
}

.front-card {
    background: rgba(15, 15, 20, 0.85);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.front-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 21px;
    background: linear-gradient(45deg, #00f2fe, #4facfe, #ff0844);
    z-index: -1;
}

.testimonial-content {
    position: relative;
}

.platform-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.author-info h4 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* 5 Foreground Cards */
.spread-active .front-card:nth-child(1) { opacity: 1; transform: rotateY(0deg) translateZ(480px); }
.spread-active .front-card:nth-child(2) { opacity: 1; transform: rotateY(72deg) translateZ(480px); }
.spread-active .front-card:nth-child(3) { opacity: 1; transform: rotateY(144deg) translateZ(480px); }
.spread-active .front-card:nth-child(4) { opacity: 1; transform: rotateY(216deg) translateZ(480px); }
.spread-active .front-card:nth-child(5) { opacity: 1; transform: rotateY(288deg) translateZ(480px); }

/* Background Cards */
.background-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-card .testimonial-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-align: center;
}

.spread-active .background-card:nth-child(6) { opacity: 0.5; transform: rotateY(36deg) translateZ(320px) scale(0.7); }
.spread-active .background-card:nth-child(7) { opacity: 0.5; transform: rotateY(108deg) translateZ(320px) scale(0.7); }
.spread-active .background-card:nth-child(8) { opacity: 0.5; transform: rotateY(180deg) translateZ(320px) scale(0.7); }
.spread-active .background-card:nth-child(9) { opacity: 0.5; transform: rotateY(252deg) translateZ(320px) scale(0.7); }
.spread-active .background-card:nth-child(10) { opacity: 0.5; transform: rotateY(324deg) translateZ(320px) scale(0.7); }
.spread-active .background-card:nth-child(11) { opacity: 0.3; transform: rotateY(15deg) translateZ(220px) scale(0.5); }
.spread-active .background-card:nth-child(12) { opacity: 0.3; transform: rotateY(95deg) translateZ(220px) scale(0.5); }
.spread-active .background-card:nth-child(13) { opacity: 0.3; transform: rotateY(190deg) translateZ(220px) scale(0.5); }

.testimonials-badge {
    position: absolute;
    bottom: 0;
    right: 5%;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 10;
}

@media (max-width: 900px) {
    .testimonials-container { height: 1200px; }
    .spread-active .testimonials-ring { animation: none; transform: rotateX(0) rotateY(0); }
    .spread-active .front-card:nth-child(1) { transform: translateY(-400px) rotate(-2deg); }
    .spread-active .front-card:nth-child(2) { transform: translateY(-200px) rotate(1deg); z-index: 2; }
    .spread-active .front-card:nth-child(3) { transform: translateY(0) scale(1.05); z-index: 3; }
    .spread-active .front-card:nth-child(4) { transform: translateY(200px) rotate(-1deg); z-index: 2; }
    .spread-active .front-card:nth-child(5) { transform: translateY(400px) rotate(2deg); }
    .background-card { display: none; }
}

.header-icons { margin-left: 1.5rem; }

/* Adjust logo spacing */
.logo { flex: 1; margin-right: 0; display: flex; align-items: center; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; flex: 1; }
.desktop-nav { flex: 2; display: flex; justify-content: center; align-items: center; gap: 1rem; }

/* Animate logo text color */
.logo-text {
    animation: colorCycle 6s infinite;
}

@keyframes colorCycle {
    0% { color: var(--accent-primary); }
    33% { color: orange; }
    66% { color: white; }
    100% { color: var(--accent-primary); }
}


/* Animated glowing button */
.btn-animated-glow {
    background: linear-gradient(45deg, var(--accent-primary), orange, white, var(--accent-primary));
    background-size: 300% 300%;
    animation: gradientCycle 4s ease infinite;
    color: var(--bg-dark);
    font-weight: bold;
    border: none;
    box-shadow: 0 0 15px var(--accent-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-animated-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px orange;
}

@keyframes gradientCycle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* --- NEW FLOATING RAYCAST-STYLE HEADER --- */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container-floating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.desktop-nav-floating {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav-floating .nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.desktop-nav-floating .nav-link:hover {
    color: var(--text-primary);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Responsive adjustments for header */
@media (max-width: 900px) {
    .desktop-nav-floating { display: none; }
    .floating-header { padding: 0.5rem 1rem; border-radius: 12px; top: 10px; width: 95%; }
}

/* =========================================
   NEW MAC-OS TERMINAL SECTIONS
   ========================================= */
.terminal-section {
    padding: 6rem 2rem;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terminal-section .section-container {
    max-width: 100%;
    width: 100%;
}

/* Red Interactive Grid */
.interactive-bg-container {
    background-color: #0a0a0c;
}
.interactive-red-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    display: grid;
    opacity: 0.3;
}
.grid-cell {
    border: 1px solid rgba(255, 0, 0, 0.05);
    transition: background-color 0.8s ease;
}
.grid-cell:hover {
    background-color: rgba(255, 0, 0, 0.6);
    transition: background-color 0s;
}

/* MacOS Window Shell */
.macos-window {
    background: rgba(10, 10, 15, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}


.macos-titlebar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(40, 40, 45, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.macos-buttons {
    display: flex;
    gap: 8px;
}

.macos-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.macos-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.macos-actions {
    margin-left: auto;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    gap: 12px;
}

.macos-content {
    padding: 2rem;
    min-height: 400px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    position: relative;
}

.prompt {
    color: #ff5f56;
    font-weight: bold;
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Section 1 Specifics */
.terminal-text-container {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.terminal-text-container.slide-out {
    transform: translateX(100px);
    opacity: 0;
}

.terminal-images-container {
    position: absolute;
    top: 2rem; left: 2rem; right: 2rem; bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.term1-img-wrapper {
    position: absolute;
    width: 60%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.8s ease;
}
.term1-img-wrapper img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.term1-img-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

/* Section 2 Specifics */
.split-layout-terminal {
    display: flex;
    gap: 2rem;
    min-height: 400px;
}
.terminal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.terminal-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}
.term-line {
    margin-bottom: 1rem;
    min-height: 1.6em;
}

/* Flip Image Container */
.flip-image-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    opacity: 0;
}
.flip-image-container.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}
.flip-image-container.flipped {
    transform: rotateY(180deg);
}

.flip-image-front, .flip-image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.flip-image-front img, .flip-image-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flip-image-back {
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .split-layout-terminal {
        flex-direction: column;
    }
    .term1-img-wrapper {
        width: 100%;
    }
    .terminal-images-container {
        flex-direction: column;
        top: 0; left: 0; right: 0; bottom: 0;
        position: relative;
        padding-top: 2rem;
    }
}

/* =========================================
   INTEGRATIONS / PLATFORMS MARQUEE SECTION
   ========================================= */
.integrations-section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    background: #0a0a0c;
}

.integrations-header {
    text-align: center;
    margin-bottom: 4rem;
}
.integrations-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.integrations-header p {
    font-size: 1.1rem;
    color: #888;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    padding-left: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.integration-card {
    flex: 0 0 auto;
    width: 320px;
    height: 420px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}
.integration-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    z-index: 2;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.8rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.integration-card:hover .card-arrow {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.card-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 2rem;
    z-index: 2;
}

.card-visual {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
}
.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.integration-card:hover .card-visual img {
    transform: scale(1.05);
    opacity: 1;
}

/* Fallback icons styling */
.icon-fallback {
    align-items: center !important;
    bottom: 0 !important;
}
.icon-fallback i {
    font-size: 9rem;
    opacity: 0.6;
    filter: drop-shadow(0 0 30px currentColor);
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}
.integration-card:hover .icon-fallback i {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 50px currentColor);
}
.fallback-android { color: #3DDC84; }
.fallback-linux { color: #ffffff; }
.fallback-windows { color: #0078D6; }

/* Orbital Animation Images */
#term1-orbit-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-img {
    position: absolute;
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 210, 255, 0.8);
    box-shadow: 
        0 0 15px rgba(0, 210, 255, 0.5), 
        inset 0 0 10px rgba(0, 210, 255, 0.3), 
        0 10px 30px rgba(0, 0, 0, 0.8);
    top: 50%;
    left: 50%;
    transition: filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity, z-index;
}

.orbit-img:hover {
    filter: brightness(1.3) contrast(1.1);
    border-color: rgba(0, 255, 255, 1);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.8), 
        inset 0 0 15px rgba(0, 255, 255, 0.5), 
        0 10px 30px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Keyboard Section */
.keyboard-section {
    background-color: transparent;
    border: none;
    padding-top: 1rem !important;
    padding-bottom: 6rem !important;
}

.keyboard-base {
    background: #111;
    padding: 24px;
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
}

.rgb-keyboard {
    animation: rgb-glow 5s linear infinite;
}

@keyframes rgb-glow {
    0%   { box-shadow: 0 0 20px rgba(255,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1); }
    33%  { box-shadow: 0 0 20px rgba(0,255,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1); }
    66%  { box-shadow: 0 0 20px rgba(0,0,255,0.5), inset 0 1px 1px rgba(255,255,255,0.1); }
    100% { box-shadow: 0 0 20px rgba(255,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1); }
}

.key-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.key {
    background: #222;
    color: #888;
    border-radius: 8px;
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    position: relative;
    border: 1px solid #1a1a1a;
}

.key:hover {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.key:active {
    transform: translateY(4px);
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.key-sm { width: 50px; }
.key-md { width: 75px; }
.key-lg { width: 90px; }
.key-xl { width: 110px; }
.key-xxl { width: 130px; }
.key-half { height: 28px; width: 60px; font-size: 12px; }
.key-arrows { display: flex; flex-direction: column; gap: 4px; }
.key-arrows-bottom { display: flex; gap: 10px; }

/* Special Link Keys */
.link-key {
    color: #fff;
    font-weight: bold;
    border-color: rgba(255, 255, 255, 0.2);
    animation: rgb-text-glow 3s linear infinite;
}

@keyframes rgb-text-glow {
    0% { text-shadow: 0 0 5px red; border-color: rgba(255,0,0,0.5); }
    33% { text-shadow: 0 0 5px lime; border-color: rgba(0,255,0,0.5); }
    66% { text-shadow: 0 0 5px blue; border-color: rgba(0,0,255,0.5); }
    100% { text-shadow: 0 0 5px red; border-color: rgba(255,0,0,0.5); }
}

.link-key:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.link-key:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    z-index: 100;
}

/* Spacebar specific styles */
.spacebar {
    width: 400px;
    border: 2px solid #00f2fe; /* The blue box the user drew */
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.2);
    animation: none;
}

.spacebar-text {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.spacebar:hover {
    border-color: #4facfe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8), inset 0 0 15px rgba(0, 242, 254, 0.4);
}

.keyboard-wire {
    position: absolute;
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100px;
    z-index: -1;
}
