:root {
    --bg-dark: #0F0F2E; /* Deep Navy */
    --bg-card: rgba(25, 25, 60, 0.5); /* Glass Navy */
    --text-main: #FFFFFF;
    --text-muted: #B3B3D1;
    --accent-primary: #00F0FF; /* Neon Cyan */
    --accent-secondary: #B026FF; /* Neon Purple */
    --accent-glow: rgba(0, 240, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(176, 38, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
}

.logo span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--glass-bg);
}

.admin-link:hover {
    color: var(--text-main);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 0;
    opacity: 0.4;
    animation: pulse 6s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; filter: hue-rotate(45deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(176, 38, 255, 0.5);
}

/* Products Section */
.products-section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Update: 3 Columns per row strictly */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card - Glassmorphism 2026 */
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), transparent 50%, var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}

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

.card-image-wrap {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(15,15,46,0.9), transparent);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .card-image {
    transform: scale(1.1) rotate(1deg);
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.card-tagline {
    color: var(--accent-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-arrow {
    position: absolute;
    right: 30px;
    bottom: 30px;
    color: var(--accent-primary);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.product-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 46, 0.9);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    background: rgba(25, 25, 60, 0.6);
    backdrop-filter: blur(25px);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow-y: auto;
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(176, 38, 255, 0.1);
}

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

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    transform: rotate(90deg);
    border-color: var(--accent-primary);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.modal-image-container {
    position: relative;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,30,0.4);
    border-right: 1px solid var(--glass-border);
}

.modal-image-container img {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}

.modal-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-secondary), var(--accent-primary));
    filter: blur(100px);
    z-index: 1;
    opacity: 0.3;
}

.modal-info {
    padding: 60px 50px;
}

.modal-tagline {
    color: var(--accent-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.modal-info h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.specs-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
}

.specs-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-box h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li::before {
    content: '→';
    color: var(--accent-secondary);
    margin-right: 15px;
    font-weight: bold;
    font-family: monospace;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
    background: rgba(15,15,46,0.8);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-image-container {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 40px;
    }
    .modal-image-container img { max-height: 350px; width: auto; }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 3rem; }
    .section-title h2 { font-size: 2.5rem; }
    .modal-info { padding: 40px 25px; }
    .modal-info h2 { font-size: 2.2rem; }
}
