/* ============================================
   Interior Design Portfolio - Custom Styles
   ============================================ */

/* Root Variables */
:root {
    --bg-primary: #1A130F;
    --gold-accent: #C5923A;
    --text-primary: #E9E1D6;
    --font-luxury: "Playfair Display", serif;
    --font-clean: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-clean);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-luxury);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-accent), #8B6F2A);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

/* Typography - Already defined above */

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-accent);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 19, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 146, 58, 0.2);
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 1200px;
}

/* Desktop navigation - only show on md and up */
@media (min-width: 768px) {
    .navbar .nav-links-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        flex-wrap: wrap;
    }
}

.navbar.scrolled {
    background: rgba(26, 19, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 19, 15, 0.8), rgba(26, 19, 15, 0.6));
    z-index: 2;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-down {
    animation: slideDown 0.4s ease-out;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 19, 15, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 146, 58, 0.3);
}

.project-card img {
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(233, 225, 214, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 146, 58, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(233, 225, 214, 0.08);
    border-color: rgba(197, 146, 58, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(197, 146, 58, 0.2);
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(197, 146, 58, 0.1);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--gold-accent);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 19, 15, 0.95);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-accent);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 19, 15, 0.8);
    color: var(--text-primary);
    border: 2px solid var(--gold-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.modal-nav:hover {
    background: var(--gold-accent);
    color: var(--bg-primary);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -70px;
}

.modal-next {
    right: -70px;
}

.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 1rem;
    background: rgba(26, 19, 15, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold-accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 146, 58, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
}

.btn-outline:hover {
    background: var(--gold-accent);
    color: var(--bg-primary);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--gold-accent), #E9E1D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(233, 225, 214, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 146, 58, 0.2);
}

/* Card Elevation */
.card-elevated {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.card-elevated:hover {
    box-shadow: 0 20px 50px rgba(197, 146, 58, 0.2);
}

/* Form Inputs */
input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(233, 225, 214, 0.05);
    border: 1px solid rgba(197, 146, 58, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: rgba(233, 225, 214, 0.08);
    box-shadow: 0 0 0 3px rgba(197, 146, 58, 0.2);
}

input::placeholder, textarea::placeholder {
    color: rgba(233, 225, 214, 0.5);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 19, 15, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    z-index: 999;
    border-top: 1px solid rgba(197, 146, 58, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    display: block;
    max-height: 400px;
    padding: 2rem;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(197, 146, 58, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}

.mobile-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu .nav-link:hover::before,
.mobile-menu .nav-link:active::before {
    transform: scaleY(1);
}

.mobile-menu .nav-link:hover {
    background: rgba(197, 146, 58, 0.1);
    color: var(--gold-accent);
    padding-left: 2rem;
}

/* Modern Mobile Menu Toggle Button */
#mobile-menu-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 146, 58, 0.1);
    border: 2px solid rgba(197, 146, 58, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

#mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 146, 58, 0.2), transparent);
    transition: left 0.5s ease;
}

#mobile-menu-btn:hover::before {
    left: 100%;
}

#mobile-menu-btn:hover {
    background: rgba(197, 146, 58, 0.2);
    border-color: var(--gold-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 146, 58, 0.3);
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

#mobile-menu-btn.active {
    background: rgba(197, 146, 58, 0.25);
    border-color: var(--gold-accent);
}

#mobile-menu-btn svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Animated Hamburger to X */
#mobile-menu-btn .hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    transform-origin: center;
}

#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .hero-slider {
        height: 70vh;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    /* Mobile Navbar Improvements */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar .md\:hidden {
        gap: 0;
        width: 100%;
        position: relative;
    }
    
    .navbar .md\:hidden a[href*="index.html"],
    .navbar .md\:hidden a[href*="../index.html"] {
        margin: 0 auto;
    }
    
    #mobile-menu-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

/* Page Header Styles */
.page-header h1 {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3.5rem;
    }
}

/* Project Card Title Sizes */
.project-card-content h3 {
    font-size: 1.5rem;
}

.project-card-content p {
    font-size: 0.95rem;
}

/* Loading Animation */
.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-gold {
    color: var(--gold-accent);
}

.bg-gold {
    background-color: var(--gold-accent);
}

.border-gold {
    border-color: var(--gold-accent);
}

