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

html {
    scroll-behavior: smooth;
}
 
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Theme system */
body.theme-dark {
  background: #181c23;
  color: #e6e8ef;
  transition: background 0.3s, color 0.3s;
}
body.theme-light {
  background: #f6f7fa;
  color: #23242b;
  transition: background 0.3s, color 0.3s;
}
.theme-light .card, .theme-light .service-card, .theme-light .brand-card, .theme-light .category-card {
  background: #fff;
  color: #23242b;
  box-shadow: 0 2px 8px rgba(40,48,60,0.07);
}
.theme-dark .card, .theme-dark .service-card, .theme-dark .brand-card, .theme-dark .category-card {
  background: #23242b;
  color: #e6e8ef;
  box-shadow: 0 2px 8px rgba(40,48,60,0.13);
}
.theme-light .btn-primary {
  background: #4c70a5;
  color: #fff;
}
.theme-light .breadcrumb-row {
  background: #f0f2f7;
  color: #23242b;
}
.theme-dark .breadcrumb-row {
  background: rgba(40, 48, 60, 0.13);
  color: #e6e8ef;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -2;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 7s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 9s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.3s; animation-duration: 9s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 6s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.2s; animation-duration: 8s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; animation-duration: 7s; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: #a0a0a0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Color Variables */
:root {
    --primary-blue: #3b82f6;
    --primary-blue-dark: #1d4ed8;
    --accent-blue: #60a5fa;
    --light-blue: #93c5fd;
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-border: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b7280;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* توزيع احترافي للهيدر مع الحفاظ على الأنيميشنات */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1.5rem;
}

.nav-brand, .brand-link {
    display: flex;
    align-items: center;
  flex-direction: row !important;
  gap: 10px;
  min-width: 200px;
  max-width: 100%;
}

.nav-menu {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-auth {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.nav-brand .brand-link:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px var(--primary-blue));
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.brand-icon:hover {
    filter: drop-shadow(0 0 25px var(--primary-blue)) drop-shadow(0 0 35px var(--accent-blue));
    transform: rotate(10deg);
}

.brand-text {
  white-space: normal !important;
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark), var(--accent-blue));
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

.nav-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-btn-primary:hover::before {
    left: 100%;
}

.nav-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.nav-btn-secondary {
    color: var(--text-secondary);
    border-color: var(--dark-border);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-btn-secondary:hover {
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.nav-btn-secondary:hover::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 30%, rgba(147, 197, 253, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    filter: blur(20px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue), var(--light-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite, fadeInScale 1.2s ease forwards;
    position: relative;
    z-index: 2;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    opacity: 0.1;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue), var(--accent-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    filter: blur(15px);
    z-index: -1;
    animation: glow 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark), var(--accent-blue));
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: gradientShift 3s ease infinite;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

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

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0);
}

.card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, var(--dark-card), rgba(59, 130, 246, 0.05));
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Service Cards Enhanced */
.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 30px var(--primary-blue)) drop-shadow(0 0 40px var(--accent-blue));
}

.service-card:hover .service-title {
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Statistics */
.stat-card {
    text-align: center;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue), var(--light-blue));
    opacity: 0;
    border-radius: 20px;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue), var(--light-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: gradientShift 3s ease infinite;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    filter: blur(10px);
    z-index: -1;
    animation: glow 2s ease-in-out infinite;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover .stat-label {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.stat-card:hover .stat-number {
    animation: pulse 0.6s ease-in-out, gradientShift 3s ease infinite;
}

/* Service Cards */
.service-card {
    text-align: center;
    transition: all 0.4s ease;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 20px var(--primary-blue));
    transition: all 0.4s ease;
    animation: pulse 3s ease-in-out infinite;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 60%;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover .service-description {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

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

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

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    color: var(--text-muted);
}

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

.social-link {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

/* Advanced Animations */
@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0, -30px, 0); }
    70% { transform: translate3d(0, -15px, 0); }
    90% { transform: translate3d(0, -4px, 0); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

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

.fade-in-scale {
    animation: fadeInScale 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.glow-animation {
    animation: glow 3s ease-in-out infinite;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.rotate-animation {
    animation: rotate 20s linear infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.7rem;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(17, 23, 39, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--dark-border);
        padding: 1rem 0;
        z-index: 1000;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-auth {
        display: none;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(17, 23, 39, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--dark-border);
        padding: 1rem;
        flex-direction: column;
        z-index: 1000;
    }
    .nav-auth.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    .lang-switch {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section {
        padding: 4rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .section-container,
    .footer-container {
        padding: 0 1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Enhanced Visual Effects */
.floating-element {
    pointer-events: none;
    z-index: -1;
}

/* Glowing border effect */
.glow-border {
    position: relative;
    background: var(--dark-card);
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue), var(--light-blue), var(--primary-blue));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    filter: blur(1px);
}

/* Enhanced section backgrounds */
.section:nth-child(even) {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(59, 130, 246, 0.02) 50%, var(--dark-bg) 100%);
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
}

/* Loading animation */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-blue);
    animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
    0% { left: 0; right: 0; }
    50% { left: 0; right: 0; }
    100% { left: 100%; right: 0; }
}

/* Enhanced hover effects for pricing cards */
.pricing-card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
}

.pricing-card.popular {
    position: relative;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue), var(--primary-blue));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

/* Magnetic button effect */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Performance optimizations */
* {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card, .btn, .nav-link {
    will-change: transform;
}

.btn, .nav-btn, .btn-primary, .btn-secondary {
    pointer-events: auto !important;
    opacity: 1 !important;
    z-index: 10 !important;
    position: relative !important;
}

/* --- تصميم auth (تسجيل/دخول) بنفس ستايل الموقع --- */
.auth-container {
  max-width: 400px;
  margin: 80px auto 0 auto;
  background: rgba(17, 23, 39, 0.98);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(59,130,246,0.10), 0 1.5px 8px rgba(59,130,246,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid var(--dark-border);
  position: relative;
  z-index: 2;
}

.auth-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue), var(--light-blue));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-align: center;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.auth-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--dark-border);
  background: rgba(10, 10, 20, 0.95);
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 500;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
}
.auth-input:focus {
  border: 1.5px solid var(--primary-blue);
  box-shadow: 0 0 0 2px var(--primary-blue-dark);
}

