/* Custom styles to complement TailwindCSS */

/* NY Giants colors for use with Tailwind */
:root {
    --giants-blue: #0B2265;
    --giants-red: #A71930;
    --giants-silver: #A5ACAF;
}

/* Custom utility classes for NY Giants colors */
.text-giants-blue { color: var(--giants-blue); }
.text-giants-red { color: var(--giants-red); }
.text-giants-silver { color: var(--giants-silver); }
.bg-giants-blue { background-color: var(--giants-blue); }
.bg-giants-red { background-color: var(--giants-red); }
.bg-giants-silver { background-color: var(--giants-silver); }
.border-giants-blue { border-color: var(--giants-blue); }
.border-giants-red { border-color: var(--giants-red); }
.border-giants-silver { border-color: var(--giants-silver); }

/* Hover variations */
.hover\:text-giants-red:hover { color: var(--giants-red); }
.hover\:bg-giants-red:hover { background-color: var(--giants-red); }
.hover\:bg-giants-blue:hover { background-color: var(--giants-blue); }
.hover\:border-giants-red:hover { border-color: var(--giants-red); }

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0B2265;
}

/* Hero section background pattern */
#home {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(167, 25, 48, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(165, 172, 175, 0.1) 0%, transparent 50%);
}

/* Gallery hover effects */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form focus effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(11, 34, 101, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

/* Lightbox animation */
#lightbox {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#lightbox-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #A71930;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service cards hover animation */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* File input styling */
input[type="file"]::file-selector-button {
    background-color: #0B2265;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: rgba(11, 34, 101, 0.9);
}

/* Loading animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Section padding adjustments for mobile */
@media (max-width: 768px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    #home {
        padding-top: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Custom gradient backgrounds */
.bg-giants-gradient {
    background: linear-gradient(135deg, #0B2265 0%, #A71930 100%);
}

.bg-giants-gradient-reverse {
    background: linear-gradient(135deg, #A71930 0%, #0B2265 100%);
}

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home h1 {
    animation: fadeInUp 1s ease 0.3s both;
}

#home p {
    animation: fadeInUp 1s ease 0.6s both;
}

#home button {
    animation: fadeInUp 1s ease 0.9s both;
}

/* Form validation styles */
.border-giants-red {
    border-color: #A71930 !important;
}

/* Success message styling */
.text-green-600 {
    color: #059669;
}

/* Print styles */
@media print {
    header {
        position: static !important;
    }
    
    #lightbox {
        display: none !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #A71930;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-giants-silver {
        color: #ffffff;
    }
    
    .border-giants-silver {
        border-color: #ffffff;
    }
}
