.hero-section {
    min-height: auto;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.svg-background,
.section-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.svg-html {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20 L30 20 L28 60 L20 60 Z M35 20 L45 20 L43 60 L35 60 Z' fill='%231e3a5f'/%3E%3Cpath d='M50 20 L80 20 L78 35 L65 35 L66 50 L78 50 L76 60 L50 60 Z' fill='%231e3a5f'/%3E%3C/svg%3E");
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    animation: floatSVG 20s ease-in-out infinite;
}

.svg-css {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20 L80 20 L80 35 L35 35 L35 50 L80 50 L80 65 L20 65 Z' fill='%231e3a5f'/%3E%3Cpath d='M25 40 L75 40 L75 55 L25 55 Z' fill='%231e3a5f'/%3E%3C/svg%3E");
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    animation: floatSVG 25s ease-in-out infinite 5s;
}

.svg-js {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20 Q30 20 30 30 L30 50 Q30 60 40 60 Q50 60 50 50 L50 30 Q50 20 60 20' stroke='%231e3a5f' stroke-width='3' fill='none'/%3E%3Cpath d='M65 20 L75 20 L75 60 L65 60 Z' fill='%231e3a5f'/%3E%3C/svg%3E");
    top: 50%;
    right: 10%;
    width: 120px;
    height: 120px;
    animation: floatSVG 18s ease-in-out infinite 10s;
}

.svg-code {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 30 L30 40 L20 50 M80 30 L70 40 L80 50 M40 20 L60 20 L55 60 L45 60 Z' stroke='%231e3a5f' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    bottom: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation: floatSVG 22s ease-in-out infinite 15s;
}

@keyframes floatSVG {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    66% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
}

.svg-about {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Cpath d='M100 50 L100 150 M50 100 L150 100' stroke='%231e3a5f' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-position: top right;
}

.svg-skills {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Crect x='20' y='20' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Crect x='80' y='20' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Crect x='140' y='20' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Crect x='20' y='80' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Crect x='80' y='80' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Crect x='140' y='80' width='40' height='40' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    background-position: center left;
}

.svg-projects {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 20 L180 20 L180 180 L20 180 Z' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Cpath d='M20 20 L100 100 L180 20' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3Cpath d='M20 180 L100 100 L180 180' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 350px 350px;
    background-position: bottom right;
}

.svg-contact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 20 L120 60 L180 60 L130 90 L150 150 L100 120 L50 150 L70 90 L20 60 L80 60 Z' stroke='%231e3a5f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 250px 250px;
    background-position: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 70%);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero-text-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--accent-primary);
    font-weight: 400;
    margin-bottom: var(--space-md);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.greeting-line {
    width: 60px;
    height: 1px;
    background: var(--accent-primary);
    display: block;
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--fg-primary);
}

.name-line {
    display: block;
    color: var(--fg-primary);
}

.name-highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(30, 58, 95, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

.tagline-highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--fg-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--fg-secondary);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.button-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', sans-serif;
    border: 1px solid transparent;
    min-height: 44px;
    position: relative;
}

.button-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-hero:hover::before {
    width: 300px;
    height: 300px;
}

.button-hero > * {
    position: relative;
    z-index: 1;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--fg-muted);
    font-weight: 400;
}

.hero-location i {
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: clamp(400px, 60vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    display: none;
}

.hero-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape-mask {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    -webkit-clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    z-index: 2;
    transition: all 0.4s ease;
    filter: drop-shadow(0 10px 30px rgba(30, 58, 95, 0.2));
}

.hero-photo-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    -webkit-clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    z-index: 1;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(20%) contrast(110%) brightness(0.95);
    transition: all 0.4s ease;
}

.hero-shape-mask:hover .hero-photo {
    filter: grayscale(0%) contrast(120%) brightness(1.0);
    transform: scale(1.03);
}

.hero-shape-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--border-color);
    clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    -webkit-clip-path: polygon(8% 8%, 92% 5%, 96% 50%, 90% 92%, 10% 95%, 4% 50%);
    z-index: 3;
    transition: all 0.4s ease;
    pointer-events: none;
}

.hero-shape-mask:hover .hero-shape-border {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.4);
}

.hero-shape-mask:hover {
    filter: drop-shadow(0 15px 40px rgba(30, 58, 95, 0.3));
}

.hero-highlights {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.highlight-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: start;
}

.highlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(30, 58, 95, 0.5);
    margin-top: 4px;
}

.highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-primary);
}

.highlight-text {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    width: 100%;
}

.meta-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-xs);
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.meta-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(30, 58, 95, 0.25);
}

.meta-card.available {
    border-color: var(--accent-primary);
}

.meta-label {
    font-size: 0.85rem;
    color: var(--fg-muted);
    letter-spacing: 0.02em;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg-primary);
}

.meta-sub {
    font-size: 0.9rem;
    color: var(--fg-secondary);
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.meta-tags span {
    padding: 0.35rem 0.65rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--fg-secondary);
}

.meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--space-xs);
    color: var(--fg-secondary);
    font-size: 0.9rem;
}

.meta-list li {
    position: relative;
    padding-right: var(--space-sm);
}

.meta-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--accent-primary);
}

.hero-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    opacity: 0.6;
}

.hero-photo-placeholder svg {
    width: 40%;
    height: 40%;
}

.hero-status-indicator {
    position: absolute;
    bottom: 10%;
    left: 10%;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--fg-secondary);
    z-index: 4;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--fg-muted);
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
}

.floating-element i {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.floating-element:hover {
    border-color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
}

.floating-element-1 {
    top: 15%;
    right: 5%;
    animation: floatElement 6s ease-in-out infinite;
}

.floating-element-2 {
    top: 60%;
    right: -5%;
    animation: floatElement 8s ease-in-out infinite 2s;
}

.floating-element-3 {
    bottom: 20%;
    right: 10%;
    animation: floatElement 7s ease-in-out infinite 4s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    z-index: 10;
    color: var(--fg-muted);
    font-size: 0.75rem;
    animation: fadeIn 1s ease-out 1.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.6;
    animation: fadeIn 1s ease-out 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollMouse 2s ease-in-out infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

