/* ========================================
   وجود لينك - WUJUD LINK
   ملف الأنماط الرئيسي
   ======================================== */

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* الألوان الأساسية */
    --color-primary: #542DB7;      /* البنفسجي الغامق */
    --color-secondary: #C9F96A;    /* الأصفر الليموني */
    --color-accent: #EF4618;       /* البرتقالي المحروق */
    --color-support: #1D5962;      /* الأزرق الداكن */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-light: #F7F7F7;
    --color-dark: #1a1a1a;
    
    /* الخطوط */
    --font-title: 'Tajawal', 'Cairo', sans-serif;
    --font-body: 'Noto Sans Arabic', sans-serif;
    --font-en: 'Poppins', sans-serif;
    
    /* الانتقالات */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 8px 24px rgba(201, 249, 106, 0.3);
    --shadow-glow-orange: 0 8px 24px rgba(239, 70, 24, 0.3);
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Fixed: Better font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.7;
    background: var(--color-dark);
    overflow-x: hidden; /* Fixed: Prevent horizontal scroll */
    direction: rtl;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== ACCESSIBILITY ENHANCEMENTS ==================== */
::selection {
    background: rgba(201, 249, 106, 0.4);
    color: var(--color-dark);
}

.nav-link:focus-visible,
.btn:focus-visible,
.service-link:focus-visible,
.blog-link:focus-visible,
.social-icon:focus-visible,
.member-social a:focus-visible,
.page-link:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 4px;
}

.btn:focus-visible,
.page-link:focus-visible,
.back-to-top:focus-visible {
    box-shadow: 0 0 0 4px rgba(201, 249, 106, 0.25);
}

section[id] {
    scroll-margin-block-start: 120px; /* Prevent sticky header overlap */
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-32 {
    margin-top: 32px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-12 {
    margin-top: 12px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.w-100 {
    width: 100%;
}

.ml-8 {
    margin-left: 8px;
}

.justify-start {
    justify-content: flex-start;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

.section-label {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-support) 100%);
    color: var(--color-white);
    margin-left: 16px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(84, 45, 183, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary-outline:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-orange);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== HEADER / NAVIGATION ==================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(15px); /* Fixed: Safari support */
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 249, 106, 0.1);
    /* Fixed: Hardware acceleration */
    will-change: box-shadow, background;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-family: var(--font-en);
    font-size: 0.7rem;
    color: var(--color-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--color-white);
    position: relative;
    font-size: 1rem;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    /* Fixed: Better touch target for mobile */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Fixed: Hardware acceleration */
    will-change: transform, opacity;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--color-primary) 50%, var(--color-support) 100%);
    color: var(--color-white);
    padding: 140px 40px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
    /* Fixed: Hardware acceleration for smooth animation */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    bottom: 15%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-white);
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 32px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.typing-container {
    font-size: 1.8rem;
    margin-bottom: 24px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.typing-prefix {
    color: var(--color-white);
    font-weight: 600;
}

.typed-text {
    color: var(--color-secondary);
    font-weight: 800;
    min-width: 200px;
    text-align: right;
}

.typing-cursor {
    color: var(--color-secondary);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 48px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    /* Fixed: Better contrast for readability */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== ABOUT HOME SECTION ==================== */
.about-home {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 1) 0%, rgba(29, 89, 98, 0.3) 100%);
}

.section-header {
    margin-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.about-card {
    background: rgba(84, 45, 183, 0.1);
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid rgba(201, 249, 106, 0.1);
    transition: all var(--transition-slow);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px);
    background: rgba(84, 45, 183, 0.2);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.about-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--color-accent);
}

.card-title {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 800;
}

.card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85); /* Fixed: Better contrast from 0.8 to 0.85 */
    line-height: 1.8;
}

.about-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==================== SERVICES HOME SECTION ==================== */
.services-home {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(29, 89, 98, 0.3) 0%, rgba(26, 26, 26, 1) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.service-card {
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.15) 0%, rgba(29, 89, 98, 0.15) 100%);
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.25) 0%, rgba(29, 89, 98, 0.25) 100%);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    color: var(--color-accent);
    transform: scale(1.15) rotate(-10deg);
}

.service-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 800;
}

.service-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85); /* Fixed: Better contrast from 0.75 to 0.85 */
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.service-link:hover {
    color: var(--color-accent);
}

