* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-link, .register-link {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover, .register-link:hover {
    color: #667eea !important;
}

.separator {
    color: #333;
}

#navUserInfo {
    display: none;
    align-items: center;
    gap: 10px;
    color: #333;
}

.user-avatar {
    font-size: 1.2rem;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

#navUserInfo .username {
    font-weight: 500;
}

#navUserInfo .logout-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

#navUserInfo .logout-link:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    margin-top: -60px;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 8%;
    overflow: hidden;
    margin-top: 60px;
    background: #000;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: block;
    background: #000;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.8);
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .hero-carousel {
        margin-top: 50px;
        padding-bottom: 30%;
    }
}

.hero h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 0;
}

.products h2 {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card > *:last-child {
    margin-top: auto;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.8rem;
    color: #764ba2;
    font-weight: bold;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Registration Form */
.register-container {
    background: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    margin: 120px auto 60px;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.register-container h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.terms {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.terms a {
    color: #667eea;
    text-decoration: none;
}

/* Required field indicator */
.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .register-container {
        margin: 80px 20px 40px;
        padding: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