.auth-links {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}
.auth-links a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.auth-links a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .auth-container {
    padding: 1.5rem 1rem 1.5rem 1rem;
    margin: 20px 1rem 0 1rem;
    max-width: calc(100% - 2rem);
    border-radius: 12px;
  }
  .auth-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }
  .auth-input {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  .auth-form {
    gap: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1.2rem 0.8rem 1.2rem 0.8rem;
    margin: 15px 0.8rem 0 0.8rem;
    max-width: calc(100% - 1.6rem);
  }
  .auth-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .auth-input {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }
}

.with-navbar-margin {
    margin-top: 90px;
}
@media (max-width: 600px) {
    .with-navbar-margin {
        margin-top: 60px;
    }
}

main {
    padding-top: 90px;
}
@media (max-width: 600px) {
    main {
        padding-top: 60px;
    }
}

.table-responsive {
    width: 100%;

    margin-top: 1.5rem;
}
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(17,23,39,0.85);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(59,130,246,0.07);
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.table th, .table td {
    padding: 1rem 1.2rem;
    text-align: left;
}
.table th {
    background: rgba(59,130,246,0.12);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.08rem;
    border-bottom: 2px solid var(--primary-blue);
}
.table tr {
    transition: background 0.2s;
}
.table tbody tr:hover {
    background: rgba(59,130,246,0.07);
}
.table td {
    border-bottom: 1px solid rgba(59,130,246,0.08);
}
.table tr:last-child td {
    border-bottom: none;
}
@media (max-width: 600px) {
    .table th, .table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.98rem;
    }
}

/* === BLOG STYLES: مطابق لـ EXAMPLE === */
.featured-blog {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.post-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-category.ai {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}
.post-date {
    color: #b8c5d1;
    font-size: 0.9rem;
}
.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.featured-content p {
    font-size: 1.1rem;
    color: #b8c5d1;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.post-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.read-time {
    color: #b8c5d1;
    font-size: 0.9rem;
}
.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-visual {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.neural-network-large {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.neural-network-large .node {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: nodeGlow 3s ease-in-out infinite alternate;
    position: relative;
}
.neural-network-large .node.large {
    width: 60px;
    height: 60px;
}
.neural-network-large .node.medium {
    width: 40px;
    height: 40px;
}
.neural-network-large .node.small {
    width: 25px;
    height: 25px;
}
.featured-emoji { font-size: 2.5rem !important; }
.featured-post .btn, .featured-post .btn-primary {
    padding: 0.5rem 1.3rem;
    font-size: 1rem;
    border-radius: 8px;
    min-width: 110px;
}
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
    .featured-image {
        max-width: 120px;
        margin: 0 auto;
    }
    .ai-visual {
        width: 80px;
        height: 80px;
    }
}
@media (max-width: 600px) {
    .featured-blog {
        padding: 18px 0 10px 0;
    }
    .featured-post {
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
        border-radius: 8px;
    }
    .featured-content h2 {
        font-size: 1.1rem;
    }
    .featured-content p {
        font-size: 0.92rem;
    }
    .featured-image {
        max-width: 70px;
    }
    .ai-visual {
        width: 50px;
        height: 50px;
    }
    .neural-network-large .node.large { width: 16px; height: 16px; }
    .neural-network-large .node.medium { width: 10px; height: 10px; }
    .neural-network-large .node.small { width: 6px; height: 6px; }
    .featured-emoji { font-size: 1rem !important; }
    .featured-post .btn, .featured-post .btn-primary {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
        min-width: 70px;
    }
}

/* Blog Categories */
.blog-categories {
    padding: 60px 0 0;
}

.categories-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.category-item.active,
.category-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.2rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(102, 126, 234, 0.2);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.8s;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.blog-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #b8c5d1;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.4;
}

.blog-content p {
    color: #b8c5d1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #764ba2;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    color: #b8c5d1;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.subscribe-form input::placeholder {
    color: #b8c5d1;
}

.subscribe-form button {
    white-space: nowrap;
    padding: 15px 25px;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .featured-post,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image {
        order: -1;
    }

    .ai-visual {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .featured-content h2 {
        font-size: 1.8rem;
    }

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

    .categories-grid {
        gap: 0.5rem;
    }

    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .subscribe-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .featured-post {
        padding: 2rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }
}

/* Blog Post Page */
.blog-post-hero {
    padding: 140px 0 80px;
    background:
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #b8c5d1;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #b8c5d1;
    font-size: 0.9rem;
}

.blog-post-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.2rem;
    color: #b8c5d1;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.author-info-detailed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.author-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-details h4 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.1rem;
}

.author-details p {
    margin: 0 0 1rem 0;
    color: #b8c5d1;
    font-size: 0.9rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Blog Post Content */
.blog-post-content {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-body {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.post-body h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #fff;
    position: relative;
}

.post-body h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-body h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.post-body ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-body li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: #e2e8f0;
    line-height: 1.6;
}

.post-body li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
    top: 0.1rem;
}

/* Content Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.share-section,
.table-of-contents,
.related-topics {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.share-section h4,
.table-of-contents h4,
.related-topics h4 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents a:hover {
    color: #667eea;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.4);
}

.related-post-image {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.related-post-content p {
    color: #b8c5d1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #764ba2;
}

/* Responsive Design for Blog Post */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .blog-post-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }

    .post-excerpt {
        font-size: 1.1rem;
    }

    .post-body {
        padding: 2rem;
    }

    .author-info-detailed {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .post-meta-top {
        flex-direction: column;
        gap: 1rem;
    }

    .content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.8rem;
    }

    .post-body {
        padding: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.5rem;
    }

    .post-body h3::before {
        left: -15px;
        height: 25px;
    }
}


