/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: start;
    }
}

.hero-greeting {
    font-size: 1.125rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.hero-role {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

[dir="rtl"] .hero-cta {
    justify-content: center;
}

@media (min-width: 768px) {
    [dir="rtl"] .hero-cta {
        justify-content: flex-end;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    order: -1;
}

@media (min-width: 768px) {
    .hero-image {
        order: 0;
    }
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

@media (min-width: 768px) {
    .profile-image-wrapper {
        width: 350px;
        height: 350px;
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 3px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.profile-image svg {
    width: 60%;
    height: 60%;
    color: var(--accent-primary);
}

.profile-decoration {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    opacity: 0.1;
    top: 10%;
    right: -10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    opacity: 0.08;
    bottom: 20%;
    left: -5%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #a855f7;
    opacity: 0.1;
    top: 40%;
    left: 30%;
}

[data-theme="light"] .shape-1,
[data-theme="light"] .shape-2,
[data-theme="light"] .shape-3 {
    opacity: 0.15;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
    }
}

.about-bio {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.language-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
}

.language-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.language-name {
    font-weight: 600;
    color: var(--text-primary);
}

.language-proficiency {
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.language-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    /* Increased for Devicon */
    color: var(--accent-primary);
}

.skill-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.skill-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    overflow: hidden;
}

.project-image svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

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

.project-info {
    padding: var(--spacing-md);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.project-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Certificates Section
   ======================================== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.certificate-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-image {
    width: 100%;
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.certificate-image svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.certificate-info {
    padding: var(--spacing-md);
}

.certificate-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.certificate-issuer {
    font-size: 0.875rem;
    color: var(--accent-primary);
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card.static {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
}

.service-card.static:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.service-card.static .service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--spacing-md);
}

.service-card.static .service-title {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.service-card.static .service-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Gigs Section
   ======================================== */
/* ========================================
   Gigs Section
   ======================================== */
.gigs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

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

.gig-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

/* Specific styles for full details view */
.gig-card.full-details {
    height: 100%;
}

.gig-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    /* Removed translate transform as requested */
}

.gig-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.gig-image svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

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

.gig-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gig-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.gig-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.gig-description.full-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    margin-bottom: var(--spacing-lg);
}

.gig-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.gig-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.gig-action-btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 0.75rem;
}

/* ========================================
   Story/Timeline Section
   ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--spacing-lg);
}

[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gradient);
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

.timeline-item {
    position: relative;
    padding: var(--spacing-md) 0 var(--spacing-lg) var(--spacing-lg);
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--spacing-lg) * -1 - 6px);
    top: var(--spacing-md);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

[dir="rtl"] .timeline-item::before {
    left: auto;
    right: calc(var(--spacing-lg) * -1 - 6px);
}

.timeline-year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
/* ========================================
   Contact Section
   ======================================== */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all var(--transition-base);
}

.contact-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-value:hover {
    color: var(--accent-primary);
}

/* ========================================
   Section Footer (View More Separator)
   ======================================== */
.section-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    width: 100%;
}

.section-footer::before,
.section-footer::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    transition: background-color 0.3s;
}

.section-footer:hover::before,
.section-footer:hover::after {
    background: var(--accent-primary);
}

.section-footer .view-more-btn {
    min-width: 150px;
    background: var(--bg-card);
    /* Keep it solid so line doesn't show through if overlapping */
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.section-footer .view-more-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-glass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2.5rem;
        text-align: center;
        position: relative;
        padding-bottom: 0.75rem;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 4px;
        background: var(--accent-gradient);
        border-radius: var(--radius-full);
    }

    .hero-container {
        padding-top: 2rem;
    }

    .hero-name {
        font-size: 2.25rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-role {
        font-size: 1.15rem;
        text-align: center;
        color: var(--accent-primary);
        margin-bottom: 1rem;
    }

    .hero-tagline {
        text-align: center;
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto 2rem;
        opacity: 0.9;
    }

    .hero-greeting {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.875rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-weight: 600;
        border-radius: 14px;
    }

    .about-content {
        gap: 3rem;
    }

    .skills-grid,
    .projects-grid,
    .certificates-grid,
    .gigs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
    }

    .contact-item {
        width: 100%;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}