/* Landing page styles extracted from welcome.blade.php */
:root {
    --rose-gold: #B76E79;
    --rose-gold-light: #D4979F;
    --soft-pink: #F8E8EE;
    --warm-gold: #D4AF37;
    --cream: #FFF8F0;
    --deep-plum: #4A1942;
    --plum-light: #6B2D5B;
    --white: #fff;
    --text-dark: #2D2D2D;
    --text-muted: #8E8E8E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

/* ===== NAVBAR ===== */
.welcome-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s ease;
}
.welcome-nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(183,110,121,0.1);
    padding: 10px 0;
}
.welcome-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none !important; color: white;
}
.welcome-nav.scrolled .nav-brand { color: var(--deep-plum); }
.nav-brand-icon { font-size: 28px; }
.nav-brand-text { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; }
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none; padding: 8px 18px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.welcome-nav.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.welcome-nav.scrolled .nav-links a:hover { background: var(--soft-pink); color: var(--rose-gold); }

.nav-login-dropdown { position: relative; }
.nav-login-dropdown .dropdown-menu-custom {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: white; border-radius: 16px; padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); min-width: 230px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 100;
}
.nav-login-dropdown:hover .dropdown-menu-custom,
.nav-login-dropdown:focus-within .dropdown-menu-custom {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu-custom a {
    display: flex !important; align-items: center; gap: 12px;
    padding: 12px 16px !important; border-radius: 10px !important;
    color: var(--text-dark) !important; background: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.dropdown-menu-custom a:hover { background: var(--soft-pink) !important; transform: translateX(6px); }
.dropdown-menu-custom .dd-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-menu-custom a:hover .dd-icon { transform: scale(1.1) rotate(-5deg); }
.dd-client { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.dd-employee { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.dd-admin { background: linear-gradient(135deg, #f43f5e, #e11d48); color: white; }

.btn-register-nav {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-plum));
    color: white !important; padding: 10px 24px !important;
    border-radius: 12px !important; font-weight: 600 !important;
    transition: all 0.3s !important; border: none;
}
.btn-register-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(183,110,121,0.4); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--deep-plum) 0%, #2D1228 30%, var(--rose-gold) 100%);
    position: relative; overflow: hidden; text-align: center; color: white;
    padding: 120px 20px 80px;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -40%; left: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(183,110,121,0.2) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(30px,-30px) rotate(5deg); } }

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 8px 24px;
    background: rgba(212,175,55,0.2); border: 1px solid rgba(212,175,55,0.4);
    border-radius: 30px; font-size: 13px; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--warm-gold); margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: clamp(36px, 6vw, 72px);
    font-weight: 700; line-height: 1.15; margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}
.hero h1 .accent { color: var(--warm-gold); }
.hero p {
    font-size: clamp(16px, 2vw, 20px); opacity: 0.85; max-width: 600px;
    margin: 0 auto 40px; line-height: 1.7;
    animation: fadeInUp 1.2s ease;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1.4s ease; }
.btn-hero-primary {
    padding: 16px 40px; background: linear-gradient(135deg, var(--rose-gold), var(--warm-gold));
    color: white; border: none; border-radius: 14px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(183,110,121,0.3);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(183,110,121,0.4); color: white; }
.btn-hero-secondary {
    padding: 16px 40px; background: transparent; color: white;
    border: 2px solid rgba(255,255,255,0.4); border-radius: 14px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    text-decoration: none !important;
}
.btn-hero-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }

