/* JatinArts Professional Pencil Sketch Theme */

:root {
    /* Primary Colors - Professional Neutrals */
    --primary-color: #2b2b2b;        /* Charcoal Black */
    --secondary-color: #4a4a4a;      /* Graphite Gray */
    --accent-color: #8b7355;         /* Warm Sepia */
    --dark-color: #2b2b2b;           /* Charcoal Black */
    --light-color: #ffffff;          /* Pure White */
    --gray-color: #6b6b6b;           /* Soft Gray */
    --bg-light: #f5f1e8;             /* Cream Background */
    --cream-color: #f5f1e8;          /* Cream */
    --border-color: #e8e8e8;         /* Light Gray */
    --medium-gray: #9a9a9a;          /* Medium Gray */

    /* Status Colors - Muted */
    --success-color: #5a7a5a;        /* Muted Green */
    --warning-color: #a67c52;        /* Muted Orange/Brown */
    --danger-color: #8b5a5a;         /* Muted Red */
    --info-color: #5a6b7a;           /* Muted Blue */
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 800;
}

/* Navbar - Modern Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand h2 {
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(139, 115, 85, 0.1);
}

.nav-link::after {
    display: none;
}

/* Hero Section - Professional Clean Design */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--bg-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%232b2b2b" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    animation: wave 15s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: none;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section .lead {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

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

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1.5s ease;
}

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

.hero-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05) rotate(2deg);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Buttons - Modern Style */
.btn {
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    box-shadow: 0 10px 30px rgba(43, 43, 43, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(43, 43, 43, 0.3);
}

.btn-outline-light {
    border: 3px solid #2b2b2b;
    color: #2b2b2b;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Feature Box - Modern Cards */
.feature-box {
    transition: all 0.5s ease;
    border-radius: 20px;
    padding: 3rem 2rem;
    background: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.feature-box:hover .feature-icon {
    transform: rotateY(360deg);
}

/* Step Number - Professional Style */
.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.2);
    transition: all 0.5s ease;
}

.step-box:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-box {
    transition: all 0.5s ease;
    padding: 2rem;
    border-radius: 20px;
}

.step-box:hover {
    background: rgba(139, 115, 85, 0.05);
    transform: translateY(-10px);
}

/* Gallery - Professional Clean Style */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 43, 43, 0.85);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-overlay .badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Order Form */
.size-option,
.subject-option {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover,
.subject-option:hover {
    border-color: var(--accent-color);
    background: rgba(139, 115, 85, 0.05);
}

.form-check-input:checked ~ .form-check-label {
    color: var(--accent-color);
}

.size-option:has(.form-check-input:checked),
.subject-option:has(.form-check-input:checked) {
    border-color: var(--accent-color);
    background: rgba(139, 115, 85, 0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: var(--bg-light);
}

/* Order Timeline */
.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #9ca3af;
    font-size: 24px;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-icon {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.timeline-content h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content small {
    color: #6b7280;
}

/* Success Animation */
.success-animation {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
footer a:hover {
    color: white !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive - Tablet and Below */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .order-timeline {
        flex-direction: column;
    }

    .order-timeline::before {
        display: none;
    }

    .timeline-item {
        margin-bottom: 20px;
    }

    .gallery-item img {
        height: 250px;
    }

    .feature-box {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}

/* Responsive - Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Typography - Mobile Optimized */
    body {
        font-size: 14px;
    }

    h1, .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Navigation - Mobile */
    .navbar-brand h2 {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    /* Buttons - Mobile Touch Targets (44x44px minimum) */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn i {
        font-size: 0.9rem;
    }

    /* Ensure buttons don't overflow */
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }

    .d-flex.gap-3 .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Stats Section - Mobile */
    .stats-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .stats-label {
        font-size: 0.85rem;
    }

    /* Section Titles - Mobile */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-title::after {
        width: 60px;
        height: 4px;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Feature Boxes - Mobile */
    .feature-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .feature-box h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .feature-box p {
        font-size: 0.9rem;
    }

    /* Step Boxes - Mobile */
    .step-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-box h5 {
        font-size: 1.1rem;
    }

    .step-box p {
        font-size: 0.9rem;
    }

    /* Gallery - Mobile */
    .gallery-item img {
        height: 200px;
    }

    .gallery-overlay h5 {
        font-size: 1.1rem;
    }

    .gallery-overlay .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Category Filter - Mobile */
    .category-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .category-filter .btn {
        margin: 0.25rem;
        padding: 10px 20px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Cards - Mobile */
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .card-body {
        padding: 1rem;
    }

    /* Forms - Mobile */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.75rem;
        min-height: 44px;
    }

    .form-control-lg {
        font-size: 1rem !important;
        padding: 0.875rem !important;
        min-height: 48px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    /* Order Form - Mobile */
    .size-option,
    .subject-option {
        padding: 12px;
        margin-bottom: 0.75rem;
    }

    .size-option label,
    .subject-option label {
        font-size: 0.9rem;
    }

    /* Price Display - Mobile */
    #portraitPrice {
        font-size: 1.75rem !important;
    }

    /* Tables - Mobile */
    .table {
        font-size: 0.85rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
    }

    .table td:first-child {
        width: 45%;
    }

    /* Timeline - Mobile */
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .timeline-content h6 {
        font-size: 0.95rem;
    }

    .timeline-content small {
        font-size: 0.8rem;
    }

    /* Testimonials - Mobile */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card::before {
        font-size: 4rem;
        top: 10px;
        left: 15px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* CTA Section - Mobile */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* Page Headers - Mobile */
    .page-header {
        padding: 3rem 0 2rem 0 !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .page-header .lead {
        font-size: 0.95rem !important;
    }

    .page-header .fa-3x {
        font-size: 2rem !important;
    }

    /* Spacing - Mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Alerts - Mobile */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Badges - Mobile */
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Modal - Mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container,
    .row {
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra Small Devices (320px) */
@media (max-width: 320px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .stats-number {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .gallery-item img {
        height: 180px;
    }

    .category-filter .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Sticky Top Offset */
.sticky-top {
    top: 0px;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(139, 115, 85, 0.05);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.25);
}

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

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

/* Stats Section */
.stats-box {
    text-align: center;
    padding: 2rem;
    transition: all 0.5s ease;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 600;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Category Filter Buttons */
.category-filter {
    margin-bottom: 3rem;
}

.category-filter .btn {
    margin: 0.5rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-filter .btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.3);
}

