/* ==========================================================================
   GOLDRAGO SRL - DESPRE NOI (STANDALONE CSS & ASTRA NUCLEAR FIX)
   ========================================================================== */

/* --- 1. THE NUCLEAR FIX: FORȚĂM FUNDALUL DARK ȘI ANULĂM ASTRA --- */
body.goldrago-dark-page {
    --bg-primary: #0f1419;
    --bg-secondary: #141920;
    --bg-card: #1a1f26;
    --bg-card-hover: #22282f;
    --gold: #d4a853;
    --gold-light: #e8c468;
    --gold-dim: rgba(212, 168, 83, 0.15);
    --gold-glow: rgba(212, 168, 83, 0.25);
    --green-accent: #10B981;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-subtle: rgba(212, 168, 83, 0.12);
    --border-active: rgba(212, 168, 83, 0.35);
    --gradient-gold: linear-gradient(135deg, #b8892e, #d4a853);
    --font-main: 'Sora', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.12);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.goldrago-dark-page,
body.goldrago-dark-page .site,
body.goldrago-dark-page .site-content,
body.goldrago-dark-page .ast-container,
body.goldrago-dark-page #primary,
body.goldrago-dark-page #content,
body.goldrago-dark-page .ast-plain-container {
    background-color: var(--bg-primary) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    font-family: var(--font-main) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    line-height: 1.7 !important;
}

/* Ascundem Titlurile de pagină și Header/Footer meta generate de Astra */
body.goldrago-dark-page .ast-post-title,
body.goldrago-dark-page .ast-breadcrumbs-wrapper,
body.goldrago-dark-page .entry-header {
    display: none !important;
}

/* --- 2. GLOBAL UTILITIES PENTRU PAGINA DESPRE NOI --- */
#goldrago-about-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 10;
}

/* Reset liste */
#goldrago-about-page ul,
#goldrago-about-page ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

body.goldrago-dark-page .container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    display: block !important;
}

body.goldrago-dark-page .text-center {
    text-align: center;
}

body.goldrago-dark-page .mb-4 {
    margin-bottom: 1.5rem;
}

body.goldrago-dark-page .section-label {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.goldrago-dark-page .section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold);
}

body.goldrago-dark-page .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

body.goldrago-dark-page .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.7;
}

body.goldrago-dark-page .gradient-text {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- BUTOANE --- */
body.goldrago-dark-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    border: none;
}

body.goldrago-dark-page .btn--primary {
    background: var(--gradient-gold);
    color: #0f1419;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}

body.goldrago-dark-page .btn--primary:hover {
    box-shadow: 0 8px 40px rgba(212, 168, 83, 0.4);
    transform: translateY(-2px);
}

body.goldrago-dark-page .btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-active);
}

body.goldrago-dark-page .btn--outline:hover {
    background: rgba(212, 168, 83, 0.06);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* --- ANIMATII REVEAL --- */
body.goldrago-dark-page .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.goldrago-dark-page .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body.goldrago-dark-page .reveal-delay-1 {
    transition-delay: 0.1s;
}

body.goldrago-dark-page .reveal-delay-2 {
    transition-delay: 0.2s;
}

body.goldrago-dark-page .reveal-delay-3 {
    transition-delay: 0.3s;
}

/* --- BACKGROUND EFFECTS --- */
body.goldrago-dark-page .bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(212, 168, 83, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

body.goldrago-dark-page .bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

body.goldrago-dark-page .bg-orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 168, 83, 0.06);
    top: -100px;
    right: -100px;
}

body.goldrago-dark-page .bg-orb--2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 83, 0.04);
    bottom: 20%;
    left: -150px;
}

body.goldrago-dark-page .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease;
    will-change: transform;
}

