/* ========================================
   Birinci İplik - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --secondary-color: #c5a065;
    --secondary-light: #d4b075;
    --text-dark: #1a202c;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Arabic Font - Quest Bold */
@font-face {
    font-family: 'Quest Bold';
    src: url('../fonts/Questv1-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Chillax', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chillax', 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: 'Chillax', sans-serif !important;
    color: var(--primary-color);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Chillax', sans-serif !important;
}

.logo-text strong {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

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

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%), url('../images/home-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    opacity: 0.8;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--bg-white);
    border-bottom: 2px solid var(--bg-white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    margin-bottom: 20px;
}

.feature-icon img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
}

.feature-card p {
    color: var(--text-light);
    text-align: center;
    width: 100%;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   About Preview Section
   ======================================== */
.about-preview {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    padding: 60px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bg-white);
}

.image-placeholder span {
    font-size: 5rem;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-list {
    margin: 25px 0;
}

.about-list li {
    padding: 8px 0;
    color: var(--text-dark);
    font-weight: 500;
}

/* ========================================
   Products Preview Section
   ======================================== */
.products-preview {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-image {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    padding: 50px;
    text-align: center;
}

.product-icon {
    font-size: 4rem;
}

.product-card h3 {
    padding: 25px 25px 15px;
    font-size: 1.4rem;
}

.product-card p {
    padding: 0 25px 20px;
    color: var(--text-light);
}

.product-link {
    display: inline-block;
    padding: 0 25px 25px;
    color: var(--secondary-color);
    font-weight: 500;
}

.product-link:hover {
    color: var(--primary-color);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--bg-white);
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   Contact CTA Section
   ======================================== */
.contact-cta {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.footer p {
    opacity: 0.8;
    line-height: 1.8;
}

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

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

.footer ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Social Icons SVG Styling */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor !important;
}

.social-icon:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

.social-links.large .social-icon {
    width: 44px;
    height: 44px;
}

.social-links.large .social-icon svg {
    width: 28px;
    height: 28px;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   Inner Pages Styles
   ======================================== */

/* Quote Button in Navigation */
.navbar .quote-btn {
    padding: 10px 20px;
    margin-left: 10px;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

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

html[dir="rtl"] .navbar .quote-btn {
    margin-left: 0;
    margin-right: 10px;
}

@media (max-width: 992px) {
    .navbar .quote-btn {
        margin: 10px 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    html[dir="rtl"] .navbar .quote-btn {
        margin: 10px 0 0 0;
    }
}

/* Certifications Section */
.certifications {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.cert-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    margin-bottom: 20px;
}

.cert-icon img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
}

.cert-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
}

/* ========================================
   Scrolling Animation - Knitting & Cat
   ======================================== */

.scroll-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* Knitting Needles - FIXED at Features section start */
.knitting-needles {
    position: fixed;
    top: 50vh; /* Middle of viewport - will align with features section */
    left: 40px;
    width: 80px;
    height: 80px;
    z-index: 1000;
}

.needle {
    position: absolute;
    width: 6px;
    height: 70px;
    left: 50%;
    top: 5px;
}

.needle-left {
    transform: translateX(-50%) rotate(-45deg);
}

.needle-right {
    transform: translateX(-50%) rotate(45deg);
}

.needle-body {
    width: 100%;
    height: 85%;
    background: linear-gradient(90deg, #b89050, #f0d0a0, #e8c890, #f0d0a0, #b89050);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    box-shadow: 
        inset 0 0 3px rgba(255,255,255,0.5),
        1px 1px 4px rgba(0,0,0,0.3);
}

.needle-tip {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 12px solid #d4b075;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    filter: brightness(1.2);
}

.needle-grip {
    width: 8px;
    height: 20px;
    background: linear-gradient(90deg, #8b7040, #a08040, #8b7040);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.thread-start {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, #c5a065, #d4b075);
    border-radius: 0 0 2px 2px;
}

/* Thread Line - FIXED, only height changes */
.thread-line {
    position: fixed;
    top: 580px; /* Below needles - will be updated by JS */
    left: 40px;
    transform: translateX(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #c5a065, #d4b075);
    transition: height 0.05s ease;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    z-index: 998;
}

.thread-segment {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        180deg,
        #c5a065,
        #c5a065 4px,
        #d4b075 4px,
        #d4b075 8px
    );
}

/* Yarn Ball - Smaller, More Realistic */
.yarn-ball {
    position: fixed;
    top: 580px; /* Aligned with thread - will be updated by JS */
    left: 40px;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f5d5b0, #d4b075, #c09050, #a08040);
    box-shadow: 
        inset -4px -4px 12px rgba(0,0,0,0.4),
        inset 4px 4px 12px rgba(255,255,255,0.3),
        2px 3px 8px rgba(0,0,0,0.4);
    transition: top 0.05s ease, left 0.3s ease;
    overflow: hidden;
    z-index: 999;
}

/* Yarn wrapping - multiple realistic layers */
.yarn-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(160, 128, 64, 0.5);
    animation: yarnRotate 4s linear infinite;
}

.yarn-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(160, 128, 64, 0.4);
    transform: translateY(-50%);
}

.yarn-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(160, 128, 64, 0.4);
    transform: translateX(-50%);
}

.yarn-wrap.delay-1 {
    animation-delay: 1.33s;
}

.yarn-wrap.delay-1::before {
    transform: translateY(-50%) rotate(60deg);
}

.yarn-wrap.delay-1::after {
    transform: translateX(-50%) rotate(60deg);
}

.yarn-wrap.delay-2 {
    animation-delay: 2.66s;
}

.yarn-wrap.delay-2::before {
    transform: translateY(-50%) rotate(120deg);
}

.yarn-wrap.delay-2::after {
    transform: translateX(-50%) rotate(120deg);
}

/* Yarn center hole - realistic */
.yarn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #6b5030, #8b7040);
    box-shadow: 
        inset 1px 1px 2px rgba(0,0,0,0.6),
        0 0 2px rgba(0,0,0,0.3);
}

/* Yarn texture fibers */
.yarn-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(245, 213, 176, 0.3) 0deg 8deg,
        rgba(212, 176, 117, 0.3) 8deg 16deg
    );
    animation: yarnRotate 6s linear infinite reverse;
}

