/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a1128;
    --bg-secondary: #001f54;
    --bg-tertiary: #034078;
    --accent-primary: #1282a2;
    --accent-secondary: #ffc857;
    --accent-light: #ffd97d;
    --accent-dark: #d4a017;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.37);
    --orb-1-color: #1282a2;
    --orb-2-color: #ffc857;
    --orb-3-color: #034078;
    
    /* Spacing */
    --header-height: 5rem;
    --section-padding: 5rem 0;
    --container-width: 1200px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #e8eef5;
    --bg-tertiary: #d0dae8;
    --accent-primary: #034078;
    --accent-secondary: #d4a017;
    --accent-light: #ffc857;
    --accent-dark: #9a7a0f;
    --text-primary: #0a1128;
    --text-secondary: rgba(10, 17, 40, 0.7);
    --text-muted: rgba(10, 17, 40, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(10, 17, 40, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --orb-1-color: #034078;
    --orb-2-color: #ffc857;
    --orb-3-color: #1282a2;
}

/* ==================== */
/* Reset & Base Styles */
/* ==================== */
/* Custom Styles for Portfolio - TailwindCSS Enhanced */

h2 {
    padding: 7px;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #ffc857 0%, #ffd97d 50%, #1282a2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 25s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes rotate-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

.animate-rotate-float {
    animation: rotate-float 30s ease-in-out infinite;
}

@keyframes pulse-float {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.9;
    }
}

.animate-pulse-float {
    animation: pulse-float 15s ease-in-out infinite;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

/* Mobile Menu Animation */
.mobile-menu-transition {
    transition: right 0.3s ease-in-out;
}

/* Header Scroll Enhancement */
#header {
    z-index: 60;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
    background: rgba(3, 64, 120, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(2, 12, 39, 0.35);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

@media (min-width: 768px) {
    #header.scrolled #navMenu > ul {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 9999px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.6rem 1.2rem;
        z-index: 1;
    }
}

body.light-theme #header.scrolled {
    background: rgba(3, 64, 120, 0.14);
    border-bottom-color: rgba(10, 17, 40, 0.12);
    box-shadow: 0 10px 24px rgba(3, 64, 120, 0.1);
}

@media (min-width: 768px) {
    body.light-theme #header.scrolled #navMenu > ul {
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(3, 64, 120, 0.12);
    }
}

/* Light Theme Support */
body.light-theme {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #fffdf7 100%);
}

html[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #fffdf7 100%);
}

body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 17, 40, 0.08);
}

body.light-theme .text-white {
    color: #0a1128 !important;
}

body.light-theme .text-white\/70 {
    color: rgba(10, 17, 40, 0.7) !important;
}

body.light-theme .text-white\/60 {
    color: rgba(10, 17, 40, 0.6) !important;
}

body.light-theme .border-white\/10 {
    border-color: rgba(10, 17, 40, 0.08) !important;
}

body.light-theme .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.78) !important;
}

body.light-theme .text-accent-blue {
    color: #034078 !important;
}

/* ==========================================
   Order Form Styles
   ========================================== */
.order-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
}

.order-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.15);
}

select.order-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.6)' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[dir="rtl"] select.order-input {
    background-position: left 1rem center;
    padding-right: 1.25rem;
    padding-left: 2.5rem;
}

select.order-input option {
    background: #0a1128;
    color: #fff;
}

/* Service details reveal animation */
.service-details-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.service-details-reveal.service-details-show {
    max-height: 400px;
    opacity: 1;
}

/* Light theme overrides for form */
body.light-theme .order-input {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(10, 17, 40, 0.15);
    color: #0a1128;
}

body.light-theme .order-input::placeholder {
    color: rgba(10, 17, 40, 0.4);
}

body.light-theme select.order-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(10,17,40,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}

body.light-theme select.order-input option {
    background: #f5f7fa;
    color: #0a1128;
}

body.light-theme #serviceDetails .text-accent-gold {
    color: #d4a017 !important;
}

body.light-theme #serviceDetails .text-white\/70 {
    color: rgba(10, 17, 40, 0.7) !important;
}

body.light-theme #serviceDetails .border-accent-gold\/30 {
    border-color: rgba(212, 160, 23, 0.3) !important;
}

body.light-theme .bg-primary-dark {
    background-color: #ffffff !important;
}

