/* Custom CSS for Genre of Design */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}


.loader-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Josefin Sans', sans-serif;
    animation: pulse 1.5s ease-in-out infinite;
}

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


@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Hide main content while loading */
body.loading #app {
    opacity: 0;
    visibility: hidden;
}

body.loaded #app {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: translateY(0);
}

.whatsapp-icon {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.whatsapp-icon svg {
    width: 28px;
    height: 28px;
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    opacity: 0.75;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Font Family */
.font-josefin {
    font-family: 'Josefin Sans', sans-serif;
}

/* Font Awesome Icon Fixes */
.fa-whatsapp {
    color: #25D366 !important;
    font-size: 1.2em;
    display: inline-block;
}

/* Blog Page Styling */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content {
    @apply text-gray-700 leading-relaxed text-base md:text-lg font-josefin;
    line-height: 1.7;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    @apply text-gray-900 font-bold mb-4 mt-8 first:mt-0 font-josefin;
}

.blog-content h1 {
    @apply text-2xl md:text-3xl;
}

.blog-content h2 {
    @apply text-xl md:text-2xl;
}

.blog-content h3 {
    @apply text-lg md:text-xl;
}

.blog-content p {
    @apply mb-6 text-gray-700 font-josefin;
}

.blog-content ul,
.blog-content ol {
    @apply mb-6 pl-6 space-y-2;
    list-style-position: outside;
}

.blog-content li {
    @apply mb-2 text-gray-700 font-josefin;
}

/* Ensure ordered and unordered list markers show consistently */
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }

/* Support Quill indent classes coming from the editor */
.blog-content .ql-indent-1 { padding-left: 1.5rem; }
.blog-content .ql-indent-2 { padding-left: 3rem; }
.blog-content .ql-indent-3 { padding-left: 4.5rem; }
.blog-content .ql-indent-4 { padding-left: 6rem; }
.blog-content .ql-indent-5 { padding-left: 7.5rem; }
.blog-content .ql-indent-6 { padding-left: 9rem; }
.blog-content .ql-indent-7 { padding-left: 10.5rem; }
.blog-content .ql-indent-8 { padding-left: 12rem; }

.blog-content blockquote {
    @apply border-l-4 border-red-600 pl-6 italic text-gray-600 my-8 bg-gray-50 py-4 rounded-r-lg font-josefin;
    font-style: italic;
}

.blog-content img {
    @apply rounded-xl my-8 shadow-md w-full;
    max-height: 400px;
    object-fit: cover;
}

.blog-content a {
    @apply text-red-600 hover:text-red-700 hover:underline font-medium transition-colors duration-200 font-josefin;
}

.blog-content strong {
    @apply font-semibold text-gray-900 font-josefin;
}

.blog-content code {
    @apply bg-gray-100 px-2 py-1 rounded text-sm font-mono;
}

.blog-content pre {
    @apply bg-gray-100 p-4 rounded-lg overflow-x-auto my-6 font-josefin;
    font-family: 'Josefin Sans', sans-serif !important;
}

.blog-content pre code {
    @apply bg-transparent p-0;
}

/* Specific styling for blog content pre elements (plain text content) */
.blog-content.whitespace-pre-wrap {
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* Override any pre element styling within blog content */
.blog-content pre {
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* Force Josefin Sans on all blog content elements */
.blog-content,
.blog-content * {
    font-family: 'Josefin Sans', sans-serif !important;
}

/* Exception for code elements - keep monospace */
.blog-content code {
    font-family: 'Courier New', monospace !important;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
    display: inline-block;
}

.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    display: inline-block;
}

/* Debug: Check if Font Awesome is loading */
.fa-whatsapp:before {
    content: "\f232" !important;
}

/* Fallback for WhatsApp icon if Font Awesome fails */
.fa-whatsapp.fallback:before {
    content: "📱" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

/* Social Media Icons - Force Font Awesome to work */
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Specific icon content for social media */
.fa-youtube:before { content: "\f167"; }
.fa-facebook:before { content: "\f09a"; }
.fa-instagram:before { content: "\f16d"; }
.fa-pinterest:before { content: "\f0d2"; }
.fa-whatsapp:before { content: "\f232"; }
.fa-linkedin:before { content: "\f08c"; }

/* Force WhatsApp icon to be white/gray like other icons */
.fab.fa-whatsapp {
    color: inherit !important;
}

/* Social media icons hover effect - all turn brand red */
footer .fab:hover {
    color: #ED1A23 !important;
}

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-red-600 px-3 py-2 text-sm font-medium transition-colors duration-200;
}

.nav-link.router-link-active {
    @apply text-red-600;
}

.nav-link-simple {
    @apply text-gray-900 hover:text-red-600 text-base font-medium transition-colors duration-200;
}

.nav-link-simple.router-link-active {
    @apply text-red-600;
}

/* Override hover/active color to brand red (#ED1B24) */
.nav-link:hover,
.nav-link.router-link-active,
.nav-link-simple:hover,
.nav-link-simple.router-link-active,
.mobile-nav-link:hover,
.mobile-nav-link.router-link-active {
    color: #ED1B24 !important;
}

/* Explicit active class applied via Navbar component */
.active-link {
    color: #ED1B24 !important;
}

.mobile-nav-link {
    @apply text-gray-700 hover:text-red-600 block px-3 py-2 text-base font-medium transition-colors duration-200;
}

.mobile-nav-link.router-link-active {
    @apply text-red-600;
}

/* Hover Underline Animation */
.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: rgb(220 38 38);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Projects Grid - Column-based Masonry like god_old */
.projects-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px; /* Mobile gap - reduced */
    padding: 0;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px; /* Tablet gap - reduced */
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px; /* Desktop gap - reduced */
    }
}

