/* 
   Nexda Co - Premium Glassmorphism Theme
   Variables & Reset
*/
:root {
    --bg-dark: #dfd5c9;
    --bg-card: rgba(0, 0, 0, 0.05);
    --bg-card-hover: rgba(0, 0, 0, 0.09);
    --border-color: rgba(0, 0, 0, 0.12);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;

    /* Vibrant Accents */
    --accent-cyan: #e61c24;
    --accent-blue: #b31219;
    --accent-purple: #333333;

    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --gradient-text: linear-gradient(to right, #c0111a, #e61c24);

    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Background Effects */
.bg-gradient-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(230, 28, 36, 0.12) 0%, rgba(223,213,201,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.bg-gradient-2 {
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(179, 18, 25, 0.08) 0%, rgba(223,213,201,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Typography & Utilities */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 28, 36, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(230, 28, 36, 0.5);
    transform: translateY(-2px);
}

.btn-primary-sm {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 28, 36, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-primary);
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.18);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.13);
    border-color: rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

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

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    max-height: 50vh;
    overflow-y: auto;
}

/* Dropdown Scrollbar */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.dropdown-content a {
    color: #e2e8f0;
    font-weight: 600;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 5%;
    padding-top: 80px;
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(230, 28, 36, 0.1);
    border: 1px solid rgba(230, 28, 36, 0.3);
    border-radius: 20px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.glass-sphere {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.sphere-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glass-card-hero {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 280px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: float 8s ease-in-out infinite reverse;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* Service Card Redesign */
.glass-card.service-card {
    background-color: #0a0a0f;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border-color: rgba(230,28,36,0.3);
}

.service-icon {
    display: none;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #e61c24;
}

.service-details {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.service-card .learn-more {
    color: #e61c24;
    font-weight: 700;
}

.service-card .btn-outline {
    border-color: #e61c24;
    color: #e61c24;
    font-weight: 600;
}

.service-card .btn-outline:hover {
    background-color: rgba(230,28,36,0.12);
    color: #e61c24;
}

.learn-more {
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more span {
    transition: var(--transition);
}

.learn-more:hover span {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
}

.cta-card {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(230, 28, 36, 0.1), rgba(179, 18, 25, 0.1));
}

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

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(230, 28, 36, 0.3);
}

/* Footer */
.footer {
    background: #0a0a0f;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

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

.about-card {
    padding: 3rem;
    text-align: left;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-card h3:first-child {
    margin-top: 0;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.brand-logo { height: 44px; width: auto; object-fit: contain; }
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo-icon { height: 44px; width: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand-name { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-weight: 900; font-size: 1.2rem; color: #ffffff; letter-spacing: 2px; }
.brand-corp { font-size: 0.48rem; color: #e61c24; font-weight: 700; letter-spacing: 4px; margin-top: 2px; text-transform: uppercase; }

/* Product Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 5% 6rem;
}

/* Reusable dark card — applies the same #0a0a0f treatment as service/product cards */
.card-dark {
    background-color: #0a0a0f !important;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4 {
    color: #ffffff;
}

.card-dark p, .card-dark .product-content {
    color: #94a3b8;
}

.card-dark .product-content h3 {
    color: #ffffff;
}

.card-dark hr, .card-dark [style*="border-top"] {
    border-color: rgba(255,255,255,0.1) !important;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: #0a0a0f;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.product-card:hover {
    border-color: rgba(230,28,36,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    align-self: flex-start;
}

.product-desc {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.product-features span {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #ffffff;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.product-price {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(230, 28, 36, 0.1);
    transform: translateY(-2px);
}
