@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@200;300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #22A1FE;
    --primary-cyan: #00d4ff;
    --primary-purple: #7B2DFF;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --gradient-1: linear-gradient(135deg, #22A1FE 0%, #7B2DFF 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #22A1FE 50%, #7B2DFF 100%);
    --gradient-3: linear-gradient(180deg, rgba(34, 161, 254, 0.15) 0%, transparent 100%);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glow-blue: 0 0 30px rgba(34, 161, 254, 0.5);
    --glow-purple: 0 0 30px rgba(123, 45, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(34, 161, 254, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 45, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    z-index: -2;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Navigation */
.NavCustom1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.NavCustom1.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navcustom3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(34, 161, 254, 0.3));
}

.nav-logo:hover {
    transform: scale(1.05);
}

.customNav2 {
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    color: var(--text-white) !important;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 20px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid rgba(34, 161, 254, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary-cyan);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 0 60px rgba(34, 161, 254, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary-custom {
    background: var(--gradient-1);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-secondary-custom:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid rgba(34, 161, 254, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 161, 254, 0.3);
    box-shadow: var(--glow-blue);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(34, 161, 254, 0.3));
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    color: var(--text-gray);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* Products Section */
.products-section {
    background: linear-gradient(180deg, transparent 0%, rgba(34, 161, 254, 0.03) 50%, transparent 100%);
    padding: 120px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    group: product;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--product-color, var(--gradient-1));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 30, 1) 0%, rgba(10, 10, 15, 1) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--product-color, var(--gradient-1));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    padding: 25px;
}

.product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(34, 161, 254, 0.3);
}

.product-name-th {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.product-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-feature-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    color: var(--text-gray);
}

/* Product Colors */
.product-card.shield-pro { --product-color: linear-gradient(135deg, #ff4444 0%, #cc0000 100%); }
.product-card.prime-touch { --product-color: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%); }
.product-card.interior-shield { --product-color: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); }
.product-card.crystal-clear { --product-color: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.product-card.jet-black { --product-color: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }
.product-card.ultra-shine { --product-color: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }

/* Gallery Section */
.gallery-section {
    padding: 120px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .nav-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--glow-blue);
}

.footer-social img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 13px;
}

.footer-bottom img {
    height: 60px;
}

/* Floating Social Bar */
.floating-social {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.floating-social a {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-social a:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: var(--glow-blue);
}

.floating-social img {
    width: 26px;
    height: 26px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

/* Why Choose Us Section */
.why-section {
    padding: 120px 0;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(34, 161, 254, 0.15);
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-icon {
    width: 100px;
    margin: 0 auto 25px;
}

.why-icon img {
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(34, 161, 254, 0.4));
    transition: transform 0.4s ease;
}

.why-card:hover .why-icon img {
    transform: scale(1.1);
}

.why-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-desc {
    color: var(--text-gray);
    font-size: 14px;
}

/* Mobile Styles */
@media screen and (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-row: span 1;
    }
}

@media screen and (max-width: 992px) {
    .nav-logo {
        width: 100px;
    }

    .navbar-toggler {
        border: none;
        padding: 10px;
    }

    .navbar-toggler ion-icon {
        font-size: 28px;
        color: white;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        padding: 15px 20px !important;
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .floating-social {
        right: 15px;
        bottom: 15px;
    }

    .floating-social a {
        width: 45px;
        height: 45px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Legacy Support - keeping some old classes */
.textcontent {
    display: none;
}

.slidedownoff {
    transform: none;
}

.ourgallery-img {
    width: 100%;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.ourgallery-content {
    margin-bottom: 20px;
}

.displaynone {
    display: none;
}

/* Product Showcase Banner */
.product-showcase {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(34, 161, 254, 0.1) 0%, rgba(123, 45, 255, 0.1) 100%);
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 161, 254, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.showcase-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.showcase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    margin-bottom: 15px;
}

.showcase-text {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Divider Line */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin: 0;
}