/* Sparkles */
.sparkle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--warm-gold); animation: sparkle 3s ease-in-out infinite;
}
.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; width: 5px; height: 5px; }
.sparkle:nth-child(2) { top: 40%; right: 15%; animation-delay: 1s; width: 3px; height: 3px; }
.sparkle:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 2s; width: 6px; height: 6px; }
.sparkle:nth-child(4) { top: 15%; right: 30%; animation-delay: 0.5s; }
.sparkle:nth-child(5) { bottom: 20%; right: 10%; animation-delay: 1.5s; width: 5px; height: 5px; }
@keyframes sparkle {
    0%,100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.8) rotate(180deg); }
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes glowPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(183,110,121,0.3); }
    50% { box-shadow: 0 8px 40px rgba(183,110,121,0.6), 0 0 60px rgba(212,175,55,0.2); }
}
@keyframes textGlow {
    0%,100% { text-shadow: 0 0 10px rgba(212,175,55,0.3); }
    50% { text-shadow: 0 0 30px rgba(212,175,55,0.6), 0 0 60px rgba(212,175,55,0.2); }
}
@keyframes borderGlow {
    0%,100% { border-color: rgba(212,175,55,0.4); box-shadow: 0 0 15px rgba(212,175,55,0.1); }
    50% { border-color: rgba(212,175,55,0.8); box-shadow: 0 0 25px rgba(212,175,55,0.3); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero enhanced animations */
.hero { background-size: 200% 200%; animation: gradientShift 12s ease infinite; }
.hero-badge { animation: fadeInDown 0.8s ease, borderGlow 3s ease-in-out infinite 1s; }
.hero h1 { animation: fadeInUp 1s ease; }
.hero h1 .accent { animation: textGlow 3s ease-in-out infinite 1.5s; }
.hero p { animation: fadeInUp 1.2s ease; }
.hero-buttons { animation: fadeInUp 1.4s ease; }
.btn-hero-primary { animation: glowPulse 3s ease-in-out infinite 2s; }
.btn-hero-primary:hover { animation: none; }

.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 24px; animation: bounce 2s infinite;
    text-decoration: none; z-index: 5;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ===== SCROLL REVEAL VARIANTS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children delays */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.36s; }

/* Navbar entrance */
.welcome-nav { animation: fadeInDown 0.6s ease; }

/* Floating particles */
.hero-particle {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 1;
}
@keyframes floatDot {
    0%,100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translate(30px, -40px) scale(1.5); }
}
.floating-dot {
    position: absolute; border-radius: 50%;
    background: rgba(212,175,55,0.5);
    animation: floatDot 6s ease-in-out infinite;
}

/* Section title label pulse */
.section-title .label {
    animation: pulse 3s ease-in-out infinite;
}

/* ===== SERVICES SECTION ===== */
.section { padding: 100px 0; }
.section-light { background: white; }
.section-cream { background: var(--cream); }
.section-title {
    text-align: center; margin-bottom: 60px;
}
.section-title .label {
    display: inline-block; padding: 6px 20px; background: var(--soft-pink);
    color: var(--rose-gold); border-radius: 20px; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--deep-plum); margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* Service cards */
.service-preview-card {
    background: white; border-radius: 20px; padding: 40px 30px;
    text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(183,110,121,0.08);
    position: relative; overflow: hidden;
}
.service-preview-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183,110,121,0.04), transparent);
    transition: left 0.6s ease;
}
.service-preview-card:hover::before { left: 100%; }
.service-preview-card:hover {
    transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 60px rgba(183,110,121,0.18);
    border-color: var(--rose-gold-light);
}
.service-preview-card .card-icon {
    width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; background: var(--soft-pink);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-preview-card:hover .card-icon {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-plum));
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 30px rgba(183,110,121,0.3);
    color: white;
}
.service-preview-card h5 {
    font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--deep-plum);
    transition: color 0.3s;
}
.service-preview-card:hover h5 { color: var(--rose-gold); }
.service-preview-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== WHY US ===== */
.why-card {
    text-align: center; padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}
.why-card:hover { background: white; box-shadow: 0 15px 40px rgba(183,110,121,0.1); transform: translateY(-6px); }
.why-card .why-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-plum));
    color: white; box-shadow: 0 8px 25px rgba(183,110,121,0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover .why-icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 12px 35px rgba(183,110,121,0.4);
}
.why-card h5 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--deep-plum); transition: color 0.3s; }
.why-card:hover h5 { color: var(--rose-gold); }
.why-card p { font-size: 14px; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--deep-plum), var(--rose-gold));
    background-size: 200% 200%; animation: gradientShift 8s ease infinite;
    padding: 80px 0; text-align: center; color: white;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.1) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite;
}
.cta-section h2 { font-size: 36px; margin-bottom: 16px; position: relative; }
.cta-section p { opacity: 0.85; font-size: 16px; margin-bottom: 30px; position: relative; }
.btn-cta {
    display: inline-block; padding: 16px 40px;
    background: white; color: var(--deep-plum); border-radius: 14px;
    font-weight: 700; font-size: 16px; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.btn-cta:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,0.25); color: var(--deep-plum); }