.service-link:hover::after {
    width: 100%;
}

.services-cta {
    margin-top: 40px;
}

/* ==================== CLIENTS SECTION ==================== */
.clients {
    padding: 80px 40px;
    background: rgba(84, 45, 183, 0.05);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.client-logo {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid rgba(201, 249, 106, 0.1);
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.client-logo i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-support) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

/* FIXED: Added proper CTA buttons container */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Changed from right for RTL */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(84, 45, 183, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(84, 45, 183, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-right: 8px;
}

.social-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 249, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--color-secondary);
    color: var(--color-black);
    transform: translateY(-4px) rotate(10deg);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-contact i {
    color: var(--color-secondary);
    margin-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== ANIMATIONS ==================== */
/* Fixed: Optimized animations with will-change */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .typing-cursor,
    .btn::before {
        animation: none !important;
        transition: none !important;
    }

    .btn,
    .service-card,
    .about-card,
    .value-card,
    .team-member,
    .service-detail-card,
    .blog-card,
    .related-post-card,
    .contact-info-card,
    .why-card,
    .back-to-top {
        transition: none !important;
    }
}

/* Fixed: Animation classes - Initial state set by JS, not CSS */
.fade-in-up {
    /* opacity will be set by JavaScript */
    will-change: opacity, transform;
}

.reveal-left {
    /* opacity will be set by JavaScript */
    will-change: opacity, transform;
}

.reveal-right {
    /* opacity will be set by JavaScript */
    will-change: opacity, transform;
}

.reveal-bottom {
    /* opacity will be set by JavaScript */
    will-change: opacity, transform;
}

/* Fixed: Fallback for when JS is disabled or slow to load */
.no-js .fade-in-up,
.no-js .reveal-left,
.no-js .reveal-right,
.no-js .reveal-bottom {
    opacity: 1 !important;
    animation: none !important;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--color-primary) 100%);
    padding: 140px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(201,249,106,0.1)" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path fill="rgba(201,249,106,0.1)" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path fill="rgba(201,249,106,0.1)" d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 900;
}

.page-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ==================== ABOUT STORY ==================== */
.about-story {
    padding: 100px 40px;
    background: var(--color-dark);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-placeholder-large {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-support) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 8rem;
    box-shadow: var(--shadow-lg);
}

.story-content .section-description {
    text-align: right;
    margin-bottom: 20px;
}

/* ==================== VALUES SECTION ==================== */
.values-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 1) 0%, rgba(84, 45, 183, 0.1) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.value-card {
    background: rgba(29, 89, 98, 0.1);
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid rgba(201, 249, 106, 0.1);
    transition: all var(--transition-slow);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-8px);
    background: rgba(29, 89, 98, 0.2);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(-10deg);
    color: var(--color-secondary);
}

.value-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 800;
}

.value-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

/* ==================== TEAM SECTION ==================== */
.team-section {
    padding: 100px 40px;
    background: var(--color-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-member {
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.1) 0%, rgba(29, 89, 98, 0.1) 100%);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.2) 0%, rgba(29, 89, 98, 0.2) 100%);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 4rem;
    color: var(--color-white);
    transition: all var(--transition);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
}

.member-name {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 8px;
    font-weight: 800;
}

.member-role {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.member-bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 249, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    transition: all var(--transition);
}

.member-social a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==================== SERVICES PAGE ==================== */
.services-detail {
    padding: 100px 40px;
    background: var(--color-dark);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-detail-card {
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.15) 0%, rgba(29, 89, 98, 0.15) 100%);
    padding: 50px 40px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all var(--transition-slow);
}

.service-detail-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.service-detail-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 28px;
}

.service-detail-title {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 900;
}

.service-detail-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
}

.service-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 249, 106, 0.1);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--color-secondary);
    margin-left: 12px;
    font-size: 1.1rem;
}

/* ==================== BLOG PAGE ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    padding: 80px 0;
}

.blog-card {
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.1) 0%, rgba(29, 89, 98, 0.1) 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--color-secondary);
    flex-wrap: wrap;
}

.blog-title {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 800;
}

.blog-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--color-secondary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-link:hover {
    color: var(--color-accent);
}

.empty-state {
    background: rgba(84, 45, 183, 0.1);
    border: 1px dashed rgba(201, 249, 106, 0.4);
    border-radius: 16px;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
    margin: 40px auto 0;
    max-width: 540px;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ==================== CONTACT PAGE ==================== */
