/* TIKANA Corporate Website - Custom Styles */

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@font-face {
  font-family: "Protomolecule";
  src:
    url("/public/fonts/Protomolecule/Protomolecule.woff2") format("woff2"),
    url("/public/fonts/Protomolecule/Protomolecule.woff") format("woff"),
    url("/public/fonts/Protomolecule/Protomolecule.ttf") format("truetype"),
    url("/public/fonts/Protomolecule/Protomolecule.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #225385;
}

/* 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;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* RTL specific overrides */
[dir="rtl"] .flip-x {
    transform: scaleX(-1);
}

[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Prose styles for blog content */
.prose h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-size: 1.5em;
    font-weight: 700;
}

.prose h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.25em;
    font-weight: 600;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose a {
    color: #41addd;
    text-decoration: underline;
}

.prose a:hover {
    color: #225385;
}

.prose blockquote {
    border-left: 4px solid #27bdcb;
    padding-left: 1em;
    font-style: italic;
    color: #858484;
    margin: 1.5em 0;
}

[dir="rtl"] .prose blockquote {
    border-left: none;
    border-right: 4px solid #27bdcb;
    padding-left: 0;
    padding-right: 1em;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    border-color: #41addd !important;
    box-shadow: 0 0 0 3px rgba(65, 173, 221, 0.15);
}

/* Button hover effect */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 173, 221, 0.3);
}

/* Card hover animation */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #41addd, #27bdcb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #41addd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

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

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