@keyframes yarnRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Cat - FIXED at contact-cta section end, before footer */
.cat-container {
    position: fixed;
    bottom: 250px; /* At end of contact-cta section */
    left: 35px;
    transform: scale(0.65);
    transform-origin: bottom left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
}

.cat-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Yarn wrapping details - multiple layers */
.yarn-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(184, 144, 80, 0.4);
    animation: yarnRotate 4s linear infinite;
}

.yarn-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(184, 144, 80, 0.3);
    transform: translateY(-50%);
}

.yarn-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(184, 144, 80, 0.3);
    transform: translateX(-50%);
}

.yarn-wrap.delay-1 {
    animation-delay: 1.33s;
}

.yarn-wrap.delay-1::before {
    transform: translateY(-50%) rotate(60deg);
}

.yarn-wrap.delay-1::after {
    transform: translateX(-50%) rotate(60deg);
}

.yarn-wrap.delay-2 {
    animation-delay: 2.66s;
}

.yarn-wrap.delay-2::before {
    transform: translateY(-50%) rotate(120deg);
}

.yarn-wrap.delay-2::after {
    transform: translateX(-50%) rotate(120deg);
}

/* Yarn center hole */
.yarn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #8b7040, #a08040);
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.5);
}

/* Additional yarn texture lines */
.yarn-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        repeating-conic-gradient(
            from 0deg,
            rgba(212, 176, 117, 0.3) 0deg 10deg,
            rgba(184, 144, 80, 0.3) 10deg 20deg
        );
    animation: yarnRotate 5s linear infinite reverse;
}

@keyframes yarnRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Cat Container - FIXED position, Left Side, Before Footer */
.cat-container {
    position: fixed;
    bottom: 150px;
    left: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.7);
    transform-origin: bottom left;
    opacity: 0;
    z-index: 1000;
}

.cat-container.visible {
    opacity: 1;
}

/* Cat */
.cat {
    position: relative;
    width: 120px;
    height: 100px;
}

.cat-ears {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
}

.ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 25px solid #2c2c2c;
}

.ear.left {
    left: 0;
    transform: rotate(-15deg);
}

.ear.right {
    right: 0;
    transform: rotate(15deg);
}

.cat-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 60px;
    background: radial-gradient(circle, #3a3a3a, #2c2c2c);
    border-radius: 50% 50% 45% 45%;
}

.cat-eye {
    position: absolute;
    top: 20px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    animation: catBlink 4s ease-in-out infinite;
}

.cat-eye.left {
    left: 12px;
}

.cat-eye.right {
    right: 12px;
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cat-nose {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    background: #ff9999;
    border-radius: 50%;
}

.cat-mouth {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
}

.cat-mouth::before,
.cat-mouth::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 8px;
    border: 2px solid #ff9999;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.cat-mouth::before {
    left: 0;
}

.cat-mouth::after {
    right: 0;
}

.cat-whiskers {
    position: absolute;
    top: 45px;
    width: 30px;
}

.cat-whiskers.left {
    left: -25px;
}

.cat-whiskers.right {
    right: -25px;
}

.whisker {
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    border-radius: 1px;
}

