/* Visual Effects - Enhanced Visuals Throughout */

/* ========================================
   WHAT THIS IS - Clean Cards
   ======================================== */

.cards-2 .card {
    transition: all 0.3s ease;
}

.cards-2 .card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-gold);
}

/* ========================================
   WHAT WE PRODUCE - Hexagonal Grid
   ======================================== */

.section-deliverables {
    position: relative;
    background: transparent;
}

.deliverables-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    position: relative;
}

.deliverable-tile {
    width: 280px;
    height: 280px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: transparent;
    border: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    position: relative;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
}

.deliverable-tile:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-accent-gold);
}

/* Connecting lines between hexagons */
.deliverables-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

/* ========================================
   CONTACT - Animated Form
   ======================================== */

.section-contact {
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(33%); }
}

.contact-template {
    position: relative;
    z-index: 1;
}

.template-box {
    background: transparent;
    border: 2px solid var(--color-border);
    position: relative;
    transition: all 0.5s;
}

.template-box:hover {
    border-color: var(--color-accent-gold);
}

.contact-cta .btn {
    position: relative;
    overflow: hidden;
}

.contact-cta .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-cta .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
        var(--color-accent-red) 0%,
        var(--color-accent-gold) 50%,
        var(--color-accent-green) 100%);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(252, 221, 9, 0.5);
}

/* ========================================
   CURSOR TRAIL EFFECT
   ======================================== */

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    opacity: 0.6;
    transition: transform 0.2s;
}

.cursor-trail-1 { background: radial-gradient(circle, var(--color-accent-red), transparent); }
.cursor-trail-2 { background: radial-gradient(circle, var(--color-accent-gold), transparent); }
.cursor-trail-3 { background: radial-gradient(circle, var(--color-accent-green), transparent); }

/* ========================================
   DATA FLOW VISUALIZATION
   ======================================== */

.data-flow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* ========================================
   MAGNETIC BUTTONS
   ======================================== */

.btn {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn.magnetic {
    transform-origin: center;
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */

.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

/* ========================================
   TEXT SCRAMBLE EFFECT
   ======================================== */

@keyframes scramble {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scramble-text {
    animation: scramble 0.1s;
}

/* ========================================
   GLITCH EFFECT (Subtle)
   ======================================== */

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch 0.3s;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .deliverable-tile {
        width: 200px;
        height: 200px;
        clip-path: none;
        border-radius: var(--radius-lg);
    }

    .cursor-trail {
        display: none;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .section-what::before,
    .section-contact::before,
    .deliverables-grid::after,
    .scroll-progress-bar,
    .cursor-trail,
    .particle {
        animation: none !important;
        transition: none !important;
    }

    .card:hover,
    .deliverable-tile:hover {
        transform: none !important;
    }
}
