/* Tailwind CSS Complementary Styles */
/* This file contains minimal custom styles to complement Tailwind CSS */

/* BUNZI TECH Brand Color Variables */
:root {
    --primary-color: #1D4ED8;
    --primary-dark: #1e40af;
    --secondary-color: #06B6D4;
    --secondary-dark: #0891b2;
    --accent-color: #FACC15;
    --accent-dark: #eab308;
    --dark-color: #334155;
    --dark-secondary: #475569;
    --text-light: #FFFFFF;
    --text-dark: #334155;
}

/* Custom animations and effects that aren't easily replicated with Tailwind */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom utility classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Portfolio filter active state */
.filter-btn-artistic.active {
    @apply bg-primary text-white border-primary;
}

/* Mobile menu toggle animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu visibility */
.nav-menu.active {
    @apply block !important;
}

.nav-menu.hidden {
    @apply hidden;
}

.nav-menu {
    @apply hidden md:block;
}

/* Ensure navigation links are visible */
.nav-link {
    @apply text-gray-300 hover:text-white transition-colors duration-200;
}

/* Portfolio iframe styling */
.portfolio-item-artistic iframe {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.portfolio-item-artistic:hover iframe {
    transform: scale(1.02);
}

/* Ensure portfolio items have consistent spacing */
.portfolio-item-artistic {
    margin-bottom: 2rem;
}

/* Logo styling */
.logo-bunzi-tech {
    transition: transform 0.3s ease;
}

.logo-bunzi-tech:hover {
    transform: scale(1.05);
}

/* Testimonial slider */
.testimonial-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-item.active {
    display: block !important;
    opacity: 1;
}

.dot.active {
    @apply bg-primary;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Form focus states */
.form-input:focus {
    @apply ring-2 ring-primary ring-opacity-50 border-primary;
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

/* Backdrop blur fallback */
.backdrop-blur-fallback {
    background-color: rgba(15, 23, 42, 0.8);
}

@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-fallback {
        background-color: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(10px);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-300 {
        @apply text-gray-100;
    }
    
    .text-gray-400 {
        @apply text-gray-200;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode utilities (if needed) */
.dark-mode {
    @apply bg-dark text-white;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1D4ED8 0%, #06B6D4 50%, #FACC15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism effect */
.glass {
    @apply bg-white bg-opacity-10 backdrop-blur-md border border-white border-opacity-20;
}

.glass-dark {
    @apply bg-gray-900 bg-opacity-50 backdrop-blur-md border border-gray-700;
}

/* Custom shadows */
.shadow-primary {
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

.shadow-secondary {
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.shadow-accent {
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

/* Hover effects */
.hover-lift {
    @apply transition-transform duration-300;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Text selection */
::selection {
    @apply bg-primary text-white;
}

::-moz-selection {
    @apply bg-primary text-white;
}

/* Focus visible for accessibility */
.focus-visible {
    @apply outline-none ring-2 ring-primary ring-opacity-50;
}

/* Skip link for accessibility */
.skip-link {
    @apply absolute -top-10 left-4 bg-primary text-white px-4 py-2 rounded-md z-50 transition-all duration-200;
}

.skip-link:focus {
    @apply top-4;
}

/* Loading spinner */
.spinner {
    @apply inline-block w-4 h-4 border-2 border-current border-r-transparent rounded-full animate-spin;
}

/* Tooltip */
.tooltip {
    @apply absolute z-50 px-2 py-1 text-sm bg-gray-900 text-white rounded-md opacity-0 pointer-events-none transition-opacity duration-200;
}

.tooltip.show {
    @apply opacity-100;
}

/* Custom grid layouts */
.masonry {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .masonry {
        column-count: 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .masonry {
        column-count: 2;
    }
}

/* Aspect ratio utilities (for older browsers) */
.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-1-1 {
    aspect-ratio: 1 / 1;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .aspect-16-9 {
        position: relative;
        padding-bottom: 56.25%; /* 9/16 * 100% */
    }
    
    .aspect-4-3 {
        position: relative;
        padding-bottom: 75%; /* 3/4 * 100% */
    }
    
    .aspect-1-1 {
        position: relative;
        padding-bottom: 100%;
    }
    
    .aspect-16-9 > *,
    .aspect-4-3 > *,
    .aspect-1-1 > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
