/* =========================
   SCYPLS HEADER
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f8;
}

html {
    margin: 0;
    padding: 0;
}


.site-footer {
    margin-top: 0 !important;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(90deg, #1f2428, #2c3238);
    padding: 18px 0;
    border-bottom: 1px solid #3a4148;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4d8dd;
    text-decoration: none;
}

.logo a:hover {
    color: #ffffff;
}

.main-nav a {
    margin: 0 18px;
    text-decoration: none;
    color: #aab2bb;
    font-weight: 500;
    transition: 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.btn-calc {
    padding: 10px 18px;
    background: #4b545c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s ease;
}

.btn-calc:hover {
    background: #6c757d;
}


/* =========================
   SCYPLS FOOTER
========================= */

.site-footer {
    background: linear-gradient(90deg, #1b1f23, #24292e);
    color: #c9d1d9;
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #30363d;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #8b949e;
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid #30363d;
    font-size: 14px;
    color: #8b949e;
}

/* Language Switch */

.lang-switch select {
    background: #2c3238;
    color: #ffffff;
    border: 1px solid #444c56;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.lang-switch select:focus {
    outline: none;
    border-color: #6c757d;
}


/* =========================
   SCYPLS HERO
========================= */

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.85), rgba(15, 20, 25, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #c9d1d9;
    margin-bottom: 35px;
}

.hero-buttons a {
    margin-right: 15px;
}

.btn-primary {
    padding: 12px 24px;
    background: #4b545c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #6c757d;
}

.btn-outline {
    padding: 12px 24px;
    border: 1px solid #6c757d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================
   PROCESS SECTION
========================= */

.process {
    padding: 100px 0;
    background: #f4f6f8;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

/* Industrial Card */

.process-item {
    position: relative;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Light sweep effect */

.process-item::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.0) 100%
    );
    transform: rotate(25deg);
    transition: left 0.7s ease;
}

.process-item:hover::after {
    left: 150%;
}

.process-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


.process-item h3 {
    font-size: 28px;
    color: #4b545c;
    margin-bottom: 10px;
}

.process-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-item p {
    font-size: 14px;
    color: #555;
}


/* =========================
   INDUSTRIAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Technical grid background */

.process {
    position: relative;
    background: #f4f6f8;
}

.process::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* =========================
   Progress Bar
========================= */

.progress {
    margin-top: 15px;
    height: 6px;
    background: #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4b545c, #6c757d);
    transition: width 1.5s ease;
}

/* =========================
   STATS SECTION
========================= */

.stats {
    padding: 100px 0;
    background: linear-gradient(90deg, #1f2428, #2c3238);
    color: #ffffff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-item p {
    font-size: 15px;
    color: #c9d1d9;
}

/* =========================
   MAP SECTION
========================= */

.map-section {
    padding: 100px 0;
    background: #f4f6f8;
    text-align: center;
}

.map-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.europe-map {
    width: 100%;
    opacity: 0.7;
    filter: grayscale(100%);
}

/* Points */

.map-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #4b545c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.map-point::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(75, 84, 92, 0.4);
    animation: ripple 2s infinite;
}

.map-point:hover {
    background: #ffffff;
}

.map-tooltip {
    position: absolute;
    background: #1f2428;
    color: #ffffff;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 999;
}

