/* Modern & Corporate Stylesheet for KSU Tarim */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #165b3c;
    /* Logo Green */
    --primary-light: #1f7a52;
    --accent-color: #0f1c16;
    /* Logo Dark/Black */
    --accent-hover: #1b2e25;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-body: #F9FAFB;
    --bg-surface: #FFFFFF;
    --border-light: #E5E7EB;

    --radius-sm: 8px;
    /* Softer edges for Poppins */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

input,
button,
select,
textarea {
    font-family: inherit;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-color);
    line-height: 1.2;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Header */
.header {
    background: var(--bg-surface);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Transparent Header overlapping slider */
.header-transparent {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    /* Minimal opacity white */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-transparent .top-bar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-transparent .nav-links a {
    color: white;
}

.header-transparent .search-btn {
    color: white;
}

.header-transparent .btn-quote {
    background: transparent;
    border-color: white;
    color: white !important;
}

.header-transparent .dropdown-content a {
    color: var(--text-main);
}

/* Keep dropdown links dark */

/* Scrolled state for transparent header */
.header.scrolled {
    background: var(--bg-surface);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header.scrolled .top-bar {
    background: var(--accent-color);
    border-bottom: none;
}

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

.header.scrolled .search-btn {
    color: var(--text-main);
}

.header.scrolled .btn-quote {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.top-bar {
    background: var(--accent-color);
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info i {
    color: var(--primary-light);
    margin-right: 5px;
}

.lang-switch button {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition);
}

.lang-switch button.active,
.lang-switch button:hover {
    color: white;
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 24px;
}

.logo {
    display: flex;
    align-items: center;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-self: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

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

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

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-surface);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    z-index: 100;
    padding: 10px 0;
    margin-top: 15px;
    border: 1px solid var(--border-light);
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-body);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Modern Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 15px;
    width: 220px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    padding: 6px 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding-left: 8px;
    transition: var(--transition);
}

.search-box .search-btn:hover {
    color: var(--gold, #f59e0b);
    transform: scale(1.1);
}

/* Scrolled state for search box */
.header.scrolled .search-box,
.header:not(.header-transparent) .search-box {
    background: var(--bg-body);
    border-color: var(--border-light);
}

.header.scrolled .search-input,
.header:not(.header-transparent) .search-input {
    color: var(--text-main);
}

.header.scrolled .search-input::placeholder,
.header:not(.header-transparent) .search-input::placeholder {
    color: var(--text-muted);
}

.header.scrolled .search-box .search-btn,
.header:not(.header-transparent) .search-box .search-btn {
    color: var(--text-muted);
}

.header.scrolled .search-box:focus-within,
.header:not(.header-transparent) .search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(31, 122, 82, 0.1);
}

/* Buttons */
.btn-primary,
.btn-quote {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover,
.btn-quote:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

.btn-outline {
    background: transparent;
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color) !important;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Corporate Slider (Old non-fullscreen style) */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--accent-color);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 22, 0.65);
    z-index: 1;
}

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

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease 0.5s;
    border-left: 4px solid var(--primary-light);
    padding-left: 30px;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.85;
    font-weight: 400;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-nav button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.slider-nav button:hover {
    background: white;
    color: var(--accent-color);
}

/* Layout Sections */
.section {
    padding: 90px 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
}

/* About Layout (Biz Kimiz) */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Production Preview */
.production-preview {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

@media (max-width: 900px) {
    .production-preview {
        grid-template-columns: 1fr;
    }
}

.prod-preview-text {
    padding: 60px;
}

.prod-preview-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.prod-preview-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

/* Generic Card */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Product Cards */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-img-wrap {
    height: 260px;
    background: #f8fafc;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

/* Blog Cards */
.blog-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.blog-img {
    height: 220px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 25px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

/* References */
.ref-slider-container {
    background: var(--bg-surface);
    padding: 30px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
}

.slide-track {
    display: flex;
    width: calc(200px * 10);
    animation: scroll 20s linear infinite;
}

.reference-item {
    width: 200px;
    padding: 0 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #9ca3af;
    filter: grayscale(100%);
    transition: var(--transition);
}

.reference-item:hover {
    filter: grayscale(0%);
    color: var(--accent-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 5));
    }
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: #9ca3af;
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary-color);
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: var(--radius-sm);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
}

.contact-list i {
    color: white;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.fab-whatsapp {
    background: #25D366;
}

.fab-phone {
    background: var(--primary-color);
}

.fab-map {
    background: #003502;
}

.fab-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white !important;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cookie-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 20px;
}