body.light-theme .from-primary-dark {
    --tw-gradient-from: #ffffff var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position) !important;
}

body.light-theme .via-primary {
    --tw-gradient-stops: var(--tw-gradient-from), #f6faff var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

body.light-theme .to-primary-light {
    --tw-gradient-to: #fffdf7 var(--tw-gradient-to-position) !important;
}

body.light-theme #animatedBg {
    background-image: linear-gradient(135deg, #ffffff 0%, #f6faff 55%, #fffdf7 100%) !important;
}

body.light-theme #floatingShapes div {
    border-color: rgba(10, 17, 40, 0.08) !important;
}

body.light-theme .bg-accent-blue\/40 {
    background-color: rgb(3 64 120 / 0.14) !important;
}

body.light-theme .bg-accent-gold\/40 {
    background-color: rgb(255 200 87 / 0.2) !important;
}

body.light-theme .bg-primary-light\/40 {
    background-color: rgb(3 64 120 / 0.1) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 200, 87, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 200, 87, 0.8);
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Arabic font support */
[lang="ar"],
[lang="ar"] * {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] body * {
    font-family: 'Cairo', 'Poppins', sans-serif !important;
}

/* ==================== */
/* Control Buttons */
/* ==================== */
.control-buttons {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 80;
    pointer-events: auto;
}

body > .control-buttons {
    z-index: 2147483000 !important;
    pointer-events: auto !important;
}

body > .control-buttons .theme-toggle,
body > .control-buttons .lang-toggle {
    position: relative;
    z-index: 2147483001;
    pointer-events: auto;
}

.control-buttons * {
    pointer-events: auto;
}

[dir="rtl"] .control-buttons {
    right: auto;
    left: 2rem;
}

.theme-toggle,
.lang-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.theme-toggle:hover,
.lang-toggle:hover {
    transform: scale(1.1);
    background: var(--glass-border);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    transition: all 0.3s ease;
}

.lang-toggle .lang-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* ==================== */
/* Animated Background */
/* ==================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    overflow: hidden;
    transition: background 0.3s ease;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    transition: background 0.3s ease;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orb-1-color), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orb-2-color), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--orb-3-color), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
    animation-duration: 35s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* ==================== */
/* Floating Shapes */
/* ==================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid var(--glass-border);
    opacity: 0.3;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: rotate-float 15s infinite linear;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 15%;
    animation: rotate-float 20s infinite linear reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 30%;
    right: 25%;
    animation: pulse-float 8s infinite ease-in-out;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 20%;
    animation: rotate-float 25s infinite linear;
}

.shape-5 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    top: 50%;
    left: 5%;
    animation: pulse-float 12s infinite ease-in-out;
}

@keyframes rotate-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes pulse-float {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) translateY(-20px);
        opacity: 0.5;
    }
}

/* ==================== */
/* Base Layout */
/* ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding);
    min-height: auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== */
/* Header & Navigation */
/* ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px var(--shadow-color);
}

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

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

.nav-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: center;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-content {
    text-align: center;
    animation: slideUp 1s ease-out;
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 16px rgba(255, 200, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 200, 87, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-3px);
}

/* ==================== */
/* About Section */
/* ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-img-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.about-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.about-info-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.about-info-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.3rem;
}

.about-info-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== */
/* Services Section */
/* ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.6s ease-out forwards;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--bg-primary);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== */
/* Tools Section */
/* ==================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tool-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.tool-card.animate-in {
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s ease-out forwards;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px var(--shadow-color);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 0.5rem;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 0.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--accent-secondary);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== */
/* Container */
/* ==================== */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* ==================== */
/* Glassmorphism Card */
/* ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px 0 var(--shadow-color),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 1s ease-out;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0.1;
    animation: shine 3s infinite;
}

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

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ==================== */
/* Logo */
/* ==================== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--accent-secondary);
    padding: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--shadow-color),
                0 0 20px var(--accent-secondary);
    transition: all 0.5s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px 0 var(--shadow-color),
                0 0 30px var(--accent-secondary);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== */
/* Content */
/* ==================== */
.content {
    text-align: center;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: slideDown 1s ease-out 0.2s both;
}

