:root {
    --primary: #00325a;
    --primary-light: #004377;
    --accent: #fa9600;
    --accent-light: #ffb84d;
    --background: #fafafa;
    --text: #333;
    --text-light: #666;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #dc3545;
    --border: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-cart {
    position: relative;
    width: 100px;
    height: 100px;
}

.cart-body {
    position: absolute;
    width: 80px;
    height: 60px;
    background: var(--accent);
    border-radius: 8px 8px 0 0;
    bottom: 0;
    left: 10px;
}

.cart-handle {
    position: absolute;
    width: 40px;
    height: 20px;
    border: 4px solid var(--accent);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.cart-wheel {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    bottom: -8px;
}

.cart-wheel:nth-child(1) {
    left: 15px;
}

.cart-wheel:nth-child(2) {
    right: 15px;
}

.loader-progress {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--accent);
    animation: progress 1s ease-in-out infinite;
}

.loader-text {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.3em;
    animation: pulse 2s ease-in-out infinite;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--accent);
}

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

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

.nav-links a:hover {
    color: var(--accent);
}

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

.btn-login, .btn-signup {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-signup {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

.btn-login:hover, .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.1;
    animation: rotate 60s linear infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23FFFFFF10' d='M39.5,-64.6C52.9,-56.8,66.8,-49.2,75.7,-37.2C84.6,-25.1,88.5,-8.5,86.8,7.5C85.1,23.5,77.9,39,67.1,51.1C56.3,63.2,42,71.9,26.6,75.9C11.2,79.9,-5.3,79.2,-20.9,74.7C-36.5,70.2,-51.2,61.9,-63.3,49.8C-75.4,37.7,-84.9,21.8,-86.7,4.9C-88.5,-12,-82.6,-30,-71.7,-43.2C-60.8,-56.4,-45,-64.8,-30.1,-71.8C-15.2,-78.8,-1.3,-84.4,11.2,-81.8C23.7,-79.2,26.1,-72.4,39.5,-64.6Z' transform='translate(100 100)' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hero-content {
    max-width: 600px;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    transform: translateZ(0);
    transition: transform 0.3s ease;
    margin-left: 49px;
}

.hero h1 .accent {
    color: var(--accent);
    display: inline-block;
    position: relative;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hero h1:hover .accent::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    margin-left: 49px;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-left: 49px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.6s ease;
    transform: skewX(-30deg);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    transform: translateX(200%) skewX(-30deg);
}

.hero-3d-cart {
    position: absolute;
    right: 10%;
    bottom: 15%;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float 5s ease-in-out infinite, rotate3D 20s linear infinite;
}

.cart-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cart-3d-face {
    position: absolute;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    backface-visibility: visible;
    backdrop-filter: blur(4px);
}

.cart-3d-face.front {
    transform: translateZ(75px);
}

.cart-3d-face.back {
    transform: rotateY(180deg) translateZ(75px);
}

.cart-3d-face.right {
    transform: rotateY(90deg) translateZ(100px);
    width: 150px;
}

.cart-3d-face.left {
    transform: rotateY(-90deg) translateZ(100px);
    width: 150px;
}

.cart-3d-face.top {
    transform: rotateX(90deg) translateZ(75px);
    height: 200px;
}

.cart-3d-face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
    height: 200px;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover h3, .feature-card:hover p {
    color: white;
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--accent-light);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* How it Works */
.how-it-works {
    padding: 8rem 2rem;
    background: var(--background);
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    background: var(--accent);
}

.step h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 8rem 2rem;
    background: white;
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonials-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-content {
    background: var(--background);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    position: relative;
    max-width: 800px;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: var(--background) transparent transparent;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-content p::before, .testimonial-content p::after {
    content: '"';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.testimonial-author-info h4 {
    color: var(--primary);
}

.testimonial-author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FFFFFF10' fill-opacity='1' d='M0,192L48,208C96,224,192,256,288,250.7C384,245,480,203,576,202.7C672,203,768,245,864,250.7C960,256,1056,224,1152,213.3C1248,203,1344,213,1392,218.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

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

.social-links a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate3D {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-3d-cart {
        display: none;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    transform: translateY(-50px);
    transition: transform 0.3s;
    position: relative;
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-light);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}