/* Custom CSS for Kamel Landing Page - Modern Minimal Design */

/* ========================================
   Font Family Setup - Updated Typography
   ======================================== */

/* English fonts - Modern Professional */
.font-en-body {
    font-family: 'Epilogue', sans-serif;
}

.font-en-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Arabic fonts - Clean and Readable */
.font-ar-body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.font-ar-heading {
    font-family: 'Almarai', sans-serif;
}

/* Apply Arabic font to headings when in Arabic mode */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Almarai', sans-serif;
}

/* ========================================
   RTL Support
   ======================================== */

/* Ensure proper text alignment in RTL */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
}

/* Fix flex direction for RTL */
html[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

/* Keep certain elements LTR even in RTL mode */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] .ltr {
    direction: ltr;
    text-align: left;
}

/* ========================================
   Smooth Scrolling
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   Animations
   ======================================== */

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 107, 109, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 107, 109, 0.6);
    }
}

/* Scroll Animation Classes - Hidden by default */
.scroll-animate {
    opacity: 0;
}

.scroll-animate.animated {
    opacity: 1;
}

/* Animation Types */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-scale-in-bounce {
    animation: scaleInBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Animation Durations */
.duration-fast { animation-duration: 0.4s !important; }
.duration-normal { animation-duration: 0.8s !important; }
.duration-slow { animation-duration: 1.2s !important; }

/* ========================================
   Transitions & Interactive Elements
   ======================================== */

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Enhanced link hover effects */
a:not(.no-hover) {
    position: relative;
}

a:not(.no-hover):hover {
    transform: translateY(-1px);
}

/* Underline animation for links */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Image zoom on hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Card tilt effect */
.card-tilt {
    transition: transform 0.3s ease;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateY(2deg);
}

/* Border draw animation */
.border-draw {
    position: relative;
}

.border-draw::before,
.border-draw::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s ease;
}

.border-draw::before {
    top: 0;
    left: 0;
}

.border-draw::after {
    bottom: 0;
    right: 0;
}

.border-draw:hover::before,
.border-draw:hover::after {
    width: 100%;
}

/* ========================================
   Custom Utilities
   ======================================== */

