/* ===============================================
   INFINITY BOOKSTORE - STYLES
   =============================================== */

/* CSS Variables for Theme Support */
:root {
    --primary-color: #065f46;
    --secondary-color: #10b981;
    --accent-color: #059669;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --card-bg: #f0fdf4;
    --border-color: #d1fae5;
    --shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    --shadow-hover: 0 4px 16px rgba(16, 185, 129, 0.2);
    --header-bg: #ffffff;
    --footer-bg: #064e3b;
    --footer-text: #ecfdf5;
    --success-color: #10b981;
    --error-color: #ef4444;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #34d399;
    --secondary-color: #10b981;
    --accent-color: #6ee7b7;
    --text-color: #ecfdf5;
    --bg-color: #022c22;
    --card-bg: #064e3b;
    --border-color: #065f46;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(16, 185, 129, 0.3);
    --header-bg: #022c22;
    --footer-bg: #011a14;
    --footer-text: #a7f3d0;
}

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

body {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headings use Lora serif font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-btn {
    position: relative;
    width: 56px;
    height: 28px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: visible;
}

.theme-btn:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.theme-btn .icon-moon,
.theme-btn .icon-sun {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-btn .icon-moon {
    left: 8px;
    opacity: 1;
    color: #64748b;
}

.theme-btn .icon-sun {
    right: 8px;
    opacity: 0.4;
    color: #f59e0b;
}

.theme-btn .toggle-circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

[data-theme="dark"] .theme-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-btn .icon-moon {
    opacity: 0.4;
    color: #94a3b8;
}

[data-theme="dark"] .theme-btn .icon-sun {
    opacity: 1;
    color: #fbbf24;
}

[data-theme="dark"] .theme-btn .toggle-circle {
    transform: translateX(28px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.cart-icon i {
    color: #10b981;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cart-icon:hover i {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Cart Modal/Dropdown */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.cart-close:hover {
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-color);
    opacity: 0.6;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-thumb {
    width: 70px;
    height: 90px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #e9ecef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-remove {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    height: fit-content;
}

.cart-item-remove:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background-color: var(--card-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-total-label {
    color: var(--text-color);
}

.cart-total-amount {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Payment Method Selection */
.payment-method {
    background-color: var(--body-bg);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.payment-label i {
    color: var(--primary-color);
}

.payment-options {
    display: flex;
    gap: 1rem;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-color);
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-radio {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.payment-option input[type="radio"]:checked + .payment-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.payment-option input[type="radio"]:checked ~ span {
    color: var(--secondary-color);
    font-weight: 600;
}

.mpesa-icon {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lipa-mpesa-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.mpesa-option {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.05));
    border-color: #4CAF50 !important;
}

.mpesa-option:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(46, 125, 50, 0.1));
}

.cash-icon {
    color: #10b981;
    font-size: 1.1rem;
}

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

.cart-actions .btn {
    flex: 1;
    text-align: center;
}

.btn-clear {
    background-color: transparent;
    color: var(--error-color);
    border: 2px solid var(--error-color);
}

.btn-clear:hover {
    background-color: var(--error-color);
    color: white;
}

@media (max-width: 480px) {
    .cart-modal {
        width: 100%;
        right: -100%;
    }
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.greeting {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.current-date {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-cart {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-cart i {
    transition: transform 0.3s ease;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-cart:hover i {
    transform: scale(1.2);
}

/* ===============================================
   SECTIONS
   =============================================== */
.featured,
.products-section {
    padding: 4rem 0;
}

.section-title,
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* ===============================================
   PRODUCTS GRID
   =============================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #e9ecef;
}

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

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.author {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ===============================================
   ABOUT PAGE
   =============================================== */
.about-page,
.contact-page,
.products-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.highlight-text {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    font-weight: 500;
    margin-top: 2rem;
}

/* ===============================================
   CONTACT PAGE
   =============================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2rem;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.success-message i {
    font-size: 1.5rem;
    color: #10b981;
}

.info-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.info-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-details p {
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.contact-link i {
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background-color: var(--card-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.review-info span {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.social-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.social-handle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--footer-text);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    width: 20px;
    color: var(--accent-color);
}

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

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

.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link i {
    font-size: 1.1rem;
}

.footer-social {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.feature-card {
    animation: fadeIn 0.5s ease-in;
}
