/* ===================================================
   988 BABY - Custom CSS
   ร้านขายของเด็กครบวงจร
   =================================================== */

/* ===== FONTS ===== */
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - สีสันสดใสเหมาะกับร้านเด็ก */
    --primary-color: #FF6B9D;
    --primary-dark: #E91E63;
    --primary-light: #FFB6C1;
    --secondary-color: #7C4DFF;
    --secondary-dark: #651FFF;
    --accent-color: #FFD93D;
    --success-color: #6BCB77;
    --info-color: #74B9FF;
    --warning-color: #FDCB6E;

    /* Backgrounds */
    --light-bg: #FFF5F8;
    --card-bg: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #7C4DFF 100%);
    --gradient-hero: linear-gradient(135deg, #FFF5F8 0%, #F8E1FF 50%, #E8F4FF 100%);
    --gradient-footer: linear-gradient(135deg, #FF6B9D 0%, #E91E63 100%);

    /* Text Colors */
    --dark-text: #2D3436;
    --light-text: #636E72;
    --white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.15);
    --shadow-md: 0 4px 20px rgba(255, 107, 157, 0.2);
    --shadow-lg: 0 8px 40px rgba(255, 107, 157, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(255, 107, 157, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container Max Width */
@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== SKIP NAVIGATION LINK - Accessibility ===== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    transition: var(--transition);
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    color: var(--white);
}

/* ===== HEADER - Glassmorphism Effect ===== */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

/* Brand Logo */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .brand-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 10px 20px !important;
    margin: 0 4px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--white);
    background: var(--gradient-primary);
}

.navbar-nav .nav-link i {
    transition: var(--transition);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B9D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
#hero {
    background: var(--gradient-hero);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Hero Decorative Elements */
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Hero Buttons */
.btn-hero {
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-hero:active {
    transform: translateY(0);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-hero-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

/* Wave Separator */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-separator .shape-fill {
    fill: var(--white);
}

/* ===== PRODUCTS SECTION ===== */
#products {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-image-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card-body {
    padding: 24px;
    text-align: center;
}

.product-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: -50px auto 16px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.product-card-icon.pink {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FAB 100%);
}

.product-card-icon.purple {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
}

.product-card-icon.yellow {
    background: linear-gradient(135deg, #FFD93D 0%, #FFE66D 100%);
}

.product-card-icon.green {
    background: linear-gradient(135deg, #6BCB77 0%, #8FE098 100%);
}

.product-card-icon.blue {
    background: linear-gradient(135deg, #74B9FF 0%, #A4D4FF 100%);
}

.product-card-icon.red {
    background: linear-gradient(135deg, #E91E63 0%, #FF5C8D 100%);
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.product-card-description {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 12px;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    margin-top: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* ===== ABOUT SECTION ===== */
#about {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid var(--primary-color);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-image-wrapper::after {
    content: '👶';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.about-company-name {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 16px;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card-icon.purple {
    background: rgba(124, 77, 255, 0.15);
    color: var(--secondary-color);
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: 100px 0;
    background: var(--white);
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.contact-card-text {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.7;
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
    background: var(--white);
}

.form-control::placeholder {
    color: #B2BEC3;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-footer);
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end;
    }
}

.footer-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px 0 30px;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== UTILITIES ===== */

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Mobile: < 576px */
@media (max-width: 575.98px) {
    #hero {
        padding: 60px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image::before {
        display: none;
    }

    .btn-hero {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    #products,
    #about,
    #contact {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-image-wrapper::after {
        display: none;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .product-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: -40px auto 12px;
    }
}

/* Tablet: 576px - 992px */
@media (min-width: 576px) and (max-width: 991.98px) {
    #hero {
        padding: 80px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Desktop: > 992px */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 12px 24px !important;
    }

    .hero-content {
        padding-right: 40px;
    }
}

/* ===== ANIMATIONS ON SCROLL ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== SELECTION HIGHLIGHT ===== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}