.contact-page {
    padding: 80px 40px;
    background: var(--color-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: rgba(84, 45, 183, 0.1);
    padding: 32px;
    border-radius: 16px;
    border: 2px solid rgba(201, 249, 106, 0.1);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.contact-info-card:hover {
    border-color: var(--color-secondary);
    transform: translateX(-5px);
}

.contact-info-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.contact-info-title {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-info-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.contact-info-empty {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(84, 45, 183, 0.1);
    border-radius: 12px;
    padding: 24px;
    border: 1px dashed rgba(201, 249, 106, 0.3);
}

.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(84, 45, 183, 0.15) 0%, rgba(29, 89, 98, 0.15) 100%);
    padding: 48px;
    border-radius: 16px;
    border: 2px solid rgba(201, 249, 106, 0.1);
}

.form-messages {
    margin-bottom: 24px;
}

.form-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 12px;
}

.form-message.success {
    background: rgba(201, 249, 106, 0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(201, 249, 106, 0.4);
}

.form-message.error {
    background: rgba(239, 70, 24, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(239, 70, 24, 0.4);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(201, 249, 106, 0.2);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.5);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(26, 26, 26, 0.7);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(201, 249, 106, 0.2);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.5);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(26, 26, 26, 0.7);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: rgba(239, 70, 24, 0.6);
}

.form-error {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(239, 70, 24, 0.85);
}

.form-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(201, 249, 106, 0.4);
    background: rgba(26, 26, 26, 0.6);
}

.form-checkbox:checked {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.social-icons-left {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

/* ==================== WHY CHOOSE US ==================== */
.why-choose-us {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(84, 45, 183, 0.1) 0%, rgba(26, 26, 26, 1) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.why-card {
    background: rgba(29, 89, 98, 0.1);
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid rgba(201, 249, 106, 0.1);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow);
}

.why-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(201, 249, 106, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-title);
}

.why-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.why-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ==================== BLOG SECTION ==================== */
.blog-section {
    padding: 40px 40px 100px;
    background: var(--color-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.page-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(84, 45, 183, 0.2);
    border: 2px solid rgba(201, 249, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    transition: all var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    transform: scale(1.1);
}

/* ==================== BLOG DETAIL ==================== */
.blog-detail {
    padding: 80px 40px 120px;
    background: var(--color-dark);
}

.blog-detail-content {
    background: rgba(84, 45, 183, 0.12);
    border-radius: 20px;
    border: 2px solid rgba(201, 249, 106, 0.12);
    padding: 48px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    font-size: 1.05rem;
}

.blog-detail-media {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 249, 106, 0.12);
}

.blog-detail-media img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.blog-detail-body p {
    margin-bottom: 24px;
}

.related-posts {
    margin-top: 64px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(201, 249, 106, 0.15);
    background: rgba(26, 26, 26, 0.6);
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition);
}

.related-post-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.related-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(201, 249, 106, 0.12);
    border: 1px solid rgba(201, 249, 106, 0.15);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-support) 100%);
}

.newsletter-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 900;
}

.newsletter-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    flex-shrink: 0;
}

/* ==================== CONTACT PAGE SPECIFIC ==================== */
.contact-form-side {
    position: relative;
}

/* ==================== MAP SECTION ==================== */
.map-section {
    padding: 0 40px 80px;
    background: var(--color-dark);
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(201, 249, 106, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-support) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 4rem;
}

.map-placeholder p {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 700;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 1) 0%, rgba(84, 45, 183, 0.1) 100%);
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: rgba(29, 89, 98, 0.1);
    border: 2px solid rgba(201, 249, 106, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--color-secondary);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-title);
    text-align: right;
}

.faq-question i {
    transition: transform var(--transition);
    color: var(--color-secondary);
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 32px 24px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==================== PAGE TRANSITIONS ==================== */
/* Fixed: Body should be visible immediately, not hidden */
body {
    opacity: 1; /* Changed from 0 to 1 */
}

/* Add fade-in only when page is fully loaded */
body.loaded {
    animation: fadeIn 0.3s ease;
}
