@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800;900&display=swap');

/* Main content container */
.main-content {
    width: 100%;
    max-width: 100vw; /* Prevent exceeding viewport width */
    min-height: 80vh; /* Increased from 75vh */
    display: flex;
    align-items: stretch;
    animation: fadeIn 1s ease-out;
    box-sizing: border-box;
    padding: 20px; /* Slightly increased from 18px */
    gap: 20px; /* Slightly increased from 18px */
}

/* Left side container: now hosts a slideshow */
.left-side {
    flex: 1;
    position: sticky;
    top: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
    border-radius: 20px;
    margin-right: 10px;
    box-sizing: border-box;
    min-height: 80vh;
    align-self: flex-start;
    background: #000; /* neutral background behind images */
}

/* Remove the old animated overlay */
.left-side::before { display: none; }

/* About slideshow layers */
.about-gallery { position: relative; width: 100%; height: 100%; min-height: 80vh; border-radius: inherit; overflow: hidden; }
.about-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 450ms ease;
}
.about-layer.is-active { opacity: 1; }

/* Bottom dots (ไข่ปลา) */
.about-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}
.about-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.about-dot:hover { transform: scale(1.12); opacity: 0.92; }
.about-dot.is-active { background: #4a4a4a; transform: scale(1.22); box-shadow: 0 10px 22px rgba(0,0,0,0.35); }

/* Company name styling */
.company-name {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    animation: textGlow 3s ease-in-out infinite alternate;
    margin: 0;
    padding: 20px;
}

/* Left side h1 styling (Company name) - positioned at top */
.left-side h1 {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    animation: textGlow 3s ease-in-out infinite alternate;
    margin: 0;
    padding: 20px;
}

/* Right side content area - rounded corners */
.right-side {
    flex: 1;
    padding: 40px 35px;
    background: linear-gradient(
        135deg,
        #f8f9fa 0%,
        #ffffff 50%,
        #f1f3f4 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: slideInRight 1s ease-out;
    border-radius: 20px; /* Added full rounded corners */
    margin-left: 10px; /* Add space between sections */
    box-sizing: border-box;
}

/* Decorative elements for right side */
.right-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 140, 0, 0.05) 0%,
        transparent 70%
    );
    animation: float 6s ease-in-out infinite;
}

/* Content styling */
.content-wrapper {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out;
}

.content-wrapper h1 {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.content-wrapper h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff8c00, #ffa500);
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.8s both;
}

.content-wrapper p {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem); /* Increased slightly */
    line-height: 1.5; /* Adjusted for readability */
    color: #555;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    text-align: justify;
    animation: fadeInUp 1s ease-out calc(0.3s * var(--index, 1)) both;
    opacity: 0;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    word-wrap: break-word; /* Prevent text overflow */
    overflow-wrap: break-word;
    max-width: 100%; /* Ensure text doesn't exceed container */
    box-sizing: border-box;
    letter-spacing: -0.1px;
}

.content-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 20px 0; /* Increased from 10px 0 */
}

.content-wrapper li {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    color: #666;
    margin-bottom: 12px; /* Increased from 6px */
    padding-left: 28px; /* Increased from 18px */
    position: relative;
    animation: fadeInUp 1s ease-out calc(0.6s + var(--delay, 0s)) both;
    letter-spacing: -0.2px;
    line-height: 1.5; /* Improved line-height */
}

.content-wrapper li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #ff8c00;
    font-weight: bold;
    font-size: 1.2em;
    animation: checkMark 0.5s ease-out calc(1s + var(--delay, 0s)) both;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    color: white;
    text-decoration: none;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 35px;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s both;
    margin-top: 12px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 140, 0, 0.4);
    background: linear-gradient(45deg, #ffa500, #ff8c00);
}

/* Accessible focus ring for any variant */
.cta-button:focus-visible {
    outline: 3px solid #ffb74d;
    outline-offset: 2px;
}

