﻿ /* Define New Color Palette Inspired by Certum */
        :root {
            --primary-light: #ffffff;
            --primary-blue: #009fe3;
            --dark-blue: #007bb5;
            --background-white: #ffffff;
            --background-light-gray: #f7f9fa;
            --text-dark: #2c3e50;
            --text-light: #555;
            --border-color: #e8e8e8;
        }

        body {
           font-family: 'IRANSANS';
            margin: 0;
            padding: 0;
            background-color: var(--background-white);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
        }
        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }
        
        /* General Section Styling - Reduced Paddings */
        .section {
            padding: 40px 0; /* Reduced from 70px */
        }
        .section-white { background-color: var(--background-white); }
        .section-light-gray { background-color: var(--background-light-gray); }
        .section-blue { background-color: var(--primary-blue); color: white; padding: 30px 0; }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .section-title {
            text-align: center;
            color: var(--text-dark);
            margin-bottom: 30px; /* Reduced from 50px */
            font-size: 1.8rem;
        }

        .main-button {
            background-color: var(--primary-blue);
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 1rem;
            font-weight: bold;
            border-radius: 0; /* FLAT */
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background-color 0.3s;
        }
        .main-button:hover {
            background-color: var(--dark-blue);
        }

        /* Header */
        .hero-header {
            background:#102864 url("images/bg.png") center top no-repeat;
            background-size: cover;
            color: white;
            text-align: center;
            min-height: clamp(420px, 48vw, 576px);
            position: relative;
            overflow: hidden;
        }
        .hero-header::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
         linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0.85),
                    rgba(0, 0, 0, 0) 50%,
                    rgba(0, 0, 0, 0.20)
                );
            /* background: rgba(0, 0, 0, 0.4); */
            pointer-events: none;
        }
        .hero-header .container {
            min-height: clamp(420px, 48vw, 576px);
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }
        .navbar {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 28px;
            direction: ltr;
            padding-top: clamp(14px, 2vw, 24px);
            width: 100%;
            position: relative;
        }
        .menu-toggle {
            display: none;
            width: 42px;
            height: 42px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 6px;
            margin-left: auto;
        }
        .menu-toggle span {
            width: 26px;
            height: 2px;
            background: currentColor;
            border-radius: 999px;
            color: #ffffff;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .menu-toggle.is-open span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .menu-toggle.is-open span:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.is-open span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }
        .nav-menu {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: clamp(12px, 2.6vw, 28px);
            margin-left: auto;
            direction: rtl;
            flex-wrap: wrap;
        }
        .nav-menu a {
            color: rgba(255, 255, 255, 0.88);
            text-decoration: none;
            font-size: clamp(0.85rem, 1.7vw, 0.98rem);
            font-weight: 600;
            line-height: 1;
            padding: 10px 0;
            border-bottom: 2px solid transparent;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
            transition: color 0.2s ease, border-color 0.2s ease;
        }
        .nav-menu a:hover {
            color: #ffffff;
            border-bottom-color: rgba(255, 255, 255, 0.75);
        }
        .main-title-holder{
            width: min(760px, 100%);
            margin: auto auto clamp(22px, 8vw, 22px);
            padding: 0 12px;
            box-sizing: border-box;
        }
        .brand-logo {
            font-size: clamp(1.35rem, 3vw, 1.8rem);
            font-weight: bold;
            direction: ltr;
            color: #ffffff;
            text-shadow: 0 2px 2px rgba(0, 0, 0, 0.32);
            letter-spacing: 4px;
        }
        .hero-title {
            font-size: clamp(1.55rem, 4.4vw, 2.2rem);
            margin: 0 !important;
            color: #ffffff;
            line-height: 1.45;
            text-shadow: 0 2px 2px rgba(0, 0, 0, 0.42);
        }
        .hero-subtitle {
            font-size: clamp(0.9rem, 2.4vw, 1.1rem);
            /* opacity: 0.9; */
            margin: 6px auto 0 !important;
            padding: 0 !important;
            color: #e5f8ff;
            line-height: 1.8;
            letter-spacing: -1px !important;
            max-width: 640px;
            text-shadow: 0 2px 1px rgba(0, 0, 0, 0.38);
        }
        #issue, #tools, #about, #contact {
            scroll-margin-top: 24px;
        }
        .scroll-reveal {
            opacity: 0;
            transform: translate3d(0, 28px, 0);
            transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease;
            will-change: opacity, transform;
        }
        .scroll-reveal.from-right {
            transform: translate3d(44px, 0, 0);
        }
        .scroll-reveal.from-left {
            transform: translate3d(-44px, 0, 0);
        }
        .scroll-reveal.is-visible {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
        @media (max-width: 768px) {
            .hero-header {
                background-position: center top;
                min-height: 440px;
            }
            .hero-header .container {
                min-height: 440px;
                padding: 0 16px;
            }
            .main-title-holder {
                margin-bottom: 44px;
            }
            .navbar {
                align-items: center;
                gap: 14px;
            }
            .menu-toggle {
                display: inline-flex;
                color: #ffffff;
            }
            .nav-menu {
                position: absolute;
                top: calc(100% + 12px);
                left: 0;
                right: 0;
                max-width: none;
                margin-left: 0;
                padding: 14px 16px;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 14px;
                background: rgba(0, 0, 0, 0.62);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-8px);
                pointer-events: none;
                transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
            }
            .nav-menu.is-open {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
                pointer-events: auto;
            }
            .nav-menu a {
                padding: 6px 0;
            }
            .scroll-reveal.from-right,
            .scroll-reveal.from-left {
                transform: translate3d(0, 26px, 0);
            }
        }
        @media (max-width: 480px) {
            .hero-header {
                background-size: auto 100%;
                min-height: 390px;
            }
            .hero-header .container {
                min-height: 390px;
            }
            .main-title-holder {
                margin-bottom: 30px;
                padding: 0;
            }
            .navbar {
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                justify-content: flex-start;
            }
            .hero-subtitle {
                letter-spacing: -0.3px !important;
                display: none;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }
            .scroll-reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }
            .menu-toggle span,
            .nav-menu {
                transition: none;
            }
        }

        /* Grid System */
        .grid-3, .grid-4 {
            display: grid;
            gap: 20px; /* Reduced gap */
        }
        .grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
        .grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
        @media (max-width: 768px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

        /* Flat Card Style */
        .flat-card {
            background: var(--background-white);
            border-radius: 0; /* FLAT */
            padding: 20px;
            border: 1px solid var(--border-color);
            transition: border-color 0.3s ease, opacity 0.7s ease, transform 0.7s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            box-sizing: border-box;
        }
        a.flat-card-link {
            color: inherit;
            text-decoration: none;
            display: block;
        }
        a.flat-card-link:hover .flat-card {
            border-color: var(--primary-blue);
        }
        
        /* Tools Card Header (Icon next to title) */
        .tools-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }
        .tools-header .card-icon { font-size: 1.4rem; color: var(--primary-blue); margin: 0; }
        .tools-header .card-title { font-size: 1.1rem; font-weight: bold; margin: 0; color: var(--text-dark); }
        
        .card-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; flex-grow: 1; }

        /* Certificate Cards (Colored Header, No padding top) */
        .cert-card {
            padding: 0; /* Remove padding to let header touch edges */
        }
        .cert-card-header {
            background-color: var(--primary-blue);
            color: white;
            text-align: center;
            padding: 12px;
            font-weight: bold;
            font-size: 1.1rem;
        }
        .cert-card-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .cert-features {
            list-style: none; padding: 0; margin-top: auto; /* Push to bottom */
            border-top: 1px dashed #eee; padding-top: 15px;
        }
        .cert-features li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.85rem; color: #444; }
        .cert-code-box {
            background: #f4f7f6; padding: 10px; border-radius: 0;
            font-family: monospace; font-size: 0.8rem; margin-top: auto; 
            border-left: 3px solid var(--primary-blue); direction: ltr; text-align: left;
        }
        
        /* Simple Issuance Section */
        .simple-issuance-section {
            text-align: center;
            padding: 50px 0;
        }
        .simple-issuance-section h2 {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }
        .simple-issuance-section p {
            font-size: 1rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto 20px auto;
        }

        /* Stats Section */
        .stats-wrapper {
            display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center;
        }
        .stat-number { font-size: 2.5rem; font-weight: bold; margin-bottom: 5px; }
        .stat-label { font-size: 0.9rem; opacity: 0.9; }
        
        /* Clients Carousel Section (Images) */
        .clients-carousel {
            overflow: hidden;
            position: relative;
            width: 100%;
            direction: ltr;
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }
        .clients-logos {
            display: flex;
            align-items: center;
            width: max-content;
            animation: scroll 50s linear infinite;
            will-change: transform;
        }
        .clients-logos img {
            flex-shrink: 0;
            height: 120px;
            margin: 0 40px;
            filter: grayscale(100%);
            opacity: 0.95;
            transition: all 0.3s;
        }
        .clients-logos img:hover {
            filter: grayscale(0%);
            opacity: 1;
        }
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Footer */
        .main-footer {
            background-color: #1e1e1e; color: #d1d5db; padding: 40px 0 15px; font-size: 0.9rem;
        }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
        @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
        .footer-title { color: #ffffff; font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-blue); display: inline-block; }
        .footer-about p { text-align: justify; line-height: 1.8; color: #a1a1aa; margin: 0; }
        .footer-links { list-style: none; padding: 0; margin: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a { color: #d1d5db; text-decoration: none; transition: color 0.2s; }
        .footer-links a:hover { color: var(--primary-blue); }
        .contact-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .footer-links .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 0;
        }
        .contact-icon {
            width: 24px;
            min-width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #ff6b9a;
            font-size: 1rem;
        }
        .contact-at {
            font-size: 1rem;
            font-weight: bold;
            line-height: 1;
        }
        .contact-text {
            color: #d1d5db;
            line-height: 1.7;
        }
        .contact-ltr {
            direction: ltr;
            unicode-bidi: embed;
        }
        .footer-bottom { border-top: 1px solid #333; padding-top: 15px; text-align: center; font-size: 0.8rem; color: #888; }


        
