/* CSS/style.css */

/* Base Styles */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    /* Copy Protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow selection in form inputs if any */
input, textarea {
    user-select: auto;
    -webkit-user-select: auto;
}

img {
    -webkit-user-drag: none;
}

/* Section Margins */
.section-container {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Editorial Section Titles */
.section-title-wrap {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-en-title {
    font-size: 2.5rem; /* Slightly smaller on SP */
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(0, 91, 172, 0.1);
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    top: -0.5rem;
    z-index: 0;
    transition: all 0.8s ease;
    white-space: nowrap;
    pointer-events: none;
    max-width: 100vw;
}

.section-jp-title {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.1em;
    padding: 0.5rem 2rem;
    display: inline-block;
}

.section-jp-title::before,
.section-jp-title::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.section-jp-title::before {
    top: -5px;
    left: -5px;
    border-top: 4px solid #005bac;
    border-left: 4px solid #005bac;
}

.section-jp-title::after {
    bottom: -5px;
    right: -5px;
    border-bottom: 4px solid #ff9900;
    border-right: 4px solid #ff9900;
}

.section-title-wrap:hover .section-jp-title::before {
    transform: translate(-5px, -5px);
}

.section-title-wrap:hover .section-jp-title::after {
    transform: translate(5px, 5px);
}

.reveal-active .section-en-title {
    transform: translateY(-10px);
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .section-en-title {
        font-size: 6rem;
        top: -2rem;
    }
    .section-jp-title {
        font-size: 2.8rem;
    }
    .section-jp-title::before,
    .section-jp-title::after {
        width: 25px;
        height: 25px;
    }
}

.text-stroke-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

/* Floating Scroll Indicator */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scroll-line 2s infinite ease-in-out;
}

/* FV Image Fixes */
#fv, .fv-swiper {
    height: auto !important;
}

#fv img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    object-fit: contain;
}

/* Offset Box Effect */
@media (min-width: 1024px) {
    .offset-box {
        margin-right: -100px;
    }
}

/* --- Section Specific Image Styles --- */

/* 1. Introduction: Layered Floating Frame */
.img-style-intro {
    position: relative;
    padding: 15px;
}
.img-style-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #005bac;
    z-index: -1;
    transform: translate(10px, 10px); /* Reduced translation on mobile */
    transition: transform 0.4s ease;
}
.img-style-intro:hover::before {
    transform: translate(0, 0);
}

@media (min-width: 1024px) {
    .img-style-intro::before {
        transform: translate(15px, 15px);
    }
}

/* 2. About Us: Organic Masking */
.img-style-about {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
    animation: blobify 10s infinite alternate;
}
@keyframes blobify {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 30% 60% 40% 70%; }
}

/* 3. Service Points: Unified Premium Look */
.img-style-service-unified {
    position: relative;
    padding: 10px;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 91, 172, 0.1);
    border-radius: 4px;
}
.img-style-service-unified::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#005bac 2px, transparent 2px);
    background-size: 12px 12px;
    z-index: -1;
    opacity: 0.3;
}

/* 4. Recruit: Polaroid with Shadow */
.img-style-recruit {
    padding: 10px;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}
.img-style-recruit:hover {
    transform: rotate(0) scale(1.05);
}

/* 5. Requirement: Sidebar Slash */
.img-style-req {
    box-shadow: -20px 20px 0 #f0f9ff;
    border: 1px solid #eee;
}

/* 6. Message: Elegant Double Frame */
.img-style-message {
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
}
.img-style-message::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-top: 4px solid #ff9900;
    border-left: 4px solid #ff9900;
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Swiper Tweaks */
.swiper-slide {
    height: auto;
}

/* GLightbox Custom Styles to ensure uniform sizing and no zoom */
.glightbox-container .gslide-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.glightbox-container .gslide-image img {
    width: 800px !important;
    height: 600px !important;
    max-width: 95vw !important;
    max-height: 70vh !important;
    object-fit: cover !important;
    cursor: default !important; /* No zoom cursor */
}

/* Hide zoom icons if any */
.gzoom-icon {
    display: none !important;
}

/* Marquee Gallery */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
    padding: 20px 0;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    min-width: 100%;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marquee-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.9);
}

.marquee-item:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.marquee-item:hover img {
    filter: brightness(1);
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 30px)); }
}

@media (min-width: 1024px) {
    .marquee-item {
        width: 450px;
    }
    .marquee-content {
        animation-duration: 60s;
    }
}

/* Premium Buttons */
button, .btn, a.inline-block, a.block {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.bg-primary:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 91, 172, 0.4);
    transform: translateY(-2px);
}

/* Sticky Header Glassmorphism */
header {
    transition: all 0.4s ease;
}

header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Smooth Navigation */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005bac;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Right Click Prevention User Message */
.no-copy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    background: rgba(0,0,0,0.8);
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

/* Mobile Padding Overrides */
@media (max-width: 767px) {
    .p-6 {
        padding: 10px !important;
    }
    .p-10 {
        padding: 10px !important;
    }
}

/* Introduction Section SP Adjustments */
@media (max-width: 767px) {
    #intro .text-3xl {
        font-size: 26px !important;
    }
    #about .text-3xl {
        font-size: 24px !important;
    }
    #message .text-3xl {
        font-size: 21px !important;
    }
    #message .pl-8 {
        padding-left: 10px !important;
    }
    #contact .text-3xl {
        font-size: 27px !important;
    }
}

/* Force accent color to ensure it renders properly */
.text-accent {
    color: #ff9900 !important;
}
