/* Enhanced Admin Styles */
.live-demo-badge {
    background: var(--neon-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.product-list-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.product-list-meta span {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Enhanced buttons */
.product-list-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

.edit-btn:hover {
    background: #1976D2;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --gray: #6c757d;
    --html-color: #e34f26;
    --css-color: #264de4;
    --js-color: #f7df1e;
    --python-color: #3776ab;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #ff00ff;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 


/* Footer Updates */
.footer-description {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    margin-top: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--success);
}

.footer-links i {
    width: 16px;
    text-align: center;
}


/* Responsive logo */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--success);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 80%;
}
 
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(58, 12, 163, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #5a08a0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Neon Button Styles */
.live-demo-btn {
    display: inline-block;
    background: transparent;
    color: var(--neon-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--neon-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px var(--neon-blue);
    box-shadow: 
        0 0 5px var(--neon-blue),
        inset 0 0 5px var(--neon-blue);
}

.live-demo-btn:hover {
    background-color: rgba(0, 243, 255, 0.1);
    color: white;
    text-shadow: 0 0 10px var(--neon-blue);
    box-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        inset 0 0 10px var(--neon-blue);
    transform: translateY(-2px);
}

.live-demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.live-demo-btn:hover::before {
    left: 100%;
}

/* Enhanced Social Icons with Unified Hover Effect */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

/* Specific icon colors on hover */
.social-link:hover .fa-github {
    color: #333;
}

.social-link:hover .fa-youtube {
    color: #ff0000;
}

.social-link:hover .fa-facebook-f {
    color: #1877f2;
}

/* Pulse animation for attention */
@keyframes socialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.social-link.pulse {
    animation: socialPulse 2s infinite;
}

/* Responsive social icons */
@media (max-width: 768px) {
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Specific icon colors on hover */
.social-link:hover .fa-github {
    color: #333;
}

.social-link:hover .fa-youtube {
    color: #ff0000;
}

.social-link:hover .fa-facebook-f {
    color: #1877f2;
}

.social-link:hover .fa-instagram {
    color: #e4405f;
}

/* Pulse animation for attention */
@keyframes socialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.social-link.pulse {
    animation: socialPulse 2s infinite;
}

/* Live Demo Indicator */
.live-demo-indicator {
    font-size: 0.8rem;
    color: var(--neon-blue);
    margin-left: 10px;
    font-weight: 600;
}

/* Enhanced Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, var(--dark), #1a1a2e);
    color: white;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-sidebar:hover {
    transform: rotate(90deg);
}

.sidebar-menu {
    padding: 1rem 0;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-title {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.menu-items {
    list-style: none;
}

.menu-item-with-preview {
    position: relative;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.menu-item-with-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--success);
    padding-left: 2.8rem;
}

.menu-item-with-preview.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
}

/* Subcategory Preview Styles */
.subcategory-preview {
    position: absolute;
    left: 100%;
    top: 0;
    width: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 1001;
    display: none;
    color: var(--dark);
    max-height: 500px;
    overflow-y: auto;
}

.menu-item-with-preview:hover .subcategory-preview {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.preview-header {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}

.preview-product {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.preview-product:hover {
    background: var(--light);
    transform: translateX(5px);
}

.preview-product:last-child {
    border-bottom: none;
}

.preview-product-info {
    flex: 1;
}

.preview-product-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.preview-product:hover .preview-product-title {
    color: var(--primary);
}

.preview-product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

.no-products {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 2rem 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.html-color {
    color: var(--html-color);
}

.python-color {
    color: var(--python-color);
}

/* Products Section */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 2.5rem;
    color: var(--secondary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.7rem 1.5rem;
    background-color: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-tab.active, .category-tab:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

/* Python Section */
.python-section {
    background-color: var(--light);
    padding: 4rem 0;
}

.python-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.python-text {
    flex: 1;
}

.python-image {
    flex: 1;
    background: linear-gradient(135deg, #ffde57, #3776ab);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: #306998;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.python-image i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary);
}

.remove-item {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #dc3545;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--success), #3ab0d9);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    width: 20px;
    color: var(--success);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark), #1a1a2e);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--success);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .python-content {
        flex-direction: column;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 300px;
        left: -300px;
    }

    .subcategory-preview {
        width: 280px;
        left: 100%;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Mobile-first improvements */
@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
        left: -100vw;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}