/* MARMOTECH ITALIA SRL - Main Stylesheet */

:root {
    /* Marble Theme Colors - Matching Logo */
    --primary-brown: #5a4a3a;
    --secondary-brown: #8b7355;
    --light-beige: #f5f1e8;
    --cream: #e8dcc4;
    --dark-brown: #3d2f24;
    --gold-accent: #c9a961;
    --marble-white: #faf8f3;
    --text-dark: #2c2416;
    --text-muted: #7a6f5d;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(90, 74, 58, 0.1);
    --shadow-md: 0 4px 16px rgba(90, 74, 58, 0.15);
    --shadow-lg: 0 8px 32px rgba(90, 74, 58, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--marble-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: rgba(250, 248, 243, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--cream);
    color: var(--primary-brown) !important;
}

.nav-link.active {
    background-color: var(--primary-brown);
    color: white !important;
}

/* Language Switcher */
.language-switcher .dropdown-toggle {
    background-color: transparent;
    border: 1px solid var(--secondary-brown);
    color: var(--primary-brown);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
    background-color: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
}

.language-switcher .dropdown-menu {
    border: 1px solid var(--cream);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
}

.language-switcher .dropdown-item:hover {
    background-color: var(--cream);
    color: var(--primary-brown);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--cream) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(90, 74, 58, 0.03) 35px, rgba(90, 74, 58, 0.03) 70px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-brown) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease-out;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent) 0%, var(--secondary-brown) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--cream);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-accent);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Portfolio Card */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(61, 47, 36, 0.95) 0%, rgba(61, 47, 36, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--cream);
    margin: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold-accent);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cream);
}

.author-info h5 {
    margin: 0;
    color: var(--dark-brown);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating {
    color: var(--gold-accent);
    font-size: 1.1rem;
    margin-left: auto;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--light-beige) 0%, white 100%);
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-top: 0.25rem;
}

.form-control {
    border: 2px solid var(--cream);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 0.2rem rgba(90, 74, 58, 0.15);
}

/* Footer */
.footer {
    background-color: var(--dark-brown);
    color: var(--cream);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--cream);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--gold-accent);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold-accent);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid var(--primary-brown);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* ===================================
   Language Switcher - Rectangle Style
   =================================== */

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;  /* عرض أكبر من الطول */
    background: linear-gradient(135deg, #c9a961 0%, #d4b76a 100%);
    border: none;
    border-radius: 8px;
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 65px;  /* مستطيل أفقي */
    height: 32px;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* اللغة الافتراضية - بني */
.lang-btn.default-lang {
    background: linear-gradient(135deg, #5a4a3a 0%, #6b5a4a 100%);
    color: white;
}

/* اللغة النشطة (غير افتراضية) - ذهبي */
.lang-btn.active:not(.default-lang) {
    background: linear-gradient(135deg, #c9a961 0%, #d4b76a 100%);
    color: var(--primary-brown);
    box-shadow: 0 3px 10px rgba(201, 169, 97, 0.4);
}

/* اللغة النشطة الافتراضية - بني داكن */
.lang-btn.active.default-lang {
    background: linear-gradient(135deg, #5a4a3a 0%, #4a3a2a 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(90, 74, 58, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .lang-btn {
        padding: 8px 14px;
        font-size: 18px;
        min-width: 45px;
    }
}