/* Custom styles for Budak Lembur theme */

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Prose styles for blog content */
.prose {
    color: #374151;
    max-width: none;
    line-height: 1.8;
}

.prose h1 {
    color: #111827;
    font-weight: 800;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.prose h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 2px;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    padding-left: 1rem;
}

.prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 2px;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #0d9488;
}

.prose h4 {
    color: #374151;
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h5 {
    color: #374151;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose h6 {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.prose a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #0f766e;
    border-bottom-color: #0d9488;
}

.prose strong {
    color: #111827;
    font-weight: 700;
}

.prose em {
    color: #374151;
    font-style: italic;
}

.prose ul {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-type: disc;
}

.prose ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

.prose ul ul ul {
    list-style-type: square;
}

.prose ol {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-type: decimal;
}

.prose ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
}

.prose ol ol ol {
    list-style-type: lower-roman;
}

.prose li {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    display: list-item;
}

.prose li::marker {
    color: #0d9488;
    font-weight: 600;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #374151;
    border-left: 4px solid #0d9488;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #0d9488;
    opacity: 0.3;
    font-family: serif;
}

.prose code {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #fecaca;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
}

.prose pre {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #e5e7eb;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 2rem 0;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #4b5563;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.prose pre::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 20px 0 0 #f59e0b, 40px 0 0 #10b981;
}

.prose pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    font-weight: 400;
    color: inherit;
    font-size: inherit;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
}

.prose table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prose th {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.prose tr:nth-child(even) td {
    background: #f9fafb;
}

.prose tr:hover td {
    background: #f0fdfa;
}

.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    margin: 3rem 0;
    border-radius: 1px;
}

/* Task list styling */
.prose ul:has(input[type="checkbox"]) {
    list-style-type: none;
    padding-left: 1.5rem;
}

.prose li:has(input[type="checkbox"]) {
    list-style-type: none;
}

.prose input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    accent-color: #0d9488;
}

/* Image styling */
.prose img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Footnotes */
.prose .footnote-ref {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

.prose .footnote-ref:hover {
    color: #0f766e;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating animation for hero image */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles */
.focus\:ring-primary:focus {
    --tw-ring-color: rgba(20, 184, 166, 0.5);
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer-tech-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-tech-links > div {
        margin-bottom: 0.5rem;
    }
}

/* Button hover effects */
.btn-primary {
    @apply bg-primary-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-primary-700 transition-all duration-200 transform hover:scale-105;
}

.btn-secondary {
    @apply border border-primary-600 text-primary-600 px-6 py-3 rounded-lg font-semibold hover:bg-primary-50 transition-all duration-200;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
    transform: translateY(0);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #0d9488;
    color: #0d9488;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.1);
}

.btn-secondary:hover {
    background: #0d9488;
    color: white;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Card enhancements */
.card-product {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.card-product:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: #0d9488;
}

.card-blog {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.card-blog:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: #0d9488;
}

/* Navigation enhancements */
.nav-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
}

/* Animation utilities */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation logo animation */
#nav-logo {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.5s ease;
}

#nav-logo.scale-100 {
    transform: scale(1) rotate(0deg);
}

#nav-logo.scale-0 {
    transform: scale(0) rotate(-180deg);
}

/* Bubble Animation for Hero Section */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(13, 148, 136, 0.25) 100%);
    border-radius: 50%;
    opacity: 0.8;
    animation: rise 15s infinite ease-in;
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.2);
    backdrop-filter: blur(2px);
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 20%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 35%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 50%;
    animation-duration: 13s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 35px;
    height: 35px;
    left: 75%;
    animation-duration: 17s;
    animation-delay: 1s;
}

.bubble:nth-child(7) {
    width: 55px;
    height: 55px;
    left: 85%;
    animation-duration: 14s;
    animation-delay: 5s;
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 15%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.bubble:nth-child(9) {
    width: 40px;
    height: 40px;
    left: 45%;
    animation-duration: 16s;
    animation-delay: 6s;
}

.bubble:nth-child(10) {
    width: 50px;
    height: 50px;
    left: 90%;
    animation-duration: 13s;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(100px) scale(1.2);
        opacity: 0.6;
    }
    100% {
        bottom: 110%;
        transform: translateX(-200px) scale(0.9);
        opacity: 0;
    }
}