/* Gradient backgrounds */
.gradient-brand {
    background: linear-gradient(135deg, #00695C 0%, #2E7D32 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
}

/* Text gradient for special headings */
.text-gradient {
    background: linear-gradient(135deg, #00695C 0%, #FFB300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Bold Shadow System
   ======================================== */

/* Shadow Level 1 - Subtle (Small UI elements) */
.shadow-level-1 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Shadow Level 2 - Medium (Cards at rest) */
.shadow-level-2 {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Shadow Level 3 - Bold (Cards on hover) */
.shadow-level-3 {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Shadow Level 4 - Dramatic (Featured elements) */
.shadow-level-4 {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Brand-colored shadows for special emphasis */
.shadow-teal {
    box-shadow: 0 12px 32px rgba(0, 107, 109, 0.3);
}

.shadow-gold {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

/* Layered shadow effect */
.shadow-layered {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Inner shadow for depth */
.shadow-inner-soft {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Header Enhancements
   ======================================== */

/* Ensure header stays on top */
#header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content:not(.hidden) {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* ========================================
   Form Enhancements
   ======================================== */

/* Focus states for form inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FFB300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

/* Custom checkbox and radio styles (if needed) */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #00695C;
}

/* ========================================
   Loading States
   ======================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFB300;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced button loading states */
button.loading,
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

button.loading::before,
.btn.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading spinner variants */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

/* Dark spinner for light backgrounds */
.spinner-dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
}

/* Pulse loading animation */
@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

/* Skeleton loading for cards */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Button disabled state improvements */
button:disabled,
.btn:disabled,
button[disabled],
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   Hover Effects
   ======================================== */

/* Subtle lift effect on cards */
.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.1);
}

/* Enhanced lift with bold shadow */
.hover-lift-bold {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hover-lift-bold:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Lift with shadow level transitions */
.hover-shadow-grow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hover-shadow-grow:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Responsive Typography & Mobile Optimizations
   ======================================== */

/* Ensure text remains readable on mobile */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    /* Reduce shadow intensity on mobile for better performance */
    .shadow-level-3,
    .shadow-level-4 {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    /* Simplify animations on mobile */
    .scroll-animate {
        animation-duration: 0.5s !important;
    }
    
    /* Adjust background patterns for mobile */
    .pattern-dots,
    .pattern-grid,
    .pattern-diagonal {
        opacity: 0.5;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Optimize shadow levels for tablets */
    .shadow-level-4 {
        box-shadow: 0 20px 56px rgba(0, 0, 0, 0.25);
    }
}

/* Large screens - enhance effects */
@media (min-width: 1920px) {
    /* Slightly increase shadows on large screens */
    .shadow-level-4 {
        box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
    }
}

/* ========================================
   Print Styles (optional)
   ======================================== */

@media print {
    header,
    footer,
    #mobileMenu,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ========================================
   Accessibility Enhancements
   ======================================== */

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #006B6D;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #FFB300;
    outline-offset: 3px;
}

/* Enhanced focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #FFB300;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Button focus states */
button:focus-visible,
a.btn:focus-visible {
    outline: 3px solid #FFB300;
    outline-offset: 4px;
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #FFB300;
    outline-offset: 2px;
    border-color: #006B6D;
}

/* Link focus states */
a:focus-visible {
    outline: 3px solid #FFB300;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Improved color contrast for text-brand-slate */
.text-brand-slate {
    color: #475569 !important; /* Darker for better WCAG AA contrast */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        font-weight: 500;
    }
    
    a {
        text-decoration: underline;
    }
    
    button, .btn {
        border: 2px solid currentColor;
    }
    
    *:focus-visible {
        outline-width: 4px;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable scroll animations */
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap target sizes - WCAG recommends 44x44px minimum */
    a, button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Navigation links need proper spacing */
    nav a {
        padding: 14px 20px;
        margin: 4px 0;
    }
    
    /* Footer links need more spacing */
    footer a {
        display: inline-block;
        padding: 10px 0;
        margin: 4px 0;
    }
    
    /* Form inputs */
    input, textarea, select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile menu items */
    .mobile-menu-link {
        min-height: 60px;
        padding: 16px 24px;
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-lift-bold:hover,
    .hover-shadow-grow:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Simplify animations for touch devices */
    .icon-pulse:hover,
    .icon-rotate:hover,
    .icon-bounce:hover {
        animation: none;
    }
    
    /* Keep active state for buttons */
    button:active,
    a.btn:active {
        transform: scale(0.97);
    }
}

/* Mobile-specific improvements */
@media (max-width: 640px) {
    /* Increase button sizes on mobile */
    button, .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    /* Larger clickable areas for icons */
    .mobile-menu-toggle,
    #langToggleMobile {
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Footer link spacing */
    footer ul li {
        margin: 8px 0;
    }
    
    footer a {
        padding: 12px 0;
        display: inline-block;
    }
    
    /* Social media icons */
    footer .flex.space-x-4 a {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Language switcher */
    #langToggle, #langToggleMobile {
        min-width: 56px;
        min-height: 48px;
    }
    
    /* Back to top button */
    #backToTop {
        width: 56px;
        height: 56px;
    }
}

/* ========================================
   Dark Mode Support (future enhancement)
   ======================================== */

/* Uncomment when implementing dark mode
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
}
*/

/* ========================================
   Selection Colors
   ======================================== */

::selection {
    background-color: #FFB300;
    color: white;
}

::-moz-selection {
    background-color: #FFB300;
    color: white;
}

/* ========================================
   Scrollbar Styling (webkit browsers)
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #00695C;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004d40;
}

/* ========================================
   Custom Backgrounds
   ======================================== */

/* Subtle pattern background for sections */
.pattern-bg {
    background-image: 
        linear-gradient(30deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(150deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(30deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(150deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Geometric dot pattern */
.pattern-dots {
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 107, 109, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Grid pattern */
.pattern-grid {
    background-image: 
        linear-gradient(rgba(0, 107, 109, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 107, 109, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Diagonal lines pattern */
.pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 107, 109, 0.03) 10px,
        rgba(0, 107, 109, 0.03) 20px
    );
}

/* Animated gradient mesh background */
.bg-gradient-mesh {
    background: linear-gradient(135deg, #006B6D 0%, #008B8D 25%, #D4AF37 50%, #006B6D 75%, #008B8D 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Diagonal gradient backgrounds */
.bg-diagonal-teal {
    background: linear-gradient(135deg, #006B6D 0%, #008B8D 50%, #E8D5B5 100%);
}

.bg-diagonal-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #E4BF47 50%, #FAFAFA 100%);
}

/* Soft gradient overlays */
.bg-overlay-teal {
    background: linear-gradient(to bottom, rgba(0, 107, 109, 0.03), rgba(0, 107, 109, 0.08));
}

.bg-overlay-gold {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.03), rgba(212, 175, 55, 0.08));
}

/* Mixed gradient with pattern */
.bg-mixed-pattern {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 107, 109, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #FAFAFA 0%, #F1F5F9 100%);
}

/* Floating accent shapes background */
.bg-floating-shapes {
    position: relative;
}

.bg-floating-shapes::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 107, 109, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.bg-floating-shapes::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

/* ========================================
   Button Enhancements & Micro-interactions
   ======================================== */

button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced button hover effects */
button:not(:disabled),
a.btn {
    position: relative;
    overflow: hidden;
}

button:not(:disabled)::before,
a.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:not(:disabled):hover::before,
a.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Icon pulse animation on hover */
.icon-pulse {
    transition: transform 0.3s ease;
}

.icon-pulse:hover {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

/* Icon rotate on hover */
.icon-rotate:hover {
    animation: iconRotate 0.5s ease-in-out;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icon bounce */
.icon-bounce:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

/* Shimmer effect for cards */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Ripple effect on click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(50);
        opacity: 0;
    }
}

/* ========================================
   Mobile Menu Enhancements
   ======================================== */

/* Smooth transition for mobile menu */
#mobileMenu {
    transition: max-height 0.3s ease-in-out;
}

/* ========================================
   Utility Classes
   ======================================== */

/* Center content */
.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Truncate text with ellipsis */
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ========================================
   Browser-specific Fixes
   ======================================== */

/* Fix for iOS Safari viewport units */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* ========================================
   Performance Optimizations
   ======================================== */

/* GPU acceleration for animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Contain layout reflows */
section {
    contain: layout style;
}

