/* Studio 1827 - Custom Styles */

/* CSS Variables */
:root {
    --studio-gold: #D4AF37;
    --studio-dark: #1A1A1A;
    --studio-gray: #2D2D2D;
    --studio-light: #F8F9FA;
    --transition: all 0.3s ease;
}

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

/* Body and Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

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

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

/* Navigation Styles */
#navbar {
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--studio-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(248, 249, 250, 0.9) 100%);
}

/* Package Cards */
.package-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: var(--transition);
}

.package-card:hover::before {
    left: 100%;
}

/* Calculator Styles */
.package-option {
    transition: var(--transition);
    cursor: pointer;
}

.package-option:hover {
    border-color: var(--studio-gold);
    background-color: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.package-option.active {
    border-color: var(--studio-gold);
    background-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.scenario-checkbox:checked + div {
    color: var(--studio-gold);
}

.equipment-checkbox:checked + span {
    color: var(--studio-gold);
    font-weight: 600;
}

/* Gallery Styles */
.gallery-grid {
    animation: slideInUp 0.8s ease-out;
}

.gallery-item {
    transition: var(--transition);
    cursor: pointer;
}

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

.filter-btn {
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--studio-gold);
    color: white;
}

.filter-btn:not(.active):hover {
    background-color: white;
    color: var(--studio-gold);
    border-color: var(--studio-gold);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--studio-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--studio-gold), #B8941F);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.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: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Modal Styles */
.modal {
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease-out;
}

.modal-content {
    animation: slideInUp 0.3s ease-out;
}

/* Client Portal Styles */
.status-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.status-step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e5e5e5;
    z-index: 1;
}

.status-step.completed::after {
    background-color: var(--studio-gold);
}

.status-step:last-child::after {
    display: none;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.status-step.completed .status-icon {
    background-color: var(--studio-gold);
    color: white;
    animation: pulse-gold 2s infinite;
}

.status-step.current .status-icon {
    background-color: var(--studio-gold);
    color: white;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--studio-gold), #B8941F);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

/* Chat Styles */
.chat-container {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    animation: slideInUp 0.3s ease-out;
}

.chat-message.sent {
    text-align: right;
}

.chat-message .message-content {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    max-width: 70%;
}

.chat-message.received .message-content {
    background-color: white;
    border-bottom-left-radius: 4px;
}

.chat-message.sent .message-content {
    background-color: var(--studio-gold);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-timestamp {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Quiz Styles */
.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--studio-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.quiz-option.selected {
    border-color: var(--studio-gold);
    background-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.quiz-progress {
    width: 100%;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--studio-gold), #B8941F);
    transition: width 0.5s ease;
}

/* Comparison Styles */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--studio-gold);
    cursor: ew-resize;
    z-index: 10;
}

.comparison-slider::before,
.comparison-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--studio-gold);
    border-radius: 50%;
    left: -8px;
}

.comparison-slider::before {
    top: 10px;
}

.comparison-slider::after {
    bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-tracker {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-step::after {
        display: none;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .package-card {
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
*:focus-visible {
    outline: 2px solid var(--studio-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .package-card {
        border: 2px solid;
    }
    
    .btn-primary {
        border: 2px solid var(--studio-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .nav,
    .footer,
    .modal,
    .floating-elements {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .package-card {
        page-break-inside: avoid;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --studio-light: #2D2D2D;
        --studio-dark: #F8F9FA;
    }
    
    /* Dark mode styles would go here */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--studio-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8941F;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Container queries (future enhancement) */
@supports (container-type: inline-size) {
    .responsive-container {
        container-type: inline-size;
    }
    
    @container (min-width: 768px) {
        .responsive-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}