/* ==========================================
   Hooshyar Pro - Elementor Widgets CSS
   AI & Software Company Theme
   ========================================== */

/* === Section Common === */
.ai-section-badge {
    display: inline-block;
    margin-bottom: 12px;
}

.ai-section-badge span {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.1));
    color: #6C63FF;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(108, 99, 255, 0.15);
}

.ai-section-badge.light span {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0F0E17;
    line-height: 1.4;
}

.ai-section-title.light {
    color: white;
}

.ai-section-subtitle {
    color: #A7A9BE;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 12px auto 0;
}

/* === AI Hero === */
.ai-hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0F0E17;
}

.ai-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ai-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ai-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

.ai-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.ai-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.ai-hero-typed {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.ai-typed-prefix {
    font-weight: 600;
}

.ai-typed-text {
    color: #FF6584;
    font-weight: 700;
    border-left: 3px solid #FF6584;
    padding-left: 8px;
}

.ai-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.ai-hero-circuit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    z-index: 2;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

/* === Buttons === */
.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ai-btn::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.5s ease;
}

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

.ai-btn-primary {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
}

.ai-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
    color: white;
}

.ai-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    background: transparent;
}

.ai-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.ai-btn-outline-light {
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #0F0E17;
    background: transparent;
}

.ai-btn-outline-light:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.ai-btn-white {
    background: white;
    color: #6C63FF;
}

.ai-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #6C63FF;
}

.ai-btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* === AI Features === */
.ai-feature-card {
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

.ai-feature-card[data-layout="card"] {
    text-align: center;
}

.ai-feature-card[data-layout="minimal"] {
    padding: 25px;
}

.ai-feature-card[data-layout="boxed"] {
    border: 2px solid rgba(108, 99, 255, 0.1);
}

.ai-feature-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.ai-feature-card:hover .ai-feature-hover-line {
    transform: scaleX(1);
    transform-origin: left;
}

.ai-feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.ai-feature-card:hover .ai-feature-icon {
    transform: rotateY(180deg) scale(1.1);
}

.ai-feature-card[data-layout="card"] .ai-feature-icon {
    margin: 0 auto 1.5rem;
}

.ai-feature-icon-glow {
    position: absolute;
    inset: -5px;
    border-radius: 25px;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-feature-card:hover .ai-feature-icon-glow {
    opacity: 0.4;
}

.ai-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F0E17;
    margin-bottom: 10px;
}

.ai-feature-desc {
    color: #A7A9BE;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

/* === AI Pricing === */
.ai-pricing-section {
    background: #0F0E17;
    padding: 100px 0;
}

.ai-pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ai-pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent, #6C63FF);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.2);
}

.ai-pricing-card.popular {
    border-color: var(--accent, #6C63FF);
    background: rgba(108, 99, 255, 0.08);
    transform: scale(1.05);
}

.ai-pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.ai-pricing-badge {
    position: absolute;
    top: 20px;
    left: -30px;
    background: currentColor;
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(-45deg);
}

.ai-pricing-name {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-pricing-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.ai-pricing-amount {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-price-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    vertical-align: top;
}

.ai-price-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.ai-price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-price-custom {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent, #6C63FF);
}

.ai-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: right;
}

.ai-pricing-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === AI Team === */
.ai-team-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.ai-team-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.ai-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.1);
}

.ai-team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid;
    position: relative;
    overflow: hidden;
}

.ai-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-team-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.ai-team-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
}

.ai-team-status.online {
    background: #22C55E;
}

.ai-team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F0E17;
    margin-bottom: 5px;
}

.ai-team-role {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.ai-team-bio {
    font-size: 0.85rem;
    color: #A7A9BE;
    margin-bottom: 15px;
}

.ai-team-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ai-team-socials a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A7A9BE;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ai-team-socials a:hover {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    transform: translateY(-3px);
}

/* === AI Testimonial === */
.ai-testimonial-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.ai-testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.ai-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.12);
}

.ai-testimonial-quote {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 3rem;
}

.ai-testimonial-text {
    font-size: 1rem;
    line-height: 2;
    color: #0F0E17;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.ai-testimonial-rating {
    color: #FFC107;
    font-size: 0.85rem;
}

.ai-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
}

.ai-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-testimonial-avatar span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* === AI Stats === */
.ai-stats-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ai-stats-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L0,320Z"/></svg>') no-repeat center bottom;
    background-size: cover;
}

