/* ==========================================================================
   Product Page Template - Core Styles
   ========================================================================== */

/* ==========================================================================
   1. Core Layout and Structure
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
    background: none !important;
}

body.dark-scheme {
    background: none !important;
    position: relative;
    transition: transform 0.3s ease-out;
    transform-origin: center center;
    min-height: 100vh;
}

.main-content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 95%,
        rgba(15, 18, 27, 0.9) 100%
    );
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4)
    );
    z-index: 0;
}

/* ==========================================================================
   2. Header Styles
   ========================================================================== */

/* Header and Menu Styles */
header.transparent {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

header.transparent.hidden {
    transform: translateY(-100%);
}

#topbar {
    background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.95));
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#topbar .topbar-widget {
    position: relative;
    padding: 8px 16px;
    margin: 0 6px;
    border-radius: 20px;
    background: rgba(40, 40, 40, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

#topbar .topbar-widget:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.2);
}

#topbar .topbar-widget a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.95em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#topbar .topbar-widget a:hover {
    color: #ffffff;
}

#topbar .topbar-widget img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#topbar .topbar-widget:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Logo Styles */
#logo {
    padding: 15px 0;
}

#logo img {
    max-height: 50px;
    transition: all 0.3s ease;
}

/* Main Menu */
#mainmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

#mainmenu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#mainmenu li a:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff3333;
}

/* ==========================================================================
   3. Product Hero Section
   ========================================================================== */

.first-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 100px 20px;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

/* Product Image Container */
.product-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1 !important;
    perspective: 1000px;
}

.product-image-container {
    transform-style: preserve-3d;
    will-change: transform;
}

.product-image {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* Product Stats */
.product-stats {
    display: flex;
    flex-direction: column;
    gap: 90px;
    color: white;
    z-index: 2;
}

.stat-block {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.stat-number .number {
    color: #ff0000;
    font-size: 48px;
    font-weight: 700;
}

.stat-number .unit {
    color: #ff3333;
    font-size: 24px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-label {
    font-size: 24px;
    opacity: 0.9;
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* ==========================================================================
   4. Features Section
   ========================================================================== */

.features-section {
    position: relative;
    padding: 80px 40px;
    margin: 60px auto;
    max-width: 1400px;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent 40%);
    pointer-events: none;
}

.features-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

/* ==========================================================================
   5. Footer Styles
   ========================================================================== */

footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 60px 0 0 0;
    position: relative;
    z-index: 2;
}

footer .widget {
    margin-bottom: 30px;
}

footer .widget h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

footer .widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

footer .widget .ul-style-2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .widget .ul-style-2 li {
    margin-bottom: 10px;
}

footer .widget .ul-style-2 li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .widget .ul-style-2 li a:hover {
    color: #ff3333;
    padding-left: 5px;
}

.contact-info .fw-bold {
    margin-bottom: 5px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #ff3333;
}

.subfooter {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subfooter .de-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subfooter .de-flex-col {
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ff3333;
    transform: translateY(-3px);
}

.menu-simple {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu-simple li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-simple li a:hover {
    color: #ff3333;
}

/* ==========================================================================
   6. Utility Classes and Common Elements
   ========================================================================== */

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float i {
    font-size: 24px;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #ff0000, #ff3333);
    z-index: 1001;
    transition: width 0.2s ease-out;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: red;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   7. Animations
   ========================================================================== */

/* Float Animation */
.float-effect {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.4));
    will-change: transform;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Pulsing Glow */
.pulsing-glow {
    position: relative;
}

.pulsing-glow::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2), transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Fade In */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. Media Queries
   ========================================================================== */

@media (max-width: 1200px) {
    .first-section {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .product-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 40px 20px;
        margin: 30px 15px;
    }

    .features-title {
        font-size: 32px;
    }

    .stat-number .number {
        font-size: 36px;
    }

    .stat-number .unit {
        font-size: 18px;
    }

    .stat-label {
        font-size: 18px;
    }

    #topbar .xs-hide {
        display: none !important;
    }

    .subfooter .de-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .menu-simple {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-image {
        max-height: 300px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
    }
} 