/* Variant: Outline (transparent with orange border) */
.cta-button--outline {
    background: transparent;
    color: #ff8c00;
    border: 2px solid #ff8c00;
    box-shadow: none;
}

.cta-button--outline:hover {
    background: rgba(255, 140, 0, 0.08);
    color: #e47600;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2);
}

/* Variant: Glass (subtle frosted look) */
.cta-button--glass {
    background: rgba(255, 255, 255, 0.25);
    color: #ff8c00;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.cta-button--glass:hover {
    background: rgba(255, 255, 255, 0.38);
    color: #e47600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

/* Variant: Neumorphic (raised soft shadow) */
.cta-button--neumorphic {
    background: #ffffff;
    color: #ff8c00;
    box-shadow: 8px 8px 16px #dfe3e6, -8px -8px 16px #ffffff;
    border: 0;
}

.cta-button--neumorphic:hover {
    transform: translateY(-2px);
    box-shadow: inset 6px 6px 12px #e3e7ea, inset -6px -6px 12px #ffffff;
}

/* Size helper: large */
.cta-button--lg { padding: 12px 28px; font-size: 1rem; }
.cta-button--xl { padding: 14px 32px; font-size: 1.05rem; }

/* Inline contact icons (LINE, phone, email) */
.contact-icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(45deg, #ff8c00, #ffa500); /* default (email) */
    box-shadow: none; /* remove glow/shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.contact-icon:hover { transform: translateY(-2px); box-shadow: none; }
.contact-icon:active { transform: translateY(0); }
.contact-icon:focus-visible { outline: 3px solid #ffb74d; outline-offset: 3px; }

/* Brand color for LINE */
.contact-icon--line {
    background: linear-gradient(45deg, #00c300, #00e000);
    box-shadow: none;
    width: 56px;
    height: 56px;
}

.contact-icon--line:hover {
    box-shadow: none;
}

/* Make the LINE glyph larger for better readability */
.contact-icon i { font-size: 1.9rem; line-height: 1; text-shadow: 0 0 1px rgba(0,0,0,0.25); }

/* Dark green for phone */
.contact-icon--phone {
    /* deep blue tone */
    background: linear-gradient(45deg, #0b4fa8, #09408f);
    box-shadow: none;
}

.contact-icon--phone:hover {
    box-shadow: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0;
}

/* PNG icon inside round button (About page) */
.contact-icon__img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 140, 0, 0.3);
    }
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(40px) translateY(40px); }
}

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

@keyframes expandLine {
    from { width: 0; }
    to { width: 50px; }
}

@keyframes checkMark {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        min-height: auto;
        width: 100%;
        max-width: 100vw;
        padding: 16px; /* Increased from 8px for better spacing */
        box-sizing: border-box;
        gap: 16px; /* Ensure gap between sections */
    }
    
    .left-side { 
        min-height: 30vh; 
        max-height: 40vh; 
        padding-top: 0; 
        border-radius: 15px; 
        margin: 0 0 12px 0; /* Increased from 8px */
        width: 100%; 
        max-width: 100%; 
    }
    .about-gallery { min-height: 30vh; max-height: 40vh; }
    
    .company-name {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        padding: 15px;
    }
    
    .right-side {
        padding: 30px 20px; /* Increased from 25px 15px */
        border-radius: 15px;
        margin: 0; /* Remove margins */
        width: 100%;
        max-width: 100%;
    }

    /* Hide inline LINE/phone/email icons on mobile as requested */
    .contact-icons {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px; /* Increased from 5px */
        gap: 12px;
    }
    
    .left-side {
        min-height: 25vh;
        max-height: 35vh;
        padding-top: 0;
        border-radius: 12px;
        margin-bottom: 12px; /* Increased from 5px */
    }
    .about-gallery { min-height: 25vh; max-height: 35vh; }
    
    .right-side {
        padding: 20px 14px; /* Increased from 15px 12px */
        border-radius: 12px;
    }
    
    .left-side h1 {
        font-size: clamp(1rem, 2vw, 1.6rem);
        letter-spacing: 1px;
        padding: 10px; /* Increased from 8px */
    }
}