.ai-stat-card {
    color: white;
    padding: 20px;
}

.ai-stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.ai-stat-card:hover .ai-stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25) !important;
}

.ai-stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.ai-stat-suffix {
    font-size: 1.2rem;
    opacity: 0.8;
}

.ai-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === AI Service Card === */
.ai-services-section {
    background: white;
    padding: 100px 0;
}

.ai-service-card {
    display: flex;
    flex-direction: column;
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ai-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ai-service-card:hover::before {
    transform: scaleX(1);
}

.ai-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.12);
    color: inherit;
}

.ai-service-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    transition: all 0.4s ease;
}

.ai-service-card:hover .ai-service-icon {
    transform: rotateY(180deg);
}

.ai-service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F0E17;
    margin-bottom: 10px;
}

.ai-service-desc {
    color: #A7A9BE;
    font-size: 0.9rem;
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 15px;
}

.ai-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ai-service-tag {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-service-arrow {
    display: flex;
    justify-content: flex-end;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.ai-service-card:hover .ai-service-arrow {
    transform: translateX(-10px);
}

/* === AI CTA === */
.ai-cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.ai-cta-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ai-cta-section .container {
    position: relative;
    z-index: 2;
}

.ai-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ai-cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

.ai-cta-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ai-cta-features span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ai-cta-features i {
    margin-left: 5px;
}

.ai-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === AI Contact === */
.ai-contact-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.ai-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.ai-contact-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.1);
}

.ai-contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.ai-contact-card h6 {
    font-weight: 700;
    margin-bottom: 2px;
    color: #0F0E17;
}

.ai-contact-card p {
    margin: 0;
    color: #A7A9BE;
    font-size: 0.9rem;
}

.ai-contact-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
}

.ai-contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

.ai-contact-form .form-control {
    border: 2px solid #f0f0f5;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-contact-form .form-control:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.ai-form-message {
    padding: 15px;
    border-radius: 12px;
    font-weight: 500;
}

.ai-form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ai-form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* === AI Timeline === */
.ai-timeline-section {
    background: #0F0E17;
    padding: 100px 0;
    overflow: hidden;
}

.ai-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.ai-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    transform: translateX(-50%);
}

.ai-timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 50px;
    position: relative;
    width: 50%;
}

.ai-timeline-item.right {
    padding-right: 50px;
    margin-left: 50%;
}

.ai-timeline-item.left {
    padding-left: 50px;
    justify-content: flex-end;
    text-align: right;
}

.ai-timeline-dot {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 2;
    top: 5px;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
    transition: all 0.4s ease;
}

.ai-timeline-item.right .ai-timeline-dot {
    left: -22px;
}

.ai-timeline-item.left .ai-timeline-dot {
    right: -22px;
}

.ai-timeline-item:hover .ai-timeline-dot {
    transform: scale(1.2);
}

.ai-timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
}

.ai-timeline-item:hover .ai-timeline-content {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.ai-timeline-image {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.ai-timeline-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.ai-timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.ai-timeline-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-timeline-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* === AI Tech Stack === */
.ai-tech-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.ai-tech-group-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-tech-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.1);
}

.ai-tech-group-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-tech-group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ai-tech-item {
    margin-bottom: 15px;
}

.ai-tech-item:last-child {
    margin-bottom: 0;
}

.ai-tech-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ai-tech-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0F0E17;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tech-item-level {
    font-size: 0.8rem;
    font-weight: 700;
}

.ai-tech-bar {
    height: 6px;
    background: #f0f0f5;
    border-radius: 3px;
    overflow: hidden;
}

.ai-tech-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === AI Portfolio === */
.ai-portfolio-section {
    background: #0F0E17;
    padding: 100px 0;
}

.ai-portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-portfolio-filter-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ai-portfolio-filter-btn:hover,
.ai-portfolio-filter-btn.active {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.ai-portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.ai-portfolio-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.6s ease;
}

.ai-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 14, 23, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
}

.ai-portfolio-card:hover .ai-portfolio-overlay {
    opacity: 1;
}

.ai-portfolio-card:hover .ai-portfolio-image {
    transform: scale(1.1);
}

.ai-portfolio-content {
    transform: translateY(20px);
    transition: all 0.4s ease;
    color: white;
    width: 100%;
}

.ai-portfolio-card:hover .ai-portfolio-content {
    transform: translateY(0);
}

.ai-portfolio-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    display: block;
    margin-bottom: 5px;
}