/* ===== FOOTER ===== */
.welcome-footer {
    background: #1a1020; color: rgba(255,255,255,0.6); padding: 40px 0 20px; text-align: center;
}
.welcome-footer .footer-brand {
    font-family: 'Playfair Display', serif; font-size: 24px; color: var(--rose-gold-light);
    margin-bottom: 16px;
}
.welcome-footer p { font-size: 13px; margin-bottom: 6px; }
.welcome-footer .social-links { margin-top: 16px; }
.welcome-footer .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: white; margin: 0 6px;
    text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-footer .social-links a:hover { background: var(--rose-gold); transform: translateY(-5px) scale(1.15); box-shadow: 0 8px 20px rgba(183,110,121,0.4); }

/* Alert styles */
.welcome-alert {
    position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
    z-index: 2000; min-width: 400px; max-width: 90%;
    border-radius: 14px; padding: 16px 24px; font-size: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease;
}
.welcome-alert-success { background: #d4edda; border-left: 4px solid #28a745; color: #155724; }
.welcome-alert-danger { background: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; }

/* Nav theme toggle */
.nav-theme-toggle {
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: rgba(255,255,255,0.15); color: white;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; margin-left: 8px;
}
.nav-theme-toggle:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.welcome-nav.scrolled .nav-theme-toggle { background: var(--primary-soft, #F8E8EE); color: var(--primary, #B76E79); }
.welcome-nav.scrolled .nav-theme-toggle:hover { background: var(--primary, #B76E79); color: white; }

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none; background: none; border: none; color: white;
    font-size: 24px; cursor: pointer; padding: 8px;
}
.welcome-nav.scrolled .mobile-nav-toggle { color: var(--text-dark); }

/* Dark mode adjustments */
.dark-theme .section-light { background: #1a1a2e; }
.dark-theme .section-cream { background: #16162a; }
.dark-theme .service-preview-card { background: #252540; border-color: #333355; }
.dark-theme .service-preview-card h5, .dark-theme .section-title h2, .dark-theme .why-card h5 { color: #E8E8E8; }
.dark-theme .welcome-footer { background: #0d0d1a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .welcome-nav .container { position: relative; }
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        padding: 16px; border-radius: 0 0 16px 16px; gap: 4px;
        z-index: 1000; list-style: none;
    }
    .nav-links.show-mobile { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { color: var(--text-dark) !important; padding: 12px 18px !important; border-radius: 10px; display: flex; align-items: center; gap: 12px; }
    .nav-links a:hover { background: var(--soft-pink) !important; color: var(--rose-gold) !important; }
    .nav-login-dropdown .dropdown-menu-custom {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        transform: none !important; box-shadow: none !important;
        padding: 0 !important; margin-top: 4px; min-width: 0 !important;
        border-radius: 10px; background: var(--soft-pink);
    }
    .nav-login-dropdown .dropdown-menu-custom a { padding: 10px 14px !important; }
    .btn-register-nav { width: 100%; text-align: center; margin-top: 8px; display: block; }
    .mobile-nav-toggle { display: block; }
    .nav-theme-toggle { order: -1; }
    .dark-theme .nav-links { background: #1e1e30; }
    .dark-theme .nav-links a { color: #E8E8E8 !important; }
    .dark-theme .nav-links a:hover { background: #2a2040 !important; color: var(--rose-gold-light) !important; }
    .dark-theme .nav-login-dropdown .dropdown-menu-custom { background: #252540; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; margin-bottom: 28px; }
    .hero-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 300px; text-align: center; padding: 14px 30px; font-size: 15px; }
    .section { padding: 50px 0; }
    .section-title { margin-bottom: 36px; }
    .section-title h2 { font-size: 26px; }
    .section-title p { font-size: 14px; }
    .service-preview-card { margin-bottom: 20px; padding: 30px 20px; }
    .why-card { padding: 24px 16px; }
    .cta-section { padding: 50px 16px; }
    .cta-section h2 { font-size: 26px; }
    .welcome-alert { min-width: 0; width: 90%; left: 50%; }
    .welcome-footer { padding: 30px 16px 16px; }
    .welcome-footer .footer-brand { font-size: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .hero::before, .hero::after { display: none; }
    .sparkle { display: none; }
    .floating-dot { display: none; }
    .nav-brand-text { font-size: 20px; }
    .service-preview-card .card-icon { width: 60px; height: 60px; font-size: 28px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}
