/* AI Chat Modal Styles */
.ai-chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.ai-chat-modal.active {
    display: flex;
}

.chat-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-weight: 500;
}

.close-chat {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.close-chat:hover {
    transform: scale(1.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.bot-message {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.3rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-right: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.chat-input input:focus {
    border-color: #667eea;
}

.chat-input button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Quick Questions */
.quick-questions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-question {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.quick-question:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Update header user auth styles for better spacing */
.user-auth {
    margin-left: auto;
    margin-right: 2rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    background: var(--text-color);
    color: white;
}
/* Floating AI Assistant Button */
.floating-ai-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.floating-ai-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.floating-ai-button .ai-icon {
    font-size: 1.5rem;
    color: white;
}

.ai-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-ai-button:hover .ai-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* User Authentication Styles - KEEP ONLY THIS SECTION */
.user-auth {
    margin-left: auto;
    margin-right: 2rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    background: var(--text-color);
    color: white;
}

.user-welcome {
    position: relative;
    cursor: pointer;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-welcome span {
    font-weight: 500;
    color: var(--text-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.user-welcome:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 400;
}

.user-dropdown a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Welcome Modal for Non-Logged In Users */
.welcome-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.welcome-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.welcome-modal h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-modal p {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.welcome-modal-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.welcome-modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.welcome-modal-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.welcome-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.close-welcome-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.close-welcome-modal:hover {
    color: var(--accent-color);
}

/* REMOVE THE DUPLICATE SECTION BELOW - Delete everything from "User Authentication Styles" to the end of that duplicate section */

.user-welcome {
    position: relative;
    cursor: pointer;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-welcome span {
    font-weight: 500;
    color: var(--text-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.user-welcome:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 400;
}

.user-dropdown a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Welcome Modal for Non-Logged In Users */
.welcome-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.welcome-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.welcome-modal h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-modal p {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.welcome-modal-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.welcome-modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.welcome-modal-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.welcome-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.close-welcome-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.close-welcome-modal:hover {
    color: var(--accent-color);
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --accent-color: #c19a6b;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --transition: all 0.3s ease;
    --section-bg-1: #ffffff;
    --section-bg-2: #f8f9fa;
    --section-bg-3: #ffffff;
    --section-bg-4: #f8f9fa;
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    cursor: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

/* Custom Cursor - Outline Only */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
    background-color: transparent;
}

.cursor.hover {
    transform: scale(1.5);
    border-color: #764ba2;
}

/* Header Styles with Frosted Glass Effect */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 3rem;
    letter-spacing: 1px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    margin-bottom: 4px;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--gradient-primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--gradient-primary);
}

/* Navigation with Frosted Glass Effect */
.main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.main-nav.active {
    left: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav ul li {
    border-bottom: 1px solid rgba(240, 240, 240, 0.5);
}

.main-nav ul li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 300;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.5s ease forwards;
}

.main-nav.active ul li:nth-child(1) a { animation-delay: 0.1s; }
.main-nav.active ul li:nth-child(2) a { animation-delay: 0.2s; }
.main-nav.active ul li:nth-child(3) a { animation-delay: 0.3s; }
.main-nav.active ul li:nth-child(4) a { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-nav ul li a:hover {
    background: var(--gradient-primary);
    color: white;
    padding-left: 2.5rem;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.has-submenu.active .submenu {
    display: block;
}

.submenu li {
    border-bottom: none;
}

.submenu li a {
    padding-left: 3rem !important;
    font-size: 0.9rem;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Page Sections */
.page {
    min-height: 100vh;
    padding: 8rem 5% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Section - Elegant Gradient */
#home {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    color: white;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 3rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 300;
    color: white;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button: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: 0.5s;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.machine-3d {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.machine-base {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.machine-body {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 15px;
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.machine-details {
    position: absolute;
    width: 80%;
    height: 60%;
    background: linear-gradient(135deg, #4a6480 0%, #3a526b 100%);
    border-radius: 10px;
    top: 20%;
    left: 10%;
}

.machine-controls {
    position: absolute;
    width: 60%;
    height: 15%;
    background: var(--gradient-accent);
    border-radius: 8px;
    bottom: 10%;
    left: 20%;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
    100% { transform: translateY(0px) rotateX(5deg); }
}

/* Products Section - Sophisticated Light Theme */
#products {
    background: var(--section-bg-2);
    position: relative;
}

#products::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    opacity: 0.03;
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover .category-content h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-image {
    height: 200px;
    background: var(--gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    transition: var(--transition);
}

.category-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.product-image {
    height: 300px;
    width: 400px;
    background: var(--gradient-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.product-content {
    padding: 1.5rem;
}

.product-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text-color);
}

.product-price {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    text-decoration: line-through;
    color: var(--light-text);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.discount {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.buy-button::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: 0.5s;
}

.buy-button:hover::before {
    left: 100%;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Materials Section - Elegant Dark Theme */
#materials {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
}

#materials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
}

.section-title h2 {
    color: white;
}

#materials .section-title h2 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#materials .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

#materials .category-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#materials .category-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-15px);
}

#materials .category-content h3 {
    color: white;
}

#materials .category-content p {
    color: rgba(255, 255, 255, 0.8);
}

#materials .category-card:hover .category-content h3 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Explore Section - Light with Accents */
#explore {
    background: var(--section-bg-2);
    position: relative;
}

#explore::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-gold);
    opacity: 0.03;
    border-radius: 50%;
    transform: translate(-150px, 150px);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.video-placeholder {
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.video-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 5% 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><polygon fill="white" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 400;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    bottom: -8px;
    left: 0;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-column ul li a:hover {
    color: #f6d365;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-option {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 300;
    background: var(--card-bg);
}

.payment-option:hover {
    border-color: var(--accent-color);
    background: rgba(193, 154, 107, 0.05);
    transform: translateY(-2px);
}

/* Product Description Styles */
.product-description {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    font-weight: 300;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.8rem 0;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 300;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .category-grid, .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid, .materials-grid, .products-grid, .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo {
        margin-left: 1.5rem;
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}
/* Amazon-style Grid Template */
.products-grid-template {
    max-width: 1400px;
    width: 100%;
    margin-top: 2rem;
}

/* Filter and Sort Bar */
.filter-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.results-count {
    color: var(--light-text);
    font-weight: 300;
    font-size: 0.9rem;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Amazon-style Grid Layout */
.amazon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.amazon-product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
}

.amazon-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.amazon-product-image {
    height: 200px;
    background: var(--gradient-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.amazon-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.amazon-product-content {
    padding: 1.2rem;
}

.amazon-product-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.amazon-product-price {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
}

.amazon-current-price {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amazon-original-price {
    text-decoration: line-through;
    color: var(--light-text);
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.amazon-discount {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.amazon-rating {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--light-text);
}

.stars {
    color: #ffb400;
    margin-right: 0.3rem;
}

.view-details-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.7rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color);
}

.pagination-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.pagination-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Details Modal */
.product-details-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

.product-details-image {
    background: var(--gradient-gold);
    height: 400px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.product-details-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.product-details-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.product-details-price {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-details-original-price {
    text-decoration: line-through;
    color: var(--light-text);
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.product-details-discount {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.product-details-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.product-details-features {
    margin-bottom: 1.5rem;
}

.product-details-features h4 {
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-btn, .checkout-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
}

.add-to-cart-btn {
    background: var(--gradient-primary);
    color: white;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.checkout-btn {
    background: var(--gradient-secondary);
    color: white;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .amazon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .amazon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .filter-sort-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .amazon-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
.gradient-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.gradient-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}