.name {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: background 0.3s ease;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: slideDown 1s ease-out 0.4s both;
    transition: color 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* Status Badge */
/* ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid var(--accent-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
    animation: slideDown 1s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    transition: background 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* ==================== */
/* Description */
/* ==================== */
.description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease-out 0.8s both;
    transition: color 0.3s ease;
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact-section {
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 1s both;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--accent-secondary);
    transform: translateX(5px);
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.contact-item span {
    font-size: 0.95rem;
    word-break: break-all;
}

/* ==================== */
/* Social Links */
/* ==================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(212, 160, 23, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    margin-top: 3rem;
    text-align: center;
    animation: fadeIn 1s ease-out 1.4s both;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .container {
        padding: 1.5rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .logo-image {
        width: 100px;
        height: 100px;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
    }

    .shape {
        display: none;
    }

    .contact-item {
        padding: 0.875rem 1.25rem;
    }

    .contact-item span {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .logo-image {
        width: 80px;
        height: 80px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        margin-top: 2rem;
    }
}

/* ==================== */
/* Animations */
/* ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* ==================== */
/* Responsive Design */
/* ==================== */

/* Tablets and Below */
@media (max-width: 968px) {
    :root {
        --header-height: 4rem;
        --section-padding: 4rem 0;
    }

    .control-buttons {
        top: 1.5rem;
        right: 1.5rem;
    }

    [dir="rtl"] .control-buttons {
        right: auto;
        left: 1.5rem;
    }

    .theme-toggle,
    .lang-toggle {
        width: 45px;
        height: 45px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 568px) {
    :root {
        --section-padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .control-buttons {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    [dir="rtl"] .control-buttons {
        right: auto;
        left: 1rem;
    }

    .theme-toggle,
    .lang-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .lang-toggle .lang-text {
        font-size: 1rem;
    }

    .nav-logo-img {
        width: 40px;
        height: 40px;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-info-value {
        font-size: 2rem;
    }

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

    .service-card {
        padding: 2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .tool-icon {
        font-size: 2.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==================== */
/* Accessibility */
/* ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== */
/* Text Selection */
/* ==================== */
::selection {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

/* ==================== */
/* Scrollbar Styling */
/* ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ==================== */
/* Mobile Sidebar Nav */
/* ==================== */
.nav-backdrop {
    display: none;
}

@media (max-width: 767.98px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(1, 9, 29, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 58;
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    #navMenu {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 59;
    }

    #navMenu .nav-list {
        position: absolute;
        top: 0;
        right: 0;
        width: min(84vw, 330px);
        height: 100dvh;
        margin: 0;
        padding: 1.2rem 1rem 1rem;
        border-radius: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(6, 22, 58, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -12px 0 28px rgba(1, 8, 26, 0.44);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    #navMenu.active {
        pointer-events: auto;
    }

    #navMenu.active .nav-list {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list .nav-link {
        display: block;
        width: 100%;
        padding: 0.82rem 0.9rem;
        border-radius: 0.75rem;
    }

    .nav-list .nav-link:hover,
    .nav-list .nav-link.active {
        background: rgba(255, 200, 87, 0.14);
    }

    #navToggle {
        position: relative;
        z-index: 60;
    }

    [dir="rtl"] #navMenu .nav-list {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 12px 0 28px rgba(1, 8, 26, 0.44);
    }

    [dir="rtl"] #navMenu.active .nav-list {
        transform: translateX(0);
    }

    .mobile-sidebar-controls {
        margin-top: auto;
        padding-top: 1rem;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    .mobile-sidebar-controls .control-buttons {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        z-index: auto;
        gap: 0.75rem;
        pointer-events: auto;
    }

    .mobile-sidebar-controls .theme-toggle,
    .mobile-sidebar-controls .lang-toggle {
        width: 42px;
        height: 42px;
    }

    body.light-theme .nav-backdrop {
        background: rgba(10, 17, 40, 0.24);
    }

    body.light-theme #navMenu .nav-list {
        background: rgba(255, 255, 255, 0.93);
        border-color: rgba(10, 17, 40, 0.14);
        box-shadow: -12px 0 24px rgba(10, 17, 40, 0.16);
    }

    body.light-theme [dir="rtl"] #navMenu .nav-list {
        box-shadow: 12px 0 24px rgba(10, 17, 40, 0.16);
    }
}