/* --- ISOMETRIC CUBE PATTERN DIVIDER & SECTIONS --- */
body.goldrago-dark-page .cube-divider {
    width: 100%;
    height: 120px;
    background-color: #141920;
    background-image:
        linear-gradient(30deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(150deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(30deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(150deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(60deg, #1a1f26 25%, transparent 25.5%, transparent 75%, #1a1f26 75%, #1a1f26),
        linear-gradient(60deg, #1a1f26 25%, transparent 25.5%, transparent 75%, #1a1f26 75%, #1a1f26);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

body.goldrago-dark-page .cube-section {
    position: relative;
    z-index: 1;
    background-color: #111820;
    background-image:
        linear-gradient(30deg, rgba(30,35,41,0.5) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.5) 87.5%),
        linear-gradient(150deg, rgba(30,35,41,0.5) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.5) 87.5%),
        linear-gradient(30deg, rgba(30,35,41,0.5) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.5) 87.5%),
        linear-gradient(150deg, rgba(30,35,41,0.5) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.5) 87.5%),
        linear-gradient(60deg, rgba(26,31,38,0.5) 25%, transparent 25.5%, transparent 75%, rgba(26,31,38,0.5) 75%),
        linear-gradient(60deg, rgba(26,31,38,0.5) 25%, transparent 25.5%, transparent 75%, rgba(26,31,38,0.5) 75%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    border-top: 1px solid rgba(212, 168, 83, 0.08);
    border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

body.goldrago-dark-page .cube-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.goldrago-dark-page .cube-section > .container {
    position: relative;
    z-index: 1;
}

/* --- 3. SECTIUNEA HERO DESPRE NOI --- */
.about-hero {
    position: relative;
    z-index: 1;
    padding: 180px 0 80px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    /* Cube pattern hero background */
    background-color: #111820;
    background-image:
        linear-gradient(30deg, rgba(30,35,41,0.4) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.4) 87.5%),
        linear-gradient(150deg, rgba(30,35,41,0.4) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.4) 87.5%),
        linear-gradient(30deg, rgba(30,35,41,0.4) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.4) 87.5%),
        linear-gradient(150deg, rgba(30,35,41,0.4) 12%, transparent 12.5%, transparent 87%, rgba(30,35,41,0.4) 87.5%),
        linear-gradient(60deg, rgba(26,31,38,0.4) 25%, transparent 25.5%, transparent 75%, rgba(26,31,38,0.4) 75%),
        linear-gradient(60deg, rgba(26,31,38,0.4) 25%, transparent 25.5%, transparent 75%, rgba(26,31,38,0.4) 75%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.about-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__bg-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.circuit-line {
    stroke: rgba(212, 168, 83, 0.12);
    stroke-width: 1;
    fill: none;
}

.circuit-dot {
    fill: var(--gold);
    opacity: 0;
    animation: circuit-pulse 4s ease-in-out infinite;
}

@keyframes circuit-pulse {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}

/* --- 3.5 SECTIUNEA EVOLUȚIE & DIGITALIZARE --- */
.about-evolution {
    position: relative;
    z-index: 1;
    padding: 60px 0 80px;
}

.evolution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background: rgba(15, 20, 25, 0.6);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.tech-tag {
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.15);
    color: var(--gold-light);
    padding: 10px 18px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    background: var(--gold);
    color: #0f1419;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.25);
    border-color: var(--gold);
}

/* --- 4. SECTIUNEA VALORI --- */
.about-values {
    position: relative;
    z-index: 1;
    padding: 80px 0 100px;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(26, 31, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover,
.service-card--active {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before,
.service-card--active::before {
    opacity: 1;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

/* --- 5. SECTIUNEA COMPANIE (INFO & TERMINAL) --- */
.about-company {
    position: relative;
    z-index: 1;
    padding: 80px 0 120px;
}

.company__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.company__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.company-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(212, 168, 83, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.company-feature:hover {
    background: rgba(212, 168, 83, 0.06);
    border-color: var(--border-subtle);
}

.company-feature__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
}

.company-feature__text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company-feature__text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-main);
    margin: 0;
}

/* Design Terminal UI Specific */
.visual-terminal {
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-close {
    background: #EF4444;
}

.dot-min {
    background: #F59E0B;
}

.dot-max {
    background: #10B981;
}

.terminal-body {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text-muted);
    margin-bottom: 6px;
}

.terminal-line .cmd {
    color: var(--green-accent);
}

.terminal-line .path {
    color: var(--gold-light);
}

.terminal-line .ok {
    color: var(--green-accent);
    margin-right: 8px;
}

.terminal-line.sub-line {
    color: var(--text-secondary);
    padding-left: 16px;
    font-style: italic;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--gold);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- 6. CALL TO ACTION --- */
.about-cta {
    position: relative;
    z-index: 1;
    padding: 40px 0 120px;
}

.cta__box {
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Cube pattern CTA */
    background-color: #141920;
    background-image:
        linear-gradient(30deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(150deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(30deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(150deg, #1e2329 12%, transparent 12.5%, transparent 87%, #1e2329 87.5%, #1e2329),
        linear-gradient(60deg, #1a1f26 25%, transparent 25.5%, transparent 75%, #1a1f26 75%, #1a1f26),
        linear-gradient(60deg, #1a1f26 25%, transparent 25.5%, transparent 75%, #1a1f26 75%, #1a1f26);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

.cta__box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta__box .section-title,
.cta__desc,
.cta__actions {
    position: relative;
    z-index: 1;
}

.cta__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 1024px) {
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company__grid,
    .evolution__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-hero {
        padding: 140px 0 60px;
    }
}

@media (max-width: 768px) {
    .values__grid {
        grid-template-columns: 1fr;
    }

    .cta__box {
        padding: 60px 30px;
    }

    .hero__bg-circuit {
        display: none;
    }
}

@media (max-width: 480px) {
    .cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta__actions .btn {
        width: 100%;
    }

    .company-feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}