/* ================================
   KLICK2UP DESIGN SYSTEM
   Premium, Minimalist, Futuristic
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core Palette - Monochrome & Premium */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text-main: #0a0a0a;
    --color-text-muted: #666666;
    --color-accent: #800000;
    --color-border: #e5e5e5;
    --color-red-accent: #800000;
    --color-red-light: #fff5f5;

    /* klick2up Accents */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* Light Spots Effect Removed for Performance */
body::after {
    display: none;
}

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

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-red-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-red-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
    opacity: 0.5;
}

body:hover .cursor,
body:hover .cursor-follower {
    opacity: 1;
}

/* Hide default cursor on interactive elements if needed, or just style the custom one */
a,
button {
    cursor: none;
}

.cursor.active {
    transform: scale(1.5);
}

.cursor-follower.active {
    transform: scale(1.5);
    background: rgba(128, 0, 0, 0.1);
    border-color: transparent;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--color-red-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    background: #a00000;
}

/* ========== MOVING ELEMENTS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-red-accent);
    z-index: 2000;
    transition: width 0.1s ease;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.03) 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 50px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

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

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

.desktop-only {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    text-align: center;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 48px;
}

.mobile-nav-links li {
    margin-bottom: 32px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--color-accent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-cta {
    background: var(--color-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 32px;
    display: block;
    opacity: 0.5;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 48px;
}

.hero p {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
}

/* ========== SECTIONS ========== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 80px;
    max-width: 600px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 48px;
    background: var(--color-bg-alt);
    border-radius: 32px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.service-card:hover {
    background: #fff;
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-float);
    border-color: var(--color-border);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: block;
    color: var(--color-red-accent);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ========== WHO WE ARE ========== */
.who-we-are {
    background: var(--color-text-main);
    color: #fff;
    border-radius: 64px;
    margin: 0 24px;
}

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

.who-text h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 48px;
    color: #fff;
}

.who-text p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 24px;
}

.who-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-item h4 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.6;
}

/* ========== PROCESS ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.step {
    position: relative;
}

.step-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step p {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* ========== ZIGZAG SECTION ========== */
.zigzag-section {
    background-color: var(--color-red-light);
    border-radius: 64px;
    margin: 0 24px;
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 120px;
}

.zigzag-row:last-child {
    margin-bottom: 0;
}

.zigzag-row.reverse {
    direction: rtl;
}

.zigzag-row.reverse .zigzag-text {
    direction: ltr;
}

.zigzag-image-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--color-red-accent);
}

.zigzag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.6s ease;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
}

.zigzag-image-container:hover .zigzag-image {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%) brightness(1) contrast(1);
}

.zigzag-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(128, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.zigzag-image-container:hover .zigzag-image {
    transform: scale(1.05);
    opacity: 1;
}

.zigzag-text h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.zigzag-text p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red-light);
    margin-bottom: 12px;
    display: block;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 48px;
    background: var(--color-bg);
    border-radius: 32px;
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--color-red-accent);
    box-shadow: var(--shadow-float);
    transform: translateY(-10px);
}

.testimonial-quote {
    font-size: 18px;
    color: var(--color-text-main);
    margin-bottom: 32px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-red-accent);
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}

.btn-submit {
    background: var(--color-accent);
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== FOOTER ========== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    display: block;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .zigzag-row {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 100px;
    }

    .zigzag-row {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .zigzag-row.reverse {
        direction: ltr;
    }

    .who-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}