/* ===================================
   LENS ART STUDIO - Custom Styles
   Minimal & Photography-Focused
   =================================== */

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

/* --- Overflow & Responsive Protection --- */
body {
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

::selection {
    background-color: #d4a853;
    color: #0a0a0a;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #d4a853;
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%);
    z-index: 1;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212,168,83,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212,168,83,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(212,168,83,0.02) 0%, transparent 50%);
}

/* --- Image Placeholder --- */
.img-placeholder {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,168,83,0.05) 0%, transparent 50%);
}

.img-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.08);
    font-size: 2.5rem;
}

/* --- Hover Overlay Effect --- */
.img-overlay-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-overlay-container .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.img-overlay-container:hover .overlay {
    opacity: 1;
}

.img-overlay-container .overlay-zoom {
    position: absolute;
    inset: 0;
    background: rgba(212,168,83,0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-overlay-container:hover .overlay-zoom {
    opacity: 1;
}

.img-overlay-container img,
.img-overlay-container .img-placeholder {
    transition: transform 0.7s ease;
}

.img-overlay-container:hover img,
.img-overlay-container:hover .img-placeholder {
    transform: scale(1.05);
}

/* --- Masonry Grid --- */
.masonry-grid {
    columns: 4;
    column-gap: 1rem;
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }
}

/* --- Divider --- */
.gold-divider {
    width: 60px;
    height: 1px;
    background: #d4a853;
    margin: 0 auto;
}

.gold-divider-left {
    width: 60px;
    height: 1px;
    background: #d4a853;
}

/* --- Section Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Parallax lines decoration --- */
.line-decoration::before,
.line-decoration::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #d4a853, transparent);
}

/* --- Service Card --- */
.service-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #d4a853, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(212,168,83,0.2);
    transform: translateY(-5px);
}

/* --- Package Card --- */
.package-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s ease;
}

.package-card:hover {
    border-color: rgba(212,168,83,0.3);
}

.package-card.featured {
    border-color: #d4a853;
    position: relative;
}

.package-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #d4a853, transparent, #d4a853);
    z-index: -1;
    opacity: 0.2;
}

/* --- Filter Buttons --- */
.filter-btn {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #d4a853;
    color: #d4a853;
    background: rgba(212,168,83,0.05);
}

/* --- Testimonial Card --- */
.testimonial-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Josefin Sans', sans-serif;
    font-size: 5rem;
    color: rgba(212,168,83,0.15);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

/* --- Form Inputs --- */
.form-input {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    width: 100%;
    outline: none;
}

.form-input:focus {
    border-color: #d4a853;
}

.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

/* --- Gold Button --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d4a853;
    color: #d4a853;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-gold:hover {
    background: #d4a853;
    color: #0a0a0a;
}

.btn-gold-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d4a853;
    border: 1px solid #d4a853;
    color: #0a0a0a;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    font-weight: 600;
}

.btn-gold-filled:hover {
    background: transparent;
    color: #d4a853;
}

/* --- Timeline --- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid rgba(212,168,83,0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d4a853;
}

/* --- Counter Animation --- */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Comparison Table --- */
.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table thead th {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d4a853;
    padding: 1.25rem 1.5rem;
}

.comparison-table tbody tr:hover {
    background: rgba(212,168,83,0.03);
}

/* --- Page Header --- */
.page-header {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0a0a0a;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #d4a853, transparent);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
