@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --color-primary: #1A1A1A;
    --color-primary-dark: #111111;
    --color-secondary: #FFC700;
    --color-accent-blue: #00BFFF;
    --color-off-white: #F5F5F5;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-primary);
    color: var(--color-off-white);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-body {
    font-family: 'Roboto', sans-serif;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-off-white {
    color: var(--color-off-white);
}

.text-gray-300 {
    color: var(--color-gray-300);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.border-secondary {
    border-color: var(--color-secondary);
}

/* Tech Glow Effect */
.tech-glow-blue {
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3), inset 0 0 10px rgba(0, 191, 255, 0.2);
    border: 1px solid rgba(0, 191, 255, 0.4);
    transition: all 0.3s ease;
}

.tech-glow-blue:hover {
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.5), inset 0 0 15px rgba(0, 191, 255, 0.3);
}

/* Button Styles */
.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 32px;
    border-radius: 6px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.cta-button:hover {
    background-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.cta-button-outline {
    display: inline-block;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 24px;
    border-radius: 6px;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.5);
    transform: translateY(-2px);
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-primary-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
    border-color: var(--color-accent-blue);
}

/* Form Inputs */
.form-input {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: var(--color-off-white);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

.form-input::placeholder {
    color: #6B7280;
}

/* Animations */
@keyframes pan {
    0% { 
        object-position: 30% 50%; 
    }
    50% { 
        object-position: 70% 50%; 
    }
    100% { 
        object-position: 30% 50%; 
    }
}

.animate-pan {
    animation: pan 20s ease-in-out infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
    background: var(--color-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

/* Filter Buttons */
.filter-btn {
    background: var(--color-primary-dark);
    color: var(--color-gray-300);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gap Utilities */
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

/* Padding Utilities */
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

/* Margin Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }
.text-7xl { font-size: 72px; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-50 { z-index: 50; }
.z-20 { z-index: 20; }
.z-10 { z-index: 10; }

/* Width & Height */
.w-full { width: 100%; }
.w-24 { width: 96px; }
.h-20 { height: 80px; }
.h-64 { height: 256px; }
.h-56 { height: 224px; }
.h-48 { height: 192px; }
.h-16 { height: 64px; }
.h-12 { height: 48px; }
.h-6 { height: 24px; }
.h-4 { height: 16px; }
.h-1 { height: 4px; }

/* Background Gradients */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/70 { --tw-gradient-from: rgba(0, 0, 0, 0.7); }
.to-transparent { --tw-gradient-to: transparent; }

/* Opacity */
.opacity-0 { opacity: 0; }

/* Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }
.transition-opacity { transition-property: opacity; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Transform */
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.hover\\:scale-105:hover { transform: scale(1.05); }
.hover\\:scale-110:hover { transform: scale(1.1); }
.hover\\:-translate-y-2:hover { transform: translateY(-8px); }
.hover\\:translate-y-0:hover { transform: translateY(0); }

/* Backdrop */
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Border */
.border-t { border-top-width: 1px; }
.border-gray-800 { border-color: #1F2937; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object Fit */
.object-cover { object-fit: cover; }

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

::-webkit-scrollbar-track {
    background: var(--color-primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-blue);
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
}

/* Product Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 3, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-overlay.show {
    opacity: 1;
}
.product-modal {
    width: 95%;
    max-width: 980px;
    background: linear-gradient(180deg, #0f0f0f 0%, #0b0b0b 100%);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), opacity 0.25s ease;
    opacity: 0;
}
.modal-overlay.show .product-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.product-modal .modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.product-modal .modal-image {
    min-height: 320px;
    background: #111;
    position: relative;
    overflow: hidden;
}
.product-modal .modal-image img {
    width: 110%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05) rotate(-1.5deg);
    transition: transform 8s ease-in-out;
}
.product-modal .modal-image:hover img {
    transform: scale(1.12) rotate(0deg);
}
.product-modal .modal-body {
    padding: 24px;
}
.product-modal .modal-body h3 {
    margin-bottom: 8px;
}
.product-modal .modal-body p {
    color: var(--color-gray-400);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.03);
    color: var(--color-gray-300);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.more-info-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--color-gray-300);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.25s ease;
}
.more-info-btn:hover {
    background: rgba(0,191,255,0.06);
    color: var(--color-accent-blue);
    transform: translateY(-3px);
}

/* Modal improvements for mobile and accessibility */
.modal-overlay { z-index: 9999; }
.product-modal { width: 96%; max-width: 980px; }
.product-modal:focus { outline: none; }
.product-modal .modal-content { grid-template-columns: 1fr; }
.product-modal .modal-image { min-height: 220px; }
.product-modal .modal-body { padding: 18px; }

@media (min-width: 768px) {
    .product-modal .modal-content { grid-template-columns: 1fr 1fr; }
    .product-modal .modal-image { min-height: 320px; }
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\\:flex { display: flex; }
    .md\\:hidden { display: none; }
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\\:flex-row { flex-direction: row; }
    .md\\:flex-row-reverse { flex-direction: row-reverse; }
    .md\\:h-90vh { height: 90vh; }
    .md\\:text-4xl { font-size: 36px; }
    .md\\:text-5xl { font-size: 48px; }
    .md\\:text-6xl { font-size: 60px; }
    .md\\:text-2xl { font-size: 24px; }
    .md\\:w-80 { width: 320px; }
    .md\\:gap-12 { gap: 48px; }
    .md\\:space-x-8 > * + * { margin-left: 32px; }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\\:text-left { text-align: left; }
    .lg\\:mx-0 { margin-left: 0; margin-right: 0; }
}

@media (min-width: 1280px) {
    .xl\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Print Styles */
@media print {
    .cta-button,
    .cta-button-outline,
    #mobile-menu-button {
        display: none !important;
    }
}