/* Custom CSS for Dan Adda Interior Website */

/* CSS Variables - Blue/White Theme (Default) */
:root, [data-theme="light"] {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #6b7280;
    --light-color: #f8fafc;
    --dark-color: #1f2937;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --hero-bg: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --footer-bg: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

/* Dark/Gold Theme Variables */
[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --secondary-color: #ffc107;
    --accent-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --white: #ffffff;
    --hero-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --footer-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

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

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

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

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

/* Navigation Styles */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-themed {
    background: rgba(30, 64, 175, 0.95) !important;
}

[data-theme="dark"] .navbar-themed {
    background: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand-themed {
    color: white !important;
}

[data-theme="dark"] .navbar-brand-themed {
    color: #ffc107 !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin: 0 10px;
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Button Styles */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-radius: 50px;
    padding: 12px 30px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Legacy warning buttons for compatibility */
.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #f59e0b);
    border: none;
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-dark {
    background: linear-gradient(45deg, var(--primary-color), #2d2d2d);
    border: none;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.4);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hover-transform {
    transition: var(--transition);
}

.hover-transform:hover {
    transform: translateY(-5px);
}

/* Portfolio Styles */
.portfolio-card {
    transition: var(--transition);
}

.portfolio-overlay {
    transition: var(--transition);
    opacity: 0;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-img {
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.invalid-feedback {
    font-size: 14px;
    margin-top: 5px;
}

/* Image Placeholder Styles */
.image-placeholder {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background: var(--footer-bg);
    color: white;
}

footer .text-muted {
    color: #e5e7eb !important;
    opacity: 0.9;
}

footer p, footer small {
    color: #f3f4f6 !important;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Testimonial Styles */
.testimonial {
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stars i {
    color: var(--secondary-color);
    margin-right: 2px;
}

/* Process Steps */
.process-step {
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

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

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Contact Styles */
.contact-item {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion Styles */
.accordion-button {
    background: white;
    border: none;
    border-radius: 10px !important;
    font-size: 16px;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.accordion-item {
    border-radius: 10px !important;
    overflow: hidden;
}

/* Team Member Styles */
.team-member {
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.member-photo {
    transition: var(--transition);
}

.team-member:hover .member-photo {
    transform: scale(1.1);
}

/* Statistics Styles */
.stat-item {
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
    background: var(--secondary-color) !important;
    color: var(--dark-color);
}

/* Map Styles */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    transition: var(--transition);
}

.map-placeholder:hover {
    transform: scale(1.02);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .portfolio-overlay {
        opacity: 1;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-warning {
    color: var(--secondary-color) !important;
}

.bg-warning {
    background-color: var(--secondary-color) !important;
}

.border-warning {
    border-color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Carousel Styles */
.carousel-image {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
}

.hero-carousel .carousel-indicators button {
    background-color: var(--primary-color);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 20px;
}

/* Testimonial Styles */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.avatar-circle {
    transition: var(--transition);
}

.testimonial-card:hover .avatar-circle {
    transform: scale(1.1);
}

/* Theme Toggle Styles */
.theme-switch button {
    transition: var(--transition);
}

.theme-switch button:hover {
    transform: scale(1.1);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Theme transition animation */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar, .card, .btn, footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}