/* Blog Post Content */
.blog-post-content {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-body {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.post-body h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #fff;
    position: relative;
}

.post-body h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-body h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.post-body ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-body li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: #e2e8f0;
    line-height: 1.6;
}

.post-body li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
    top: 0.1rem;
}

/* Content Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.share-section,
.table-of-contents,
.related-topics {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.share-section h4,
.table-of-contents h4,
.related-topics h4 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents a:hover {
    color: #667eea;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Blog Styles */
.featured-blog {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.ai {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.post-category.automation {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.post-category.data {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.post-category.technology {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.post-category.business {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.post-date {
    color: #b8c5d1;
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.featured-content p {
    font-size: 1.1rem;
    color: #b8c5d1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.read-time {
    color: #b8c5d1;
    font-size: 0.9rem;
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-visual {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network-large {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.neural-network-large .node {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: nodeGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.neural-network-large .node.large {
    width: 60px;
    height: 60px;
}

.neural-network-large .node.medium {
    width: 40px;
    height: 40px;
}

.neural-network-large .node.small {
    width: 25px;
    height: 25px;
}

/* Blog Categories */
.blog-categories {
    padding: 60px 0 0;
}

.categories-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.category-item.active,
.category-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.2rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(102, 126, 234, 0.2);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.8s;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.blog-visual.automation {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
}

.blog-visual.machine-learning {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.2));
}

.blog-visual.data-science {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
}

.blog-visual.tech-trends {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.2));
}

.blog-visual.business {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
}

.blog-visual.security {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.blog-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #b8c5d1;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.4;
}

.blog-content p {
    color: #b8c5d1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #764ba2;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    color: #b8c5d1;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.subscribe-form input::placeholder {
    color: #b8c5d1;
}

.subscribe-form button {
    white-space: nowrap;
    padding: 15px 25px;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .featured-post,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image {
        order: -1;
    }

    .ai-visual {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .featured-content h2 {
        font-size: 1.8rem;
    }

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

    .categories-grid {
        gap: 0.5rem;
    }

    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .subscribe-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .featured-post {
        padding: 2rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }
}

/* Blog Post Page */
.blog-post-hero {
    padding: 140px 0 80px;
    background:
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #b8c5d1;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #b8c5d1;
    font-size: 0.9rem;
}

.blog-post-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.2rem;
    color: #b8c5d1;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.author-info-detailed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.author-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-details h4 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.1rem;
}

.author-details p {
    margin: 0 0 1rem 0;
    color: #b8c5d1;
    font-size: 0.9rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Blog Post Content */
.blog-post-content {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-body {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.post-body h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #fff;
    position: relative;
}

.post-body h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-body h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.post-body ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.post-body li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: #e2e8f0;
    line-height: 1.6;
}

.post-body li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
    top: 0.1rem;
}

/* Content Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.share-section,
.table-of-contents,
.related-topics {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.share-section h4,
.table-of-contents h4,
.related-topics h4 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents a:hover {
    color: #667eea;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.4);
}

.related-post-image {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.related-post-image.automation {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
}

.related-post-image.machine-learning {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.2));
}

.related-post-image.data-science {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.related-post-content p {
    color: #b8c5d1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #764ba2;
}

/* Responsive Design for Blog Post */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .blog-post-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }

    .post-excerpt {
        font-size: 1.1rem;
    }

    .post-body {
        padding: 2rem;
    }

    .author-info-detailed {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .post-meta-top {
        flex-direction: column;
        gap: 1rem;
    }

    .content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.8rem;
    }

    .post-body {
        padding: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.5rem;
    }

    .post-body h3::before {
        left: -15px;
        height: 25px;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: #b8c5d1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #b8c5d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* === Contact Page Customization === */
.contact-form-section {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.contact-info {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(30,40,60,0.18);
    padding: 36px 32px 32px 32px;
    color: #fff;
    margin-bottom: 0;
}
.contact-info h2 {
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
}
.contact-info p {
    color: #b8c5d1;
    margin-bottom: 1.2rem;
}
.contact-methods {
    margin: 32px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #232a3d;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px 0 rgba(30,40,60,0.10);
}
.contact-icon {
    flex-shrink: 0;
    color: #667eea;
    background: #181d2b;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.contact-details p {
    color: #b8c5d1;
    margin-bottom: 0.1rem;
    font-size: 0.98rem;
}
.response-time {
    margin-top: 32px;
    background: #232a3d;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 8px 0 rgba(30,40,60,0.08);
}
.response-time h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #f093fb;
}
.response-time p {
    color: #b8c5d1;
    font-size: 0.97rem;
}

.contact-form {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(30,40,60,0.18);
    padding: 36px 32px 32px 32px;
    color: #fff;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.form-row {
    display: flex;
    gap: 18px;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem 1rem;
    }
    
    .btn-full {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem 0.9rem;
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}
.form-group label {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #b8c5d1;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: #232a3d;
    border: 1.5px solid #2a2f3e;
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 1rem;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.98rem;
    color: #b8c5d1;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #667eea;
}
.btn-full {
    width: 100%;
    margin-top: 10px;
}
.form-note {
    font-size: 0.92rem;
    color: #7e8ba3;
    margin-top: 8px;
    text-align: center;
}

/* FAQ Section */
.faq {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.faq .section-header {
    text-align: center;
    margin-bottom: 36px;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
.faq-item {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(30,40,60,0.13);
    padding: 28px 24px 22px 24px;
    color: #fff;
    transition: transform 0.18s, box-shadow 0.18s;
}
.faq-item:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px 0 rgba(102,126,234,0.18);
}
.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}
.faq-item p {
    color: #b8c5d1;
    font-size: 0.99rem;
}

/* === About Page Customization === */
.company-overview {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
.overview-content {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(30,40,60,0.18);
    padding: 36px 32px 32px 32px;
    color: #fff;
}
.overview-content h2 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}
.overview-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}
.overview-content ul.feature-list {
    margin: 0 0 0.5rem 1.2rem;
    padding: 0;
    color: #b8c5d1;
    font-size: 1rem;
}
.overview-content ul.feature-list li {
    margin-bottom: 0.5rem;
    list-style: disc;
}
.overview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-brain {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #232a3d 60%, #181d2b 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 18px 0 rgba(30,40,60,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brain-node {
    width: 22px;
    height: 22px;
    background: #667eea;
    border-radius: 50%;
    position: absolute;
    opacity: 0.7;
    box-shadow: 0 0 12px #667eea88;
}
.brain-node.active {
    background: #f093fb;
    box-shadow: 0 0 18px #f093fbcc;
    opacity: 1;
}
.ai-brain .brain-node:nth-child(1) { top: 20%; left: 30%; }
.ai-brain .brain-node:nth-child(2) { top: 60%; left: 20%; }
.ai-brain .brain-node:nth-child(3) { top: 50%; right: 25%; }
.ai-brain .brain-node:nth-child(4) { bottom: 25%; left: 50%; }
.ai-brain .brain-node:nth-child(5) { bottom: 20%; right: 30%; }

.our-story {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.story-timeline {
    display: flex;
    flex-direction: row;
    gap: 28px;
    position: relative;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.story-timeline::-webkit-scrollbar {
    display: none;
}
.story-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 2px;
}
.timeline-item {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(30,40,60,0.13);
    padding: 28px 24px 22px 24px;
    color: #fff;
    min-width: 220px;
    max-width: 260px;
    flex: 1 0 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    transition: transform 0.18s, box-shadow 0.18s;
    margin-bottom: 0;
}
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    width: 28px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
    z-index: 2;
    transform: translateY(-50%);
    border-radius: 2px;
}
.timeline-year {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}
.timeline-year::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: #f093fb;
    border: 3px solid #667eea;
    border-radius: 50%;
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.timeline-item:first-child .timeline-year::before {
    left: -9px;
}
.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #f093fb;
}
.timeline-content p {
    color: #b8c5d1;
    font-size: 0.99rem;
}
@media (max-width: 900px) {
    .story-timeline {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        padding-bottom: 0;
    }
    .story-timeline::before {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #667eea 0%, #f093fb 100%);
        transform: translateX(-50%);
    }
    .timeline-item {
        min-width: unset;
        max-width: unset;
        flex: 1 0 auto;
        margin-left: 0;
        margin-bottom: 0;
        margin-top: 0;
    }
    .timeline-item:not(:last-child)::after {
        top: auto;
        left: 50%;
        right: auto;
        width: 4px;
        height: 28px;
        background: linear-gradient(180deg, #667eea 0%, #f093fb 100%);
        transform: translateX(-50%);
    }
    .timeline-year::before {
        left: 50%;
        top: -28px;
        transform: translateX(-50%);
    }
    .timeline-item:first-child .timeline-year::before {
        top: -9px;
        left: 50%;
    }
}

.team {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
.team-member {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(30,40,60,0.13);
    padding: 28px 24px 22px 24px;
    color: #fff;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
}
.team-member:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px 0 rgba(102,126,234,0.18);
}
.member-avatar {
    width: 64px;
    height: 64px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: bold;
    margin: 0 auto 14px auto;
    box-shadow: 0 2px 8px #667eea55;
}
.member-role {
    color: #f093fb;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.values {
    padding: 60px 0 40px 0;
    background: rgba(20, 25, 40, 0.98);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 1100px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
.value-item {
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(30,40,60,0.13);
    padding: 28px 24px 22px 24px;
    color: #fff;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
}
.value-item:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px 0 rgba(102,126,234,0.18);
}
.value-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #667eea;
}

/* Timeline scroll shadow indicators */
.story-timeline-scrollable {
    position: relative;
}
.story-timeline-scrollable::before,
.story-timeline-scrollable::after {
    content: '';
    position: absolute;
    top: 0;
    width: 36px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s;
}
.story-timeline-scrollable::before {
    left: 0;
    background: linear-gradient(90deg, rgba(20,25,40,0.98) 80%, transparent);
    opacity: 1;
}
.story-timeline-scrollable::after {
    right: 0;
    background: linear-gradient(270deg, rgba(20,25,40,0.98) 80%, transparent);
    opacity: 1;
}
.story-timeline-scrollable.hide-left::before {
    opacity: 0;
}
.story-timeline-scrollable.hide-right::after {
    opacity: 0;
}

.story-timeline {
    scroll-behavior: smooth;
}

/* === Why AI Sticky Section === */
.why-ai-sticky {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    z-index: 2;
}
.why-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #181d2b 60%, #232a3d 100%);
    background-attachment: fixed;
    z-index: 1;
    opacity: 0.98;
    pointer-events: none;
    transition: background 0.5s;
}
.why-ai-sticky .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 60px;
}
.why-header {
    text-align: center;
    margin-bottom: 48px;
}
.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
    justify-content: center;
}
@media (max-width: 1100px) {
    .why-cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .why-cards {
        grid-template-columns: 1fr;
    }
}
.why-card {
    background: linear-gradient(135deg, #232a3d 60%, #181d2b 100%);
    border-radius: 20px;
    box-shadow: 0 6px 32px 0 rgba(30,40,60,0.18);
    padding: 36px 28px 32px 28px;
    color: #fff;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    z-index: 2;
    opacity: 0.97;
}
.why-card:hover {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 12px 40px 0 rgba(102,126,234,0.18);
}
.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.1rem;
    color: #667eea;
    text-shadow: 0 0 12px #f093fb55;
}
.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #f093fb;
}
.why-card p {
    color: #b8c5d1;
    font-size: 1.05rem;
}
.why-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

/* === Hero Down Arrow & Text === */
.hero-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 6px;
    user-select: none;
}
.hero-down-text {
    font-size: 1rem;
    color: #b8c5d1;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-down-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroArrowBounce 1.5s infinite alternate;
}
@keyframes heroArrowBounce {
    0% { transform: translateY(0); opacity: 0.7; }
    60% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0.7; }
}
.hero-down-arrow svg {
    filter: drop-shadow(0 2px 8px #667eea55);
}

/* === Services Navigation Buttons (Elegant Blue) === */
.services-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin: 36px 0 32px 0;
    z-index: 3;
    position: relative;
    animation: fadeInUp 1s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.services-nav button {
    background: linear-gradient(90deg, #232a3d 60%, #181d2b 100%);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 14px 36px;
    font-size: 1.08rem;
    font-family: inherit;
    font-weight: 700;
    box-shadow: 0 2px 16px 0 #667eea22;
    cursor: pointer;
    transition: background 0.25s, color 0.2s, box-shadow 0.25s, transform 0.18s;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: navBtnAppear 0.7s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes navBtnAppear {
    0% { opacity: 0; transform: translateY(24px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.services-nav button:nth-child(1) { animation-delay: 0.05s; }
.services-nav button:nth-child(2) { animation-delay: 0.12s; }
.services-nav button:nth-child(3) { animation-delay: 0.19s; }
.services-nav button:nth-child(4) { animation-delay: 0.26s; }
.services-nav button:nth-child(5) { animation-delay: 0.33s; }
.services-nav button:nth-child(6) { animation-delay: 0.40s; }

.services-nav button::before {
    content: '';
    position: absolute;
    left: -40%;
    top: -40%;
    width: 180%;
    height: 180%;
    background: linear-gradient(120deg, #667eea, #4f5bd5, #667eea);
    background-size: 200% 200%;
    opacity: 0.16;
    z-index: 0;
    filter: blur(12px);
    transition: opacity 0.3s;
    animation: navBtnGlowBlue 3.5s linear infinite;
    border-radius: 50%;
    pointer-events: none;
}
@keyframes navBtnGlowBlue {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.services-nav button:hover, .services-nav button.active {
    background: linear-gradient(90deg, #667eea 0%, #4f5bd5 100%);
    color: #fff;
    box-shadow: 0 6px 32px 0 #667eea55, 0 0 0 2px #4f5bd555;
    transform: scale(1.06);
    z-index: 2;
}
.services-nav button:hover::before, .services-nav button.active::before {
    opacity: 0.28;
}
@media (max-width: 700px) {
    .services-nav {
        gap: 10px;
    }
    .services-nav button {
        padding: 10px 14px;
        font-size: 0.98rem;
    }
}

/* === Project Card Sidebar (Hero Only, Enhanced) === */
.project-card-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    min-width: 260px;
    max-width: 300px;
    margin-right: 32px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(24,29,43,0.85) 60%, rgba(35,42,61,0.92) 100%);
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 #667eea33, 0 1.5px 0 0 #667eea;
    padding: 36px 22px 28px 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    border-left: none;
    border-top: none;
    backdrop-filter: blur(8px) saturate(1.2);
    border: 1.5px solid #232a3d;
    transition: box-shadow 0.3s;
}
.project-card-sidebar::before {
    content: '';
    position: absolute;
    left: 0; top: 24px; bottom: 24px;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, #667eea 0%, #f093fb 100%);
    box-shadow: 0 0 16px #667eea55;
    z-index: 1;
}
.project-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.project-icon {
    font-size: 2.1rem;
    color: #ffe066;
    text-shadow: 0 0 16px #f093fb88, 0 0 8px #ffe06688;
    filter: drop-shadow(0 0 8px #667eea88);
    animation: iconPulse 2.5s infinite alternate;
}
@keyframes iconPulse {
    0% { filter: drop-shadow(0 0 8px #667eea88); }
    100% { filter: drop-shadow(0 0 18px #f093fbcc); }
}
.project-card-header h3 {
    font-size: 1.32rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px #232a3d55;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.project-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #232a3d 60%, #181d2b 100%);
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    color: #fff;
    font-size: 1.08rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px 0 #667eea22;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s, color 0.18s;
    outline: none;
    position: relative;
    letter-spacing: 0.01em;
    opacity: 0.96;
}
.project-item:hover, .project-item:focus {
    background: linear-gradient(90deg, #667eea 0%, #4f5bd5 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 #667eea55;
    transform: scale(1.06);
    z-index: 2;
    opacity: 1;
}
.project-thumb {
    font-size: 1.25rem;
    margin-right: 2px;
    filter: drop-shadow(0 0 6px #667eea55);
}
.project-title {
    font-size: 1.08rem;
    font-weight: 600;
}
@media (max-width: 1100px) {
    .project-card-sidebar {
        position: static;
        transform: none;
        width: 100%;
        margin-bottom: 24px;
        border-radius: 24px;
        border-left: none;
        border-top: none;
        box-shadow: 0 4px 18px 0 #667eea33;
        padding: 18px 8px 14px 8px;
    }
    .project-card-sidebar::before {
        left: 24px; top: 0; bottom: 0; width: 90%; height: 6px;
        background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
        border-radius: 6px;
        box-shadow: 0 0 12px #667eea55;
    }
    .project-list {
        flex-direction: row;
        gap: 10px;
    }
}
@media (max-width: 700px) {
    .project-card-sidebar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 2px 10px 2px;
        border-radius: 16px;
    }
    .project-list {
        flex-direction: column;
        gap: 8px;
    }
    .project-card-sidebar::before {
        display: none;
    }
}

.services-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.project-card-sidebar {
    position: relative;
    top: 0;
    margin-left: 0;
    margin-right: 0;
    min-width: 260px;
    max-width: 320px;
    flex-shrink: 0;
}

.services-detailed {
    flex: 1;
    width: 100%;
}

@media (max-width: 1100px) {
    .services-content-row {
        flex-direction: column;
        gap: 24px;
    }
    .project-card-sidebar {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

.services-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    margin-top: -38px;
    gap: 0;
    position: relative;
    z-index: 11;
}

.services-nav {
    margin: 0 8px;
}

.services-nav-arrow {
    margin: 0 2px;
}

/* === Project Modal === */
.project-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 24, 38, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s;
}
.project-modal.active {
    display: flex;
}
.project-modal-content {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    padding: 3rem 2.5rem 2.2rem 2.5rem;
    min-width: 320px;
    max-width: 95vw;
    max-height: 90vh;
    color: #fff;
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.07), transparent);
    transition: left 0.8s;
    z-index: 1;
}
.project-modal.active .project-modal-content:hover::before {
    left: 100%;
}
.project-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    z-index: 2;
    position: relative;
}
.project-modal-content p {
    color: #b8c5d1;
    font-size: 1.08rem;
    margin-bottom: 0;
    z-index: 2;
    position: relative;
}
.project-modal-img {
    font-size: 3.2rem;
    margin-bottom: 18px;
    z-index: 2;
    position: relative;
}
.project-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}

/* قوائم داخل محتوى RTL: عكس اتجاه bullets للأسهم أو الدوائر */
[dir="rtl"] ul,
[dir="rtl"] ol {
  direction: rtl;
  text-align: right;
  padding-right: 1.5em;
  padding-left: 0 !important;
}
[dir="rtl"] ul li,
[dir="rtl"] ol li {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] ul li::marker,
[dir="rtl"] ol li::marker {
  unicode-bidi: isolate;
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .ql-editor ul,
[dir="rtl"] .ql-editor ol {
  direction: rtl;
  text-align: right;
  padding-right: 1.5em;
  padding-left: 0 !important;
}

/* قوائم Quill RTL: bullets والأسهم يمين */
[dir="rtl"] .ql-editor ul,
[dir="rtl"] .ql-editor ol {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 1.5em !important;
  padding-left: 0 !important;
  list-style-position: inside !important;
}
[dir="rtl"] .ql-editor ul li,
[dir="rtl"] .ql-editor ol li {
  direction: rtl !important;
  text-align: right !important;
  margin-right: 0.5em;
  margin-left: 0;
}
[dir="rtl"] .ql-editor ul li::marker,
[dir="rtl"] .ql-editor ol li::marker {
  unicode-bidi: isolate;
  direction: rtl;
  text-align: right;
  font-size: 1.1em;
}
[dir="rtl"] .ql-editor ul,
[dir="rtl"] .ql-editor ol {
  list-style-type: disc;
}

/* عكس اتجاه ::before للعناوين والقوائم في RTL */
[dir="rtl"] .post-body h3::before {
  left: unset !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0.5em !important;
}
[dir="rtl"] .post-body li::before {
  left: unset !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0.7em !important;
  /* إذا كان هناك سهم وتريد عكس اتجاهه: */
  transform: scaleX(-1);
}

/* عكس اتجاه bullets داخل Quill RTL */
[dir="rtl"] .ql-editor ul,
[dir="rtl"] .ql-editor ol {
  direction: rtl !important;
  text-align: right !important;
  padding-right: 1.5em !important;
  padding-left: 0 !important;
  list-style-position: inside !important;
}
[dir="rtl"] .ql-editor ul li,
[dir="rtl"] .ql-editor ol li {
  direction: rtl !important;
  text-align: right !important;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}
[dir="rtl"] .ql-editor ul li::marker,
[dir="rtl"] .ql-editor ol li::marker {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .post-body h3::before,
[dir="rtl"] .post-body li::before {
  display: none !important;
  content: none !important;
  background: none !important;
  color: unset !important;
  width: 0 !important;
  height: 0 !important;
  position: static !important;
  left: unset !important;
  right: unset !important;
  margin: 0 !important;
  transform: none !important;
}

/* إذا كان h3 أو li يبدأ برمز (emoji أو نص)، لا نحتاج ::before أصلاً */
[dir="rtl"] .post-body h3,
[dir="rtl"] .post-body li {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.theme-light {
  background: #f6f7fa;
  color: #23242b;
}

.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4, .theme-light h5, .theme-light h6 {
  color: #23242b;
}

.theme-light p, .theme-light .section-title, .theme-light .section-subtitle, .theme-light .service-description {
  color: #444;
}

.theme-light a, .theme-light .nav-link {
  color: #4c70a5;
}

.theme-light a:hover, .theme-light .nav-link:hover {
  color: #1a3a6b;
}

.theme-light .brand-text {
  color: #4c70a5;
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.theme-light .card, .theme-light .service-card, .theme-light .brand-card, .theme-light .category-card {
  background: #fff;
  color: #23242b;
}

.theme-light .btn-primary {
  background: #4c70a5;
  color: #fff;
}

.theme-light .btn-secondary {
  background: #e7e7ee;
  color: #23242b;
  border: 1px solid #4c70a5;
}

.theme-light .footer, .theme-light .footer-container {
  background: #f6f7fa;
  color: #23242b;
}

/* === Light theme for latest-services-section-vertical === */
.theme-light .latest-services-section-vertical {
  background: #fff;
  box-shadow: 0 8px 40px 0 rgba(76,112,165,0.07);
}
.theme-light .latest-services-title {
  color: #4c70a5;
}
.theme-light .service-card-vertical {
  background: #f6f7fa;
  border: 1.5px solid #e0e6ef;
  box-shadow: 0 2px 8px rgba(76,112,165,0.06);
}
.theme-light .service-card-header {
  color: #23242b;
}
.theme-light .service-name {
  color: #23242b;
}
.theme-light .service-card-body {
  color: #444;
}
.theme-light .service-price {
  color: #1aaf5d;
}
.theme-light .service-date {
  color: #4c70a5;
}
.theme-light .service-icon {
  color: #4c70a5;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex !important;
  }
}

/* === Custom Checkbox for Admin === */
.form-check-input[type="checkbox"] {
  width: 1.35em;
  height: 1.35em;
  border-radius: 6px;
  border: 2px solid #4c70a5;
  background: #181f2e;
  transition: background 0.2s, border 0.2s;
  position: relative;
  box-shadow: 0 2px 8px rgba(76,112,165,0.10);
}
.form-check-input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #2176ff 60%, #4c70a5 100%);
  border-color: #2176ff;
}
.form-check-input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  left: 0.38em;
  top: 0.13em;
  width: 0.35em;
  height: 0.7em;
  border: solid #fff;
  border-width: 0 0.18em 0.18em 0;
  transform: rotate(45deg);
}
.form-check-label {
  margin-left: 0.5em;
  font-weight: 700;
  color: #4c70a5;
  user-select: none;
}
.form-check-input:focus {
  outline: 2px solid #2176ff;
  box-shadow: 0 0 0 2px #2176ff33;
}

/* === Strong Service Card (Featured) === */
.service-card-strong {
  background: linear-gradient(135deg, #1a1f2e 60%, #243f66 100%);
  border-radius: 32px;
  box-shadow: 0 8px 40px 0 rgba(76,112,165,0.18), 0 1.5px 0 #4c70a5;
  padding: 2.7rem 1.7rem 2.2rem 1.7rem;
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.25s, border 0.25s, transform 0.22s;
  border: 2.5px solid #243f66;
  overflow: hidden;
}
.service-card-strong:hover {
  box-shadow: 0 16px 64px 0 rgba(76,112,165,0.28), 0 2.5px 0 #4c70a5;
  border-color: #4c70a5;
  transform: translateY(-7px) scale(1.045);
  background: linear-gradient(120deg, #232a4d 60%, #4c70a5 100%);
}
.service-card-img-strong {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c70a5 0%, #8de4af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(76,112,165,0.18);
  border: 4px solid #181f2e;
  transition: box-shadow 0.2s, border 0.2s;
}
.service-card-strong:hover .service-card-img-strong {
  box-shadow: 0 8px 32px rgba(141,228,175,0.18);
  border-color: #4c70a5;
}
.service-card-title-strong {
  font-size: 1.45rem;
  font-weight: 900;
  color: #8de4af;
  margin-bottom: 1.1rem;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(76,112,165,0.10);
}
.service-card-badges-row {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.service-badge-time {
  background: linear-gradient(90deg, #4c70a5 0%, #719bb2 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 8px;
  padding: 0.38rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(76,112,165,0.10);
  letter-spacing: 0.2px;
}
.service-badge-price {
  background: linear-gradient(90deg, #4ade80 0%, #8de4af 100%);
  color: #181f2e;
  font-weight: 900;
  font-size: 1.13rem;
  border-radius: 8px;
  padding: 0.38rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(76,112,165,0.10);
  letter-spacing: 0.2px;
}
.service-card-btn-strong {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #4c70a5 0%, #719bb2 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 1.1rem 0;
  border-radius: 16px;
  margin-top: 0.7rem;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, filter 0.22s;
  box-shadow: 0 4px 24px 0 rgba(76,112,165,0.18), 0 0 16px 0 #4c70a533;
  filter: brightness(1.08);
  letter-spacing: 0.5px;
  border: none;
}
.service-card-btn-strong:hover {
  background: linear-gradient(90deg, #719bb2 0%, #4c70a5 100%);
  color: #fff;
  box-shadow: 0 8px 32px 0 #4c70a5aa, 0 0 32px 0 #8de4af55;
  filter: brightness(1.18);
}
@media (max-width: 700px) {
  .services-cards-grid { grid-template-columns: 1fr; }
  .service-card-strong { max-width: 98vw; }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-auth {
    display: none !important;
  }
  .nav-menu.active,
  .nav-auth.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .nav-brand {
    width: 100%;
    justify-content: center;
    display: flex;
  }
  .nav-toggle {
    display: flex !important;
  }
}
main{
    padding-top: 0 !important;
}
/* HEADER NEW STRUCTURE */
.header-main {
  width: 100%;
  background: none;
  position: relative;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
}
.header-brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.header-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-blue, #4c70a5);
}
.header-menu {
  display: flex;
  gap: 1.2rem;
  flex: 2;
  justify-content: center;
  align-items: center;
}
.header-link {
  color: #287cf5;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.header-link:hover, .header-link.active {
  background: #4c70a5;
  color: #fff;
}
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.header-btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.header-btn-primary {
  background: #4c70a5;
  color: #fff;
}
.header-btn-secondary {
  background: #fff;
  color: #4c70a5;
  border: 1.5px solid #4c70a5;
}
.header-btn-outline {
  background: transparent;
  color: #4c70a5;
  border: 1.5px solid #4c70a5;
}
.header-btn:hover, .header-btn:focus {
  background: #243f66;
  color: #fff;
}
.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1200;
}
.header-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #4c70a5;
  border-radius: 2px;
  transition: all 0.3s;
}
.header-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header-toggle.active span:nth-child(2) {
  opacity: 0;
}
.header-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.header-lang {
  position: relative;
}
.header-lang-btn {
  background: #fff;
  color: #4c70a5;
  border: 1.5px solid #4c70a5;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(76,112,165,0.08);
}
.header-lang-btn:hover, .header-lang-btn:focus {
  background: #f0f2f7;
  color: #243f66;
}
.header-lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 120px;
  background: #fff;
  border: 1.5px solid #4c70a5;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(76,112,165,0.13);
  z-index: 1000;
  padding: 0.5rem 0;
}
.header-lang-switch.open .header-lang-dropdown {
  display: block;
}
.header-lang-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #243f66;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.header-lang-link.active, .header-lang-link:hover {
  background: #4c70a5;
  color: #fff;
}
/* RTL Support */
[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}
[dir="rtl"] .header-menu {
  justify-content: center;
}
[dir="rtl"] .header-auth {
  flex-direction: row-reverse;
}
@media (max-width: 992px) {
  .header-container {
    padding: 1rem 1rem;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    padding: 0.5rem 1rem;
  }
  .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(17, 23, 39, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 1100;
    border-top: 1px solid #4c70a5;
    box-shadow: 0 4px 16px rgba(76,112,165,0.13);
  }
  .header-menu.active {
    display: flex;
  }
  .header-link {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-radius: 0;
  }
  .header-auth {
    display: none;
    position: absolute;
    top: calc(100% + 48px);
    right: 0;
    left: 0;
    width: 100vw;
    background: rgba(17, 23, 39, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 1100;
    border-top: 1px solid #4c70a5;
    box-shadow: 0 4px 16px rgba(76,112,165,0.13);
  }
  .header-auth.active {
    display: flex;
  }
  .header-btn, .header-lang-btn {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-radius: 0;
  }
  .header-toggle {
    display: flex;
  }
  .header-lang {
    width: 100%;
    margin: 0 0 1rem 0;
  }
}
@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem 0.3rem;
  }
  .header-brand-text {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
    .header-auth.active {

        margin-top: 23rem !important;
    }
}

@media (max-width: 768px) {
  .header-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
 
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 32px rgba(91,134,229,0.09);
    padding: 20px 0 22px 0;
    margin-top: 12px;
  }
  .header-btn {
    display: block;
    width: 92%;
    margin: 0.8rem auto;
    font-size: 1.12rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(91,134,229,0.07);
    transition: background 0.18s, color 0.18s, border 0.18s;
    padding: 1.05rem 0;
    letter-spacing: 0.2px;
    border: none;
  }
  .header-btn-secondary {
    background: #fff;
    color: #23242b;
    border: 1.5px solid #e0e7ef;
    box-shadow: 0 2px 8px rgba(91,134,229,0.06);
  }
  .header-btn-secondary:hover {
    background: #f3f6fa;
    color: #1a1a1a;
    border-color: #cfd8e3;
  }
  .header-btn-primary {
    background: linear-gradient(90deg, #5b86e5 0%, #36d1c4 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(91,134,229,0.13);
    border: none;
  }
  .header-btn-primary:hover {
    background: linear-gradient(90deg, #3a5fc1 0%, #1fa39a 100%);
    color: #fff;
  }
  .header-lang {
    margin-bottom: 1.1rem;
    border-radius: 12px;
    border: 1.5px solid #e0e7ef;
    background: #f8fafc;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #23242b;
    font-weight: 600;
    font-size: 1.08rem;
    transition: border 0.18s, background 0.18s;
  }
  .header-lang-btn {
    background: transparent;
    color: #23242b;
    border: none;
    font-weight: 600;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.2rem;
    border-radius: 12px;
    transition: background 0.18s, color 0.18s;
  }
  .header-lang-btn:hover, .header-lang-switch.open .header-lang-btn {
    background: #eaf2fd;
    color: #5b86e5;
  }
  .header-lang-dropdown {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(91,134,229,0.13);
    border: 1.5px solid #e0e7ef;
    background: #fff;
  }
  .header-lang-link {
    color: #23242b;
    font-weight: 600;
    font-size: 1.08rem;
    border-radius: 10px;
    transition: background 0.18s, color 0.18s;
  }
  .header-lang-link.active, .header-lang-link:hover {
    background: #5b86e5;
    color: #fff;
  }
}

