:root {
    --wood-color: #C29728; 
    --wood-dark: #8B5E3C;  
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --dark-overlay: #0c0c0cf1;
    --white: #ffffff;
    --black: #000000;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    color: #2d3436;
    line-height: 1.6;
}
/* /////////////////////////////////// */
.custom-navbar {
    transition: all 0.4s ease;
    background-color: transparent; /* بيبدأ شفاف */
}

.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--wood-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.text-wood { color: var(--wood-dark); }

.nav-link {
    color: #fff !important;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--wood-dark) !important;
}

.btn-wood {
    background-color: var(--wood-dark);
    color: white;
    border: 1px solid var(--wood-dark);
    transition: 0.3s;
}

.btn-wood:hover {
    background-color: transparent;
    color: var(--wood-dark);
}

.navbar-toggler:focus { box-shadow: none; }
/* First Section Start/////////////////////////////////////////////////////*/

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./Photos/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;     
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    line-height: 1.2;
    letter-spacing: -1px;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* First Section End/////////////////////////////////////////////////////*/
/* Second Section Start/////////////////////////////////////////////////////*/

.services-section {
    background-color:#000000; 

}

.custom-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
    height: 100%;
    width: 100%;
}

.custom-card:hover {
    transform: translateY(-12px);
    
}

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

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-body-custom {
    padding: 25px;
    text-align: center; 
}

.card-body-custom h3 {
    color:black;
    margin-bottom: 15px;
}

.card-body-custom p {
    color: #555;
    line-height: 1.6;
}
/* Second Section End/////////////////////////////////////////////////////*/

/* Three Section Start/////////////////////////////////////////////////////*/

.text-wood { color: var(--wood-color) !important; }
.bg-wood-dark { background-color: var(--wood-dark) !important; }

.btn-wood-dark {
    background-color: var(--wood-dark);
    border: none;
    transition: 0.3s;
}

.btn-wood-dark:hover {
    background-color: #6d4a30;
    transform: translateY(-3px);
}

.counter-box {
    border-right: 3px solid var(--wood-color);
    padding-right: 15px;
}
/* Three Section End /////////////////////////////////////////////////////*/
/* Four Section End//////////////////////////////////////////////////*/


.portfolio-section { 
    background-color: var(--black); 
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--wood-dark);
    margin-top: 10px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(139, 94, 60, 0.2);
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.brush-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--wood-dark);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .brush-icon {
    transform: scale(1);
}

.brush-icon i {
    color: var(--wood-dark);
    font-size: 24px;
}

.btn-outline-custom {
    border: 1px solid var(--wood-dark);
    color: var(--wood-dark);
    padding: 8px 25px;
}

.btn-outline-custom:hover, .btn-outline-custom.active {
    background-color: var(--wood-dark);
    color: white;
}
/* Four Section End////////////////////////////////////////////////// */

/* Five Section Start//////////////////////////////////////////////////// */


.video-container {
    border: 3px solid var(--wood-dark);
    border-radius: 20px;
    padding: 10px; /* بيعمل برواز خشب شيك حول الفيديو */
    background: rgba(139, 94, 60, 0.1);
    transition: transform 0.4s ease;
}

.video-container:hover {
    transform: scale(1.02); 
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--wood-dark);
}

@media (max-width: 768px) {
    .video-container {
        padding: 5px;
        border-width: 2px;
    }
}
/* Five Section END//////////////////////////////////////////////////// */


.underline {
    width: 80px;
    height: 4px;
    background-color: var(--wood-dark);
}

.btn-outline-custom {
    border: 2px solid var(--wood-dark);
    color: var(--wood-dark);
    transition: 0.3s;
}

.btn-outline-custom:hover {
    background-color: var(--wood-dark);
    color: #fff;
}

.paint-animation i {
    animation: coloring 2s infinite;
}

@keyframes coloring {
    0% { color: #fff; transform: rotate(0deg); }
    50% { color: var(--wood-dark); transform: rotate(20deg); }
    100% { color: #fff; transform: rotate(0deg); }
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    transition: 0.5s;
    height: 400px;
    object-fit: cover;
}

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

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

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

.brush-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wood-dark);
    font-size: 1.5rem;
}
/* Footer Start ///////////////////////////////////////////////////// */

.footer-section {
    border-top: 2px solid var(--wood-dark);
}

.quick-links a:hover {
    color: var(--wood-dark) !important;
    padding-right: 10px;
    transition: 0.3s;
}

.contact-link {
    color: var(--white);
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-link i {
    color: var(--wood-dark);
    font-size: 1.5rem;
}

.contact-link:hover {
    color: var(--wood-dark);
}

.developer-credit a {
    color: var(--wood-dark);
    text-decoration: none;
    font-weight: bold;
}

.developer-credit a:hover {
    text-decoration: underline;
    color: #fff;
}

[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }
/* Footer End /////////////////////////////////////////////////////  */


/* --- Responsive Media Queries --- */

@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        
    }
    .card-img-wrapper {
        height: 200px;
    }
}@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }

    .display-2 {
        font-size: 2.2rem !important;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    /* Fixing potential row overflow */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .custom-card:hover {
        transform: translateY(-5px);
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    .glass-badge {
        font-size: 0.75rem;
        padding: 5px 15px;
    }

    .card-body-custom {
        padding: 15px;
    }
}
@media (max-width: 991px) {
    .order-2 { order: 2 !important; }
    .order-1 { order: 1 !important; }
}
@media (max-width: 768px) {
    .card-img-wrapper {
        height: 200px;
    }
    .services-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}
/* First Part Of Project /////////////////////////////////////////////////// */

