/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.logo img {
    width: 40px;  /* Adjust size as needed */
    height: 40px;  /* Adjust size as needed */
    border-radius: 50%;  /* Makes the image circular */
    object-fit: cover;  /* Ensures the image covers the circular area properly */
    margin-right: 10px;  /* Adds some space between logo and text */
}

.logo {
    display: flex;
    align-items: center;
}

:root {
    --primary-color: #00a8ff;
    --secondary-color: #0088cc;
    --background-dark: #121212;
    --background-light: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,168,255,0.3);
}

/* Header and Navigation */
header {
    background-color: var(--background-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--background-dark);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.1);
}

.search-bar button {
    padding: 0.8rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a .fa-external-link-alt {
    font-size: 0.8em;
    margin-left: 0.3rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover .fa-external-link-alt {
    opacity: 1;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-light);
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 5px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.8rem 1rem;
    display: block;
}

.dropdown-content a:hover {
    background: rgba(0, 168, 255, 0.1);
}

/* Products Container */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Product Listing */
.product-listing {
    width: 100%;
}

.product-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.product-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--background-light);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.product-details {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.download-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Checkout Modal */
.checkout-content {
    max-width: 600px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group h3 {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

.payment-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.card-details {
    display: flex;
    gap: 1rem;
}

.card-details input {
    width: 50%;
}

.order-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.place-order-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Newsletter */
.newsletter {
    margin-top: 2rem;
}

.newsletter h4 {
    margin-bottom: 1rem;
}

#newsletter-form {
    display: flex;
    gap: 0.5rem;
}

#newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

#newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(to bottom, var(--background-dark), var(--background-light));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,168,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), #66d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-main {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-feature span {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Modal Improvements */
.modal {
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: var(--background-light);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-main {
        font-size: 1.5rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .products-container {
        flex-direction: column;
    }

    .search-bar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: var(--background-light);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1200;
    border-left: 4px solid var(--primary-color);
}

.notification.error {
    border-left-color: #ff4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.notification.error i {
    color: #ff4444;
}

.notification span {
    font-size: 0.95rem;
}

/* Download Button States */
.download-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.download-btn i {
    transition: transform 0.3s ease;
}

.download-btn:hover:not(:disabled) i {
    transform: translateY(-2px);
}

/* Footer */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 3rem 5%;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* About Section */
.about-content {
    padding: 1rem 0;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: var(--background-dark);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.about-mission {
    background: linear-gradient(45deg, var(--background-dark), var(--background-light));
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.about-mission h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-mission p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.about-credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--background-dark);
    border-radius: 8px;
}

.credential i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.credential span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Links */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter {
    margin-top: 2rem;
}

.newsletter p {
    margin-bottom: 1rem;
}

#newsletter-form {
    display: flex;
    gap: 0.5rem;
}

#newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

#newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-dark);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-section:last-child {
        grid-column: span 3;
        margin-top: 2rem;
    }
}

@media (max-width: 992px) {
    .about-features,
    .about-credentials {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section:last-child {
        grid-column: auto;
    }
    
    .about-features,
    .about-credentials {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form button {
        width: 100%;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-light);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
    }

    .search-bar {
        display: none;
    }
}

.product-preview {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--background-dark);
    overflow: hidden;
}

.pdf-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.preview-btn:hover {
    transform: scale(1.05);
}

/* PDF Preview Modal Improvements */
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

#pdf-preview {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Category Title */
.category-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 3rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Product Card Updates */
.product-files {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--background-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    background: rgba(0, 168, 255, 0.1);
}

.file-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-item span {
    flex-grow: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.file-item .download-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.file-item .download-btn:hover:not(:disabled) {
    color: var(--primary-color);
    background: rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

.file-item .download-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.file-item .download-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Loading state for download button */
.file-item .download-btn.loading {
    position: relative;
    overflow: hidden;
}

.file-item .download-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* Success notification */
.notification.success {
    border-left-color: #00c853;
}

.notification.success i {
    color: #00c853;
}

/* Error notification */
.notification.error {
    border-left-color: #ff4444;
}

.notification.error i {
    color: #ff4444;
}

/* Info notification */
.notification.info {
    border-left-color: var(--primary-color);
}

.notification.info i {
    color: var(--primary-color);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .product-files {
        margin-top: 0.8rem;
        gap: 0.5rem;
    }

    .file-item {
        padding: 0.6rem;
    }
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--background-dark);
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results-message p {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.no-results-message .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.no-results-message .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-bar {
        display: flex;
        position: relative;
        padding: 1rem;
        background: var(--background-light);
        margin: 0;
        width: 100%;
        max-width: none;
    }
} 