/* Unbounded Font Import */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800;900&display=swap");

/* ========================================
   TAGGRO THEME - Professional with 16-bit Flair
   ======================================== */

/* Hero Gradient - Darker but not too dark */
.hero-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #5b21b6 40%, #6d28d9 60%, #1e293b 100%);
    position: relative;
}

/* Pixel Grid Background */
.pixel-grid {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(139, 92, 246, 0.08) 4px, rgba(139, 92, 246, 0.08) 5px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(139, 92, 246, 0.08) 4px, rgba(139, 92, 246, 0.08) 5px);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Pixel Card Styles */
.pixel-card {
    background: white;
    border: 4px solid #041733;
    box-shadow: 6px 6px 0px 0px rgba(4, 23, 51, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pixel-card:hover {
    box-shadow: 10px 10px 0px 0px rgba(124, 80, 255, 1);
    transform: translate(-2px, -2px);
}

/* Pixel Badge */
.pixel-badge {
    display: inline-block;
    border: 4px solid #0f172a;
    box-shadow: 5px 5px 0px 0px rgba(15, 23, 42, 1);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Pixel Button */
.pixel-btn {
    display: inline-block;
    border: 4px solid #0f172a;
    box-shadow: 6px 6px 0px 0px rgba(15, 23, 42, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.pixel-btn:hover {
    box-shadow: 9px 9px 0px 0px rgba(15, 23, 42, 1);
    transform: translate(-3px, -3px);
}

/* Code Window */
.code-window {
    background: #1e293b;
    border: 4px solid #041733;
    box-shadow: 12px 12px 0px 0px rgba(124, 80, 255, 0.5);
    font-family: 'Courier New', Courier, monospace;
}

.code-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #22d3ee 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Monospace Font */
.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

/* Service Icon */
.service-icon {
    width: 64px;
    height: 64px;
    border: 4px solid #041733;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

/* Stat Bar */
.stat-bar {
    height: 12px;
    background: #0f172a;
    border: 2px solid #334155;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    transition: width 1s ease-out;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Scanline Effect */
.scanline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #22d3ee 50%, transparent 100%);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Dark Section */
.dark-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(90deg, #7c50ff 0%, #ec4899 50%, #7c50ff 100%);
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 2px,
        rgba(255, 255, 255, 0.05) 4px
    );
    pointer-events: none;
}

/* Testimonial Quote */
.testimonial-quote {
    font-size: 48px;
    line-height: 1;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}

/* Avatar Circle */
.avatar-pixel {
    width: 48px;
    height: 48px;
    border: 4px solid #041733;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Decorative Boxes */
.deco-box {
    position: absolute;
    border: 4px solid #041733;
    pointer-events: none;
}

/* CTA Section */
.cta-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #5b21b6 50%, #0f172a 100%);
    position: relative;
}

/* Floating Shapes */
.float-shape-1 {
    animation: float 8s ease-in-out infinite;
}

.float-shape-2 {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Link Hover Effects */
a {
    transition: color 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #7c50ff;
    border: 2px solid #1e293b;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Focus States */
.pixel-btn:focus,
.pixel-card:focus {
    outline: 3px solid #22d3ee;
    outline-offset: 2px;
}

/* Pixel Divider - Creates pixelated transition between sections */
.pixel-divider {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.pixel-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background:
        linear-gradient(90deg, transparent 0px, transparent 8px, #6d28d9 8px, #6d28d9 16px),
        linear-gradient(90deg, transparent 16px, transparent 24px, #6d28d9 24px, #6d28d9 32px),
        linear-gradient(90deg, transparent 32px, transparent 40px, #6d28d9 40px, #6d28d9 48px),
        linear-gradient(90deg, transparent 48px, transparent 56px, #6d28d9 56px, #6d28d9 64px),
        linear-gradient(90deg, transparent 64px, transparent 72px, #6d28d9 72px, #6d28d9 80px);
    background-size: 80px 8px, 80px 8px, 80px 8px, 80px 8px, 80px 8px;
    background-position: 0px 0px, 8px 8px, 16px 16px, 24px 24px, 32px 32px;
    background-repeat: repeat-x;
}

/* Alternative: Stepped pixel divider */
.pixel-divider-stepped {
    position: relative;
    height: 32px;
    background: linear-gradient(to bottom, #6d28d9 0%, #6d28d9 50%, transparent 50%);
}

.pixel-divider-stepped::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            #6d28d9 0px,
            #6d28d9 16px,
            transparent 16px,
            transparent 32px,
            #6d28d9 32px,
            #6d28d9 48px,
            transparent 48px,
            transparent 64px
        );
}

/* Zigzag pixel divider - Most retro look */
.pixel-divider-zigzag {
    position: relative;
    height: 12px;
    background: #6d28d9;
    margin: 0;
    padding: 0;
    display: block;
}

.pixel-divider-zigzag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background:
        linear-gradient(315deg, #f9fafb 50%, transparent 50%),
        linear-gradient(45deg, #f9fafb 50%, transparent 50%);
    background-size: 16px 12px;
    background-position: 0 0, 8px 0;
    background-repeat: repeat-x;
}

/* Section Spacing */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CUSTOM FILE UPLOAD STYLES
   ======================================== */

.file-upload-container .custom-file-upload {
    height: 57px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #041733;
    display: flex;
    align-items: center;
    background-color: white;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.file-upload-container .custom-file-upload:hover {
    box-shadow: 5px 6px 0px #041733;
}

.file-upload-container .file-name {
    flex-grow: 1;
    padding-left: 16px;
    color: #7780A1;  /* muted color */
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-container .browse-button {
    padding: 8px 16px;
    background-color: #7C50FF;
    color: white;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .pixel-card {
        box-shadow: 4px 4px 0px 0px rgba(4, 23, 51, 1);
    }

    .pixel-card:hover {
        box-shadow: 6px 6px 0px 0px rgba(124, 80, 255, 1);
    }

    .code-window {
        box-shadow: 6px 6px 0px 0px rgba(124, 80, 255, 0.5);
    }

    .pixel-divider-zigzag {
        height: 8px;
    }

    .pixel-divider-zigzag::after {
        height: 8px;
        background-size: 12px 8px;
        background-position: 0 0, 6px 0;
    }

    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