/* --- Products Page (E-commerce Style) --- */
.page-header {
    background: var(--accent-color);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static !important;
        margin-bottom: 30px;
    }
}

/* Sidebar */
.shop-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 25px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.cat-list {
    list-style: none;
}

.cat-list li {
    margin-bottom: 12px;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cat-list a:hover,
.cat-list a.active {
    color: var(--primary-color);
    padding-left: 5px;
}

.cat-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* Main Area */
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.shop-top-bar select {
    padding: 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* E-com Product Card */
.ecom-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ecom-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.ecom-img {
    height: 240px;
    padding: 30px;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecom-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.ecom-card:hover .ecom-img img {
    transform: scale(1.08);
}

.ecom-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold, #f59e0b);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    z-index: 10;
}

.ecom-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ecom-cat {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecom-title {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.ecom-btn {
    margin-top: auto;
    width: 100%;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ecom-card:hover .ecom-btn {
    background: var(--primary-color);
    color: white;
}



/* --- Dynamism & Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.30s;
}

.delay-3 {
    transition-delay: 0.45s;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.float-anim {
    animation: floatY 6s ease-in-out infinite;
}

.bg-pattern {
    background-image: radial-gradient(var(--border-light) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
}

.icon-wrap {
    transition: all 0.4s ease;
}

.icon-wrap:hover {
    transform: scale(1.15) rotate(8deg);
    background: var(--primary-light) !important;
    color: white !important;
}

.icon-wrap:hover i {
    color: white !important;
}


/* --- Floating Background Decor --- */
.floating-shape {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    top: -5%;
    left: -5%;
    font-size: 25rem;
    animation: driftAnim 30s linear infinite;
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    font-size: 35rem;
    animation: driftReverseAnim 40s linear infinite;
}

.shape-3 {
    font-size: 20rem;
    animation: driftAnim 25s ease-in-out infinite alternate;
}

@keyframes driftAnim {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(40px, 30px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 50px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes driftReverseAnim {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-50px, -40px) rotate(-10deg);
    }

    66% {
        transform: translate(30px, -60px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}


/* Sliding Quote Form */
.slide-quote-wrapper {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary-color);
}

.slide-quote-wrapper.show {
    right: 0;
}

.slide-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-lg) 0 0 0;
}

.slide-quote-header h4 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.slide-quote-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.slide-quote-close:hover {
    color: var(--primary-color);
}

.slide-quote-body {
    padding: 20px;
}

.slide-quote-body input,
.slide-quote-body textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.slide-quote-body input:focus,
.slide-quote-body textarea:focus {
    border-color: var(--primary-color);
}

.slide-quote-body button {
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.slide-quote-icon {
    position: fixed;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 20px 10px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    cursor: pointer;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Poppins', sans-serif;
}

.slide-quote-icon.show {
    right: 0;
}

.slide-quote-icon:hover {
    background: var(--primary-light);
    padding-right: 15px;
}


/* Promo Video & Catalog Banner */
.promo-video-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
    background: #000;
}

.promo-video-wrap iframe,
.promo-video-wrap video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.catalog-banner {
    position: relative;
    background-image: url('../assets/img/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.catalog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 28, 22, 0.85);
}

.catalog-banner .container {
    position: relative;
    z-index: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}


/* Cinematic Video Mode (Hide UI) */
body.hide-ui #main-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body.hide-ui .fab-container {
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

body.hide-ui #slideQuoteIcon,
body.hide-ui #slideQuoteForm {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.fab-container {
    transition: all 0.4s ease;
}


/* Header & FAB fade transition for JS Scroll */
#main-header,
.fab-container,
#cookieBanner {
    transition: opacity 0.4s ease, pointer-events 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

/* Mobile Menu Drawer Elements (Hidden on Desktop) */
.mobile-overlay,
.mobile-menu-header,
.mobile-search-box,
.mobile-menu-footer,
.mobile-quote-btn {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

/* --- Form Elements --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-surface);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 91, 60, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23165b3c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 18px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-quote {
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-quote:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Catalog Box & Cover Mockup */
.catalog-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 0 40px;
}

.catalog-img-wrap {
    position: relative;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.catalog-cover {
    position: absolute;
    top: -50px;
    right: 60px;
    width: 290px;
    height: 390px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-cover:hover {
    transform: rotate(0deg) scale(1.03);
}

.catalog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    border: none;
    background: transparent;
    padding: 5px;
}

.scrolled .mobile-menu-btn {
    color: var(--text-color);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-img {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-box {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .catalog-text-wrap {
        padding: 45px 24px 25px !important;
        text-align: center;
    }

    .catalog-text-wrap h2 {
        font-size: 1.8rem !important;
    }

    .catalog-img-wrap {
        min-height: 420px;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .catalog-cover {
        position: relative;
        top: 0;
        right: auto;
        margin: 0 auto;
        transform: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

    .catalog-cover:hover {
        transform: scale(1.03);
    }

    .slide-quote-wrapper {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 12px;
    }

    .navbar {
        padding: 15px 24px;
        gap: 15px;
    }

    .search-box {
        width: 160px;
    }

    .btn-quote {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

    /* Form Grid 2 columns to 1 column on mobile */
    .form-grid-2 {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .card {
        padding: 24px !important;
    }

    /* Video Section Mobile Optimization */
    #tanitim-track {
        height: auto !important;
        position: relative !important;
        padding: 40px 0 !important;
        background: var(--bg-body) !important;
    }

    #tanitim-track>div {
        position: relative !important;
        top: 0 !important;
        height: 350px !important;
        width: 100% !important;
        padding: 0 16px !important;
    }

    #expand-video {
        width: 100% !important;
        height: 100% !important;
        clip-path: none !important;
        border-radius: var(--radius-md) !important;
    }

    .nav-links {
        gap: 0px;
    }

    .navbar {
        grid-template-columns: 1fr auto;
        padding: 15px;
        gap: 15px;
    }

    .top-email,
    .top-email-separator {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-grid .footer-col:first-child,
    .footer-grid .footer-col:last-child {
        grid-column: span 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 180px;
    }

    .hero-slider h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .floating-shape {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: white !important;
    }

    .header.scrolled .mobile-menu-btn,
    .header:not(.header-transparent) .mobile-menu-btn {
        color: var(--accent-color) !important;
    }

    /* Drawer Overlay */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 100000;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open header {
        z-index: 100001 !important;
        backdrop-filter: none;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.menu-open .mobile-overlay {
        opacity: 1;
        pointer-events: all;
    }

    /* Drawer Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        display: flex !important;
        align-items: stretch;
        transition: left 0.3s ease;
        z-index: 100002;
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.menu-open .nav-links {
        left: 0;
    }

    /* Drawer Internal Elements */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-header img {
        height: 35px;
        width: auto;
        object-fit: contain;
    }

    .mobile-menu-header i {
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-muted);
    }

    .mobile-search-box {
        display: flex;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-body);
    }

    .mobile-search-box input {
        flex-grow: 1;
        padding: 10px 15px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        outline: none;
        font-family: 'Poppins', sans-serif;
    }

    .mobile-search-box button {
        padding: 10px 15px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        cursor: pointer;
    }

    .mobile-quote-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 20px;
        width: calc(100% - 40px);
        background: #165b3c;
        color: white !important;
        padding: 12px;
        border-radius: var(--radius-sm);
        font-weight: 500;
        font-size: 1.05rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .nav-links>a:not(.mobile-quote-btn),
    .nav-links>.dropdown {
        margin: 0 20px;
        display: block;
        padding: 0;
    }

    .nav-links>a:not(.mobile-quote-btn),
    .nav-links>.dropdown>.dropbtn {
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 1rem;
        color: var(--text-main) !important;
    }

    .nav-links>a:not(.mobile-quote-btn)::after {
        display: none;
    }

    .nav-links .dropdown {
        width: auto;
        display: block;
    }

    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        display: none;
        background: #f9fafb;
        margin-top: 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block;
    }

    /* Disable sticky hover on mobile for all dropdowns to fix toggle close bug */
    .dropdown:hover:not(.active) .dropdown-content,
    .dropdown:focus-within:not(.active) .dropdown-content {
        display: none !important;
    }

    .nav-links .dropdown-content a {
        padding: 10px 0;
        margin: 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f3f4f6;
        font-weight: 500;
        color: var(--text-main) !important;
        display: block;
    }

    .mobile-menu-footer {
        display: block;
        margin-top: auto;
        padding: 25px 20px;
        background: var(--bg-body);
        border-top: 1px solid var(--border-light);
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.8;
    }

    .mobile-menu-footer i.fa-phone-alt,
    .mobile-menu-footer i.fa-envelope {
        width: 25px;
        text-align: center;
        color: var(--primary-color);
        margin-right: 5px;
    }

    .mobile-menu-footer .social-icons {
        margin-top: 15px;
        display: flex;
        gap: 15px;
    }

    .mobile-menu-footer .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: white;
        border: 1px solid var(--border-light);
        border-radius: 50%;
        color: var(--primary-color) !important;
        padding: 0;
    }

    .slider-nav {
        display: none;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}