/* Each column is a separate grid with rowGap - like god_old */
.masonry-column {
    display: grid;
    row-gap: 4px; /* Mobile row gap - reduced */
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .masonry-column {
        row-gap: 6px; /* Tablet row gap - reduced */
    }
}

@media (min-width: 1024px) {
    .masonry-column {
        row-gap: 6px; /* Desktop row gap - reduced */
    }
}


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

/* Project Card */
.project-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition-shadow duration-300;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card .project-image-container {
    height: 100%;
    flex: 1;
}

/* Ensure project card only contains image container */
.project-card {
    padding: 0;
    margin: 0;
}

/* Only hide non-image content in the projects grid context, not in modals */
.projects-grid .project-card > *:not(.project-image-container) {
    display: none !important;
}

.project-image-container {
    @apply relative w-full h-64 overflow-hidden;
    position: relative;
}

.project-image {
    @apply w-full h-full object-cover;
}

.image-placeholder {
    @apply absolute inset-0 flex flex-col items-center justify-center bg-gray-100 text-gray-500;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    pointer-events: none;
    z-index: 10;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 11;
}

.project-title-overlay {
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.project-location-overlay {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Removed old project title and meta styles - now using overlay styles */

/* Button Styles */
.btn-primary {
    @apply bg-red-600 text-white px-6 py-2 rounded-lg hover:bg-red-700 transition-colors duration-200 font-medium;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 px-6 py-2 rounded-lg hover:bg-gray-300 transition-colors duration-200 font-medium;
}

.btn-outline {
    @apply border-2 border-red-600 text-red-600 px-6 py-2 rounded-lg hover:bg-red-600 hover:text-white transition-colors duration-200 font-medium;
}

/* Form Styles */
.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent;
}

.form-textarea {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent resize-vertical;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* Loading Spinner */
.loading-spinner {
    @apply animate-spin rounded-full h-8 w-8 border-b-2 border-red-600;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Slide In Animation */
.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Zoom In Animation */
.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Category Filter */
.category-filter {
    @apply flex flex-wrap gap-2 mb-6;
}

/* Mobile Sticky Filter */
@media (max-width: 768px) {
    .category-filter {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        margin: 0;
        z-index: 40;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: none  ;
    }
    
    /* Add bottom padding to main content to prevent overlap */
    .main-content {
        padding-bottom: 80px;
    }
}

.category-btn {
    @apply px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200;
}

.category-btn.active {
    @apply bg-red-600 text-white;
}

.category-btn:not(.active) {
    @apply bg-gray-200 text-gray-700 hover:bg-gray-300;
}

/* Category Select */
.category-select {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg bg-white text-gray-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-red-500;
}

@media (max-width: 768px) {
    .category-select {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Custom Dropdown with Search */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

/* Completely remove filter section on mobile */
@media (max-width: 768px) {
    .category-filter-top {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        z-index: -1 !important;
    }
    
    .custom-dropdown,
    .dropdown-button,
    .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
}

@media (max-width: 768px) {
    .custom-dropdown {
        width: 100%;
        min-width: auto;
    }
}

.dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-button:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dropdown-icon {
    transition: transform 0.2s ease;
    color: #6b7280;
}

.dropdown-icon.rotated {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 300px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 100%;
        left: 16px;
        right: 16px;
        width: auto;
        border-radius: 8px 8px 0 0;
        border-top: 2px solid #e5e7eb;
        border-bottom: none;
        max-height: 50vh;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    }
}

.search-container {
    position: relative;
    padding: 6px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.category-list {
    max-height: 200px;
    overflow-y: auto;
}

.category-item {
    padding: 5px 8px;
    cursor: pointer;
    font-size: 16px;
    color: #374151;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f3f4f6;
}

.category-item.selected {
    background-color: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

.category-item.selected:hover {
    background-color: #fee2e2;
}

/* Custom scrollbar for category list */
.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.category-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

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

/* Admin Dashboard */
.dashboard-card {
    @apply bg-white rounded-lg shadow-md p-6;
}

.dashboard-stat {
    @apply text-center;
}

.dashboard-stat-number {
    @apply text-3xl font-bold text-red-600;
}

.dashboard-stat-label {
    @apply text-gray-600 mt-1;
}

/* Table Styles */
.table-container {
    @apply overflow-x-auto;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
}

.table tbody tr:nth-child(even) {
    @apply bg-gray-50;
}

/* Modal Styles */
.modal-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl max-w-md w-full mx-4 max-h-screen overflow-y-auto;
}

/* Blog content typographic helpers */
.blog-content h3 {
    @apply text-xl font-semibold mb-2;
}
.blog-content p {
    @apply text-gray-700 leading-7 mb-4;
}

/* Blog grid and cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blog-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.10);
}
.blog-cover { height: 200px; background:#f3f4f6; }
.blog-cover img { width:100%; height:100%; object-fit:cover; display:block; }

.blog-body { padding: 1rem 1.25rem 1.25rem; }
.blog-meta { color:#6b7280; font-size:.8rem; display:flex; gap:.5rem; align-items:center; margin-bottom:.5rem; }
.blog-title { font-size:1.125rem; font-weight:700; color:#111827; margin-bottom:.25rem; }
.blog-excerpt { color:#4b5563; margin-bottom:1rem; }
.blog-footer { display:flex; align-items:center; justify-content:space-between; }
.blog-author { color:#6b7280; font-size:.875rem; }

.quote { border-left: 4px solid #ED1B24; padding-left: .75rem; font-style: italic; color:#374151; }

/* Toast Notifications */
.toast {
    @apply fixed top-4 right-4 z-50 p-4 rounded-lg shadow-lg max-w-sm;
}

.toast.success {
    @apply bg-green-500 text-white;
}

.toast.error {
    @apply bg-red-500 text-white;
}

.toast.info {
    @apply bg-blue-500 text-white;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        @apply px-4;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

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

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-400 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-500;
}

/* Focus Styles */
.focus-visible:focus {
    @apply outline-none ring-2 ring-red-500 ring-offset-2;
}

/* Skeleton loading styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 20px;
    margin: 8px 0;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* Lazy loading styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Skeleton card styles */
.skeleton-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skeleton-card .skeleton-image {
    flex: 1;
    margin: 0;
}

/* Project Tile Styles - Consistent across all pages */
.project-tile {
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-tile.has-image {
    opacity: 1;
}

/* Tile Content Container */
.tile-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Tile with Image */
.tile-with-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Tile Image */
.tile-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
    display: block;
}

.project-tile:hover .tile-image {
    transform: scale(1.05);
}

/* Tile Overlay */
.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
    pointer-events: none;
    z-index: 20;
    padding: 1rem;
    min-height: 80px;
    display: flex;
    align-items: flex-end;
}

/* Tile Info */
.tile-info {
    width: 100%;
    color: white;
    z-index: 30;
}

.tile-info .project-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile-info .project-location {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    opacity: 0.9;
}

/* Tile Loading State */
.tile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f3f4f6;
    color: #6b7280;
}

.tile-loading .loading-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Tile Placeholder */
.tile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f9fafb;
    color: #6b7280;
    border: 2px dashed #d1d5db;
}

.tile-placeholder .placeholder-icon {
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.tile-placeholder .placeholder-text {
    text-align: center;
}

.tile-placeholder .project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0.5rem 0 0.25rem 0;
}

.tile-placeholder .project-location {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .tile-info .project-title {
        font-size: 1.25rem;
    }
    
    .tile-info .project-location {
        font-size: 0.75rem;
    }
    
    .tile-overlay {
        padding: 0.75rem;
        min-height: 60px;
    }
}

/* Loading indicator styles */
.loading-more-indicator {
    column-span: all;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

/* Modal and Carousel Styles */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling for carousel */
.carousel-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel-slide {
    scroll-snap-align: start;
    cursor: grab;
}

.carousel-slide:active {
    cursor: grabbing;
}

/* Enhanced grab cursor for features and spotlight sections */
.cursor-grab {
    cursor: grab;
    user-select: none;
}

.cursor-grab:active,
.cursor-grabbing {
    cursor: grabbing;
}

.cursor-grab img {
    pointer-events: none;
    user-select: none;
}

/* Smooth drag experience */
.cursor-grab:hover {
    cursor: grab;
}

.cursor-grab:active {
    cursor: grabbing;
}

/* Modal animations */
.modal-animate {
    animation: modalFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-animate .relative {
    animation: modalSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* First slide (info panel) animation */
.modal-animate .carousel-slide:first-child {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

/* Image slides animation */
.modal-animate .carousel-slide:not(:first-child) {
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

/* Keyframe animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Carousel Arrow Controls - Outside slides */
.carousel-arrow-left,
.carousel-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow-left:hover,
.carousel-arrow-right:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.carousel-arrow-left:active,
.carousel-arrow-right:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: -64px; /* 64px outside the container */
}

.carousel-arrow-right {
    right: -64px; /* 64px outside the container */
}

/* Hide arrows on mobile to prevent overlap */
@media (max-width: 1024px) {
    .carousel-arrow-left,
    .carousel-arrow-right {
        display: none;
    }
}

/* Project card hover effect */
.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile drawer transition */
.slide-enter-active, .slide-leave-active { transition: transform .3s ease-in-out; will-change: transform; }
.slide-enter-from, .slide-leave-to { transform: translateX(-100%); }

/* Overlay fade transition */
.fade-enter-active, .fade-leave-active { transition: opacity .2s ease-in-out; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* Modal info typography - unify with body */
.modal-info-list {
    font-size: 16px;
    line-height: 28px;
    color: rgba(255,255,255,0.92);
    font-weight: 400;
}

.modal-info-list span {
    font-weight: 400;
}

.modal-info-list i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
}

.modal-info-desc {
    font-size: 16px;
    line-height: 28px;
    color: rgba(255,255,255,0.92);
    font-weight: 400;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 500px;
}

.hero-cta {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.project-preview {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.project-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.experience-badge {
    background: white;
    color: #1f2937;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
}

.client-avatars {
    display: flex;
    margin-left: -0.5rem;
}

.client-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.client-avatar:not(:first-child) {
    margin-left: -0.5rem;
}

.satisfaction-text {
    color: white;
    margin-left: 1rem;
}

.satisfaction-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.satisfaction-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Hero Banner */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    
    .project-preview {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .project-preview {
        max-width: 150px;
    }
    
    .client-avatars {
        margin-left: 0;
    }
    
    .client-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .satisfaction-text {
        margin-left: 0.75rem;
    }
    
    .satisfaction-number {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accordion Styles */
.accordion-container {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-trigger {
    cursor: pointer;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.accordion-trigger:hover {
    background-color: #f9fafb;
}

.accordion-trigger-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.accordion-number {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0 0.5rem;
    color: #6b7280;
}

.accordion-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    text-align: left;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

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

.accordion-content.open {
    max-height: 2000px;
}

.accordion-content-inner {
    padding: 1rem 0 2rem 0;
}

/* Mobile Accordion Optimizations */
@media (max-width: 768px) {
    .accordion-trigger {
        padding: 0.75rem 0;
    }
    
    .accordion-trigger-content {
        gap: 0.5rem;
    }
    
    .accordion-number {
        font-size: 0.875rem;
        padding: 0 0.25rem;
    }
    
    .accordion-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .accordion-content-inner {
        padding: 0.75rem 0 1.5rem 0;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.apply-button {
    background-color: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.apply-button:hover:not(:disabled) {
    background-color: #b91c1c;
}

.apply-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Separator */
.separator {
    height: 1px;
    background-color: #e5e7eb;
    margin: 2rem 0;
}