.ai-portfolio-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-portfolio-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.ai-portfolio-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.ai-portfolio-techs span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
}

.ai-portfolio-links {
    display: flex;
    gap: 8px;
}

.ai-portfolio-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ai-portfolio-link:hover {
    background: #6C63FF;
    transform: translateY(-3px);
    color: white;
}

.ai-portfolio-item.hidden {
    display: none !important;
}

/* === Animations === */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* === Responsive === */
@media (max-width: 991.98px) {
    .ai-hero-title { font-size: 2.5rem; }
    .ai-section-title { font-size: 2rem; }
    .ai-cta-title { font-size: 2rem; }
    .ai-pricing-card.popular { transform: scale(1); }
    .ai-timeline-line { left: 20px; }
    .ai-timeline-item,
    .ai-timeline-item.right,
    .ai-timeline-item.left {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: right;
    }
    .ai-timeline-item.right .ai-timeline-dot,
    .ai-timeline-item.left .ai-timeline-dot {
        left: -2px;
        right: auto;
    }
}

@media (max-width: 767.98px) {
    .ai-hero-title { font-size: 2rem; }
    .ai-hero-subtitle { font-size: 1rem; }
    .ai-stat-number { font-size: 2rem; }
    .ai-cta-title { font-size: 1.7rem; }
    .ai-cta-features { flex-direction: column; align-items: center; gap: 10px; }
    .ai-contact-form-wrapper { padding: 25px; }
    .ai-pricing-card { padding: 30px 20px; }
    .ai-btn { padding: 12px 28px; font-size: 0.9rem; }
    .hp-item { margin-bottom: 30px; }
}

/* ═══════════════════════════════════════
   PORTFOLIO GRID (CPT)
   ═══════════════════════════════════════ */

.hooshyar-portfolio-section {
    padding: 100px 0;
    background: var(--hooshyar-dark, #0F0E17);
    position: relative;
    overflow: hidden;
}

.hooshyar-portfolio-section .hp-badge,
.hooshyar-portfolio-section .hp-title,
.hooshyar-portfolio-section .hp-subtitle {
    color: white;
}

.hooshyar-portfolio-section .hp-subtitle {
    color: rgba(255,255,255,.6);
}

.hp-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
}

.hp-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.hp-card-image img,
.hp-card-image .hp-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-card:hover .hp-card-image img,
.hp-card:hover .hp-card-image .hp-placeholder {
    transform: scale(1.08);
}

.hp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 14, 23, 0.95) 0%, rgba(15, 14, 23, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hp-card:hover .hp-overlay {
    opacity: 1;
}

.hp-overlay-content {
    width: 100%;
}

.hp-cat {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #a29bfe;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hp-card-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hp-client {
    color: rgba(255,255,255,.5);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 6px;
}

.hp-excerpt {
    color: rgba(255,255,255,.55);
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.hp-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.hp-techs span {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
}

.hp-links {
    display: flex;
    gap: 8px;
}

.hp-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.2);
    color: #a29bfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hp-link:hover {
    background: #6C63FF;
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Filter */
.hp-filters .hp-filter-btn {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px 8px;
    font-family: var(--hooshyar-font, 'Vazirmatn', sans-serif);
}

.hp-filters .hp-filter-btn:hover,
.hp-filters .hp-filter-btn.active {
    background: var(--hooshyar-primary, #6C63FF);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

/* ═══════════════════════════════════════
   SERVICES GRID (CPT)
   ═══════════════════════════════════════ */

.hooshyar-services-section {
    padding: 100px 0;
    background: var(--hooshyar-gray-light, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.hs-card {
    display: flex;
    flex-direction: column;
    padding: 35px 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.hs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
    border-color: var(--accent, #6C63FF);
    color: inherit;
    text-decoration: none;
}

.hs-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.hs-card:hover .hs-icon {
    transform: scale(1.1) rotate(-5deg);
}

.hs-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hooshyar-dark, #0F0E17);
    margin-bottom: 8px;
}

.hs-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.hs-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.hs-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.hs-features li {
    padding: 5px 0;
    color: #555;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-features li i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hs-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hs-link {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.hs-card:hover .hs-link {
    gap: 12px;
}

.hs-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.hs-card:hover .hs-line {
    transform: scaleX(1);
}

/* Services responsive */
@media (max-width: 767.98px) {
    .hs-card { padding: 25px 20px; }
}
