/* ============================================ */
/* RIELART - MAIN STYLESHEET (REBUILT)          */
/* ============================================ */

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00D9FF, #0066FF);
    border-radius: 4px;
}

/* ---- Glassmorphism Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.15);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glow Effects ---- */
.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.glow-text {
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
}

/* Prevent hyphenation in hero headline */
.hero-headline {
    -webkit-hyphens: none;
    hyphens: none;
}

/* ---- Button Styles ---- */
/* Primary: solid blue gradient */
.btn-primary {
    background: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    color: #000000;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Secondary: ghost/outline */
.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #00D9FF;
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

/* ---- Navigation ---- */
#navbar {
    background: transparent;
}

#navbar.nav-blur {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Hero Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* ---- Particle Background ---- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 217, 255, 0.5);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ---- Hover Lift Effect ---- */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.3);
}

/* ---- Service Group Cards ---- */
.service-group-card {
    transform-style: preserve-3d;
}

#brand-web-card {
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 217, 255, 0.06);
}

#brand-web-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 20px 70px rgba(0, 217, 255, 0.15);
}

#ai-setup-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#ai-setup-card:hover {
    border-color: rgba(0, 217, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.12);
}

.service-group-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    border-radius: 20px;
}

.service-group-card:hover::after {
    left: 100%;
}

/* Sub-service items */
.sub-service {
    transition: all 0.3s ease;
}

/* ---- Chooser Cards ---- */
.chooser-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chooser-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.12);
}

/* ---- Result Cards ---- */
.result-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Project Card ---- */
.project-card {
    overflow: hidden;
    position: relative;
}

.project-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

/* ---- FAQ Accordion ---- */
.faq-item {
    transition: all 0.3s ease;
}

.faq-trigger {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}

.faq-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-content:not(.hidden) {
    animation: faq-slide-down 0.3s ease;
}

@keyframes faq-slide-down {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.faq-icon.rotate-45 {
    transform: rotate(45deg);
}

/* ---- Input Focus ---- */
.input-glow:focus {
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    outline: none;
}

/* ---- Reveal Animation Classes ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ---- Tag/Pill ---- */
.tag {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #00D9FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---- Process Node ---- */
.process-node {
    transition: all 0.4s ease;
}

.process-node.active {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    transform: scale(1.1);
}

/* ---- Footer Link Hover ---- */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00D9FF, #0066FF);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #00D9FF;
}

.footer-link:hover::after {
    width: 100%;
}

/* ---- Section Label ---- */
.section-label {
    color: #00D9FF;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---- Footer Main ---- */
.footer-main {
    background: rgba(0, 0, 0, 0.5);
}

/* ---- Founder Strip ---- */
#founder {
    background: rgba(10, 22, 40, 0.3);
}

/* ---- Scroll Indicator Animation ---- */
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-float {
        animation: none;
    }

    .particle {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.25rem !important;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .service-group-card {
        padding: 1.5rem !important;
    }

    /* CTA buttons stack */
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas a {
        justify-content: center;
    }

    /* Stats wrap better */
    .hero-stats {
        gap: 1rem !important;
    }
}

/* ---- Focus States for Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #00D9FF;
    outline-offset: 2px;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: #FFFFFF;
}

/* ---- Screen Reader Only ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================ */
/* BLOG SECTION                                 */
/* ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.15);
    transform: translateY(-4px);
}

.blog-tag {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00D9FF;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-weight: 600;
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.3;
}

.blog-card p {
    color: #B0B0B0;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-cta {
    font-weight: 600;
    font-size: 14px;
    color: #00D9FF;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-cta {
    color: #0066FF;
}

/* ---- Content Visibility for Performance ---- */
section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Don't apply to hero (above fold) */


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    section {
        content-visibility: visible;
    }
}

/* Explicit 3D visual container */
#hero .hero-3d-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

@media (max-width: 1023px) {
    #hero .hero-3d-visual {
        display: none;
    }
}

/* ================= NEW HERO SECTION ================= */
/* Orbital design adapted for rielart cyan/blue theme */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Gradient */
#hero .bg-gradient-radial {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00D9FF;
    border-radius: 50%;
    opacity: 0.4;
    bottom: -10px;
    animation: hero-particle-float 14s infinite linear;
}

@keyframes hero-particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-110vh) translateX(25px);
        opacity: 0;
    }
}

