/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    --pkd-acco-primary: #6B46FF;
    --pkd-acco-primary-dark: #5835D9;
    --pkd-acco-accent: #FF6B9D;
    --pkd-acco-bg-dark: #1a0b3d;
    --pkd-acco-bg-darker: #0f0628;
    --pkd-acco-text-white: #FFFFFF;
    --pkd-acco-text-gray: #B8B3CF;
    --pkd-acco-text-orange: #FF8C42;
    --pkd-acco-border: rgba(255, 255, 255, 0.1);
    --pkd-acco-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ==========================================
   Section Container
   ========================================== */
.pkd-acco-section {
    /* min-height: 100vh; */
    padding: 80px 20px;
    /* background: linear-gradient(135deg, var(--pkd-acco-bg-darker) 0%, var(--pkd-acco-bg-dark) 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkd-acco-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-image: radial-gradient(
      circle at 15% 50%,
      rgba(191, 64, 191, 0.45) 0%,
      rgba(128, 0, 192, 0.35) 30%,
      rgba(88, 0, 168, 0.2) 45%,
      transparent 60%
    ),
    linear-gradient(
      90deg,
      #9b1bbd 0%,
      #7b13b7 25%,
      #5a0fb2 50%,
      #4a0fb0 75%,
      #3a0a9c 100%
    );
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--pkd-acco-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ==========================================
   Left Content Area
   ========================================== */
.pkd-acco-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pkd-acco-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pkd-acco-label {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: capitalize;
}

.pkd-acco-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pkd-acco-text-white);
    margin: 0;
}

/* ==========================================
   Accordion Items
   ========================================== */
.pkd-acco-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pkd-acco-item {
    border-bottom: 1px solid var(--pkd-acco-border);
    transition: var(--pkd-acco-transition);
}

.pkd-acco-item:last-child {
    border-bottom: none;
}

/* ==========================================
   Accordion Trigger (Button)
   ========================================== */
.pkd-acco-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--pkd-acco-text-white);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    transition: var(--pkd-acco-transition);
    position: relative;
}



.pkd-acco-trigger:focus {
    outline: none;
}

/* ==========================================
   Accordion Icons
   ========================================== */
.pkd-acco-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pkd-acco-transition);
}

.pkd-acco-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--pkd-acco-text-white);
    transition: var(--pkd-acco-transition);
}

.pkd-acco-item:hover .pkd-acco-icon svg,
.pkd-acco-active .pkd-acco-icon svg {
    stroke: #ffffff;
}

.pkd-acco-trigger-text {
    flex: 1;
    transition: var(--pkd-acco-transition);
}

.pkd-acco-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pkd-acco-chevron svg {
    width: 100%;
    height: 100%;
    stroke: var(--pkd-acco-text-gray);
}

.pkd-acco-active .pkd-acco-chevron {
    transform: rotate(180deg);
}

.pkd-acco-active .pkd-acco-chevron svg {
    stroke: var(--pkd-acco-primary);
}

/* ==========================================
   Accordion Panel
   ========================================== */
.pkd-acco-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    opacity: 0;
    padding: 0;
}

.pkd-acco-active .pkd-acco-panel {
    max-height: 300px;
    padding: 0 0 24px 40px;
    opacity: 1;
}

.pkd-acco-description {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Right Visual Area
   ========================================== */
.pkd-acco-visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 40px;
}

.pkd-acco-tagline {
    text-align: left;
}

.pkd-acco-tagline p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Image Container
   ========================================== */
.pkd-acco-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    /* border-radius: 24px; */
    overflow: hidden;
    /* background: linear-gradient(135deg, rgba(107, 70, 255, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%); */
    /* border: 1px solid var(--pkd-acco-border); */
}

.pkd-acco-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pkd-acco-image.pkd-acco-active-image {
    opacity: 1;
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */
@media screen and (max-width: 1024px) {
    .pkd-acco-container {
        padding: 40px;
        gap: 60px;
    }

    .pkd-acco-title {
        font-size: 36px;
    }

    .pkd-acco-image-container {
        height: 400px;
    }
}

/* ==========================================
   Responsive Design - Mobile (Large)
   ========================================== */
@media screen and (max-width: 768px) {
    .pkd-acco-section {
        padding: 40px 16px;
    }

    .pkd-acco-container {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 40px;
    }

    .pkd-acco-title {
        font-size: 32px;
    }

    .pkd-acco-trigger {
        font-size: 16px;
        padding: 20px 0;
    }

    .pkd-acco-active .pkd-acco-panel {
        padding: 0 0 20px 36px;
    }

    .pkd-acco-visual {
        position: relative;
        top: 0;
    }

    .pkd-acco-image-container {
        height: 350px;
    }
}

/* ==========================================
   Responsive Design - Mobile (Small)
   ========================================== */
@media screen and (max-width: 480px) {
    .pkd-acco-section {
        padding: 32px 12px;
    }

    .pkd-acco-container {
        padding: 24px 16px;
        gap: 32px;
        border-radius: 20px;
    }

    .pkd-acco-header {
        gap: 12px;
    }

    .pkd-acco-label {
        font-size: 12px;
    }

    .pkd-acco-title {
        font-size: 26px;
    }

    .pkd-acco-content {
        gap: 28px;
    }

    .pkd-acco-trigger {
        font-size: 15px;
        padding: 18px 0;
        gap: 12px;
    }

    .pkd-acco-icon {
        width: 20px;
        height: 20px;
    }

    .pkd-acco-chevron {
        width: 18px;
        height: 18px;
    }

    .pkd-acco-active .pkd-acco-panel {
        padding: 0 0 16px 32px;
    }

    .pkd-acco-description {
        font-size: 14px;
    }

    .pkd-acco-tagline p {
        font-size: 14px;
    }

    .pkd-acco-image-container {
        height: 280px;
        border-radius: 16px;
    }
}

/* ==========================================
   Extra Small Devices
   ========================================== */
@media screen and (max-width: 360px) {
    .pkd-acco-title {
        font-size: 22px;
    }

    .pkd-acco-trigger {
        font-size: 14px;
    }

    .pkd-acco-image-container {
        height: 240px;
    }
}

/* ==========================================
   Accessibility & Interactions
   ========================================== */
.pkd-acco-trigger:focus-visible {
    outline: 2px solid var(--pkd-acco-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   Loading State (Optional)
   ========================================== */
.pkd-acco-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(107, 70, 255, 0.1) 0%, 
        rgba(107, 70, 255, 0.2) 50%, 
        rgba(107, 70, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: pkd-acco-shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pkd-acco-image-container.pkd-acco-loading::before {
    opacity: 1;
}

@keyframes pkd-acco-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}