/* Ensure all paragraphs don't overflow */
.right-side p {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6; /* Increased from 1.3 for better readability */
    color: #555;
    margin-bottom: 16px; /* Increased from 10px */
    position: relative;
    z-index: 2;
    text-align: justify;
    animation: fadeInUp 1s ease-out calc(0.3s * var(--index, 1)) both;
    opacity: 0;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    word-wrap: break-word; /* Prevent text overflow */
    overflow-wrap: break-word;
    max-width: 100%; /* Ensure text doesn't exceed container */
    box-sizing: border-box;
    letter-spacing: -0.3px;
}

/* Mobile text adjustments */
@media (max-width: 768px) {
    .right-side p {
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        margin-bottom: 14px; /* Increased from 8px */
        padding: 6px;
        border-radius: 4px;
        letter-spacing: -0.2px;
        line-height: 1.6; /* Improved line-height */
    }
    
    .right-side p:first-child {
        padding: 6px;
        border-radius: 6px;
        font-size: clamp(0.9rem, 1.6vw, 1.1rem);
        margin-bottom: 16px;
    }
    
    .right-side p:last-child {
        padding: 6px;
        border-radius: 6px;
        margin-bottom: 12px;
    }
}

/* Mobile Navigation System */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: linear-gradient(135deg, #00A651, #0077ff);
  border: none;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  backdrop-filter: blur(5px);
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  z-index: 1003;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #00A651, #0077ff);
  color: white;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo {
  height: 40px;
}

.mobile-brand {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-content {
  padding: 30px 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  border-radius: 12px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 119, 255, 0.1));
  color: #00A651;
  transform: translateX(5px);
}

.mobile-nav-link i {
  width: 24px;
  color: #00A651;
  font-size: 18px;
}

.mobile-nav-link span {
  font-weight: 500;
}

.mobile-nav-dropdown {
  margin-bottom: 5px;
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .mobile-nav-menu {
    width: 280px;
  }
  
  .mobile-menu-toggle {
    width: 45px;
    height: 45px;
    font-size: 16px;
    top: 15px;
    right: 15px;
  }
}

/* Brand logos section styling */
.brand-logos-section {
    padding: 40px 20px;
    background: transparent;
}

.brand-logos-heading h2 {
    font-family: 'Prompt', sans-serif;
    text-align: center;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: #333;
    margin: 0 0 18px 0;
    font-weight: 700;
}

.brand-logos {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    align-items: center;
    padding: 10px 20px 0 20px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 240px;
}

.brand-item img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.28s ease, filter 0.28s ease;
    filter: saturate(0.95) contrast(1);
}

/* Make Lakeland slightly larger (per request) */
.brand-item--lakeland img{
    max-width: 200px;
    max-height: 90px;
}

.brand-item:hover img {
    transform: translateY(-6px) scale(1.06);
    filter: saturate(1.1) contrast(1.05);
}

.brand-item figcaption {
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .brand-logos { gap: 28px; }
    .brand-item { flex-basis: 220px; }
    .brand-item img { max-width: 140px; max-height: 64px; }
    .brand-item--lakeland img{ max-width: 180px; max-height: 82px; }
}

@media (max-width: 768px) {
    .brand-logos { gap: 22px; }
    .brand-item { flex-basis: 200px; }
    .brand-logos-section { padding: 28px 12px; }
    .brand-item img { max-width: 120px; max-height: 60px; }
    .brand-item--lakeland img{ max-width: 160px; max-height: 74px; }
}

@media (max-width: 480px) {
    .brand-logos { gap: 18px; }
    .brand-item { flex-basis: 240px; }
    .brand-item img { max-width: 160px; max-height: 80px; }
    .brand-item--lakeland img{ max-width: 200px; max-height: 95px; }
    .brand-logos-heading h2 { font-size: 1.05rem; }
}
