/* ============================================
   BEE SEEN LTD - Modern Website Styles
   Epic animations, glassmorphism, gradients
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #F9D212;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FBE34A;
}

/* Selection color */
::selection {
    background: #F9D212;
    color: #0A0A0A;
}

/* ---- Animated background particles ---- */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F9D212;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, #F9D212 0%, #FBE34A 50%, #F9D212 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 4s ease infinite;
}

.gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #F9D212 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 6s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- Glass card effect ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 210, 18, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-card:hover {
    background: rgba(249, 210, 18, 0.05);
    border-color: rgba(249, 210, 18, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(249, 210, 18, 0.08);
}

/* ---- Neon glow effects ---- */
.neon-border {
    position: relative;
}
.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #F9D212, transparent, #F9D212);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}
.neon-border:hover::before {
    opacity: 1;
}

/* ---- Magnetic button effect ---- */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.magnetic-btn:hover::before {
    transform: translateX(0);
}

/* ---- Reveal animations ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
}

/* ---- Marquee/ticker ---- */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Hero canvas background ---- */
#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ---- Portfolio masonry grid ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Service icon animation ---- */
.service-icon {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(249, 210, 18, 0.5));
}

/* ---- Counter animation ---- */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ---- Testimonial card ---- */
.testimonial-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(249, 210, 18, 0.06);
    transition: all 0.5s ease;
}
.testimonial-card:hover {
    border-color: rgba(249, 210, 18, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 2rem;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ---- Swiper custom styling ---- */
.swiper-pagination-bullet {
    background: rgba(249, 210, 18, 0.3) !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
    background: #F9D212 !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* ---- Text stroke effect ---- */
.text-stroke {
    -webkit-text-stroke: 2px #F9D212;
    -webkit-text-fill-color: transparent;
}
.text-stroke-white {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    -webkit-text-fill-color: transparent;
}

/* ---- Loading screen ---- */
.loader-screen {
    position: fixed;
    inset: 0;
    background: #0A0A0A;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-screen.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader-bee {
    width: 80px;
    height: 80px;
    animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes loaderSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ---- Cursor follower (desktop only) ---- */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #F9D212;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-follower.hovering {
    width: 50px;
    height: 50px;
    border-color: #FBE34A;
    background: rgba(249, 210, 18, 0.1);
}

/* ---- Blog card ---- */
.blog-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(249, 210, 18, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-card:hover {
    border-color: rgba(249, 210, 18, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.blog-card:hover .blog-img {
    transform: scale(1.08);
}
.blog-img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Animated grid background ---- */
.grid-bg {
    background-image:
        linear-gradient(rgba(249, 210, 18, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 210, 18, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ---- Noise texture overlay ---- */
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ---- Smooth image reveal ---- */
.img-reveal {
    position: relative;
    overflow: hidden;
}
.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #F9D212;
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.img-reveal.revealed::after {
    transform: scaleX(0);
}

/* ---- Form input styling ---- */
.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(249, 210, 18, 0.1);
    color: white;
    transition: all 0.3s ease;
}
.form-input:focus {
    background: rgba(249, 210, 18, 0.05);
    border-color: #F9D212;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 210, 18, 0.1);
}
.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Split text animation helper ---- */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

/* ---- Responsive typography ---- */
@media (max-width: 640px) {
    .hero-title { font-size: 2.5rem !important; }
    .hero-subtitle { font-size: 1rem !important; }
}

/* Horizontal scrolling section */
.horizontal-scroll-section {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.horizontal-scroll-section::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}
