:root {
    --primary: #FF6B00;
    --primary-light: #FF8533;
    --bg-dark: #0F172A;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-nav: rgba(15, 23, 42, 0.8);
    --text-white: #F8FAFC;
    --text-gray: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: var(--primary);
    color: white;
}

/* Global Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection Color */
::selection {
    background: #FF6B00;
    color: white;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

img {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes processGlow {

    0%,
    20%,
    100% {
        background: var(--bg-dark);
        color: var(--primary);
        box-shadow: none;
        border-color: var(--primary);
    }

    10% {
        background: var(--primary);
        color: white;
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
        border-color: var(--primary);
    }
}

.animate {
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px) scale(0.98);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    /* Ensure delays don't affect hover later */
    transition-delay: 0s;
}

@keyframes float-icon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate.in-view {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Staggered Animations for Grids */

.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.why-grid .why-card:nth-child(1) {
    transition-delay: 0.1s;
}

.why-grid .why-card:nth-child(2) {
    transition-delay: 0.2s;
}

.why-grid .why-card:nth-child(3) {
    transition-delay: 0.3s;
}

.why-grid .why-card:nth-child(4) {
    transition-delay: 0.4s;
}

.process-container .process-step:nth-child(1) .step-number {
    animation: processGlow 5s infinite;
    animation-delay: 0s;
}

.process-container .process-step:nth-child(2) .step-number {
    animation: processGlow 5s infinite;
    animation-delay: 1s;
}

.process-container .process-step:nth-child(3) .step-number {
    animation: processGlow 5s infinite;
    animation-delay: 2s;
}

.process-container .process-step:nth-child(4) .step-number {
    animation: processGlow 5s infinite;
    animation-delay: 3s;
}

.process-container .process-step:nth-child(5) .step-number {
    animation: processGlow 5s infinite;
    animation-delay: 4s;
}

.gallery-grid .gallery-item:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-grid .gallery-item:nth-child(2) {
    transition-delay: 0.2s;
}

.gallery-grid .gallery-item:nth-child(3) {
    transition-delay: 0.3s;
}

.gallery-grid .gallery-item:nth-child(4) {
    transition-delay: 0.4s;
}

.testimonials-grid .testimonial-card:nth-child(1) {
    transition-delay: 0.1s;
}

.testimonials-grid .testimonial-card:nth-child(2) {
    transition-delay: 0.2s;
}

.testimonials-grid .testimonial-card:nth-child(3) {
    transition-delay: 0.3s;
}

.testimonials-grid .testimonial-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Reset delays for all elements once they are in view to ensure hover effects are instant */
.in-view {
    transition-delay: 0s !important;
}

/* Recruitment Grid Stagger */
.recruitment-grid .recruitment-card:nth-child(1) {
    transition-delay: 0.1s;
}

.recruitment-grid .recruitment-card:nth-child(2) {
    transition-delay: 0.2s;
}

.recruitment-grid .recruitment-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Tips Container Stagger */
.tips-container .tip-item:nth-child(1) {
    transition-delay: 0.1s;
}

.tips-container .tip-item:nth-child(2) {
    transition-delay: 0.2s;
}

.tips-container .tip-item:nth-child(3) {
    transition-delay: 0.3s;
}

.tips-container .tip-item:nth-child(4) {
    transition-delay: 0.4s;
}

.tips-container .tip-item:nth-child(5) {
    transition-delay: 0.5s;
}

.tips-container .tip-item:nth-child(6) {
    transition-delay: 0.6s;
}

.tips-container .tip-item:nth-child(7) {
    transition-delay: 0.7s;
}

.tips-container .tip-item:nth-child(8) {
    transition-delay: 0.8s;
}

/* Contact Grid Stagger (for direct children: info, mascot, form) */
.contact-grid> :nth-child(1) {
    transition-delay: 0.1s;
}

.contact-grid> :nth-child(2) {
    transition-delay: 0.2s;
}

.contact-grid> :nth-child(3) {
    transition-delay: 0.3s;
}

/* Glassmorphism Utility */
/* Glassmorphism Utility */
.glass {
    background: rgba(15, 23, 42, 0.6);
    /* Consistent dark glass background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    /* Prevent flickering on hover/transform */
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

.glass:hover {
    border-color: var(--primary);
    transform: translateY(-5px) translateZ(0);
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter on hover */
}

/* Header & Nav */
header {
    position: fixed;
    top: 10px;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    transition: var(--transition);
}

header.scrolled {
    top: 10px;
}

header.scrolled .nav-container {
    background: transparent;
    padding: 0.8rem 2rem;
    box-shadow: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 2rem;
    position: relative;
    transition: var(--transition);
}

.logo {
    position: fixed;
    left: 30px;
    top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.logo img {
    height: 175px;
    width: auto;
    transition: all 0.5s ease;
}

header.scrolled .logo {
    opacity: 0;
    transform: translateY(-100%) scale(0.8);
    pointer-events: none;
}

header.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: inline-flex;
    gap: 0.8rem;
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1025px) {
    .nav-links {
        width: auto;
    }
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    display: inline-block;
}

.nav-links a:hover {
    background: var(--primary);
    color: white;
}


/* Hamburger Menu Base Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links a.btn:hover {
    color: white;
    /* Keep text white on hover */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Align content to the bottom */
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    /* Space from the bottom edge */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    /* margin-top removed to rely on flex-end alignment */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

.hero-image img {
    max-width: 80%;
    max-height: 400px;
    height: auto;
    animation: float 4s infinite ease-in-out;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}


.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border: 2px solid var(--primary);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.btn-primary:active {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Form button should be solid orange by default and match size of other buttons */
#renko-form .btn-primary {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    padding: 1rem 2.5rem;
    /* Exactly as other buttons */
    font-size: 1rem;
    /* Match standard text size */
}

#renko-form .btn-primary:hover {
    background: var(--primary-light);
}

/* Specific hero button styles - apply after general btn styles */
.hero .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.hero .btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: white;
}

.hero .btn-outline:hover {
    background: rgba(255, 107, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Sections General */
section {
    padding: 2.5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.sub {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* About Section */
.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-mini {
    padding: 1.5rem;
}

.feature-mini h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float-icon 4s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Process Section */
.process-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

/* Why Us Section */
.why-us {
    background: linear-gradient(180deg, var(--bg-dark), rgba(255, 107, 0, 0.05), var(--bg-dark));
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    padding: 2.5rem;
    text-align: center;
}

.why-card i {
    display: inline-block;
    animation: float-icon 4s ease-in-out infinite;
}

/* Gallery & Testimonials Horizontal Scroll */
.gallery-grid,
.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
    /* Space for hover lift */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

}

/* Hide scrollbar for clean look */
.gallery-grid::-webkit-scrollbar,
.testimonials-grid::-webkit-scrollbar {
    display: none;
}

/* Pagination Dots */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.gallery-item {
    min-width: 350px;
    width: 350px;
    height: 350px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gallery-item {
        min-width: calc(100vw - 3rem);
        width: calc(100vw - 3rem);
        height: 280px;
    }
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Testimonials */

.testimonial-card {
    min-width: 320px;
    width: 320px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scroll-snap-align: center;
    flex-shrink: 0;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
        width: 100%;
        padding: 2rem 1.5rem;
    }
}

.stars {
    color: #FFD700;
    font-size: 0.8rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-white);
    line-height: 1.5;
    font-size: 0.9rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.client-photo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    background: #000;
    /* Dark background for videos */
}

/* Ensure video inside testimonial looks good */
video.client-photo {
    cursor: pointer;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-info strong {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Tips Section */
.tips-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tip-item {
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    padding-right: 2rem;
}

.tip-header h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.tip-icon {
    font-size: 1.6rem;
    color: var(--primary);
    opacity: 0.8;
    transition: var(--transition);
    flex-shrink: 0;
}

.tip-chevron {
    position: absolute;
    right: 0;
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.tip-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.tip-item.active .tip-content {
    max-height: 800px;
    /* Increased max-height for longer content */
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tip-content p {
    margin-bottom: 1rem;
}

.tip-content p:last-child {
    margin-bottom: 0;
}

.tip-item.active .tip-icon {
    transform: scale(1.1);
    opacity: 1;
}

.tip-item.active .tip-chevron {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .tip-item {
        padding: 1.25rem 1.5rem;
    }

    .tip-header h3 {
        font-size: 1rem;
    }

    .tip-icon {
        font-size: 1.4rem;
    }
}

/* Recruitment Section */
.recruitment-grid {
    max-width: 1200px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.recruitment-card {
    position: relative;
    padding: 3.5rem 2rem 2.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recruitment-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    white-space: nowrap;
}

.recruitment-icon {
    position: relative;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: auto;
    height: auto;
    display: block;
    background: transparent;
    border-radius: 0;
    z-index: 1;
    /* Force animations on mobile */
    transform: translateZ(0);
    will-change: transform;
}

.recruitment-icon i {
    display: inline-block;
    animation: float-icon 4s ease-in-out infinite;
}

.recruitment-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.recruitment-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.recruitment-list {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 2.5rem;
}

.recruitment-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-white);
}

.recruitment-list li i {
    color: var(--primary);
    font-size: 1rem;
}

.recruitment-card .btn {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .recruitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recruitment-grid {
        grid-template-columns: 1fr;
    }

    .recruitment-card {
        width: 100% !important;
        padding: 3.5rem 1.5rem 2.5rem;
    }
}

/* Contact Section */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.5fr;
    /* Info, Mascot, Form */
    gap: 3rem;
    align-items: center;
}

.contact-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-mascot img {
    max-width: 80%;
    margin-top: 6rem;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 4s infinite ease-in-out;
}


.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
    display: inline-block;
    animation: float-icon 4s ease-in-out infinite;
    margin-top: 12px;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 2.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-container {
        flex-direction: column;
        gap: 3rem;
    }

    .process-container::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-mascot img {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        display: flex;
        width: 100%;
    }

    .hero {
        padding-top: 100px !important;
        padding-bottom: 220px !important;
        height: auto !important;
        min-height: 100vh;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        margin-top: 0 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem !important;
    }

    .about-text h3 {
        font-size: 2rem !important;
    }

    .window-service-content h2 {
        font-size: 2.2rem !important;
    }

    h1,
    h2,
    h3 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }

    p,
    li,
    .btn,
    .service-card ul li,
    .w-feature p,
    .footer-links ul li a {
        font-size: 1.15rem !important;
        line-height: 1.6 !important;
    }

    .hero p {
        font-size: 1.15rem !important;
        /* Slightly smaller for better flow */
        max-width: 100% !important;
        padding: 0 1.5rem;
        line-height: 1.4 !important;
    }

    .sub {
        font-size: 1rem !important;
    }

    .cta-group {
        display: none !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2.5rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px;
    }

    .form-group {
        margin-bottom: 2rem !important;
    }

    .form-group input,
    .form-group textarea {
        padding: 1.5rem !important;
        font-size: 1.2rem !important;
        border-width: 2px !important;
        /* Prevent iOS zoom on focus */
    }

    .btn-primary[style*="width: 100%"] {
        padding: 1rem 2.5rem !important;
        /* Unified with other buttons */
        font-size: 1rem !important;
    }

    .contact-grid,
    .services-grid,
    .why-grid,
    .recruitment-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .nav-container {
        justify-content: space-between;
        padding: 1.5rem 2rem;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    .logo {
        position: fixed;
        left: 20px;
        top: 15px;
        z-index: 10001;
    }

    .logo img {
        height: 110px;
        width: auto;
    }

    header.scrolled .logo {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
        height: 0;
        padding: 0;
        margin: 0;
        pointer-events: none;
        overflow: hidden;
    }

    header.scrolled {
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        pointer-events: auto !important;
    }

    header.scrolled .nav-container {
        pointer-events: none;
        /* Let clicks pass through empty header area */
    }

    header.scrolled .hamburger,
    header.scrolled .nav-links {
        pointer-events: auto !important;
        /* But keep interactive elements clickable */
    }

    header.scrolled .nav-links:not(.active) {
        display: none !important;
    }

    .hamburger {
        display: flex;
        position: fixed;
        right: 20px;
        top: 20px;
        width: 50px;
        height: 50px;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        padding: 0 !important;
        pointer-events: auto;
    }

    .hamburger span {
        width: 22px !important;
        height: 2px !important;
        margin: 0 auto;
    }

    .hamburger.active {
        background: var(--primary);
        border-color: var(--primary);
    }



    section {
        padding: 1.5rem 1rem !important;
    }

    /* Universal Card Fix for Mobile */
    .service-card,
    .why-card,
    .recruitment-card,
    .testimonial-card,
    .tip-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-card,
    .why-card {
        padding: 2.5rem 1.5rem !important;
    }

    .hero {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
        height: auto !important;
        min-height: 100vh;
    }

    .window-service {
        padding: 1.5rem 1rem !important;
    }

    .window-service-container {
        padding: 2rem 1.5rem !important;
    }

    footer {
        padding: 2rem 1.5rem 1.5rem !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        /* Align to left to ensure full width cover */
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 4rem 2rem 2rem;
        transform: translateX(100%);
        /* Initial state hidden to the right */
        visibility: hidden;
        pointer-events: none;
        border-radius: 0 !important;
    }

    .nav-links a {
        font-size: 1.4rem !important;
        display: block;
        padding: 0.6rem !important;
        font-weight: 700;
        border-radius: 0 !important;
    }

    .nav-links.active {
        transform: translateX(0);
        /* Move back to center */
        right: auto;
        visibility: visible;
        pointer-events: auto;
    }

    header.scrolled .hamburger span {
        background: white;
    }

    /* Ensure Chatbot is visible on mobile */
    .chat-toggle {
        width: 75px !important;
        height: 75px !important;
        bottom: 30px !important;
        right: 30px !important;
        z-index: 10001 !important;
        /* Higher than nav-links */
    }

    .chat-toggle-status {
        width: 12px !important;
        height: 12px !important;
        bottom: 3px !important;
        right: 3px !important;
    }

    .chat-tooltip {
        display: none !important;
        /* Hide tooltip on small mobile to avoid clutter */
    }
}

/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.legal-modal.active {
    display: flex;
    opacity: 1;
}

.legal-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
}

.legal-modal-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    z-index: 2001;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow: hidden;
    /* Keep scrollbar inside radius */
}

.legal-modal.active .legal-modal-container {
    transform: translateY(0);
}

.legal-modal-content {
    max-height: 85vh;
    overflow-y: auto;
    padding: 4rem 4rem 4rem 4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Custom scrollbar for webkit - positioned inside the modal */
.legal-modal-content::-webkit-scrollbar {
    width: 10px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 20px 20px 0;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.legal-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2010;
    line-height: 1;
}

.legal-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

#legal-content-inner h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 800;
    padding-right: 3rem;
    /* Avoid overlapping the X button */
}

#legal-content-inner h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    font-weight: 700;
}

#legal-content-inner p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#legal-content-inner ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#legal-content-inner li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
}

