* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Soft page background so the centered card stands out */
    background: linear-gradient(180deg, #f8e7ea 0%, #f1f5f9 100%);
    color: #0a0a0a;
    margin: 0;
    padding: 24px 12px; /* breathing room around the centered card */
    overflow-x: hidden;
}

.card-page {
    width: 100%;
    max-width: 420px; /* centered card width */
    margin: 0 auto;   /* center horizontally */
    background-color: #ffffff; /* white card */
    border-radius: 24px;       /* rounded corners like the screenshot */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden; /* clip gradient sections to the card radius */
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    /* keep content compact within the centered card */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #ef4444 0%, #9333ea 50%, #2563eb 100%);
    opacity: 0.9;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 5px; /* Mobile: 5px padding */
    color: white;
    width: 100%;
    max-width: 400px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-image-wrapper {
    position: relative;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #facc15;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
    color: #854d0e;
    fill: currentColor;
}

.name-section h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.contact-btn:hover {
    background-color: #f3f4f6;
}

.contact-btn.whatsapp-btn svg {
    color: #16a34a;
    width: 20px;
    height: 20px;
}

.contact-btn.call-btn svg {
    color: #2563eb;
    width: 20px;
    height: 20px;
}

/* Jivanjor Logo Card */
.jivanjor-logo-card {
    width: 100%;
    max-width: 320px;
}

.logo-card-inner {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.jivanjor-logo {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo-card-content {
    text-align: center;
}

.preferred-partner {
    color: #1f2937;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 4px;
}

.star-rating svg {
    width: 20px;
    height: 20px;
    color: #eab308;
    fill: currentColor;
}

.star-rating .half-star-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.star-rating .half-star-filled {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    color: #eab308;
    fill: currentColor;
    clip-path: inset(0 50% 0 0);
    z-index: 1;
}

.star-rating .half-star-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    color: #d1d5db;
    fill: none;
    z-index: 0;
}

.star-rating .empty-star {
    color: #d1d5db;
    fill: none;
}

/* Company Info */
.company-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #fde047 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.experience-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 8px 16px;
    display: inline-block;
}

.experience-badge p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tagline {
    font-size: 18px;
    font-weight: 500;
    padding: 0 16px;
    line-height: 1.75;
    margin: 0;
}

/* Works Section */
.works-section {
    width: 100%;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    padding: 24px;
}

.works-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(to right, #dc2626 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.works-grid {
    display: grid;
    /* Responsive auto-fit columns that wrap nicely */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.work-category-btn {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
    transform: scale(1);
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.work-category-btn:hover {
    transform: scale(1.05);
}

.work-category-btn svg {
    width: 20px;
    height: 20px;
}

.work-category-btn span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

/* Tighten spacing and switch to 2 columns on very narrow screens */
@media (max-width: 360px) {
    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .work-category-btn {
        min-height: 72px;
        padding: 12px 10px;
    }
    .work-category-btn svg {
        width: 18px;
        height: 18px;
    }
    .work-category-btn span {
        font-size: 11px;
    }
}

.work-category-btn[data-category="all"]:hover {
    background: linear-gradient(to bottom right, #ef4444 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
}

.work-category-btn[data-category="bedroom"]:hover {
    background: linear-gradient(to bottom right, #a855f7 0%, #6366f1 100%);
    color: white;
    border-color: transparent;
}

.work-category-btn[data-category="living"]:hover {
    background: linear-gradient(to bottom right, #3b82f6 0%, #06b6d4 100%);
    color: white;
    border-color: transparent;
}

.work-category-btn[data-category="kitchen"]:hover {
    background: linear-gradient(to bottom right, #22c55e 0%, #10b981 100%);
    color: white;
    border-color: transparent;
}

.work-category-btn[data-category="pooja"]:hover {
    background: linear-gradient(to bottom right, #eab308 0%, #f97316 100%);
    color: white;
    border-color: transparent;
}

.work-category-btn[data-category="kids"]:hover {
    background: linear-gradient(to bottom right, #ec4899 0%, #f43f5e 100%);
    color: white;
    border-color: transparent;
}

/* CTA Section */
.cta-section {
    width: 100%;
    background: linear-gradient(to right, #ef4444 0%, #9333ea 50%, #2563eb 100%);
    padding: 24px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    text-decoration: none;
    height: 48px;
    padding: 16px;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    background-color: white;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1);
    transition: all 0.3s;
}

.cta-btn:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.message-btn {
    color: #16a34a;
}

.call-now-btn {
    color: #2563eb;
}

.cta-btn svg {
    width: 24px;
    height: 24px;
}

/* Testimonials Section */
.testimonials-section {
    width: 100%;
    background: linear-gradient(to bottom right, #facc15 0%, #f97316 50%, #ef4444 100%);
    padding: 24px;
}

.projects-gallery-section {
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #fbfbfb 100%);
    padding: 24px;
}

.projects-gallery-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(to right, #dc2626 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px 22px;
}

.project-item {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.project-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* neat squares */
    object-fit: cover;
}

@media (max-width: 420px) {
    .projects-gallery-section {
        padding: 16px;
    }
    .projects-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 14px;
    }
}

.stories-section {
    width: 100%;
    background: #ffffff;
    padding: 24px;
}

.stories-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #111827;
}

@media (max-width: 420px) {
    .stories-section {
        padding: 16px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-image {
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content img {
        max-height: 80vh;
    }

    #lightbox-caption {
        font-size: 14px;
        padding: 12px 16px;
        margin-top: 12px;
    }
}

@media (max-width: 420px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 75vh;
    }

    .lightbox-close {
        top: 5px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto;
}

.bounce-arrow {
    width: 24px;
    height: 24px;
    color: white;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.testimonials-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: white;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: #f97316;
    margin-bottom: 12px;
}

.testimonial-text {
    font-style: italic;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.75;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-author {
    font-weight: 700;
    color: #1f2937;
}

.testimonial-rating {
    display: flex;
    gap: 0;
}

.testimonial-rating .half-star-wrapper {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.testimonial-rating .half-star-filled {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    color: #eab308;
    fill: currentColor;
    clip-path: inset(0 50% 0 0);
    z-index: 1;
}

.testimonial-rating .half-star-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    color: #d1d5db;
    fill: none;
    z-index: 0;
}

.testimonial-rating .empty-star {
    color: #d1d5db;
    fill: none;
}

.testimonial-rating svg {
    width: 16px;
    height: 16px;
    color: #eab308;
    fill: currentColor;
}

/* Footer Section */
.footer-section {
    width: 100%;
    background: linear-gradient(to bottom right, #9333ea 0%, #2563eb 50%, #4338ca 100%);
    padding: 24px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto;
    color: white;
}

.address-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    text-align: center;
}

.location-icon {
    width: 24px;
    height: 24px;
    color: #fde047;
    margin: 0 auto 8px;
    display: block;
}

.address-card p {
    font-size: 14px;
    font-weight: 500;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    transform: scale(1);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.social-link svg {
    width: 32px;
    height: 32px;
}

.social-link:first-child svg {
    color: #93c5fd;
}

.social-link:last-child svg {
    color: #f9a8d4;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

.jivanjor-footer-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
}

.jivanjor-footer-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.trusted-partner {
    text-align: center;
    color: #1f2937;
    font-weight: 600;
    margin-top: 8px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content,
    .jivanjor-logo-card,
    .works-grid,
    .cta-container,
    .testimonials-container,
    .footer-container {
        max-width: 400px;
    }
    
    .hero-content {
        padding: 0 24px; /* Desktop: 24px padding */
    }
    
    .works-grid {
        max-width: 500px;
    }
}

/* Compact paddings on small screens to match reference spacing */
@media (max-width: 420px) {
    body {
        padding: 12px 8px;
    }
    .card-page {
        border-radius: 16px;
    }
    .hero-section {
        padding: 24px 16px;
    }
    .logo-card-inner {
        padding: 12px;
    }
    .profile-image {
        width: 72px;
        height: 72px;
    }
    .experience-badge {
        padding: 6px 12px;
    }
    .works-section,
    .cta-section,
    .testimonials-section,
    .footer-section {
        padding: 16px;
    }
    .works-title {
        margin-bottom: 16px;
    }
    .cta-btn {
        height: 44px;
        padding: 12px;
        font-size: 16px;
    }
}

