/* Custom CSS for Interior Design Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation dropdown animations */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
    visibility: visible;
}

/* FAQ Accordion Styles */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content.show {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%);
}

/* Project card hover effects */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Service card animations */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Skill bar animations */
.skill-bar {
    transition: width 2s ease-out;
}

/* Custom orange utilities - missing from Tailwind 2.2.19 CDN build */
.bg-orange-50 {
    background-color: #fff7ed !important;
}

.bg-orange-100 {
    background-color: #ffedd5 !important;
}

.bg-orange-200 {
    background-color: #fed7aa !important;
}

.bg-orange-600 {
    background-color: #ea580c !important;
}

.text-orange-600 {
    color: #ea580c !important;
}

.from-orange-400 {
    --tw-gradient-from: #fb923c;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 146, 60, 0));
}

.to-orange-400 {
    --tw-gradient-to: #fb923c;
}

.to-orange-600 {
    --tw-gradient-to: #ea580c;
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Section animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card grid improvements */
.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Navigation active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Image placeholder styles */
.image-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Testimonial carousel styles */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
}

/* Contact form styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Statistics counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Blog card styles */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Team member cards */
.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.team-card:hover img {
    filter: grayscale(0%);
}

/* Process timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 2rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #9333ea);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* ===============================
   COMPREHENSIVE MOBILE RESPONSIVENESS
================================ */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {

    /* Typography adjustments */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Container padding */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Grid adjustments */
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Section padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {

    /* Typography for mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    /* Container adjustments */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Grid to single column */
    .grid,
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Keep selected grids in 2 columns on small screens */
    .grid.mobile-2-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Force 2-column layout for specific sections on mobile */
    #services .grid,
    #how-we-work .grid,
    #about .grid,
    #best-company .grid,
    #best-service .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Contact section: make info + social icons 2x2 on mobile */
    #contact .text-white .space-y-4 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }

    #contact .text-white .flex.space-x-4 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }

    /* Remove Tailwind spacing utilities when using grid */
    #contact .text-white .space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    #contact .space-x-4 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Flex columns stack */
    .flex {
        flex-direction: column !important;
    }

    /* Keep partner slider in a single row on mobile */
    .partners-slider {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    /* Section spacing */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Button sizing */
    .btn,
    button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px;
        /* Touch-friendly */
    }

    /* Image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Card spacing */
    .service-card,
    .project-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    /* Team cards */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Testimonial adjustments */
    .testimonial-slide {
        padding: 1.5rem !important;
    }

    /* Form inputs */
    input,
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }

    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    /* Table responsiveness */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {

    /* Typography for small screens */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Section spacing */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Button adjustments */
    .btn,
    button {
        width: 100%;
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Stats to single column */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Team cards to single column */
    .team-grid {
        grid-template-columns: 1fr !important;
    }

    /* Card padding */
    .service-card,
    .project-card,
    .blog-card {
        padding: 1.25rem !important;
    }

    /* Form spacing */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Reduce gaps */
    .gap-8 {
        gap: 1.5rem !important;
    }

    .gap-6 {
        gap: 1rem !important;
    }

    /* Modal full screen on mobile */
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 8px;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    a,
    button,
    .clickable {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }

    /* Remove hover effects on touch devices */
    .hover\\:scale-110:hover {
        transform: none;
    }

    /* Better tap highlights */
    * {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
}

/* Print styles */
@media print {

    .modern-nav,
    .mobile-menu,
    .mobile-menu-btn,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    a {
        text-decoration: underline;
    }

    * {
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .nav-link,
    .dropdown-link {
        border: 2px solid currentColor;
    }

    .btn-primary {
        border: 2px solid #000;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
    /* body {
        background: #1a1a1a;
        color: #ffffff;
    } */
}

/* Force sticky top bar */
.modern-nav {
    position: sticky !important;
    top: 0;
    z-index: 9999;
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1002;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: clamp(20px, 5vw, 26px) !important;
        padding: 4px 0 !important;
        gap: 4px !important;
    }
    .mobile-menu-btn span {
        background: #1a202c !important;
        opacity: 1 !important;
        height: 2px !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 0 !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .nav-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 56px !important;
        padding: 0 14px !important;
    }
    .brand-logo {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }
    .brand-name {
        font-size: 18px !important;
    }
    .modern-nav {
        box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 52px !important;
        padding: 0 12px !important;
    }
    .brand-name {
        font-size: 16px !important;
    }
}

