/* 
==============================================
   Nitro Laser - Corporate Website Styles
   Theme: Technological, Futuristic, Modern
   Colors: #071A3C (Dark Blue), #1F6ECF (Light Blue)
==============================================
*/

:root {
    /* Colors */
    --color-primary-dark: #071A3C;
    --color-primary-light: #1F6ECF;
    --color-primary-accent: #3A8DF5;
    --color-dark-bg: #030A17;
    --color-text-light: #E0E8F5;
    --color-text-muted: #94A3B8;
    --color-white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(7, 26, 60, 0.4);
    --glass-border: rgba(31, 110, 207, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-norm: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects for the entire body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(31, 110, 207, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(7, 26, 60, 0.4) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Default Elements */
a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: var(--transition-norm);
}

a:hover {
    color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #155bb3 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(31, 110, 207, 0.3);
    animation: pulse-glow 2.5s infinite alternate;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(31, 110, 207, 0.5);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #155bb3 0%, var(--color-primary-light) 100%);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
    width: 100%;
}

/* Glass panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(3, 10, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(31, 110, 207, 0.4));
    position: relative;
    z-index: 1;
}

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -50px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ff0000 50%, transparent 100%);
    box-shadow: 0 0 15px #ff0000, 0 0 25px rgba(255, 0, 0, 0.5);
    z-index: 2;
    animation: knight-rider 2.5s ease-in-out infinite;
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: var(--transition-norm);
    box-shadow: 0 0 8px var(--color-primary-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(3, 10, 23, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 40px;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-white);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-light);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6;
    /* Adjust visibility */
    mix-blend-mode: luminosity;
    /* Blends it with the tech theme */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 10, 23, 0.9) 0%, rgba(7, 26, 60, 0.7) 100%);
    z-index: 2;
}

/* Abstract blobs need a higher z-index to show over the overlay */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 3;
    opacity: 0.5;
    animation: blob-float 10s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary-dark);
    top: 10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-primary-light);
    bottom: 0%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    position: relative;
    /* Ensure it stays above absolute backgrounds */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A5C8F2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(31, 110, 207, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Mouse */
    opacity: 0.8;
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Advantages Banner */
.advantages {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, #0c2656 50%, var(--color-primary-dark) 100%);
    padding: 30px 0;
    border-top: 1px solid rgba(31, 110, 207, 0.2);
    border-bottom: 1px solid rgba(31, 110, 207, 0.2);
    position: relative;
    z-index: 10;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.adv-icon {
    width: 50px;
    height: 50px;
    background: rgba(31, 110, 207, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-accent);
    border: 1px solid rgba(31, 110, 207, 0.3);
}

.adv-text h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.adv-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Sections Global */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    color: var(--color-primary-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-col .image-wrapper {
    padding: 10px;
    position: relative;
}

.about-image-col img {
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.experience-badge .years {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features li i {
    color: var(--color-primary-accent);
    font-size: 1.4rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-norm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-hover-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(31, 110, 207, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: rgba(31, 110, 207, 0.8);
    box-shadow: 0 20px 50px rgba(31, 110, 207, 0.2);
}

.service-card:hover .service-hover-glow {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(7, 26, 60, 0.8), rgba(31, 110, 207, 0.4));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-accent));
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    position: relative;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(7, 26, 60, 0.8) 0%, rgba(31, 110, 207, 0.4) 100%);
    z-index: -1;
}

.split-cta {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.split-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.split-cta p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(31, 110, 207, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-accent);
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-card p,
.info-card a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.info-card a:hover {
    color: var(--color-primary-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-white);
    transition: var(--transition-norm);
}

.social-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-5px);
}

.contact-form {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-norm);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(31, 110, 207, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Section */
.footer {
    position: relative;
    padding-top: 80px;
    background-color: #020712;
    background-image: linear-gradient(to top, rgba(3, 10, 23, 1), rgba(3, 10, 23, 0.9)), url('img/nitro-laser-footer-bg-2-hq.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary-light);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--color-primary-accent);
    margin-top: 4px;
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Animations */
@keyframes knight-rider {
    0% {
        left: -60px;
        opacity: 0;
        transform: translateY(-50%) scaleX(0.5);
    }

    15% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }

    85% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }

    100% {
        left: 100%;
        opacity: 0;
        transform: translateY(-50%) scaleX(0.5);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(31, 110, 207, 0.3);
    }

    100% {
        box-shadow: 0 4px 25px rgba(31, 110, 207, 0.7);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-col {
        order: -1;
        margin-bottom: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Products Grid - 2 Columns on Mobile/Tablet */
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-info p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 30px;
    }
}

/* =============================================== */
/* Products Page Specific Styles                 */
/* =============================================== */

.page-header {
    padding-top: 120px;
    padding-bottom: 50px;
    min-height: auto;
}

.pt-0 {
    padding-top: 0;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-norm);
}

.filter-btn:hover {
    background: rgba(31, 110, 207, 0.2);
    border-color: rgba(31, 110, 207, 0.5);
}

.filter-btn.active {
    background: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(31, 110, 207, 0.5);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 0;
    /* Override glass-panel padding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 110, 207, 0.2);
    border-color: rgba(31, 110, 207, 0.6);
}

.product-card.hidden {
    display: none;
}

.product-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    /* Some background just in case img doesn't load instantly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* For images with white backgrounds, simulate an isolated look */
.product-card .product-img {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(200, 200, 200, 0.8) 100%);
}

.badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin-bottom: 10px;
}

.diode-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.analysis-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.skincare-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.body-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 10, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-norm);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content.dark-modal {
    background: rgba(7, 26, 60, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-norm);
    color: var(--color-white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-primary-accent);
}

.modal-content.dark-modal h2 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.dark-modal h3 {
    color: var(--color-primary-accent);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body strong {
    color: var(--color-white);
}

.company-info-block {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-accent);
}

.company-info-block p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.legal-link {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.legal-link:hover {
    color: var(--color-primary-accent);
}

/* Custom Scrollbar for Entire Website */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(31, 110, 207, 0.5);
    /* Semi-transparent main blue */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-accent);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}