/*
Theme Name: Rubesoft AI
*/
:root {
    --bg-base: #0a0f1d;
    --bg-surface: rgba(18, 25, 43, 0.6);
    --bg-surface-hover: rgba(26, 36, 60, 0.8);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-1: #3b82f6; 
    --accent-2: #8b5cf6; 
    --glow-color: rgba(59, 130, 246, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glassmorphic, .glass-card, .glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    position: relative;
    z-index: 1;
}

.btn-primary.glow-effect:hover {
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary.glass-btn {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
}
.btn-secondary.glass-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 15, 29, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.logo .accent-text {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.main-navigation a {
    color: var(--text-muted);
    font-weight: 600;
}
.main-navigation a:hover {
    color: #fff;
}
.mobile-menu-toggle { display: none; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Blobs */
.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: var(--accent-2);
}
.blob-2 {
    bottom: -10%; right: -10%;
    width: 500px; height: 500px;
    background: var(--accent-1);
}
.blob-3 {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 400px;
    background: rgba(139, 92, 246, 0.4);
}

/* Sections */
.section-padding { padding: 8rem 0; }
.page-padding { padding: 10rem 0 6rem; }
.section-title { margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; }
.section-title p { color: var(--text-muted); font-size: 1.2rem; }
.text-center { text-align: center; }

.grid {
    display: grid;
    gap: 2rem;
}
.solutions-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; }

/* Tech Stack Demo */
.split-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.feature-list { list-style: none; margin-top: 2rem; }
.feature-list li { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.8rem; }
.feature-list span { color: var(--accent-1); font-weight: bold; background: rgba(59,130,246,0.1); padding: 0.2rem 0.5rem; border-radius: 5px; }

/* Integration demo */
.integration-demo {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.node {
    padding: 1.2rem 2.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.node.ai-core {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--accent-2);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}
.connection {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.connection::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-1), transparent);
    animation: flowData 2s infinite;
}
.connection.delay::after { animation-delay: 1s; }

@keyframes flowData {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}
.animate-fade-in {
    opacity: 0;
}
.in-view {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in-view {
    animation: fadeIn 1s forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Forms */
input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.08);
}

/* Footer */
.site-footer {
    background: rgba(10, 15, 29, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5rem 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-widget h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-widget p { color: var(--text-muted); }
.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 0.8rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover { background: var(--accent-1); border-color: var(--accent-1); color: white; }
.site-info {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.full-center { display: flex; align-items: center; justify-content: center; text-align: center;}

/* Slider CSS */
.hero { position: relative; }
.hero-slider, .slider-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.hero-slider .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.slider-overlay {
    background: linear-gradient(to right, var(--bg-base) 10%, rgba(10,15,29,0.75) 100%);
    z-index: -1;
}

/* Modal CSS */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-surface); max-width: 600px; width: 90%;
    padding: 3rem; position: relative; border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px); transition: var(--transition);
}
.modal-overlay.open .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute; top: 1.5rem; right: 2rem;
    background: transparent; border: none; color: var(--text-muted);
    font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.close-modal:hover { color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.w-100 { width: 100%; }
.form-response { margin-top: 1rem; font-size: 1rem; text-align: center; }
.form-response span { font-weight: 600; }

/* Responsive */
@media (max-width: 992px) {
    .split-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .main-navigation { display: none; }
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-toggle .bar {
        display: block;
        width: 25px; height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: all 0.3s ease-in-out;
    }
}
