html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #4facfe;
    --secondary-blue: #00f2fe;
    --dark-grey: #1a1a1a;
    --light-grey: #2d2d2d;
    --accent-red: #ff416c;
    --text-white: #ffffff;
    --text-grey: #b3b3b3;
}

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

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.highlight {
    color: var(--primary-blue);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.cart-btn {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
    transition: all 0.3s;
}

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

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.glitch {
    position: relative;
    color: var(--text-white);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(80px, 9999px, 90px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 20px, 0); }
    80% { clip: rect(40px, 9999px, 70px, 0); }
    100% { clip: rect(90px, 9999px, 30px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(50px, 9999px, 20px, 0); }
    40% { clip: rect(90px, 9999px, 60px, 0); }
    60% { clip: rect(20px, 9999px, 40px, 0); }
    80% { clip: rect(70px, 9999px, 10px, 0); }
    100% { clip: rect(30px, 9999px, 50px, 0); }
}

.hero p {
    font-size: 20px;
    color: var(--text-grey);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-red), #ff4b2b);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.4);
}

/* 3D Cube Animation */
.hero-visual {
    perspective: 1000px;
}

.cube-container {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

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

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(79, 172, 254, 0.1);
    border: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Features Section */
.features {
    padding: 100px 10%;
    background: var(--light-grey);
}

.features h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

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

.feature-card {
    background: var(--dark-grey);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card p {
    color: var(--text-grey);
}

/* Pricing Section */
.pricing {
    padding: 100px 10%;
}

.pricing h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--light-grey);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.plan-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-red);
    z-index: 10;
}

.plan-card.featured {
    background: linear-gradient(145deg, #2d2d2d, #353535);
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.1);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.price span {
    font-size: 16px;
    color: var(--text-grey);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 15px;
    color: var(--text-grey);
    display: flex;
    align-items: center;
}

.plan-features li i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.plan-features li i.fa-times {
    color: var(--accent-red);
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn:hover {
    background: var(--primary-blue);
}

.plan-card.featured .buy-btn {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.plan-card.featured .buy-btn:hover {
    background: #3a95e4;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--light-grey);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--primary-blue);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    color: var(--text-white);
}

.close {
    color: var(--text-grey);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-white);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    margin-top: 20px;
    text-align: right;
    font-size: 20px;
    color: var(--primary-blue);
}

.payment-methods {
    margin-top: 30px;
}

.payment-methods label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
}

.payment-methods input {
    margin-right: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #e03e60;
}

.checkout-form {
    margin-top: 20px;
    text-align: left;
}

.checkout-form h3 {
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 18px;
}

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

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.checkout-form input,
.contact input,
.contact textarea,
#login-form input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s;
}

.checkout-form input:focus,
.contact input:focus,
.contact textarea:focus,
#login-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

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

#login-modal .modal-content {
    background: var(--light-grey);
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#login-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-white);
}

footer {
    text-align: center;
    padding: 40px;
    background: var(--dark-grey);
    color: var(--text-grey);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    background: var(--dark-grey);
}

.contact h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-grey);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 16px;
    resize: vertical;
}

.contact textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none; /* Hidden by default */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 18px;
    }

    .cart-btn {
        margin: 15px 0;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-visual {
        margin-top: 50px;
    }

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