/* Custom styles supplementing Tailwind */

/* Geometric shape keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(20px) rotate(50deg); }
}

.geo-circle, .geo-diamond {
    animation: float 6s ease-in-out infinite;
}

.geo-diamond {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080e1a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f0fdfa;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Mobile menu animation */
.mobile-menu {
    will-change: transform;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .geo-circle, .geo-diamond, .geo-triangle, .geo-rect {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
