/* --- CSS Variables & Reset --- */
        :root {
            /* KSA Shaded Green Palette */
            --primary-dark: #004d25;   /* Deep Forest Green (Authority) */
            --primary-color: #006C35;  /* Saudi Green (Identity) */
            --primary-light: #28a745;  /* Lighter Green for gradients */
            --accent-color: #CBA258;   /* Muted Gold (Premium/Government Official) */
            --accent-hover: #e6b85c;
            
            --text-dark: #1a1a1a;
            --text-light: #ffffff;
            --text-muted: #666666;
            --bg-light: #F3F6F4;       /* Very light sage green tint */
            --white: #ffffff;
            
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --shadow: 0 10px 30px rgba(0, 108, 53, 0.15);
            --glass: rgba(255, 255, 255, 0.95);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.7;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition);
        }

        ul {
            list-style: none;
        }

        /* --- Typography & Utilities --- */
        h1, h2, h3, h4 {
            color: var(--primary-dark);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section-padding {
            padding: 50px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 10px;
            position: relative;
        }

        .section-header h2 {
            font-size: 2.5rem;
            display: inline-block;
            position: relative;
            z-index: 1;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-dark), var(--accent-color));
            border-radius: 2px;
        }

        .section-header p {
            color: var(--text-muted);
            margin-top: 15px;
            font-size: 1.1rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn {
            display: inline-block;
            padding: 14px 35px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: var(--transition);
            font-size: 1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: var(--white);
            box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: var(--accent-color);
            z-index: -1;
            transition: var(--transition);
        }

        .btn-primary:hover::before {
            width: 100%;
        }

        .btn-primary:hover {
            box-shadow: 0 6px 20px rgba(0, 108, 53, 0.5);
            transform: translateY(-2px);
        }

        .btn-outline {
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            background: transparent;
        }

        .btn-outline:hover {
            background: var(--primary-color);
            color: var(--white);
        }


       
        .tab-button {
            background: var(--accent-color);
            color: var(--primary-dark);
            box-shadow: 0 4px 15px rgba(0, 108, 53, 0.3);
            border-radius: 50px;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            border: none;
            transition: var(--transition);
            font-size: 1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 14px 35px;
            margin-right:30px;
        }

        .tab-button.active {
            background: var(--primary-dark);
            color: var(--white);
        }

        .tab-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: var(--primary-color);
            z-index: -1;
            transition: var(--transition);
        }

        .tab-button:hover::before {
            width: 100%;
        }

        .tab-button:hover {
            box-shadow: 0 6px 20px rgba(0, 108, 53, 0.5);
            transform: translateY(-2px);
        }




        /* --- Header & Nav --- */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.05);
            transition: var(--transition);
            border-bottom: 1px solid rgba(0, 108, 53, 0.1);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2rem;
            font-weight: 900;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo span {
            color: var(--accent-color);
        }
        
        .logo i {
            color: var(--primary-color);
        }

        .nav-links {
            display: flex;
            gap: 35px;
        }

        .nav-links a {
            color: var(--text-dark);
            font-weight: 600;
            font-size: 1.05rem;
            position: relative;
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition);
        }

        .nav-links a:hover::before,
        .nav-links a.active::before {
            width: 100%;
        }

        .mobile-menu-btn {
            display: none;
            color: var(--primary-dark);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* --- Hero Section --- */
        #hero {
            height: 100vh;
            background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-color) 100%);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            color: var(--text-light);
            padding-top: 80px;
        }

        /* Background Pattern - Abstract Geometric */
        #hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(203, 162, 88, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
            z-index: 1;
        }

        #hero::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: 0;
            width: 100%;
            height: 150px;
            background: var(--bg-light);
            transform: skewY(-3deg);
            z-index: 2;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            align-items: center;
            gap: 60px;
            position: relative;
            z-index: 3;
        }

        .hero-text h1 {
            color: var(--text-light);
            font-size: 3.8rem;
            line-height: 1.2;
            margin-bottom: 25px;
        }

        .hero-text h1 span {
            color: var(--accent-color);
            position: relative;
            display: inline-block;
        }

        /* Underline animation for text */
        .hero-text h1 span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 0;
            width: 100%;
            height: 10px;
            background: rgba(203, 162, 88, 0.3);
            z-index: -1;
        }

        .hero-text p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 40px;
            max-width: 550px;
        }

        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
        }

        /* Modern ID Card Mockup */
        .glass-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 25px;
            border-radius: 20px;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            animation: float 6s ease-in-out infinite;
            position: relative;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 10px;
        }

        .stamp {
            width: 80px;
            height: 80px;
            border: 3px solid var(--accent-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--accent-color);
            font-weight: bold;
            font-size: 0.8rem;
            transform: rotate(-15deg);
            position: absolute;
            bottom: 30px;
            left: 30px;
            opacity: 0.8;
            text-align: center;
            box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
        }

        .doc-placeholder {
            background: rgba(255,255,255,0.9);
            height: 180px;
            border-radius: 10px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }
        
        .doc-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .status-line {
            height: 8px;
            background: rgba(255,255,255,0.2);
            border-radius: 4px;
            margin-bottom: 10px;
            position: relative;
            overflow: hidden;
        }

        .status-line::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            width: 75%;
            background: var(--accent-color);
            animation: loadBar 2s ease-out forwards;
        }

        /* --- Services Section --- */
        #services {
            background-color: transparent;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .service-card {
            display: flex;
    flex-direction: column;
    height: 100%;
            background: var(--white);
            padding: 40px 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.03);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            text-align: center;
            border-top: 4px solid transparent;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow);
            border-top: 4px solid var(--primary-color);
        }

        .service-card a{
           margin-top: auto;
        }

        .service-icon {
            width: 150px;
            overflow: hidden;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            margin: 0 auto 20px;
            transition: var(--transition);
        }

        .service-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--primary-dark);
        }

        .service-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* --- About Us Cards --- */
        #about-us {
            background: var(--bg-light);
        }

        .about-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 25px;
        }

        .about-card {
            background: var(--white);
            padding: 40px 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.03);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            text-align: center;
            border-top: 4px solid transparent;
        }

        .about-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow);
            border-top: 4px solid var(--primary-color);
        }

        .about-card-icon {
            width: 80px;
            height: 80px;
            background: rgba(0, 108, 53, 0.08);
            color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            margin: 0 auto 20px;
            transition: var(--transition);
        }

        .about-card:hover .about-card-icon {
            background: var(--primary-color);
            color: var(--white);
            transform: rotateY(180deg);
        }

        .about-card h3 {
            text-align: center;
            margin-bottom: 15px;
            color: var(--primary-dark);
            font-size: 1.3rem;
        }

        .about-card p {
            color: var(--text-muted);
            font-size: 0.98rem;
            line-height: 1.8;
            text-align: center;
        }

        .about-list {
            display: grid;
            gap: 10px;
            margin-top: 10px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .about-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 10px;
            background: rgba(0, 108, 53, 0.04);
        }

        .about-list i {
            color: var(--accent-color);
        }

        /* --- About / Features Section --- */
        #about {
            background-color: var(--white);
            position: relative;
        }

        .about-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }

        .about-features {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .feature-box {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 20px;
            background: var(--bg-light);
            border-radius: 10px;
            transition: var(--transition);
        }

        .feature-box:hover {
            background: #eef5f0;
            transform: translateX(-10px);
        }

        .feature-icon {
            color: var(--accent-color);
            font-size: 1.5rem;
            background: var(--white);
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .feature-text h4 {
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .feature-text p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .about-img {
            position: relative;
        }

        .about-img img {
            width: 100%;
            border-radius: 20px;
            box-shadow: 20px 20px 0 var(--primary-color);
        }

        /* --- Steps Section (New) --- */
        #steps {
            background: var(--primary-dark);
            color: var(--white);
            position: relative;
        }

        .steps-container {
            display: flex;
            justify-content: space-between;
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .step-item {
            flex: 1;
            position: relative;
        }

        .step-number {
            width: 50px;
            height: 50px;
            background: var(--accent-color);
            color: var(--primary-dark);
            font-weight: 900;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 20px;
            font-size: 1.2rem;
            position: relative;
            z-index: 2;
        }

        /* Connector line */
        .steps-container::before {
            content: '';
            position: absolute;
            top: 25px;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(255,255,255,0.2);
            z-index: 1;
        }

        /* --- Contact Section --- */
        #contact {
            background: var(--bg-light);
        }

        .contact-wrapper {
            background: var(--white);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            display: flex;
            flex-direction: column-reverse;
        }

        @media(min-width: 992px) {
            .contact-wrapper {
                flex-direction: row;
            }
        }

        .contact-info {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
            color: var(--white);
            padding: 50px;
            flex: 1;
        }

        .contact-form-box {
            padding: 50px;
            flex: 1.5;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-control {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Cairo', sans-serif;
            transition: var(--transition);
            background: #fcfcfc;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1);
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .info-item i {
            color: var(--accent-color);
            font-size: 1.2rem;
        }

        .contact-number {
            direction: ltr;
            unicode-bidi: bidi-override;
            text-align: left;
            display: inline-block;
        }

        /* --- Footer --- */
        footer {
            background: var(--primary-dark);
            color: rgba(255,255,255,0.7);
            padding: 60px 0 20px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-logo {
            color: var(--white);
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: block;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a:hover {
            color: var(--accent-color);
            padding-right: 5px;
        }

        .copyright {
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            font-size: 0.9rem;
        }

        /* --- Toast Notification --- */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--white);
            color: var(--primary-dark);
            padding: 15px 30px;
            border-radius: 50px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            border-left: 5px solid var(--primary-color);
            z-index: 2000;
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            align-items: center;
            gap: 15px;
            font-weight: 600;
        }
        
        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .toast i {
            color: var(--primary-color);
            font-size: 1.2rem;
        }

        /* --- Animations --- */
        @keyframes float {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(1deg); }
            100% { transform: translateY(0px) rotate(0deg); }
        }

        @keyframes loadBar {
            0% { width: 0%; }
            100% { width: 75%; }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- Responsive Design --- */
        @media (max-width: 768px) {
            #hero {
                height: auto;
                min-height: 100vh;
                padding: 120px 0 80px;
                overflow: visible;
            }

            .hero-text h1 {
                font-size: 2.4rem;
                line-height: 1.35;
                word-break: break-word;
                overflow-wrap: anywhere;
            }

            .hero-text p {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .hero-text {
                max-width: 100%;
                margin: 0 auto;
                padding: 0 10px;
            }
            
            .hero-visual {
                margin-top: 40px;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                right: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: var(--white);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                transition: var(--transition);
                z-index: 999;
            }

            .nav-links.active {
                right: 0;
            }

            .mobile-menu-btn {
                display: block;
            }

            .about-wrapper {
                grid-template-columns: 1fr;
            }

            .about-img {
                order: -1;
            }

            .steps-container {
                flex-direction: column;
                gap: 40px;
            }

            .steps-container::before {
                display: none;
            }
        }

/* --- Service List Styling --- */
.service-list {
    text-align: right;
    padding-right: 10px;
    margin-top: 15px;
}

.service-list li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
    font-size: 1.2rem;
    color: #000;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.service-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 5px;   
    color: #000;
    font-size: 0.8rem;
}

/* Staggered Animation Delays */
.service-list li:nth-child(1) { animation-delay: 0.1s; }
.service-list li:nth-child(2) { animation-delay: 0.2s; }
.service-list li:nth-child(3) { animation-delay: 0.3s; }
.service-list li:nth-child(4) { animation-delay: 0.4s; }
.service-list li:nth-child(5) { animation-delay: 0.5s; }
.service-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
