/* 
   Nouschin Dorn Interior Design
   Main Stylesheet
*/

/* Base Styles and Reset */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #e6e2df;
    --accent-color: #c7b299;
    --text-color: #333;
    --light-text: #f5f5f5;
    --background-color: #ffffff;
    --section-padding: 5rem 0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.language-selector button {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    margin: 0 0.2rem;
    transition: var(--transition);
    border-radius: 3px;
}

.header.scrolled .language-selector button {
    color: var(--primary-color);
}

.language-selector button.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.header.scrolled .language-selector button.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* RTL Support */
html[dir="rtl"] .header .logo {
    font-family: 'Aref Ruqaa', serif;
}

html[dir="rtl"] .hero h1 {
    font-family: 'Aref Ruqaa', serif;
}

html[dir="rtl"] .about-text h3::after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .service-approach {
    border-right: 5px solid var(--accent-color);
    border-left: none;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    overflow: hidden;
}

.about-image img {
    transition: var(--transition);
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: #f9f7f5;
}

.section-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.service-item {
    padding: 2.5rem;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

.service-approach {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
}

.service-approach h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-approach p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-approach .btn {
    margin-top: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: var(--background-color);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.portfolio-item.featured {
    grid-column: span 2;
}

.portfolio-item.featured .portfolio-img {
    height: 350px;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-image {
    flex: 1;
}

.contact-image img {
    height: 100%;
    object-fit: cover;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-block p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-block a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-block a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Captcha container styling */
.captcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

html[dir="rtl"] .captcha-container {
    direction: ltr; /* Force LTR for captcha */
}

/* Form status messages */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #e6f4ea;
    color: #0d652d;
    border: 1px solid #ccead6;
}

.form-message.error {
    background-color: #fce8e8;
    color: #d93025;
    border: 1px solid #f7cfcf;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Container */
.gallery-container {
    display: none;
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
}

.lb-closeContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999; /* Ensure it's above all other elements */
}

.lb-close {
    width: 40px !important;
    height: 40px !important;
    padding: 5px;
    background-size: 30px 30px !important;
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
    .lb-prev, .lb-next {
        opacity: 0.7 !important;
        min-width: 40px;
        min-height: 80px;
        background-size: contain !important;
    }
}

/* Regular desktop navigation */
.lb-prev, .lb-next {
    opacity: 0.5 !important;
}

html[dir="rtl"] .lb-prev {
    right: 10px !important;
    left: auto !important;
}

html[dir="rtl"] .lb-next {
    left: 10px !important;
    right: auto !important;
}

/* Cursor for portfolio items */
.portfolio-item {
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media Queries */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .portfolio-item.featured {
        grid-column: auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-approach {
        padding: 2rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--primary-color);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}