.cat-body {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: radial-gradient(circle, #3a3a3a, #2c2c2c);
    border-radius: 40px 40px 30px 30px;
}

.cat-paw {
    position: absolute;
    bottom: -5px;
    width: 20px;
    height: 15px;
    background: #2c2c2c;
    border-radius: 10px 10px 5px 5px;
}

.cat-paw.left {
    left: 15px;
}

.cat-paw.right {
    right: 15px;
}

.cat-tail {
    position: absolute;
    top: 60px;
    right: -30px;
    width: 40px;
    height: 40px;
}

.tail-segment {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2c2c2c;
    border-radius: 50%;
    animation: tailWag 2s ease-in-out infinite;
}

.tail-segment:nth-child(1) {
    bottom: 0;
    left: 0;
}

.tail-segment:nth-child(2) {
    bottom: 10px;
    left: 10px;
    animation-delay: 0.1s;
}

.tail-segment:nth-child(3) {
    bottom: 20px;
    left: 20px;
    animation-delay: 0.2s;
}

@keyframes tailWag {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@keyframes catBlink {
    0%, 48%, 52%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

/* Cat Message */
.cat-message {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-message.visible {
    opacity: 1;
}

/* Hide animation on mobile */
@media (max-width: 768px) {
    .scroll-animation-container {
        display: none;
    }
}
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: 'Chillax', sans-serif;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.1);
}

.newsletter-form .btn {
    width: 100%;
    padding: 12px 20px;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        flex: 1;
    }
    
    .newsletter-form .btn {
        width: auto;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--bg-white);
}

/* About Page Header with Background Image */
.page-header.about-header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%), url('../images/background-for-about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Contact Page Header with Background Image */
.page-header.contact-header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%), url('../images/background-for-contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Products Page Header with Background Image */
.page-header.products-header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.8) 100%), url('../images/header-for-products.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Products Section */
.products-section {
    padding: 100px 0;
}

.products-section.alt-bg {
    background-color: var(--bg-light);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.product-detail-grid.reverse {
    direction: rtl;
}

.product-detail-grid.reverse > * {
    direction: ltr;
}

.product-detail-image .image-placeholder.large {
    min-height: 450px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.product-detail-image .image-placeholder.tall {
    min-height: 500px;
}

.product-detail-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.product-detail-content .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.product-detail-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-detail-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.feature-list {
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-dark);
}

/* Quality Section */
.quality-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quality-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quality-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 100%;
}

.quality-icon img {
    display: block;
    margin: 0 auto;
}

.quality-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.quality-card p {
    color: var(--text-light);
    text-align: center;
}

/* About Main Section */
.about-main {
    padding: 100px 0;
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-main-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-main-content .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-main-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-main-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Mission & Vision */
.mission-vision {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mv-card {
    background: rgba(255,255,255,0.1);
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mv-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
}

.mv-icon img {
    display: block;
    margin: 0 auto;
}

.mv-card h2 {
    color: var(--bg-white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.mv-card p {
    color: var(--bg-white);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 100%;
}

.value-icon img {
    display: block;
    margin: 0 auto;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.value-card p {
    color: var(--text-light);
    text-align: center;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.why-item p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-form-wrapper p,
.contact-info-wrapper p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.contact-card-icon img {
    display: block;
    margin: 0 auto;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.contact-card p,
.contact-card a {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.business-hours {
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.business-hours h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.business-hours ul li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.business-hours ul li:last-child {
    border-bottom: none;
}

.social-connect h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
    color: var(--primary-color) !important;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--secondary-color) !important;
}

.social-links.large {
    gap: 20px;
}

.social-links.large a {
    font-size: 2rem;
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.map-container {
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    overflow: hidden;
}

.map-link {
    display: block;
    transition: var(--transition);
}

.map-link:hover {
    transform: scale(1.02);
}

.map-link:hover .map-placeholder {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    padding: 80px;
    text-align: center;
    color: var(--bg-white);
    margin-top: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content span {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
}

.map-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.map-content small {
    opacity: 0.8;
}

.map-note {
    margin-top: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Responsive for inner pages */
@media (max-width: 992px) {
    .product-detail-grid,
    .product-detail-grid.reverse,
    .about-main-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-grid.reverse {
        direction: ltr;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RTL (Right-to-Left) Support for Arabic
   ======================================== */

html[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Quest Bold', 'Chillax', sans-serif;
}

html[dir="rtl"] * {
    font-family: 'Quest Bold', 'Chillax', sans-serif;
}

/* Navbar RTL - CRITICAL: Keep layout stable */
html[dir="rtl"] .navbar .nav-wrapper {
    direction: ltr !important;
}

html[dir="rtl"] .navbar .nav-menu {
    gap: 30px;
    direction: ltr !important;
}

html[dir="rtl"] .navbar .logo {
    direction: ltr !important;
    font-family: 'Chillax', sans-serif !important;
}

html[dir="rtl"] .navbar .logo-text {
    font-family: 'Chillax', sans-serif !important;
}

html[dir="rtl"] .navbar .lang-switch {
    direction: ltr !important;
}

html[dir="rtl"] .navbar .nav-link {
    direction: rtl !important;
}

html[dir="rtl"] .hero-buttons {
    flex-direction: row;
}

html[dir="rtl"] .about-list li::before {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .feature-list li::before {
    margin-left: 10px;
    margin-right: 0;
}

html[dir="rtl"] .product-detail-grid.reverse {
    direction: rtl;
}

html[dir="rtl"] .cta-buttons {
    flex-direction: row;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .contact-info li {
    flex-direction: row;
}

html[dir="rtl"] .business-hours ul li {
    flex-direction: row;
}

html[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-toggle {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .hero-title br {
    display: none;
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        flex-direction: column;
    }
    
    html[dir="rtl"] .hero-buttons,
    html[dir="rtl"] .cta-buttons {
        flex-direction: column;
    }
}
