/* Modern CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    --shadow-hover: 0 30px 80px rgba(99, 102, 241, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background */
.bg-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-decoration::before {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.bg-decoration::after {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.pages {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pages a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

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

.pages a:hover,
.pages a[aria-current="page"] {
    color: var(--primary);
}

.pages a:hover::after,
.pages a[aria-current="page"]::after {
    width: 100%;
}

.register {
    background: var(--gradient) !important;
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    transition: var(--transition) !important;
}

.register::after {
    display: none !important;
}

.register:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

.btn-ghost {
    background: transparent !important;
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
}

.btn-ghost:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
}

/* Page Hero */
.page-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--light);
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 20px;
    color: var(--gray);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Products Grid */
.products {
    padding: 100px 0;
    background: var(--light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

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

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

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--light);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease;
    color: var(--primary);
}

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

.product-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-bottom: 12px !important;
}

.product-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Info Sections */
.info-section {
    padding: 100px 0;
}

.info-section:nth-child(even) {
    background: var(--light);
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.info-content p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--dark);
    color: var(--white);
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 32px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray);
    font-size: 15px;
}

/* Forms */
.form,
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

#form-message {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 20px;
    display: none;
}

#form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

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

.about-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.feature-box {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--gray);
    font-size: 18px;
}

/* Auth Section - Sliding Login/Register */
.auth-section {
    padding: 80px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.auth-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 600px;
    margin: 0 auto;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: var(--gradient);
    color: var(--white);
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.overlay-panel h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.overlay-panel p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Auth Form */
.auth-form {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
    height: 100%;
    text-align: center;
}

.auth-form h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 15px;
}

.social-login {
    width: 100%;
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.divider {
    width: 100%;
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: var(--white);
    padding: 0 16px;
    position: relative;
    color: var(--gray);
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.switch-text {
    margin-top: 24px;
    color: var(--gray);
    font-size: 14px;
}

.switch-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.switch-text a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Cart Badge */
.cart-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

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

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Thank You Page */
.thank-you-section {
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    animation: scaleIn 0.5s ease 0.3s backwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.success-message {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 12px;
}

.sub-message {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.info-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

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

.info-card svg {
    color: var(--primary);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-container {
        max-width: 400px;
    }

    .form-container {
        width: 100% !important;
    }

    .sign-in-container,
    .sign-up-container {
        left: 0 !important;
        width: 100% !important;
    }

    .overlay-container {
        display: none;
    }

    .auth-container.right-panel-active .sign-in-container {
        transform: translateX(-100%);
    }

    .auth-form {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .pages {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 36px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form,
    .contact-form-wrapper {
        padding: 32px 24px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thank-you-content h1 {
        font-size: 36px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
    .bg-decoration {
    z-index: 0;
    pointer-events: none;
}

}
