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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header-section {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: #3498db;
}

.header-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

.header-links a:hover {
    color: #3498db;
}

.login-btn, .signup-btn {
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid #3498db;
}

.signup-btn {
    background: #3498db;
}

.main-nav {
    padding: 15px 0;
    background: white;
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c !important;
    text-decoration: none;
}

.navbar-brand i {
    color: #3498db;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 10px 15px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: #3498db;
    color: white !important;
}

.cart-link {
    background: #e74c3c !important;
    color: white !important;
    border-radius: 20px;
}

.cart-count {
    background: #fff;
    color: #e74c3c;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* Hero Section */
.hero-section {
    margin-top: 120px;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.feature-card {
    padding: 40px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    background: white;
}

.products-section h2 {
    font-size: 3rem;
    color: #2c3e50;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-info {
    padding: 25px;
}

.product-info h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.product-rating {
    margin-bottom: 15px;
}

.product-rating i {
    color: #f39c12;
    font-size: 14px;
    margin-right: 2px;
}

.product-rating span {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    margin-left: 10px;
}

.add-to-cart {
    width: 100%;
    border-radius: 25px;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-section h2 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

.about-section p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 20px;
    z-index: -1;
}

.about-image img {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

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

/* Footer */
.footer-section {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-section h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 30px;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
}

/* Page Styles */
.page-header {
    margin-top: 120px;
    padding: 60px 0;
    background: #3498db;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-content {
    padding: 60px 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: none;
}

/* Policy Pages */
.policy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.policy-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
    color: #666;
    margin-bottom: 20px;
    padding-left: 30px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
}

/* Contact Page Styles */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    color: #3498db;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
    width: 25px;
}

.info-item h5 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .products-section h2 {
        font-size: 2.2rem;
    }
    
    .about-section h2 {
        font-size: 2.2rem;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .about-image::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }
}