/* Custom styles for Printa.ws landing page */

/* Set Inter as the default font family */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Intersection Observer for scroll animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Logo styling */
img[src*="logo.svg"] {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

img[src*="logo.svg"]:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Ensure logo is clickable and links to home */
nav img[src*="logo.svg"] {
    cursor: pointer;
}

/* Space Background Theme */
.space-background {
    background: linear-gradient(to bottom, #000000 0%, #0a0a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* Stars animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, -35px) rotate(-5deg);
    }
    75% {
        transform: translate(-20px, -15px) rotate(3deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-25px, 25px) rotate(-5deg);
    }
    50% {
        transform: translate(20px, 40px) rotate(5deg);
    }
    75% {
        transform: translate(25px, 20px) rotate(-3deg);
    }
}

@keyframes slowFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Stars */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 55% 20%, white, transparent);
    background-repeat: repeat;
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.8;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15% 25%, white, transparent),
        radial-gradient(1px 1px at 45% 65%, white, transparent),
        radial-gradient(2px 2px at 75% 15%, white, transparent),
        radial-gradient(1px 1px at 25% 85%, white, transparent),
        radial-gradient(2px 2px at 85% 45%, white, transparent);
    background-repeat: repeat;
    background-size: 250% 250%;
    animation: twinkle 12s ease-in-out infinite reverse;
    opacity: 0.6;
}

/* Printa Hub Logo */
.printa-hub {
    position: absolute;
    z-index: 5;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    animation: slowFloat 15s ease-in-out infinite;
}

.printa-hub img {
    transition: transform 0.3s ease;
}

.printa-hub:hover img {
    transform: scale(1.1);
}

/* Floating Tech Logos - Icon Only */
.tech-logo {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    padding: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    cursor: pointer;
}

/* Responsive: Adjust logos on small screens */
@media (max-width: 768px) {
    .tech-logo {
        padding: 10px;
        width: 48px;
        height: 48px;
    }
    
    .tech-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .printa-hub img {
        height: 3rem !important;
    }
    
    /* Hide some logos on mobile to reduce clutter - targeting specific positions */
    .tech-logo.float-7,
    .tech-logo.float-8,
    .tech-logo.float-9,
    .tech-logo.float-10 {
        display: none;
    }
    
    .connection-lines {
        display: none;
    }
}

@media (max-width: 480px) {
    .tech-logo {
        padding: 8px;
        width: 44px;
        height: 44px;
    }
    
    .tech-logo svg {
        width: 24px;
        height: 24px;
    }
    
    .printa-hub img {
        height: 2.5rem !important;
    }
    
    /* Show only 4-5 logos on very small screens */
    .tech-logo.float-5,
    .tech-logo.float-6,
    .tech-logo.float-7,
    .tech-logo.float-8,
    .tech-logo.float-9,
    .tech-logo.float-10 {
        display: none;
    }
    
    .connection-lines {
        display: none;
    }
}

.tech-logo:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.8);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.tech-logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Connection Lines */
.connection-lines line {
    stroke: rgba(251, 191, 36, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5, 5;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Different animation speeds for variety */
.float-1 { animation: float 20s ease-in-out infinite; }
.float-2 { animation: floatReverse 25s ease-in-out infinite; }
.float-3 { animation: slowFloat 18s ease-in-out infinite; }
.float-4 { animation: float 22s ease-in-out infinite; }
.float-5 { animation: floatReverse 28s ease-in-out infinite; }
.float-6 { animation: slowFloat 16s ease-in-out infinite; }
.float-7 { animation: float 24s ease-in-out infinite; }
.float-8 { animation: floatReverse 20s ease-in-out infinite; }
.float-9 { animation: slowFloat 22s ease-in-out infinite; }
.float-10 { animation: float 26s ease-in-out infinite; }

/* Nebula/Galaxy effects */
.nebula {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    animation: slowFloat 30s ease-in-out infinite;
}

.nebula-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fbbf24, transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.nebula-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: 60%;
    right: 15%;
    animation-delay: 10s;
}

.nebula-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 5s;
}

/* Tailwind custom configuration */
@layer utilities {
    .text-balance {
        text-wrap: balance;
    }
}

