.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--hero-gradient);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--nav-height);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title span {
    display: inline-block;
}

.hero-title .text-gradient {
    font-size: 110%;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.scroll-arrow {
    margin-top: 8px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--accent)11, var(--accent)05);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--accent);
}

.about-image-placeholder i {
    font-size: 4rem;
    opacity: 0.3;
}

.about-image-placeholder span {
    font-size: 5rem;
    font-weight: 800;
    opacity: 0.1;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px var(--accent-glow);
}

[dir="rtl"] .about-badge {
    right: auto;
    left: -20px;
}

.about-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge small {
    font-size: 0.75rem;
    opacity: 0.9;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-card {
    padding: 24px;
}

.about-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.about-card h4 {
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    perspective: 1000px;
}

.service-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-subtle), transparent);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 20px auto 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

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

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card.hidden {
    display: none;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.15;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 24px;
    right: 24px;
    transition: all 0.3s ease;
}

[dir="rtl"] .project-view-btn {
    right: auto;
    left: 24px;
}

.project-view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent)08, transparent);
}

.stat-card {
    padding: 40px 24px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: inline;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
    display: inline;
}

.stat-card p {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.ceo-quote {
    position: relative;
    margin: 24px 0 32px;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
}

[dir="rtl"] .ceo-quote {
    padding-left: 0;
    padding-right: 24px;
    border-left: none;
    border-right: 3px solid var(--accent);
}

.ceo-quote-icon {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.ceo-quote p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.9;
}

.ceo-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ceo-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
}

.ceo-info h4 {
    font-size: 1.1rem;
}

.ceo-info p {
    font-size: 0.85rem;
}

.ceo-visual {
    position: relative;
    height: 400px;
}

.ceo-decoration {
    position: relative;
    width: 100%;
    height: 100%;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.deco-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseCircle 4s infinite ease-in-out;
}

.deco-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent);
    opacity: 0.3;
    animation: pulseCircle 4s infinite ease-in-out 0.5s;
}

.deco-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-subtle);
    border-color: var(--accent);
    opacity: 0.5;
    animation: pulseCircle 4s infinite ease-in-out 1s;
}

@keyframes pulseCircle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

@media (max-width: 768px) {
    .ceo-grid {
        grid-template-columns: 1fr;
    }

    .ceo-visual {
        display: none;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    margin-top: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.85rem;
}

.contact-form-wrap {
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

.footer {
    background: #060A14;
    border-top: 3px solid var(--accent);
    padding: 60px 0 0;
    transition: background-color var(--theme-transition);
}

[data-theme="light"] .footer {
    background: #0F172A;
    color: #F8FAFC;
}

[data-theme="light"] .footer .footer-brand p,
[data-theme="light"] .footer .footer-links-col a,
[data-theme="light"] .footer .footer-links-col li,
[data-theme="light"] .footer .footer-bottom p,
[data-theme="light"] .footer .nav-logo,
[data-theme="light"] .footer .logo-main,
[data-theme="light"] .footer h4 {
    color: #F8FAFC;
}

[data-theme="light"] .footer .footer-links-col a,
[data-theme="light"] .footer .footer-contact-item a,
[data-theme="light"] .footer .footer-contact-item span,
[data-theme="light"] .footer .footer-contact-item {
    color: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .footer .footer-links-col a:hover,
[data-theme="light"] .footer .footer-contact-item a:hover {
    color: var(--accent);
}

[data-theme="light"] .footer .footer-contact-item i {
    color: var(--accent);
}

[data-theme="light"] .footer .footer-vision span {
    color: rgba(248, 250, 252, 0.5);
}

[data-theme="light"] .footer .social-link {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .footer .footer-bottom {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="light"] .footer .footer-bottom p,
[data-theme="light"] .footer .dev-credit {
    color: rgba(248, 250, 252, 0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-links-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--accent);
}

.footer-links-col li i {
    color: var(--accent);
    margin-right: 8px;
    font-size: 0.85rem;
}

[dir="rtl"] .footer-links-col li i {
    margin-right: 0;
    margin-left: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer .powered-by {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding: 8px 18px;
    color: rgba(248, 250, 252, 0.85) !important;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .powered-by .pb-rule {
    width: 28px;
    height: 1px;
    background: rgba(248, 250, 252, 0.35);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.footer .powered-by .pb-label {
    font-weight: 400;
    opacity: 0.85;
    color: rgba(248, 250, 252, 0.85);
}

.footer .powered-by .pb-brand {
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #fff !important;
    transition: color 0.3s ease;
}

.footer .powered-by .pb-brand em {
    font-style: normal;
    color: var(--accent) !important;
    margin-left: 1px;
}

.footer .powered-by:hover .pb-rule {
    width: 40px;
    background: var(--accent);
}

.footer .powered-by:hover .pb-brand {
    color: var(--accent) !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
