/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    /* Colors - Light Theme (Default, but overridden by body.dark-theme) */
    --primary-color: #2563eb; /* Modern Blue */
    --secondary-color: #3b82f6;
    --accent-color: #10b981; /* Success/Highlight Green */
    
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --glow-color: rgba(37, 99, 235, 0.4);
    
    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme {
    /* Colors - Dark Theme */
    --primary-color: #3b82f6; 
    --secondary-color: #60a5fa;
    --accent-color: #10b981;
    
    --bg-color: #0f172a; /* Deep Slate */
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --glow-color: rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   Reset & Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

html[dir="ltr"] body {
    font-family: var(--font-english);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Utilities & Components
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition-fast);
}

.icon-btn:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Preloader & Scrollbar
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

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

.loader-logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite alternate;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--surface-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.6; } 100% { opacity: 1; } }

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.glass-header.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    position: relative;
}

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

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

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

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

.hero-content {
    flex: 1;
}

.hero-content .greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-content .name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content .name .highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .titles {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content .location {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-content .location i {
    color: var(--accent-color);
    margin-inline-end: 8px;
}

.contact-info-hero {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.contact-info-hero a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.contact-info-hero a i {
    color: var(--primary-color);
}

.contact-info-hero a:hover {
    color: var(--primary-color);
}

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

/* Hero Image & 3D Elements */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%; /* Make it circular */
    z-index: 1;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rotating Gradient Border Effect */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), transparent, transparent);
    z-index: 0;
    animation: rotateBorder 4s linear infinite;
}

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

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Make image circular */
    border: 5px solid var(--surface-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.image-wrapper:hover img {
    transform: scale(1.02) rotateY(5deg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

.tech-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: var(--glass-shadow);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.badge-1 { top: 5%; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 15%; left: -20px; animation-delay: 2s; color: var(--accent-color); }
.badge-3 { bottom: -10px; right: 10%; animation-delay: 4s; }

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

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 20px 0 60px 0;
    position: relative;
    z-index: 10;
    margin-top: -30px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 25px 15px;
    border-top: 3px solid var(--primary-color);
    transition: transform var(--transition-fast);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-color);
}

.stat-box h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Why Choose Me
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ==========================================================================
   Journey Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

html[dir="rtl"] .timeline::after {
    left: auto;
    right: 50%;
    margin-right: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

html[dir="rtl"] .timeline-item:nth-child(odd) {
    right: 0;
    left: auto;
}

html[dir="rtl"] .timeline-item:nth-child(even) {
    right: 50%;
    left: auto;
}

.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background: var(--surface-color);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
}

html[dir="rtl"] .timeline-item:nth-child(odd) .timeline-dot {
    left: -20px;
    right: auto;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -20px;
}

html[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot {
    right: -20px;
    left: auto;
}

.timeline-content {
    padding: 20px;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.testimonial-card {
    padding: 40px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px; /* Arabic RTL */
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.1);
}

html[dir="ltr"] .quote-icon {
    right: auto;
    left: 20px;
}

.review {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-info h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.reviewer-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px; /* Approximate */
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 10;
}

.contact-card {
    padding: 30px;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.contact-card:hover h4,
.contact-card:hover span {
    color: var(--primary-color);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.contact-card h4 {
    margin-bottom: 10px;
}

.contact-form-container {
    padding: 40px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--surface-color);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about h3 span {
    color: var(--primary-color);
}

.footer-about p {
    color: var(--text-secondary);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

html[dir="ltr"] .footer h4::after {
    right: auto;
    left: 0;
}

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

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-inline-start: 5px; /* Adds a little shift on hover */
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */
.floating-socials {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Arabic RTL convention: left for actions */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

html[dir="ltr"] .floating-socials {
    left: auto;
    right: 30px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    transition: transform var(--transition-fast);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.floating-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Arabic RTL */
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

html[dir="ltr"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(50px); /* Adjust for RTL/LTR via JS or CSS */
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0; /* Reduce padding on mobile */
    }

    .hero-container {
        flex-direction: column-reverse; /* Put image on top on mobile */
        text-align: center;
        padding-top: 40px;
        gap: 30px;
    }
    
    .hero-content {
        margin-top: 20px;
    }
    
    .contact-info-hero {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .tech-badge {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .badge-1 { top: 0; right: -10px; }
    .badge-2 { bottom: 10%; left: -10px; }
    .badge-3 { bottom: -15px; right: 20%; }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    html[dir="rtl"] .timeline::after {
        right: 31px;
        left: auto;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    html[dir="rtl"] .timeline-item {
        padding-right: 70px;
        padding-left: 0;
    }
    
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    
    html[dir="rtl"] .timeline-item:nth-child(even),
    html[dir="rtl"] .timeline-item:nth-child(odd) {
        right: 0;
        left: auto;
    }
    
    .timeline-dot {
        left: 11px;
        right: auto !important;
    }
    
    html[dir="rtl"] .timeline-dot {
        right: 11px;
        left: auto !important;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-box {
        padding: 15px 10px;
    }
    
    .stat-box h3 {
        font-size: 1.8rem;
    }
    
    .stat-box p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr; /* Stack vertically on very small screens */
    }
    .badge-1 { top: 0; right: 0; }
    .badge-2 { bottom: 10%; left: 0; }
    .badge-3 { bottom: -10px; right: 20%; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-normal);
        z-index: -1;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    html[dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
        transition: left var(--transition-normal);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    html[dir="ltr"] .nav-links.nav-active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-content .name {
        font-size: 2rem;
    }
    
    .hero-content .titles {
        font-size: 1rem;
    }

    .image-wrapper {
        width: 220px;
        height: 220px;
    }
}
