/* ===========================
   Visimarc — Global Styles
   =========================== */

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #101018;
    --color-bg-card: #14141e;
    --color-surface: #1a1a28;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f0f0f5;
    --color-text-muted: #8a8a9a;
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-accent-glow: rgba(99, 102, 241, 0.15);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1140px;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 24px;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ===========================
   Header
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav a:hover {
    color: var(--color-text);
}

.nav .btn-outline {
    color: var(--color-text);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===========================
   Sphere Animation
   =========================== */

.hero-visual {
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sphere {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: sphere-rotate 25s linear infinite;
}

@keyframes sphere-rotate {
    0%   { transform: rotateX(-25deg) rotateY(0deg); }
    100% { transform: rotateX(-25deg) rotateY(360deg); }
}

/* Wireframe rings */
.sphere-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.18);
    transform-style: preserve-3d;
}

.sphere-ring-1 { transform: rotateY(0deg); }
.sphere-ring-2 { transform: rotateY(36deg); }
.sphere-ring-3 { transform: rotateY(72deg); }
.sphere-ring-4 { transform: rotateY(108deg); }
.sphere-ring-5 { transform: rotateY(144deg); }

/* Horizontal latitude rings */
.sphere-ring::before,
.sphere-ring::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.sphere-ring-1::before {
    transform: translate(-50%, 0) rotateX(90deg) scale(0.95);
    top: 2.5%;
}

.sphere-ring-1::after {
    transform: translate(-50%, 0) rotateX(90deg) scale(0.75);
    top: 12.5%;
}

.sphere-ring-3::before {
    transform: translate(-50%, 0) rotateX(90deg) scale(0.5);
    top: 25%;
}

.sphere-ring-3::after {
    transform: translate(-50%, 0) rotateX(90deg) scale(0.25);
    top: 37.5%;
}

/* Orbital dot particles */
.sphere-ring-1::before {
    animation: ring-shimmer 6s ease-in-out infinite;
}

.sphere-ring-2::before {
    animation: ring-shimmer 6s ease-in-out 1s infinite;
}

.sphere-ring-4::before {
    animation: ring-shimmer 6s ease-in-out 2s infinite;
}

@keyframes ring-shimmer {
    0%, 100% { border-color: rgba(99, 102, 241, 0.06); }
    50%      { border-color: rgba(99, 102, 241, 0.2); }
}

/* Core light */
.sphere-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 20px var(--color-accent),
        0 0 40px rgba(99, 102, 241, 0.4),
        0 0 80px var(--color-accent-glow);
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--color-accent), 0 0 40px rgba(99, 102, 241, 0.4), 0 0 80px var(--color-accent-glow); }
    50%      { box-shadow: 0 0 30px var(--color-accent), 0 0 60px rgba(99, 102, 241, 0.5), 0 0 100px var(--color-accent-glow); }
}

/* Outer glow halo */
.sphere-glow {
    position: absolute;
    inset: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
    animation: sphere-pulse 5s ease-in-out infinite;
}

@keyframes sphere-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

/* Orbiting dots */
.sphere-orbit {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: orbit-spin 8s linear infinite;
}

.sphere-orbit-1 {
    animation-duration: 7s;
    transform: rotateX(70deg) rotateZ(0deg);
}

.sphere-orbit-2 {
    animation-duration: 9s;
    animation-direction: reverse;
    transform: rotateX(40deg) rotateZ(60deg);
}

.sphere-orbit-3 {
    animation-duration: 11s;
    transform: rotateX(110deg) rotateZ(30deg);
}

@keyframes orbit-spin {
    0%   { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--color-accent), 0 0 20px var(--color-accent-glow);
}

.sphere-orbit-2 .orbit-dot {
    width: 4px;
    height: 4px;
    opacity: 0.7;
}

.sphere-orbit-3 .orbit-dot {
    width: 3px;
    height: 3px;
    opacity: 0.5;
}

/* ===========================
   Stats Bar
   =========================== */

.stats {
    padding: 64px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===========================
   Section Shared
   =========================== */

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    line-height: 1.2;
}

/* ===========================
   Services
   =========================== */

.services {
    padding: 120px 0;
    background: var(--color-bg);
}

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: 10px;
    margin-bottom: 24px;
    color: var(--color-accent);
}

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

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.service-list li {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 5px 0 5px 18px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.5;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.8;
    margin-top: -28px;
    margin-bottom: 48px;
}

/* ===========================
   Industries
   =========================== */

.industries {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.industry-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.industry-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    opacity: 0.7;
}

.industry-item span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ===========================
   Process
   =========================== */

.process {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 1px;
    background: var(--color-border);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0.4;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===========================
   Why Choose Us
   =========================== */

.why-us {
    padding: 120px 0;
    background: var(--color-bg);
}

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

.why-card {
    padding: 40px 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.why-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0.35;
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ===========================
   Visual Banner
   =========================== */

.visual-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.visual-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5) saturate(0.8);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--color-bg-alt) 0%,
        transparent 30%,
        transparent 70%,
        var(--color-bg) 100%
    );
}

/* ===========================
   About
   =========================== */

.about {
    padding: 120px 0;
    background: var(--color-bg);
}

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    filter: brightness(0.7) saturate(0.9);
    transition: var(--transition);
}

.about-image:hover img {
    filter: brightness(0.8) saturate(1);
    transform: scale(1.02);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-details {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ===========================
   Contact
   =========================== */

.contact {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

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

.contact-content .section-title {
    margin-bottom: 24px;
}

.contact-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.contact-content .btn {
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: 10px;
    color: var(--color-accent);
}

.contact-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-card-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-card-link {
    transition: var(--transition);
}

.contact-card-link:hover {
    color: var(--color-accent);
}

/* ===========================
   Footer
   =========================== */

.footer {
    padding: 72px 0 40px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 6px;
}

.footer-col a,
.footer-address {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        width: 260px;
        height: 260px;
    }

    .sphere {
        width: 220px;
        height: 220px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-step::after {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 280px;
    }

    .about-details {
        flex-wrap: wrap;
        gap: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visual-banner {
        height: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-bg-alt);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.05rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual {
        width: 200px;
        height: 200px;
    }

    .sphere {
        width: 170px;
        height: 170px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .about-details {
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 220px;
    }

    .visual-banner {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .contact-info {
        padding-top: 0;
    }

    .section-title {
        margin-bottom: 36px;
    }
}
