/* Hardware Gallery - Professional CSS Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2B4C8C, #1E3A8A);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0f1f363, #8081816c);
    border-radius: 0.5em;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
   
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: #10B981;
    outline: none;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #10B981;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2B4C8C, #1E3A8A);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(16,185,129,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #10B981;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Filter Section */
.filters {
    padding: 60px 0 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-controls h2 {
    text-align: center;
    color: #2B4C8C;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #2B4C8C, #1E3A8A);
    color: white;
    border-color: #2B4C8C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 76, 140, 0.3);
}

/* Hardware Gallery */
.hardware-gallery {
    padding: 60px 0;
    background: white;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.hardware-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.hardware-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hardware-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.hardware-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hardware-card:hover .hardware-image img {
    transform: scale(1.05);
}

.hardware-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.hardware-badge.popular {
    background: linear-gradient(45deg, #10B981, #059669);
}

.hardware-badge.new {
    background: linear-gradient(45deg, #EF4444, #DC2626);
}

.hardware-badge.best-value {
    background: linear-gradient(45deg, #F59E0B, #D97706);
}

.hardware-badge.pro {
    background: linear-gradient(45deg, #8B5CF6, #7C3AED);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 76, 140, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hardware-card:hover .image-overlay {
    opacity: 1;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-details-btn:hover {
    background: white;
    color: #2B4C8C;
}

.hardware-info {
    padding: 2rem;
}

.hardware-info h3 {
    font-size: 1.4rem;
    color: #2B4C8C;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hardware-category {
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hardware-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hardware-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: #f0fdf4;
    color: #059669;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.hardware-pricing {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.price-row:last-of-type {
    margin-bottom: 0;
}

.price-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2B4C8C;
}

.price.large {
    font-size: 1.8rem;
}

.price-installed {
    font-size: 1.3rem;
    font-weight: bold;
    color: #10B981;
}

.price-note {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.hardware-actions {
    display: flex;
    gap: 0.75rem;
}

.hardware-btn {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.hardware-btn.primary {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
}

.hardware-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.hardware-btn.secondary {
    background: transparent;
    color: #2B4C8C;
    border: 2px solid #2B4C8C;
}

.hardware-btn.secondary:hover {
    background: #2B4C8C;
    color: white;
    transform: translateY(-2px);
}

/* Call to Action */
.hardware-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    margin-top: 2rem;
}

.hardware-cta h3 {
    font-size: 2rem;
    color: #2B4C8C;
    margin-bottom: 1rem;
}

.hardware-cta p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.cta-btn.primary {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
}

.cta-btn.secondary {
    background: linear-gradient(45deg, #2B4C8C, #1E3A8A);
    color: white;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: #EF4444;
    transform: scale(1.1);
}

/* Modal Header */
.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #2B4C8C, #1E3A8A);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-title-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
}

.modal-title-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-category {
    color: #10B981;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.modal-section h3 {
    color: #2B4C8C;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 2px;
}

.modal-section p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Modal Features List */
.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.modal-features li {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.modal-features li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.modal-features li::before {
    content: '✓';
    background: #10B981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Modal Specifications List */
.modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    list-style: none;
}

.modal-specs li {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #2B4C8C;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.3s ease;
}

.modal-specs li:hover {
    background: #f1f5f9;
    border-left-color: #10B981;
}

/* Modal Pricing Section */
.modal-pricing {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.2rem;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row span:first-child {
    color: #64748b;
    font-weight: 500;
}

.pricing-row .price {
    font-size: 2rem;
    font-weight: bold;
    color: #2B4C8C;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pricing-note {
    text-align: center;
    color: #059669;
    font-style: italic;
    margin-top: 1rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.modal-actions .hardware-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.modal-actions .hardware-btn.primary {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-actions .hardware-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.modal-actions .hardware-btn.secondary {
    background: white;
    color: #2B4C8C;
    border: 2px solid #2B4C8C;
}

.modal-actions .hardware-btn.secondary:hover {
    background: #2B4C8C;
    color: white;
    transform: translateY(-3px);
}

/* Warranty and Installation Info */
.modal-section p strong {
    color: #2B4C8C;
    font-weight: 600;
}

/* Responsive Modal Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        height: 250px;
    }
    
    .modal-title-section h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .modal-features {
        grid-template-columns: 1fr;
    }
    
    .modal-specs {
        grid-template-columns: 1fr;
    }
    
    .modal-pricing {
        padding: 1.5rem;
    }
    
    .pricing-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .pricing-row .price {
        font-size: 1.8rem;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-actions .hardware-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        height: 200px;
    }
    
    .modal-title-section {
        padding: 1rem;
    }
    
    .modal-title-section h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-section h3 {
        font-size: 1.3rem;
    }
    
    .modal-pricing {
        padding: 1rem;
    }
    
    .pricing-row .price {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling within modal */
.modal-content {
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #10B981;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #10B981;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* Filter Animation */
.hardware-card.hidden {
    display: none;
}

.hardware-card.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-img {
        height: 35px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
    }

    .hardware-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .hardware-actions {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hardware-info {
        padding: 1.5rem;
    }

    .hardware-cta {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Loading States */
.hardware-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hardware-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility Improvements */
.hardware-card:focus-within {
    outline: 3px solid #10B981;
    outline-offset: 2px;
}

.filter-btn:focus,
.hardware-btn:focus,
.cta-btn:focus {
    outline: 3px solid #10B981;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modal,
    .filter-controls,
    .hardware-actions,
    .hardware-cta {
        display: none;
    }
    
    .hardware-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}