#legal-content-inner li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 768px) {
    .legal-modal-content {
        padding: 2.5rem 1.5rem;
    }

    #legal-content-inner h1 {
        font-size: 2rem;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: flex-start;
    /* Start from top to allow scrolling */
    overflow-y: auto;
    padding: 4rem 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    /* Limit width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    /* Center if content is smaller than screen */
}

.lightbox-content img {
    max-width: 100%;
    max-height: 60vh;
    /* Shrunk image as requested */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: white;
    text-align: center;
    width: 100%;
    padding: 1.5rem 2.5rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.lightbox-caption h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lightbox-caption p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-content img {
        max-height: 60vh;
        max-width: 95vw;
    }

    .lightbox-caption {
        padding: 1rem;
        margin-top: 1rem;
    }

    .lightbox-caption h3 {
        font-size: 1.1rem;
    }

    .lightbox-caption p {
        font-size: 0.85rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: var(--primary) !important;
        color: white !important;
        opacity: 1 !important;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }
}

/* Window Service Standalone Section */
.window-service {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 107, 0, 0.03), transparent);
}

.window-service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.window-service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.window-service-content p {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.window-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.w-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.w-feature i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.w-feature h4 {
    color: var(--text-white);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.w-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.window-service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.window-video {
    width: 400px;
    height: 400px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: float 5s infinite ease-in-out;
    animation-delay: 1.2s;
    /* Start floating after fade-in */
    backface-visibility: hidden;
    transform: translateZ(0);
}

@media (max-width: 1024px) {
    .window-service-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }

    .window-service-visual {
        display: none;
    }

    .window-features {
        text-align: left;
    }
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lightbox-caption p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    opacity: 0.8;
    z-index: 1010;
    /* Ensure above overlay */
}

.lightbox-nav:hover {
    opacity: 1;
    background: white;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-content img {
        max-height: 60vh;
        max-width: 95vw;
    }

    .lightbox-caption {
        padding: 1rem;
        margin-top: 1rem;
    }

    .lightbox-caption h3 {
        font-size: 1.1rem;
    }

    .lightbox-caption p {
        font-size: 0.85rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: var(--primary) !important;
        color: white !important;
        opacity: 1 !important;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }
}

/* Window Service Standalone Section */
.window-service {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 107, 0, 0.03), transparent);
}