/* 3D Visual System */
.hero-3d-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 48px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-3d-visual {
        height: 400px;
        max-width: 600px;
        margin-bottom: 56px;
    }
}

.hero-orbital-system {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Central Core */
.hero-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.hero-core-inner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-core-inner {
        width: 100px;
        height: 100px;
    }
}

.hero-core-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0066FF, #00D9FF);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), 0 0 60px rgba(0, 102, 255, 0.2);
    position: relative;
    z-index: 3;
    animation: hero-core-pulse 3s ease-in-out infinite;
}

.hero-core-icon svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .hero-core-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
    .hero-core-icon svg {
        width: 30px;
        height: 30px;
    }
}

@keyframes hero-core-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), 0 0 60px rgba(0, 102, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.5), 0 0 80px rgba(0, 102, 255, 0.3);
    }
}

.hero-core-ring {
    position: absolute;
    inset: -12px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    animation: hero-ring-spin 8s linear infinite;
}

.hero-core-ring-2 {
    position: absolute;
    inset: -24px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 32px;
    animation: hero-ring-spin 12s linear infinite reverse;
}

@keyframes hero-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbital Nodes */
.hero-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 15;
    animation: hero-node-float 5s ease-in-out infinite;
}

.hero-node-bg {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 102, 255, 0.1));
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D9FF;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
    transition: all 0.3s ease;
}

.hero-node-bg svg {
    width: 18px;
    height: 18px;
}

.hero-node:hover .hero-node-bg {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 102, 255, 0.2));
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.25);
}

@media (min-width: 768px) {
    .hero-node-bg {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .hero-node-bg svg {
        width: 22px;
        height: 22px;
    }
}

.hero-node-label {
    font-size: 11px;
    font-weight: 600;
    color: #B0B0B0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Node Positions - Diamond Layout (4 corners) */
.hero-node-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.hero-node-2 {
    top: 15%;
    right: 15%;
    animation-delay: 0.8s;
}

.hero-node-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: 1.6s;
}

.hero-node-4 {
    bottom: 15%;
    left: 15%;
    animation-delay: 2.4s;
}



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

/* Connection Lines SVG */
.hero-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.hero-line {
    stroke: rgba(0, 217, 255, 0.15);
    stroke-width: 1;
    stroke-dasharray: 4,4;
    animation: hero-line-pulse 3s ease-in-out infinite;
}

@keyframes hero-line-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Central Glow */
.hero-central-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.12) 0%, rgba(0, 102, 255, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: hero-glow-breathe 4s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-central-glow {
        width: 280px;
        height: 280px;
    }
}

@keyframes hero-glow-breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 100px;
    padding: 8px 20px;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    color: #00D9FF;
    letter-spacing: 0.02em;
}

/* Headline */
.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 8vw, 90px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-headline-white {
    color: #FFFFFF;
}

.hero-headline-gradient {
    background: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Subheadline */
.hero-subheadline {
    font-size: clamp(16px, 2vw, 20px);
    color: #B0B0B0;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-subheadline strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* CTA Row */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-btn-primary {
    padding: 14px 32px;
    font-size: 15px;
}

.hero-btn-secondary {
    padding: 14px 32px;
    font-size: 15px;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 60px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stat svg {
    flex-shrink: 0;
}

.hero-stat-label {
    font-size: 14px;
    color: #B0B0B0;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 217, 255, 0.3);
    animation: bounce 2s ease infinite;
    z-index: 5;
}

/* Responsive */
@media (max-width: 480px) {
    #hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }

    .hero-3d-visual {
        height: 260px;
        margin-bottom: 36px;
    }

    .hero-node-bg {
        width: 38px;
        height: 38px;
    }

    .hero-node-bg svg {
        width: 15px;
        height: 15px;
    }

    .hero-node-label {
        font-size: 10px;
    }

    .hero-core-inner {
        width: 64px;
        height: 64px;
    }

    .hero-core-icon {
        width: 44px;
        height: 44px;
    }

    .hero-core-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1024px) {
    .hero-3d-visual {
        max-width: 700px;
        height: 450px;
    }

    .hero-stats {
        gap: 64px;
    }
}

/* ---- Override old hero styles that might conflict ---- */
#hero .hero-headline {
    -webkit-hyphens: none;
    hyphens: none;
}