/**
 * Perpetual Design Studio - Premium Redesign Styling
 * Theme: Luxury Modern Dark (Charcoal/Gold accents)
 */

/* Core Styles */
body {
    background-color: #0B0B0B;
    color: #F5F5F5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0B0B;
}
::-webkit-scrollbar-thumb {
    background: #C5A880;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #DBC3A3;
}

/* Premium Typography */
.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Gold Gradient text helper */
.text-gold-gradient {
    background: linear-gradient(135deg, #C5A880 0%, #E5C9A0 50%, #A38052 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Glassmorphism */
.glass-panel {
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 168, 128, 0.08);
}
.glass-panel:hover {
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-header {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

/* Navigation Links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C5A880;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Premium Button Interactions */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #C5A880;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}
.cta-button:hover::before {
    width: 300%;
    height: 300%;
}

/* Premium Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(11, 11, 11, 0.95) 90%);
    z-index: 2;
    transition: opacity 0.5s ease;
}
.service-card img {
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card:hover img {
    transform: scale(1.1);
}
.service-card:hover {
    box-shadow: 0 15px 35px rgba(197, 168, 128, 0.05);
}

/* Interactive Before/After Image Slider */
.before-after-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.after-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.before-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
}
.after-image-wrapper img,
.before-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #C5A880;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #121212;
    border: 2px solid #C5A880;
    color: #C5A880;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: background-color 0.3s ease;
}
.before-after-container:hover .slider-button {
    background-color: #C5A880;
    color: #121212;
}

/* Premium Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 11, 11, 0.95);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-container {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}
.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #F5F5F5;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: #C5A880;
}

/* Infinite Horizontal Marquee for Client Logos */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: 200%;
    animation: marquee 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* Process Timeline Styles */
.timeline-item {
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #121212;
    border: 3px solid #C5A880;
    z-index: 10;
    transition: all 0.4s ease;
}
.timeline-item:hover .timeline-dot {
    background-color: #C5A880;
    box-shadow: 0 0 15px #C5A880;
}

/* Custom testimonial slider dot states */
.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}
.testimonial-dot.active {
    background-color: #C5A880 !important;
    width: 24px !important;
}

/* Admin Dashboard Metrics Card styling */
.admin-card {
    background: #121212;
    border: 1px solid rgba(197, 168, 128, 0.05);
    transition: border-color 0.3s ease;
}
.admin-card:hover {
    border-color: rgba(197, 168, 128, 0.2);
}

/* Blog Content Typography (Prose) */
.prose {
    font-family: 'Inter', sans-serif;
}
.prose p {
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: #A3A3A3;
    font-size: 0.95rem;
}
.prose p:last-child {
    margin-bottom: 0;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: 'Outfit', sans-serif;
    color: #F5F5F5;
    font-weight: 700;
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; border-left: 3px solid #C5A880; padding-left: 0.85rem; }
.prose h3 { font-size: 1.5rem; color: #C5A880; }
.prose h4 { font-size: 1.25rem; }
.prose strong {
    color: #F5F5F5;
    font-weight: 600;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.75rem;
    margin-bottom: 1.75rem;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin-bottom: 1.75rem;
}
.prose li {
    margin-bottom: 0.6rem;
    color: #A3A3A3;
    line-height: 1.7;
}
.prose blockquote {
    border-left: 4px solid #C5A880;
    padding-left: 1.5rem;
    margin: 2.25rem 0;
    font-style: italic;
    color: #E5C9A0;
    background: rgba(197, 168, 128, 0.03);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(197, 168, 128, 0.15);
    margin: 2.5rem 0;
    transition: transform 0.5s ease, border-color 0.3s ease;
}
.prose img:hover {
    border-color: rgba(197, 168, 128, 0.4);
    transform: scale(1.02);
}
.prose a {
    color: #C5A880;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.prose a:hover {
    color: #E5C9A0;
}
.prose hr {
    border: 0;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    margin: 3rem 0;
}
