/* ============================================
   EXPERIENCE DETAIL PAGE STYLES
   ============================================ */

/* Experience Hero Section */
.experience-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.experience-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.experience-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.experience-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience-hero-text {
    max-width: 600px;
}

.experience-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Company Logo Container */
.company-logo-large {
    width: 280px;
    height: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: floatLogo 6s ease-in-out infinite;
}

.company-logo-large::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0.5;
}

.company-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes floatLogo {

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

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Role Badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-gradient);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.role-badge i {
    font-size: 1rem;
}

.experience-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.company-name {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-name i {
    font-size: 1.25rem;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.experience-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.experience-meta-item i {
    color: var(--accent-primary);
}

.experience-description-hero {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-actions-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   ACHIEVEMENTS SECTION - FAN CARDS
   ============================================ */
.achievements-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.achievements-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.achievements-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Achievement Cards Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.achievement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.achievement-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* OLD Gallery Fan Styles - DEPRECATED
   Now using gallery.css instead
   ---------------------------------- */
/*
.gallery-fan-container { ... }
.gallery-fan { ... }
.gallery-fan-item { ... }
*/

.gallery-instruction {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 2rem;
}

.gallery-instruction i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

/* ============================================
   EXPERIENCE DETAILS SECTION
   ============================================ */
.experience-details-section {
    padding: 5rem 0;
}

.experience-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.experience-about h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.experience-about p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsibilities */
.responsibilities {
    margin-top: 2rem;
}

.responsibilities h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.responsibilities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.responsibility-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.responsibility-item:hover {
    background: var(--bg-card);
    transform: translateX(5px);
}

.responsibility-item i {
    color: var(--accent-primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Technologies Used */
.tech-section {
    margin-top: 2.5rem;
}

.tech-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    text-align: center;
}

.tech-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.tech-card span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Experience Sidebar */
.experience-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.stat-box:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

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

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item span:first-child {
    color: var(--text-muted);
}

.info-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Related Experiences */
.related-experiences-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.related-experiences-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.related-experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-experience-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

.related-experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-experience-card .card-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-experience-card .card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.related-experience-card .card-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.related-experience-card .card-content .card-company {
    color: var(--accent-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.related-experience-card .card-content .card-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .experience-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .experience-hero-text {
        max-width: 100%;
    }

    .experience-meta {
        justify-content: center;
    }

    .experience-actions-hero {
        justify-content: center;
    }

    .company-logo-large {
        width: 200px;
        height: 200px;
        padding: 2rem;
    }

    .experience-details-grid {
        grid-template-columns: 1fr;
    }

    .experience-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }

    .gallery-fan-container {
        min-height: 350px;
    }

    .gallery-fan {
        width: 260px;
        height: 180px;
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(1) {
        transform: rotate(-15deg) translateX(-100px) translateY(-15px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(2) {
        transform: rotate(-7deg) translateX(-50px) translateY(-8px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(4) {
        transform: rotate(7deg) translateX(50px) translateY(-8px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(5) {
        transform: rotate(15deg) translateX(100px) translateY(-15px);
    }
}

@media (max-width: 576px) {
    .experience-hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }

    .experience-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .experience-actions-hero {
        flex-direction: column;
    }

    .experience-actions-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .company-logo-large {
        width: 160px;
        height: 160px;
        padding: 1.5rem;
    }

    .sidebar-card {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-fan-container {
        min-height: 300px;
        padding: 1rem;
    }

    .gallery-fan {
        width: 200px;
        height: 140px;
    }

    .gallery-fan-item:nth-child(1) {
        transform: rotate(-4deg) translateX(-10px);
    }

    .gallery-fan-item:nth-child(2) {
        transform: rotate(-2deg) translateX(-5px);
    }

    .gallery-fan-item:nth-child(4) {
        transform: rotate(2deg) translateX(5px);
    }

    .gallery-fan-item:nth-child(5) {
        transform: rotate(4deg) translateX(10px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(1) {
        transform: rotate(-12deg) translateX(-60px) translateY(-10px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(2) {
        transform: rotate(-6deg) translateX(-30px) translateY(-5px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(4) {
        transform: rotate(6deg) translateX(30px) translateY(-5px);
    }

    .gallery-fan.spread .gallery-fan-item:nth-child(5) {
        transform: rotate(12deg) translateX(60px) translateY(-10px);
    }

    .achievements-section,
    .experience-details-section,
    .related-experiences-section {
        padding: 3rem 0;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-experiences-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
[dir="rtl"] .responsibility-item {
    border-left: none;
    border-right: 3px solid var(--accent-primary);
}

[dir="rtl"] .responsibility-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .gallery-instruction i {
    margin-right: 0;
    margin-left: 0.5rem;
}