@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('OTF/TheYearofHandicrafts-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('OTF/TheYearofHandicrafts-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('OTF/TheYearofHandicrafts-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('OTF/TheYearofHandicrafts-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('OTF/TheYearofHandicrafts-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #5291bd;
    --accent-glow: rgba(82, 145, 189, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'TheYearofHandicrafts', sans-serif;
    font-size: 1.125rem; /* 18px base for better accessibility */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: #f8f9fa;
    color: #050505;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px; /* Assuming it might need slight rounding, adjust as needed */
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Placeholder for Parallax Main Content */
.content-placeholder {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding-top: 100px; /* Offset for fixed header */
    overflow: hidden;
}



.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    transform: translateY(-50px);
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.3;
    background: linear-gradient(135deg, #103778, #5291bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    white-space: nowrap;
}

.slide-rtl {
    white-space: nowrap;
    animation: slideInRTL 4s ease-in-out forwards;
}

.slide-ltr {
    white-space: nowrap;
    animation: slideInLTR 4s ease-in-out forwards;
}

@keyframes slideInRTL {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    30% {
        transform: translateX(0);
        opacity: 1;
    }
    65% {
        transform: translateX(-50px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLTR {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    30% {
        transform: translateX(0);
        opacity: 1;
    }
    65% {
        transform: translateX(50px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #103778, #5291bd);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(82, 145, 189, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(82, 145, 189, 0.4);
}

/* Product Card Styles */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    margin-top: 0;
}



.product-logo {
    height: 150px;
    padding: 0 20px;
    object-fit: contain;
    background: transparent;
}

.product-card-content {
    flex: 1;
    padding: 0 2rem;
    padding-left: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

.product-card-content h3 {
    font-size: 1.5rem;
    color: #103778;
    margin: 0;
    font-weight: 800;
}

.product-card-image {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 600px;
    width: 350px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .product-card {
        height: auto;
        flex-direction: column;
        padding: 20px 0 0 0;
        margin-top: 2rem;
    }
    .product-logo {
        height: 100px;
        padding: 0;
    }
    .product-card-content {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        text-align: center;
    }
    .product-card-image {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 250px;
    }
}



/* About Us Accordion Styles */
.accordion-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    background-color: #f8f9fa;
}

#products {
    padding-top: 2rem;
}



.section-title {
    text-align: center;
    font-size: 3rem;
    color: #103778;
    margin-bottom: 3rem;
    font-weight: 800;
}

.accordion {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    border: 4px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
                linear-gradient(135deg, #dee2e6, #5291bd) border-box;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: #050505;
    font-size: 24px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover, .accordion-header.active {
    color: var(--accent-color);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: transparent;
}

.accordion-content p {
    padding: 0 2rem 1.5rem 2rem;
    margin: 0;
    color: #333333;
    font-size: 24px;
    line-height: 1.8;
}

.calendar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Footer Styles */
.site-footer {
    position: relative;
    background-color: #0a0a0a;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.site-footer .container {
    max-width: 1300px;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 600px;
}

.footer-logo {
    animation: tinyCircularMotion 4s linear infinite;
    height: 150px;
    margin-bottom: 36px;
}

.footer-brand p {
    color: #cccccc;
    font-size: 20px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h3 {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group a {
    color: #cccccc;
    font-size: 20px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent;
    color: #999999;
    font-size: 16px;
}
@keyframes twinkle-1 {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.2; }
}

@keyframes twinkle-2 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.95; }
}

.content-placeholder::before, .content-placeholder::after,
.accordion-section::before, .accordion-section::after,
.site-footer::before, .site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.accordion-section::before, .accordion-section::after {
    z-index: -1;
}

/* Layer 1 */
.content-placeholder::before, .accordion-section::before, .site-footer::before {
    background-image: 
        radial-gradient(1px 1px at 15px 112px, #3b82f6, rgba(0,0,0,0)),
        radial-gradient(0.5px 0.5px at 145px 210px, rgba(59, 130, 246, 0.8), rgba(0,0,0,0)),
        radial-gradient(0.3px 0.3px at 80px 30px, rgba(37, 99, 235, 0.5), rgba(0,0,0,0)),
        radial-gradient(1.2px 1.2px at 290px 340px, #2563eb, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 10px 120px, rgba(29, 78, 216, 0.7), rgba(0,0,0,0)),
        radial-gradient(0.8px 0.8px at 170px 280px, rgba(59, 130, 246, 0.4), rgba(0,0,0,0));
    background-size: 213px 213px, 345px 345px, 129px 129px, 412px 412px, 178px 178px, 311px 311px;
    animation: twinkle-1 3.5s infinite ease-in-out;
}

/* Layer 2 */
.content-placeholder::after, .accordion-section::after, .site-footer::after {
    background-image: 
        radial-gradient(0.4px 0.4px at 410px 120px, rgba(96, 165, 250, 0.9), rgba(0,0,0,0)),
        radial-gradient(1.8px 1.8px at 85px 15px, rgba(37, 99, 235, 0.6), rgba(0,0,0,0)),
        radial-gradient(0.8px 0.8px at 230px 190px, rgba(29, 78, 216, 0.8), rgba(0,0,0,0)),
        radial-gradient(1.3px 1.3px at 15px 75px, #60a5fa, rgba(0,0,0,0)),
        radial-gradient(0.3px 0.3px at 250px 250px, rgba(59, 130, 246, 0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 310px 80px, rgba(37, 99, 235, 0.5), rgba(0,0,0,0)),
        radial-gradient(0.6px 0.6px at 50px 160px, #2563eb, rgba(0,0,0,0));
    background-size: 444px 444px, 219px 219px, 333px 333px, 107px 107px, 283px 283px, 361px 361px, 192px 192px;
    animation: twinkle-2 4.2s infinite ease-in-out;
}

/* Mobile Responsive Styles */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    /* Header & Burger Menu */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
    }
    
    .mobile-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: #050505;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #f8f9fa;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    /* Hero Typography Adjustment (overriding existing if necessary) */
    .hero-text h1 {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.5;
    }
    
    /* Product Cards */
    .product-card {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .product-card-image img {
        max-width: 100%;
        height: auto;
    }
    
    .product-logo {
        height: 40px;
    }
    
    /* Footer Structure */
    .footer-content {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
        min-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-section > div {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-section p, .footer-badges p {
        text-align: center !important;
    }
    
    .footer-logo {
    animation: tinyCircularMotion 4s linear infinite;
        height: 80px;
    }
    
    .footer-badges img {
        height: 60px !important;
        width: auto !important;
    }
    
    /* Calendar Container */
    .calendar-container iframe {
        height: 600px;
    }
    
    /* Accordion Typography */
    .accordion-content p {
        font-size: 18px;
    }
}

/* Services Cards */
.services-cards-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-card {
    border: none;
    border-radius: 12px;
    background: 
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.8) 1.5px, transparent 2px),
        radial-gradient(circle at 35% 85%, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
        radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.7) 1px, transparent 1.5px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.5) 1px, transparent 1.5px),
        linear-gradient(135deg, #2b3372, #545fa3);
    padding: 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    aspect-ratio: 1.5 / 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(82, 145, 189, 0.3);
}

.service-card .service-en {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.25rem;
    font-family: Arial, Helvetica, sans-serif;
}

.service-card .service-ar {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .services-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Pricing Cards */
.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 1.5rem 2rem;
    border-top: 1px solid rgba(82, 145, 189, 0.2);
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.pricing-card {
    border: 2px solid rgba(82, 145, 189, 0.2);
    border-radius: 12px;
    background: #ffffff;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: #5291bd;
    box-shadow: 0 8px 24px rgba(82, 145, 189, 0.15);
}

.pricing-card-title {
    font-size: 1.5rem;
    color: #103778;
    font-weight: bold;
}

.pricing-card-text {
    font-size: 1.2rem;
    color: #495057;
}

@media (max-width: 600px) {
    .pricing-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Why Us Cards */
.why-us-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 1.5rem 2rem;
    border-top: 1px solid rgba(82, 145, 189, 0.2);
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.why-us-card {
    border: 2px solid rgba(82, 145, 189, 0.2);
    border-radius: 12px;
    background: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.why-us-card:hover {
    transform: translateY(-4px);
    border-color: #5291bd;
    box-shadow: 0 8px 24px rgba(82, 145, 189, 0.15);
}

.why-us-number {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #103778, #5291bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.why-us-text {
    font-size: 1.15rem;
    color: #495057;
    font-weight: bold;
}

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

@keyframes tinyCircularMotion {
    0% { transform: rotate(0deg) translate(3px) rotate(0deg); }
    100% { transform: rotate(360deg) translate(3px) rotate(-360deg); }
}

.lang-btn {
    font-weight: bold;
    color: #5291bd;
    border: none;
    padding: 2px 12px !important;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}
.lang-btn:hover {
    background: transparent;
    color: #103778 !important;
    text-decoration: none !important;
}