/* Pulse animation */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(75, 84, 92, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(75, 84, 92, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(75, 84, 92, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* =========================
   ABOUT PAGE
========================= */

.about-hero {
    padding: 120px 0;
    background: linear-gradient(90deg, #1f2428, #2c3238);
    color: #fff;
    text-align: center;
}

.about-hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-intro {
    padding: 100px 0;
    background: #f4f6f8;
}

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

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.timeline {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 70%;
    background: #e1e4e8;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-year {
    font-size: 20px;
    font-weight: 700;
    color: #4b545c;
    margin-bottom: 10px;
}

/* =========================
   CONTACTS PAGE
========================= */

.contacts-hero {
    padding: 120px 0;
    background: linear-gradient(90deg, #1f2428, #2c3238);
    color: #fff;
    text-align: center;
}

.contacts-section {
    padding: 100px 0;
    background: #f4f6f8;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    padding: 12px;
    background: #4b545c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #6c757d;
}

.contacts-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}


.form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.g-recaptcha {
    margin-bottom: 20px;
}


/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Window */
.modal-window {
    background: #111827;
    padding: 40px 50px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    transform: scale(0.9);
    animation: modalAppear 0.3s ease forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-success {
    border-top: 5px solid #22c55e;
}

.modal-error {
    border-top: 5px solid #ef4444;
}

.modal-window h3 {
    margin-bottom: 15px;
    color: white;
}

.modal-window p {
    margin-bottom: 25px;
    color: #cbd5e1;
}

.modal-close {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #1e293b, #334155);
    color: white;
    border-radius: 4px;
    transition: 0.3s;
}

.modal-close:hover {
    background: #475569;
}

@keyframes modalAppear {
    to {
        transform: scale(1);
    }
}

/* =========================================
   SCYPLS TECHNOLOGY — INDUSTRIAL VERSION
========================================= */

.tech-page {
    background: radial-gradient(circle at 20% 20%, #666969 0%, #8c8c8c 60%);
    color: #282a29;
    padding-bottom: 140px;
    position: relative;
}

/* subtle grid overlay */
.tech-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.tech-hero {
    padding: 140px 0 80px;
    text-align: center;
}

.tech-hero h1 {
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tech-hero p {
    color: #525356;
    font-size: 18px;
}

/* TIMELINE WRAPPER */

.tech-process {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* vertical glowing line */
.tech-process::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #334155, #64748b);
    transform: translateX(-50%);
}

/* BLOCK */

.tech-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 120px 0;
    gap: 60px;
}

/* alternating layout */
.tech-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* connector dot */
.tech-block::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #94a3b8;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.6);
}

/* VIDEO */

.tech-video {
    width: 500px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tech-video:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.tech-video video {
    width: 103%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transform-origin: center;
}

/* TEXT */

.tech-info {
    flex: 1;
    max-width: 500px;
}

.tech-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #150909;
}

.tech-info p {
    color: #1f1f1f;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .tech-process::before {
        display: none;
    }

    .tech-block {
        flex-direction: column !important;
        text-align: center;
        margin: 80px 0;
    }

    .tech-block::before {
        display: none;
    }

    .tech-video {
        width: 100%;
        max-width: 520px;
        height: 280px;
    }

    .tech-info {
        max-width: 600px;
    }
}

/* Crop only EDM video */

.tech-video-edm video {
    transform: scale(2.3); /* збільшення */
    transform-origin: center;
}

/* =========================================
   FLOATING INDUSTRIAL PROJECTS
========================================= */

.projects-page {
    background: radial-gradient(circle at 20% 20%, #58595b 0%, #d8d8da 60%);
    min-height: 100vh;
    padding-bottom: 120px;
}

/* HERO */

.projects-hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.projects-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.projects-hero p {
    color: #444;
}

/* GRID */

.floating-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 40px;
}

/* BASE BLOCK */

.float-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.float-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.float-item img,
.float-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* DIFFERENT SIZES */

.large {
    grid-column: span 2;
    grid-row: span 2;
}

.medium {
    grid-column: span 2;
    grid-row: span 1;
}

.small {
    grid-column: span 1;
    grid-row: span 1;
}

.tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .floating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Scroll reveal animation */

.float-item {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.float-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FLOATING GRID — PREMIUM UPGRADE
========================================= */

/* Overlay info */
.float-item::after {
    content: "SCYPLS — Precision Engineering";
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.float-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.1),
            transparent
    );
    opacity: 0;
    transition: 0.4s ease;
}

.float-item:hover::before {
    opacity: 1;
}

.float-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Steel glow */
.float-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.float-item:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.4);
}

/* Modal */

.media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.media-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content img,
.modal-content video {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}