body {
    scroll-behavior: smooth;
}

/* Navigation Enhancements */
nav {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow: 0 10px 30px rgba(143, 12, 44, 0.15);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #fff0e9 0%, #ffffff 100%);
}

/* Image Styling */
img.rounded-2xl {
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.rounded-2xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(143, 12, 44, 0.2);
}

/* Section Styling */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: inherit;
    z-index: -1;
}

/* Card Hover Effects */
.shadow-lg:hover {
    box-shadow: 0 15px 35px rgba(143, 12, 44, 0.15);
}

/* Button Styles */
.rounded-full {
    transition: all 0.3s ease;
}

.rounded-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(143, 12, 44, 0.3);
}

/* Typography Enhancements */
.font-serif {
    font-family: 'Lora', serif;
}

.font-sans {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.8;
}

/* Gradient Overlays */
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(143, 12, 44, 0.7) 0%, transparent 100%);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .space-x-8 {
        --tw-space-x-reverse: 0;
        margin-right: calc(1rem * var(--tw-space-x-reverse));
        margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
    }
    
    nav {
        padding: 1rem 0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #8f0c2c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b0920;
}

/* Section Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Custom Border Radius */
.rounded-2xl {
    border-radius: 1.5rem;
}

/* Icon Containers */
.w-16.h-16 {
    width: 4rem;
    height: 4rem;
}

/* Badge Styles */
.bg-primary\/10 {
    background-color: rgba(143, 12, 44, 0.1);
}

/* Link Hover Effects */
.text-secondary:hover {
    color: #8f0c2c;
}

/* Custom Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient Backgrounds */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, #fff0e9 0%, #ffffff 100%);
}

/* Custom Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Custom Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Custom Margin */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Text Colors */
.text-primary {
    color: #8f0c2c;
}

.text-secondary {
    color: #6b7280;
}

/* Background Colors */
.bg-background {
    background-color: #fff0e9;
}

.bg-white {
    background-color: #ffffff;
}

/* Custom Opacity */
.opacity-90 {
    opacity: 0.9;
}

/* Custom Border */
.border-2 {
    border-width: 2px;
}

.border-primary {
    border-color: #8f0c2c;
}

/* Custom Width/Height */
.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

/* Custom Object Fit */
.object-cover {
    object-fit: cover;
}

/* Custom Display */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Custom Gap */
.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* Custom Font Weights */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Custom Text Sizes */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

/* Custom Line Height */
.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* Custom Letter Spacing */
.tracking-tight {
    letter-spacing: -0.025em;
}

/* Custom Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Custom Vertical Alignment */
.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

/* Custom Flex Direction */
.flex-col {
    flex-direction: column;
}

/* Custom Order */
.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

/* Custom Z-Index */
.z-50 {
    z-index: 50;
}

/* Custom Position */
.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* Custom Top/Bottom/Left/Right */
.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

/* Custom Height */
.h-16 {
    height: 4rem;
}

/* Custom Min Height */
.min-h-screen {
    min-height: 100vh;
}

/* Custom Max Width */
.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Custom Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Custom Visibility */
.hidden {
    display: none;
}

/* Custom Block */
.block {
    display: block;
}

/* Custom Inline */
.inline {
    display: inline;
}

/* Custom Inline Block */
.inline-block {
    display: inline-block;
}

/* Custom Table */
.table {
    display: table;
}

/* Custom Table Cell */
.table-cell {
    display: table-cell;
}

/* Custom List */
.list-none {
    list-style: none;
}

/* Custom List Style */
.list-disc {
    list-style-type: disc;
}

/* Custom List Style Position */
.list-inside {
    list-style-position: inside;
}

/* Custom Text Decoration */
.no-underline {
    text-decoration: none;
}

/* Custom Text Transform */
.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Custom Text Overflow */
.overflow-ellipsis {
    text-overflow: ellipsis;
}

.overflow-clip {
    text-overflow: clip;
}

/* Custom White Space */
.whitespace-nowrap {
    white-space: nowrap;
}

/* Custom Word Break */
.break-words {
    word-break: break-word;
}

/* Custom Hyphens */
.hyphens-auto {
    hyphens: auto;
}

/* Custom Text Indent */
.indent-8 {
    text-indent: 2rem;
}

/* Custom Letter Spacing */
.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

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

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

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

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Custom Cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

/* Custom User Select */
.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

/* Custom Pointer Events */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Custom Resize */
.resize-none {
    resize: none;
}

.resize-both {
    resize: both;
}

/* Custom Appearance */
.appearance-none {
    appearance: none;
}

/* Custom Outline */
.outline-none {
    outline: none;
}

/* Custom Ring */
.ring-0 {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

.ring-1 {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Custom Box Shadow Color */
.shadow-primary {
    box-shadow: 0 0 0 3px rgba(143, 12, 44, 0.2);
}

/* Custom Divide */
.divide-y > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-x > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-x-reverse: 0;
    border-right-width: calc(1px * var(--tw-divide-x-reverse));
    border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
}

/* Custom Space */
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.75rem * var(--tw-space-x-reverse));
    margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

/* Custom Grid Template Columns */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Custom Grid Template Rows */
.grid-rows-1 {
    grid-template-rows: repeat(1, minmax(0, 1fr));
}

.grid-rows-2 {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Custom Auto Flow */
.grid-flow-row {
    grid-auto-flow: row;
}

.grid-flow-col {
    grid-auto-flow: column;
}

/* Custom Auto Columns */
.auto-cols-auto {
    grid-auto-columns: auto;
}

.auto-cols-min {
    grid-auto-columns: min-content;
}

.auto-cols-max {
    grid-auto-columns: max-content;
}

.auto-cols-fr {
    grid-auto-columns: minmax(0, 1fr);
}

/* Custom Auto Rows */
.auto-rows-auto {
    grid-auto-rows: auto;
}

.auto-rows-min {
    grid-auto-rows: min-content;
}

.auto-rows-max {
    grid-auto-rows: max-content;
}

.auto-rows-fr {
    grid-auto-rows: minmax(0, 1fr);
}

/* Custom Gap */
.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

/* Custom Row Gap */
.row-gap-0 {
    row-gap: 0;
}

.row-gap-1 {
    row-gap: 0.25rem;
}

.row-gap-2 {
    row-gap: 0.5rem;
}

.row-gap-3 {
    row-gap: 0.75rem;
}

.row-gap-4 {
    row-gap: 1rem;
}

/* Custom Column Gap */
.col-gap-0 {
    column-gap: 0;
}

.col-gap-1 {
    column-gap: 0.25rem;
}

.col-gap-2 {
    column-gap: 0.5rem;
}

.col-gap-3 {
    column-gap: 0.75rem;
}

.col-gap-4 {
    column-gap: 1rem;
}