/*
Theme Name: Tamrone Arabia
Author: Mostafa Ahmed
Description: Custom WordPress Block Theme for Tamrone Arabia
Version: 1.0.0
Text Domain: tamrone-arabia
Tags: block-theme, full-site-editing, custom-colors
*/

/* ==========================================================================
   Tamrone Arabia Custom Stylesheet
   ========================================================================== */

/* --- Variables & Theme Settings --- */
:root {
    /* Color Palette */
    --primary-color: #D4AF37; /* Premium Gold */
    --primary-dark: #b5952f;
    --secondary-color: #FF6900; /* Vibrant Orange Accent */
    --bg-dark: #0f1218; /* Very Dark Blue/Grey */
    --bg-darker: #0a0c10;
    --bg-light: #dbe2e9;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
    
    /* Effects */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
    --glass-bg: rgba(15, 18, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --border-radius: 12px;
    --effect-color: #D4AF37;
}
.whitemode {
    /* Color Palette */
    --primary-color: #D4AF37; /* Premium Gold */
    --primary-dark: #b5952f;
    --secondary-color: #773303; /* Vibrant Orange Accent */
    --bg-dark: #e2e8f0; /* Very Dark Blue/Grey */
    --bg-darker: #898b8f;
    --bg-light: #d6a607;
    --text-main: #111111;
    --text-muted: #4d4e4e;
    --text-dark: #0a0a0a;

      /* Effects */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
    --glass-bg: rgba(255, 255, 255, 0.582);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --border-radius: 12px;
    --effect-color: #3b2e03;

}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
#theme-switch{
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: red;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 20px;
}
#theme-switch svg{
  fill: var(--primary-color);
}
#theme-switch svg:last-child{
  display: none;
}
.whitemode #theme-switch svg:first-child{
  display: none;
}
.whitemode #theme-switch svg:last-child{
  display: block;
}
/* RTL Layout Fixes */
.rtl-layout {
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--bg-light);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
.logo {
    text-align: center;
    max-width: 35%;
    height: auto;
    display: block;
}

/* --- Layout & Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.bg-light {
    background-color: var(--bg-darker);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    color: #000;
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #d95a00);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

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

/* Section Titles */
.section-title {
    margin-bottom: 50px;
}

.section-title .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title .subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-right: 15px;
    vertical-align: middle;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-fast);
    /* Glassmorphism by default */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.site-header.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

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

.logo a {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.logo h2 {
    margin: 0;
    padding: 1rem;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0; /* RTL */
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

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

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--effect-color);
}

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

.lang-switch a {
    color: var(--text-main);
    font-weight: 600;
    font-family: Arial, sans-serif;
}

.lang-switch a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 1002;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.4) 100%); /* RTL gradient */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero-text .subtitle {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary-color);
    text-shadow: var(--shadow-glow);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.social-links.vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links.vertical a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.social-links.vertical a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateX(-5px); /* RTL */
}
button{
  border: none;
  padding: .8em 2em;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font: inherit;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}
.cta-button{
  background-color: var(--accent-color);
}
#theme-switch{
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--base-variant);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
}
#theme-switch svg{
  fill: var(--primary-color);
}
#theme-switch svg:last-child{
  display: none;
}
.whitemode #theme-switch svg:first-child{
  display: none;
}
.whitemode #theme-switch svg:last-child{
  display: block;
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.features-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-frame img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px; /* RTL placement */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 30px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-glow);
    z-index: 2;
    color: #000;
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-weight: 700;
    font-size: 1rem;
}

/* Counters */
.counters-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.counter-item .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-light);
    margin-bottom: 5px;
}
.why {
    width: 80%;
    max-width: 80%;
    padding: 1rem;
    text-align: center;
    margin: auto;
}
.why h2{
    color: var(--primary-color);
}
.why .cards{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: space-evenly;
    align-items: flex-start;
    background-color:var(--primary-color) ;
    border-radius: 2%;    

}
.why .card{
    width: 16vw;
    background-color:var(--bg-dark) ;
    border-radius: 5%;
    padding: 1REM;
    margin: 0.5REM;
    text-align: center;
}
/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right; /* RTL */
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    color: #fff;
}

.read-more i {
    transition: var(--transition-fast);
}

.service-card:hover .read-more {
    color: var(--primary-color);
}

.service-card:hover .read-more i {
    transform: translateX(-5px); /* RTL */
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 12, 16, 0.8), rgba(10, 12, 16, 0.9)), url('https://images.unsplash.com/photo-1541888081622-1d5e305e9177?q=80&w=2000&auto=format&fit=crop') center/cover fixed;
}

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

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #fff;
}
.ccontainer {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  height: auto;
  gap: 3rem;
}

/* Custom */

.carousel {
  max-width: 80%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.carousel .item {
  width: 20%;
  height: 250px;
  max-width: 250px;
  background-color: white;
  margin: 2px;
  transition: 0.5s;
  object-fit: cover;
  filter: brightness(1);
}

.carousel .item:hover {
  filter: brightness(1);
  transform: translateZ(170px);
}

.carousel .item:hover + * {
  filter: brightness(0.6);
  transform: translateZ(120px) rotateY(25deg);
}

.carousel .item:hover + * + * {
  filter: brightness(0.4);
  transform: translateZ(50px) rotateY(15deg);
}

.carousel .item:has(+ *:hover) {
  filter: brightness(0.6);
  transform: translateZ(120px) rotateY(-25deg);
}

.carousel .item:has(+ * + *:hover) {
  filter: brightness(0.4);
  transform: translateZ(50px) rotateY(-15deg);
}


/* --- Footer --- */
.site-footer {
    background: var(--bg-darker);
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL */
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.about-widget p {
    margin-bottom: 25px;
    max-width: 400px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-main);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

.links-widget ul li {
    margin-bottom: 15px;
}

.links-widget ul a {
    color: var(--text-muted);
}

.links-widget ul a:hover {
    color: var(--primary-color);
    padding-right: 5px; /* RTL */
}

.contact-widget ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.contact-widget ul i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
    .m-logo a {
    max-width: 80%;}
/* --- Responsive Design --- */
@media (max-width: 992px) {
    .desktop-nav, .desktop-only {
        display: none !important;
    }
    .logo {
    text-align: center;
    max-width: 50%;
    height: auto;
    display: inline;}
    .logo a {
    display: flex;}
    .menu-toggle {
        display: block;
    }

    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        width: 120px;
        height: 120px;
        padding: 20px;
    }
    
    .experience-badge .number {
        font-size: 2rem;
    }
    
    .counters-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .social-links.vertical {
        display: none;
    }
    
    .counters-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .why{
        margin: 0.1rem;
    }
    .cards{
        flex-direction: column;
    }
        .why .card{
        width: 90%;
    }
    
    
}
@media (max-width: 992px) {
       .why{
        margin: auto;
    }
    .why.cards{
        flex-direction: column;
    }
    .why .card{
        width: 90%;
    }
    
}
