/* Global Styles */
:root {
    --bg: #0f1724;
    --accent1: #ff9f1c;
    --accent2: #ff6a00;
    --accent3: #3b82f6;
    --accent4: #45e695;
    --muted: #9aa4b2;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-2: rgba(255, 255, 255, 0.08);
    --btn-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: #fff;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent1);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* NAVBAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    z-index: 60;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(7, 14, 22, 0.85), rgba(7, 14, 22, 0.5));
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 12px 48px;
    background: rgba(7, 14, 22, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 45px;
    width: 80px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-cta-group {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cta-group .btn {
    width: 100%;
    text-align: center;
}

.btn {
    padding: 10px 18px;
    border-radius: 28px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 129, 26, 0.83);
    padding: 10px 20px;
    border-radius: 28px;
    background: linear-gradient(90deg, #f517c5, #153fe8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: var(--btn-shadow);
    color: #101217;
}

.btn-primary:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.pill {
    padding: 8px 14px;
    border-radius: 28px;
    background: linear-gradient(90deg, #45e695, #00d4ff);
    color: #062018;
    font-weight: 700;
}

/* Background video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    display: block;
    opacity: 0.98;
}

/* Accessibility & performance: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* Logo wrapper (centers logo and controls spacing) */
.logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 190px;
    margin-top: 80px;
    padding: 0 12px;
}

/* Logo itself (responsive, accessible, subtle interaction) */
.hero-logo {
    width: 350px;
    max-width: 45vw;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform;
}

/* small hover/focus effect for polish + keyboard accessibility */
.hero-logo:hover,
.hero-logo:focus-visible {
    transform: scale(1.02);
    outline: none;
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
    .logo-wrap {
        height: 150px;
        margin-top: 60px;
    }

    .hero-logo {
        width: 300px;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: 520px;
    }

    .logo-wrap {
        height: 110px;
    }

    .hero-logo {
        width: 180px;
        max-width: 60vw;
    }
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #2d5ca8, #0e449b, #99bff3);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 15, 0.65), rgba(8, 12, 18, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    padding: 0 28px;
}

.eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    padding: 6px 12px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 600;
}

.headline {
    font-weight: 900;
    line-height: 0.95;
    margin: 6px 0 18px;
    font-size: 104px;
    background: linear-gradient(180deg, #ffffff, #c2c2c2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline .accent {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 6px;
}

.sub {
    color: var(--muted);
    font-size: 20px;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-weight: 600;
}

/* Sections Common */
section {
    padding: 96px 28px;
    position: relative;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    color: var(--muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 18px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* About */
#about {
    background: linear-gradient(180deg, var(--bg), #0a0f17);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 500px;
    background: linear-gradient(45deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image i {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.1);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.value-item i {
    font-size: 32px;
    color: var(--accent1);
    margin-bottom: 15px;
}

/* Services */
#services {
    background: linear-gradient(180deg, #0a0f17, #0f1724);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: rgba(255, 159, 28, 0.2);
}

.card i {
    font-size: 42px;
    color: var(--accent1);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* We Serve */
#weserve {
    background: linear-gradient(180deg, #0f1724, #0a0f17);
}

.serve-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.client-item {
    background: var(--glass);
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.client-item:hover {
    background: var(--glass-2);
    transform: scale(1.05);
}

.client-item i {
    font-size: 36px;
    color: var(--muted);
}

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.industry-pill {
    padding: 10px 20px;
    background: var(--glass);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.industry-pill:hover {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #101217;
}

/* Process */
#process {
    background: linear-gradient(180deg, #0a0f17, #0f1724);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 60px 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 20%;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: 700;
    box-shadow: var(--btn-shadow);
}

.step-content {
    padding: 0 10px;
}

/* Testimonials */
#testimonials {
    background: linear-gradient(180deg, #0f1724, #0a0f17);
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 30px;
    background: var(--glass);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent3), var(--accent4));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--accent1);
    transform: scale(1.2);
}

/* Contact */
#contact {
    background: linear-gradient(180deg, #0a0f17, #07111b);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-form {
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    font-family: inherit;
}

.input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent1);
}

/* Footer */
footer {
    background: #06111a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent1);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 14px;
}

/* Floating buttons */
.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #25D366;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
    z-index: 60;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-quick {
    position: fixed;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4c6ef5, #7b61ff);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(75, 65, 255, 0.16);
    z-index: 60;
    transition: all 0.3s ease;
}

.floating-quick:hover {
    transform: translateY(-50%) scale(1.05);
}

.opening-pill {
    position: fixed;
    left: 22px;
    bottom: 28px;
    background: linear-gradient(90deg, #3b82f6, #6b8cff);
    padding: 8px 18px;
    border-radius: 28px;
    color: white;
    box-shadow: 0 10px 24px rgba(55, 100, 240, 0.18);
    z-index: 60;
    transition: all 0.3s ease;
}

.opening-pill:hover {
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 60;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .headline {
        font-size: 84px;
    }
}

@media (max-width: 1000px) {
    .nav {
        padding: 14px 20px;
    }

    .headline {
        font-size: 64px;
    }

    .hero {
        min-height: 640px;
    }

    .about-grid,
    .serve-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(7, 14, 22, 0.98);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 15px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .cta-group {
        display: none;
    }

    .cta-row .btn.btn-outline {
        display: none;
    }

    .stats-container{
        display: none;
    }
    .mobile-cta-group {
        display: flex;
    }

    .headline {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .headline {
        font-size: 40px;
    }

    .hero {
        min-height: 620px;
    }

    .nav {
        padding: 12px 16px;
    }

    .cta-row {
        flex-direction: column;
    }

    .values-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .floating-quick {
        display: none;
    }
}