/* --- Global & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background --- */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none; /* Make logo clickable */
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00ffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem; /* Added padding to account for fixed nav */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.hero-content {
    text-align: left;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpGlow 1s ease 0.4s forwards, glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease 0.6s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(30px);
    animation: slideUp 1s ease 0.8s forwards;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1.2s ease 1s forwards;
}

/* === START: Restored Hero Visual Styles === */
.usb-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usb-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.usb-image {
    width: 300px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 255, 255, 0.3));
    animation: float 4s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

/* Adjusted nth-child to target the two orbit rings */
.orbit-ring:nth-child(2) { 
    width: 350px;
    height: 350px;
    animation-duration: 20s;
}

.orbit-ring:nth-child(3) { 
    width: 300px;
    height: 300px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    top: -4px; /* Adjust position to center the dot on the ring */
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
}
/* === END: Restored Hero Visual Styles === */

/* --- Shared Section Styles --- */
.section-heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.section-heading.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Features Section --- */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(80px) rotateX(15deg);
}
.feature-card.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00ffff;
}

/* --- Product Section --- */
.product {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 128, 255, 0.05));
}
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.product-visual {
    position: relative;
    height: 450px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}
.product-info {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease 0.3s;
}
.product-visual.revealed, .product-info.revealed {
    opacity: 1;
    transform: translateX(0);
}
.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
}
.specs { list-style: none; margin-bottom: 2rem; }
.specs li { padding: 0.5rem 0; border-bottom: 1px solid rgba(0, 255, 255, 0.1); }
.specs strong { color: #00ffff; }

/* --- Pricing Section --- */
.pricing {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pricing-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.pricing-card.featured {
    border-color: #00ffff;
    transform: scale(1.05);
}
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}
.price {
    font-size: 3rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 1rem;
}
.price-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.price-features li { padding: 0.5rem 0; opacity: 0.9; }
.price-features li::before {
    content: '✓';
    color: #00ffff;
    margin-right: 0.5rem;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* --- Contact Page Styles --- */
.contact-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.squares-container {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    perspective: 1000px;
}

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

.square-link {
    position: relative;
    aspect-ratio: 1;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(.2,.9,.1,1);
    transform-style: preserve-3d;
    perspective: 600px;
}

.square {
    border-radius: 15px; /* Added rounded corners */
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
}

.square-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: translateZ(20px);
    position: relative;
    z-index: 2;
}

.square-icon {
    font-size: 3rem; /* Increased size */
    color: white; /* Changed color to white */
    transition: transform 0.3s ease;
}

.square-text {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.square-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 255, 255, 0.15), 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Grid layout adjustments for optimal placement */
.square-link:nth-child(1) { grid-column: 1; grid-row: 1; }
.square-link:nth-child(2) { grid-column: 2; grid-row: 1; }
.square-link:nth-child(3) { grid-column: 3; grid-row: 1; }
.square-link:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }
.square-link:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }

/* Hover effects */
.square-link:hover {
    transform: translateY(-10px) translateZ(20px);
}

.square-link:hover .square {
    border-color: #00ffff;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.square-link:hover .square-icon {
    transform: scale(1.2) translateY(-5px);
}

.square-link:hover .square-text {
    opacity: 1;
    transform: translateY(0);
}

.square-link:hover .square-glow {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .squares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .square-link:nth-child(1) { grid-column: 1; grid-row: 1; }
    .square-link:nth-child(2) { grid-column: 2; grid-row: 1; }
    .square-link:nth-child(3) { grid-column: 1; grid-row: 2; }
    .square-link:nth-child(4) { grid-column: 2; grid-row: 2; }
    .square-link:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
}

/* Active nav link style */
.nav-links a.active {
    color: #00ffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #00ffff, #0080ff);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

/* --- Footer --- */
footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 3rem 2rem 1rem;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-links a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #00ffff; }

/* --- Cart Page Styles --- */
.cart-section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-section h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cart-items {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 60px;
    height: auto;
}

.item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #00ffff;
}

.item-details p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.item-quantity input {
    width: 60px;
    padding: 0.5rem;
    background: #0a0a0a;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 600;
}

.item-remove a {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.item-remove a:hover {
    color: #ff8888;
}

.order-summary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: sticky;
    top: 100px; /* Adjust based on nav height */
}

.order-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #00ffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.order-summary .cta-button {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem;
    font-size: 1.2rem;
}


/* --- Animations & Keyframes --- */
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpGlow { to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { /* Renamed from original 'float' to avoid conflict with particle float */
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-container, .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    /* Added media query for the hero showcase elements */
    .usb-showcase {
        width: 300px;
        height: 300px;
    }
    .usb-image {
        width: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    .item-image {
        margin: 0 auto;
    }
    .item-quantity {
        justify-self: center;
    }
}