.window-service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.window-service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.window-service-content p {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.window-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.w-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.w-feature i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.w-feature h4 {
    color: var(--text-white);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.w-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.window-service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.window-video {
    width: 400px;
    height: 400px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: float 5s infinite ease-in-out;
    animation-delay: 1.2s;
    /* Start floating after fade-in */
    backface-visibility: hidden;
    transform: translateZ(0);
}

@media (max-width: 1024px) {
    .window-service-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }

    .window-service-visual {
        display: none;
    }

    .window-features {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .window-features {
        grid-template-columns: 1fr;
    }
}

/* --- CHATBOT STYLES --- */
:root {
    --chat-primary: #FF6B00;
    --chat-bg: #fff;
    --chat-header-bg: #0F172A;
    --chat-body-bg: #f8f9fa;
    --chat-text-on-primary: #fff;
}

.chat-tooltip {
    position: absolute;
    top: 50%;
    right: 85px;
    transform: translateY(-50%) translateX(20px);
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}

.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: chat-float 3s ease-in-out infinite, chat-attention 8s infinite;
}

@keyframes chat-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes chat-attention {

    0%,
    90%,
    100% {
        transform: rotate(0) scale(1);
    }

    92% {
        transform: rotate(-10deg) scale(1.1);
    }

    94% {
        transform: rotate(10deg) scale(1.1);
    }

    96% {
        transform: rotate(-10deg) scale(1.1);
    }

    98% {
        transform: rotate(0) scale(1.1);
    }
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-toggle-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #22c55e;
    border: 2px solid #FF6B00;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.chat-toggle-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.msg-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

/* Reward Badge Styles - Floating (Chatbot size) */


/* Gift Badge (Top Right) - Top of tag aligned with menu height */
.gift-badge-fixed {
    position: fixed;
    right: 30px;
    top: 35px;
    z-index: 10002;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    animation: chat-float 3s ease-in-out infinite, chat-attention 8s infinite;
}

header.scrolled .gift-badge-fixed {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    pointer-events: none;
}

.gift-badge-tag {
    background: #FFB800;
    color: #0F172A;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 8px 24px;
    border-radius: 50px;
    letter-spacing: 1px;
    z-index: 10;
    margin-bottom: -18px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.gift-badge-circle {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #FFB800;
    z-index: 5;
    position: relative;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gift-badge-circle i {
    font-size: 2rem;
    color: #FFB800;
    animation: rewardIconPulse 2.5s infinite ease-in-out;
}

@keyframes rewardIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .gift-badge-fixed {
        left: 30px;
        bottom: 30px;
        right: auto;
        top: auto;
        /* Balanced with chatbot on the right */
    }

    .gift-badge-circle {
        width: 70px;
        height: 70px;
    }

    .gift-badge-tag {
        font-size: 0.7rem;
        padding: 6px 16px;
        margin-bottom: -15px;
    }

    /* Hide on scroll like the logo/header */
    .scrolled .gift-badge-fixed {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        pointer-events: none;
    }
}