/*
Theme Name: Al-Islam Construction
Theme URI: http://example.com/al-islam-construction
Author: mesh Eslam
Author URI: http://example.com
Description: قالب ووردبريس مخصص لشركة الإسلام للمقاولات العامة.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: construction, business, rtl, custom-background
*/

:root {
    --primary-gold: #e0a856;
    --bg-dark: #1b1d21;
    --bg-card: #23262d;
    --text-light: #f5f5f5;
    --text-grey: #a0a0a0;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    text-align: right;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { width: 100%; display: block; object-fit: cover; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-gold);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: 0.3s;
}

.btn:hover { background-color: #c59045; }
.btn i { margin-right: 10px; transform: scaleX(-1); }

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.read-more-link {
    font-size: 12px;
    text-decoration: underline;
    color: #fff;
    margin-top: 15px;
    display: inline-block;
    font-weight: 700;
}
.read-more-link:hover { color: var(--primary-gold); }


/* --- Header --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 60px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    white-space: nowrap;
}

.logo i { color: var(--primary-gold); margin-left: 10px; }

/* Custom Logo Fix */
.logo .custom-logo-link img {
    width: auto;
    max-height: 60px; 
    margin: 0;
}

/* Desktop Nav */
.nav-links {
    flex-grow: 1;
}

.main-menu-ul { 
    display: flex; 
    gap: 30px; 
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu-ul li a { 
    font-size: 14px; 
    font-weight: 700; 
    color: #fff; 
    padding: 10px 0;
    display: block;
}

.main-menu-ul li a:hover,
.main-menu-ul li.current-menu-item > a { 
    color: var(--primary-gold); 
}

/* Dropdown (Desktop) */
.main-menu-ul li { position: relative; }

.main-menu-ul .menu-item-has-children > a::after {
    content: '\f107'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 11px;
    transition: 0.3s;
    display: inline-block;
}

.main-menu-ul .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.main-menu-ul .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #23262d;
    min-width: 220px;
    padding: 10px 0;
    border-top: 3px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 999;
    border-radius: 0 0 4px 4px;
}

.main-menu-ul li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu-ul .sub-menu li { display: block; margin: 0; }
.main-menu-ul .sub-menu li a {
    padding: 10px 20px;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-menu-ul .sub-menu li:last-child a { border-bottom: none; }
.main-menu-ul .sub-menu li a:hover {
    background-color: rgba(224, 168, 86, 0.1);
    color: var(--primary-gold);
    padding-right: 25px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    color: #fff;
}

/* Mobile Nav Sidebar */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 998;
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #111;
    z-index: 999;
    padding: 80px 30px 30px;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mobile-nav.active { right: 0; }

/* Mobile Menu List */
.mobile-menu-ul { display: flex; flex-direction: column; gap: 15px; }
.mobile-menu-ul li a {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-ul li a:hover, .mobile-menu-ul li.active > a { color: var(--primary-gold); }

.mobile-menu-ul .menu-item-has-children > a::after {
    content: '\f107'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    transition: 0.3s;
}
.mobile-menu-ul li.active > a::after { transform: rotate(180deg); }

.mobile-menu-ul .sub-menu {
    display: none;
    background-color: rgba(255,255,255,0.05);
    margin-top: 5px;
    padding-right: 15px;
    border-right: 2px solid var(--primary-gold);
}
.mobile-menu-ul .sub-menu li a { font-size: 14px; padding: 10px 0; border-bottom: none; }
.mobile-menu-ul .sub-menu.open { display: block; animation: fadeIn 0.3s ease; }

.close-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}


/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 65px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 35px;
    color: #ddd;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Strip --- */
.about-strip { padding: 100px 0; background-color: var(--bg-dark); }
.about-flex { display: flex; align-items: center; gap: 60px; }
.exp-box { border: 1px solid #444; padding: 30px 40px; text-align: center; min-width: 220px; }
.exp-box span { display: block; font-size: 56px; color: var(--primary-gold); font-weight: 700; line-height: 1; margin-bottom: 5px; }
.exp-box p { font-size: 14px; color: var(--text-grey); font-weight: 500; }

/* --- Collections --- */
.collections { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.collection-item { position: relative; height: 550px; overflow: hidden; }
.collection-item img { height: 100%; transition: transform 0.6s ease; }
.collection-item:hover img { transform: scale(1.08); }
.col-overlay { position: absolute; bottom: 0; right: 0; width: 100%; padding: 40px 30px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); z-index: 2; text-align: right; }
.col-overlay h3 { margin-bottom: 15px; font-weight: 700; font-size: 24px; color: #fff; }
.col-overlay p { font-size: 14px; color: #ccc; margin-bottom: 20px; line-height: 1.6; }
.col-link { font-size: 12px; border-bottom: 1px solid var(--primary-gold); padding-bottom: 5px; color: var(--primary-gold); font-weight: 700; }

/* --- Features --- */
.features { padding: 120px 0; text-align: center; background-color: var(--bg-dark); position: relative; }
.features::before { content: ''; position: absolute; inset: 0; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.05; pointer-events: none; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 70px; }
.feature-box { padding: 30px 20px; transition: 0.3s; }
.feature-box:hover { transform: translateY(-5px); }
.feature-box i { font-size: 36px; color: #777; border: 1px solid #444; border-radius: 50%; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; transition: 0.3s; }
.feature-box:hover i { color: var(--primary-gold); border-color: var(--primary-gold); }
.feature-box h4 { font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.feature-box p { font-size: 14px; color: var(--text-grey); line-height: 1.8; }

/* --- Promo --- */
.promo { display: flex; height: 550px; }
.promo-text { width: 45%; background: var(--bg-card); padding: 0 80px; display: flex; flex-direction: column; justify-content: center; }
.promo-video { width: 55%; background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover; position: relative; display: flex; align-items: center; justify-content: center; }
.promo-video::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.play-btn { width: 80px; height: 80px; background: transparent; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; position: relative; z-index: 2; transition: 0.3s; }
.play-btn:hover { background: var(--primary-gold); border-color: var(--primary-gold); transform: scale(1.1); }
.play-btn i { margin-right: 0; transform: none; padding-left: 5px; } 

/* --- Projects --- */
.projects { padding: 120px 0; text-align: center; background: var(--bg-dark); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.project-card { background-color: var(--bg-card); border: 1px solid var(--border-color); text-align: right; transition: 0.3s; }
.project-card:hover { border-color: var(--primary-gold); }
.project-card img { height: 250px; width: 100%; object-fit: cover; }
.project-details { padding: 25px; }
.project-details h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.project-details p { font-size: 14px; color: var(--text-grey); margin-bottom: 20px; }

/* Category Grid & Card Fixes */
.cat-posts-section { padding: 80px 0 120px; background-color: var(--bg-dark); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: all 0.4s ease; }
.cat-card:hover { transform: translateY(-5px); border-color: var(--primary-gold); }
.cat-card-img { height: 240px; overflow: hidden; }
.cat-card-img img { height: 100%; width: 100%; object-fit: cover; }
.cat-card-body { padding: 25px; text-align: right; }
.cat-meta { font-size: 12px; color: var(--text-grey); margin-bottom: 10px; }
.cat-card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.cat-read-more { font-size: 12px; color: var(--primary-gold); font-weight: 700; }

/* --- Process --- */
.process { display: flex; height: 550px; }
.process-img { width: 50%; background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat; }
.process-text { width: 50%; background: var(--bg-card); padding: 0 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.process-number { border: 2px solid var(--primary-gold); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-weight: 700; font-size: 20px; color: var(--primary-gold); }

/* --- Testimonials --- */
.testimonials { padding: 120px 0; background: var(--bg-dark); text-align: center; }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 60px; }
.testi-card { background: #222; padding: 40px; text-align: right; border-right: 4px solid var(--primary-gold); border-left: none; position: relative; }
.testi-icon { color: var(--primary-gold); font-size: 30px; margin-bottom: 20px; display: block; }
.testi-card p { font-size: 15px; color: #ccc; line-height: 1.8; font-style: italic; margin-bottom: 30px; }
.testi-user { display: flex; align-items: center; gap: 20px; }
.testi-user img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.testi-user h5 { margin-bottom: 5px; font-size: 16px; font-weight: 700; color: #fff; }
.testi-user span { font-size: 12px; color: var(--primary-gold); font-weight: 700; }

/* --- Method & Stats --- */
.method { background: var(--bg-dark); padding: 120px 0; } 
.method-flex { display: flex; gap: 60px; align-items: center; }
.method-img-boxbox { flex: 1; }
.method-img-box img { border-radius: 4px; }
.stats-bar { display: flex; justify-content: space-around; padding: 70px 0; background: var(--bg-dark); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat-item h2 { font-size: 42px; color: var(--primary-gold); font-weight: 700; margin-bottom: 10px; }
.stat-item p { font-size: 14px; color: var(--text-grey); font-weight: 700; }

/* --- Blog --- */
.blog { background: #16181b; } 
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.blog-card { background: transparent; text-align: right; }
.blog-card img { height: 240px; width: 100%; object-fit: cover; margin-bottom: 20px; transition: 0.3s; }
.blog-card:hover img { transform: scale(1.02); }
.blog-meta { font-size: 12px; color: var(--primary-gold); margin-bottom: 10px; font-weight: 700; }
.blog-meta i { margin-left: 5px; }
.blog-card h4 { font-size: 20px; margin-bottom: 15px; line-height: 1.4; color: #fff; font-weight: 700; }
.blog-card p { font-size: 14px; color: var(--text-grey); margin-bottom: 20px; }

/* --- Bottom CTA --- */
.bottom-cta { padding: 140px 0; text-align: center; background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed; position: relative; }
.bottom-cta::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.bottom-cta .container { position: relative; z-index: 1; }
.bottom-cta h2 { font-size: 48px; font-weight: 800; }

/* --- Footer --- */
footer { background: #111; padding: 100px 0 30px; font-size: 14px; color: var(--text-grey); text-align: right; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 80px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a:hover { color: var(--primary-gold); padding-right: 5px; }
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 15px; background: #222; border: 1px solid #333; color: #fff; font-family: inherit; outline: none; text-align: right; }
.newsletter-form input:focus { border-color: var(--primary-gold); }
.newsletter-form button { border-radius: 0; padding: 0 20px;}
.newsletter-form button i { margin: 0; transform: scaleX(-1); }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 30px; font-size: 13px; }

/* =========================================
   PAGES STYLES (Single & Category & 404)
   ========================================= */

/* 1. Scroll Progress Bar */
.scroll-progress-container { width: 100%; height: 4px; background: transparent; position: fixed; top: 0; left: 0; z-index: 9999; }
.scroll-progress-bar { height: 4px; background: var(--primary-gold); width: 0%; box-shadow: 0 0 10px var(--primary-gold); transition: width 0.1s ease; }

/* 2. Single Hero Section */
.single-hero { height: 85vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; margin-bottom: 60px; }
.single-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; animation: slowZoom 20s infinite alternate; z-index: 1; }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark), rgba(27, 29, 33, 0.6)); z-index: 2; }
.single-hero-content { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; margin-top: 60px; }
.single-cat-badge { display: inline-block; background-color: var(--primary-gold); color: #000; padding: 8px 20px; font-weight: 800; font-size: 14px; text-transform: uppercase; margin-bottom: 25px; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); transition: 0.3s; }
.single-cat-badge:hover { transform: scale(1.1); background-color: #fff; }
.single-title { font-size: 60px; color: #fff; font-weight: 800; line-height: 1.2; margin-bottom: 30px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.single-meta { display: inline-flex; justify-content: center; gap: 30px; color: #ddd; font-size: 16px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
.single-meta span i { color: var(--primary-gold); margin-left: 8px; }
.scroll-down-btn { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; }
.mouse { width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px; display: block; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--primary-gold); border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); animation: scrollWheel 1.5s infinite; }
@keyframes scrollWheel { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }

/* 3. Single Layout */
.single-content-wrapper { padding-bottom: 100px; background: var(--bg-dark); }
.single-layout { display: block; max-width: 900px; margin: 0 auto; }
.entry-content { font-size: 18px; color: #ccc; line-height: 2; }
.entry-content h2, .entry-content h3 { color: #fff; margin: 40px 0 20px; font-weight: 700; position: relative; padding-right: 20px; }
.entry-content h2::before { content: ''; position: absolute; right: 0; top: 5px; height: 30px; width: 4px; background-color: var(--primary-gold); }
.entry-content p { margin-bottom: 25px; }
.entry-content blockquote { background: #23262d; padding: 30px; border-right: 5px solid var(--primary-gold); font-style: italic; font-size: 20px; color: #fff; margin: 40px 0; position: relative; }
.entry-content img { border-radius: 8px; margin: 30px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: 0.3s; max-width: 100%; height: auto; }
.single-tags { margin-top: 50px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.single-tags a { display: inline-block; background: #222; padding: 5px 15px; border-radius: 4px; color: #aaa; font-size: 13px; margin-left: 10px; margin-bottom: 10px; transition: 0.3s; }
.single-tags a:hover { background: var(--primary-gold); color: #000; }
.share-box { margin-top: 40px; background: #23262d; padding: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-color); }
.share-links { display: flex; gap: 10px; }
.share-btn { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #333; font-size: 18px; transition: 0.3s; }
.share-btn:hover { transform: translateY(-5px); }
.share-btn.fb:hover { background: #3b5998; }
.share-btn.tw:hover { background: #1da1f2; }
.share-btn.wa:hover { background: #25d366; }
.share-btn.in:hover { background: #0077b5; }

/* 4. Post Navigation */
.post-navigation-container { background: #15171a; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; }
.nav-item { position: relative; height: 150px; overflow: hidden; }
.nav-item a { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 40px; position: relative; z-index: 2; transition: 0.3s; }
.nav-item.next-item { text-align: left; border-right: 1px solid #333; }
.nav-item.prev-item { text-align: right; }
.nav-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: 0.5s ease; z-index: 1; filter: grayscale(100%); }
.nav-item:hover .nav-bg { opacity: 0.2; transform: scale(1.1); }
.nav-subtitle { font-size: 12px; text-transform: uppercase; color: var(--primary-gold); margin-bottom: 5px; font-weight: 700; }
.nav-item h4 { color: #fff; font-size: 20px; font-weight: 800; }

/* 5. Related Projects */
.related-projects { padding: 100px 0; background: var(--bg-dark); }

/* --- Category Page Header --- */
.cat-header { height: 60vh; min-height: 400px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.cat-header::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.cat-header-content { position: relative; z-index: 1; color: #fff; padding: 0 15px; }
.cat-header h1 { font-size: 48px; font-weight: 800; margin-bottom: 15px; }

/* --- 404 Page Styles --- */
.error-404 {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(27, 29, 33, 0.9), rgba(27, 29, 33, 0.9)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}
.error-content .huge-text { font-size: 150px; font-weight: 900; color: var(--primary-gold); line-height: 1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.error-content h2 { font-size: 36px; color: #fff; margin-bottom: 20px; font-weight: 700; }
.error-content p { color: var(--text-grey); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.error-icon-box { font-size: 50px; color: #fff; margin-bottom: 20px; display: inline-block; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-20px);} 60% {transform: translateY(-10px);} }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.fade-in-up-scroll { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   RESPONSIVE MEDIA QUERIES (CRITICAL FIXES)
   ========================================= */

@media screen and (max-width: 992px) {
    .nav-links, .header-icons { display: none; }
    .hamburger { display: block; margin-right: auto; }
    header .container { 
        justify-content: space-between; 
        gap: 0; 
    }
    
    .hero-content h1 { font-size: 42px; }
    .section-title { font-size: 30px; }
    .bottom-cta h2 { font-size: 36px; }
    .single-hero h1 { font-size: 42px; }
    .cat-header h1 { font-size: 36px; }

    .about-flex, 
    .promo, 
    .process, 
    .method-flex { flex-direction: column; }

    .promo-text, .promo-video, 
    .process-text, .process-img,
    .method-img-box { width: 100%; }

    .process-img, .promo-video { height: 350px; }
    .promo-text, .process-text { padding: 50px 30px; }

    .collections { grid-template-columns: repeat(2, 1fr); padding: 0 10px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-grid { grid-template-columns: 1fr; }
    .nav-item { border: none; border-bottom: 1px solid #333; }
    .nav-item.next-item { text-align: right; border-right: none; }
    .single-hero { height: 70vh; }
}

@media screen and (max-width: 768px) {
    .hero-content h1 { font-size: 36px; }
    .hero { padding: 0 10px; }
    .single-title { font-size: 32px; }
    .cat-header h1 { font-size: 28px; }
    
    .collections { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    
    .stats-bar { flex-direction: column; gap: 40px; text-align: center; }
    .exp-box { width: 100%; margin-bottom: 20px; }
    .about-flex { gap: 30px; }
    
    .single-meta { flex-direction: column; gap: 10px; }
    .share-box { flex-direction: column; gap: 20px; text-align: center; }
    .single-hero { height: 60vh; }
    .single-layout { padding: 0 15px; }
    
    .error-content .huge-text { font-size: 100px; }
    .error-content h2 { font-size: 28px; }
}

.hero-content .btn:hover,
.promo-text .btn:hover,
.method-flex .btn:hover {
    background-color: var(--primary-gold) !important;
    color: #fff !important;
}
.floating-contacts {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    position: relative;
    text-decoration: none;
}

.phone-float {
    background-color: var(--primary-gold);
    animation: pulse-gold 2s infinite;
}

.whatsapp-float {
    background-color: #25d366;
    animation: pulse-green 2s infinite;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.float-btn i {
    margin: 0;
    transform: none; 
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 168, 86, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(224, 168, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 168, 86, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media screen and (max-width: 768px) {
    .floating-contacts {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}