:root {
    --deepblue: #344979;
    --periwinkle: #5d6da5;
    --lavender: #9896bb;
    --pale-lavender: #c6c6e8;
    --blush: #f7e5eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: linear-gradient(180deg, var(--lavender) 0%, var(--pale-lavender) 100%);
    color: var(--deepblue);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background elements - clouds */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: cloudFloat 25s infinite ease-in-out;
}

/* Cloud shapes using border-radius */
.shape-1 {
    width: 200px;
    height: 80px;
    background: white;
    border-radius: 100px;
    top: 15%;
    left: -100px;
    animation-delay: 0s;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.shape-1::before,
.shape-1::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.shape-1::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 30px;
}

.shape-1::after {
    width: 100px;
    height: 100px;
    top: -50px;
    right: 30px;
}

.shape-2 {
    width: 180px;
    height: 70px;
    background: white;
    border-radius: 100px;
    top: 60%;
    right: -90px;
    animation-delay: -8s;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.shape-2::before,
.shape-2::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.shape-2::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 25px;
}

.shape-2::after {
    width: 90px;
    height: 90px;
    top: -45px;
    right: 25px;
}

.shape-3 {
    width: 150px;
    height: 60px;
    background: white;
    border-radius: 100px;
    bottom: 25%;
    left: 10%;
    animation-delay: -15s;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.shape-3::before,
.shape-3::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.shape-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.shape-3::after {
    width: 75px;
    height: 75px;
    top: -38px;
    right: 20px;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(100px) translateY(-20px);
    }
    50% {
        transform: translateX(50px) translateY(20px);
    }
    75% {
        transform: translateX(150px) translateY(-10px);
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container.no-padding {
    padding: 0;
    min-height: auto;
}

/* Header badge */
.badge {
    background: linear-gradient(135deg, var(--deepblue), var(--periwinkle));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease-out;
    box-shadow: 0 8px 25px rgba(52, 73, 121, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main heading */
.hero {
    text-align: center;
    max-width: 900px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 0.95;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .highlight {
    color: var(--blush);
    font-style: italic;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.hero .tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: var(--deepblue);
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Stack Container */
.cards-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cards-container.expanded {
    max-width: 900px;
    z-index: 100;
}

/* Card Stack Effect */
.card-stack {
    position: absolute;
    width: 100%;
    height: 100%;
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(198, 198, 232, 0.4));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(52, 73, 121, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-back-1 {
    transform: translateY(12px) translateX(-8px) rotate(-6deg) scale(0.96);
    opacity: 0.9;
    z-index: 1;
}

.card-back-2 {
    transform: translateY(24px) translateX(12px) rotate(8deg) scale(0.92);
    opacity: 0.8;
    z-index: 0;
}

/* Front Card - Collapsed State */
.product-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(198, 198, 232, 0.3));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(52, 73, 121, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(93, 109, 165, 0.3);
}

.product-card.expanded {
    cursor: default;
    width: 95%;
    max-width: 900px;
    height: auto;
    min-height: 600px;
    transform: scale(1);
    z-index: 100;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(198, 198, 232, 0.2));
}

.product-card.expanded:hover {
    transform: scale(1);
}

/* Collapsed Card Content */
.card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    transition: opacity 0.3s ease;
}

.product-card.expanded .card-simple {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.card-simple .angel-graphic {
    width: 70%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(93, 109, 165, 0.2));
    margin-bottom: 2rem;
}

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--deepblue);
    text-align: center;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--periwinkle);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Expanded Card Content */
.card-expanded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.2s;
    padding: 3rem 3rem 1rem 3rem;
}

.product-card.expanded .card-expanded {
    opacity: 1;
    pointer-events: all;
}

/* Product Showcase - Now inside expanded card */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
}

.cards-container.expanded .card-back-1,
.cards-container.expanded .card-back-2 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0) translateX(0) rotate(0) scale(1);
}

/* Product Image Section */
.product-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, var(--periwinkle), var(--lavender));
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(93, 109, 165, 0.2);
}

.angel-graphic {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(93, 109, 165, 0.2));
    margin-bottom: 1.5rem;
    border-radius: 20px;
}

.product-info {
    text-align: center;
    width: 100%;
}

.product-info .product-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info .product-subtitle {
    font-size: 0.9rem;
    color: var(--blush);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.product-info .brief-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
    opacity: 0.95;
    padding: 0 1rem;
}

/* Skills section */
.skills-section {
    margin-top: 2rem;
    width: 100%;
}

.skills-header {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--deepblue);
    color: var(--blush);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Details Section - Now Reviews Section */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reviews-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pale-lavender);
}

.reviews-header h3 {
    font-size: 1.5rem;
    color: var(--deepblue);
    margin-bottom: 0.5rem;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-score {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--periwinkle);
    font-weight: bold;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-stars {
    font-size: 1.5rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--deepblue);
    opacity: 0.7;
}

/* Individual Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styling */
.reviews-list::-webkit-scrollbar {
    width: 8px;
}

.reviews-list::-webkit-scrollbar-track {
    background: rgba(198, 198, 232, 0.2);
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--periwinkle);
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: var(--deepblue);
}

.review-item {
    background: linear-gradient(135deg, rgba(247, 229, 235, 0.6), rgba(198, 198, 232, 0.3));
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 15px;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.review-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(93, 109, 165, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--deepblue);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-icon {
    color: #0077b5;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.linkedin-icon:hover {
    transform: scale(1.2);
}

.review-stars {
    font-size: 1rem;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--deepblue);
    opacity: 0.85;
}

.cta-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--pale-lavender);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button {
    display: inline-block;
    background: var(--deepblue);
    color: var(--blush);
    padding: 1.25rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 73, 121, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--periwinkle);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(52, 73, 121, 0.4);
}

.disclaimer {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
    font-style: italic;
}

/* Decorative elements */
.star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.star-1 { top: 15%; left: 15%; animation-delay: 0s; }
.star-2 { top: 25%; right: 20%; animation-delay: 1s; }
.star-3 { bottom: 30%; left: 10%; animation-delay: 2s; }
.star-4 { bottom: 20%; right: 15%; animation-delay: 1.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Whimsical Navbar */
.navbar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(198, 198, 232, 0.15));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1001;
    animation: navSlideDown 0.6s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-item {
    color: var(--deepblue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blush);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-bag {
    position: relative;
    color: var(--deepblue);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.nav-bag:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(247, 229, 235, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .navbar {
        gap: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .nav-item {
        font-size: 0.85rem;
    }

    .nav-bag {
        font-size: 1.1rem;
        width: 35px;
        height: 35px;
    }

    .cards-container {
        max-width: 350px;
    }

    .product-card.expanded {
        max-width: 100%;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-price {
        align-items: flex-start;
    }

    .card-expanded {
        padding: 2rem;
    }

    .editions-timeline {
        flex-direction: column !important;
    }

    .edition-box {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Previous Editions Section - 4rem gap from card stack at all times */
.previous-editions {
    margin-top: 4rem;
    max-width: 1100px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.editions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.editions-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--deepblue);
    margin-bottom: 0.75rem;
}

.editions-header p {
    font-size: 1.1rem;
    color: var(--deepblue);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.resume-link {
    font-size: 0.85rem;
    color: var(--periwinkle);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.resume-link:hover {
    color: var(--deepblue);
    transform: translateY(-2px);
}

.resume-link::after {
    content: ' →';
}

/* Timeline layout */
.editions-timeline {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding: 2rem 0;
}

/* Edition boxes */
.edition-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(198, 198, 232, 0.3));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(52, 73, 121, 0.12);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.edition-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(93, 109, 165, 0.2);
    border-color: var(--periwinkle);
}

.edition-box.active {
    border-color: var(--deepblue);
    box-shadow: 0 16px 48px rgba(52, 73, 121, 0.3);
}

/* Detail panel */
.edition-detail-panel {
    display: none;
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(198, 198, 232, 0.2));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(52, 73, 121, 0.2);
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.edition-detail-panel.active {
    display: block;
}

/* Connector triangle pointing to the active edition box */
.edition-detail-panel::before {
    content: '';
    position: absolute;
    top: -20px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 -4px 8px rgba(52, 73, 121, 0.1));
    transition: left 0.3s ease;
}

/* Position connector based on which box is active */
.edition-detail-panel[data-active="current"]::before {
    left: 16.66%; /* First box (1/6 of width) */
}

.edition-detail-panel[data-active="2024"]::before {
    left: 50%; /* Middle box */
    transform: translateX(-50%);
}

.edition-detail-panel[data-active="2025"]::before {
    left: 83.33%; /* Last box (5/6 of width) */
    transform: translateX(-100%);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--pale-lavender);
}

.detail-title-section h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--deepblue);
    margin-bottom: 0.5rem;
}

.detail-title-section .company {
    font-size: 1.2rem;
    color: var(--periwinkle);
    font-weight: 600;
}

.detail-title-section .duration {
    font-size: 0.9rem;
    color: var(--deepblue);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.detail-close-btn {
    background: var(--blush);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--deepblue);
    transition: all 0.3s ease;
}

.detail-close-btn:hover {
    background: var(--pale-lavender);
    transform: rotate(90deg);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 1.1rem;
    color: var(--deepblue);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: var(--periwinkle);
    border-radius: 2px;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-list li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--deepblue);
    opacity: 0.85;
}

.detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--periwinkle);
    font-weight: bold;
}

.detail-description {
    line-height: 1.7;
    color: var(--deepblue);
    opacity: 0.85;
    margin-bottom: 1rem;
}

@media (max-width: 968px) {
    /* Remove connector on narrow screens */
    .edition-detail-panel::before {
        display: none;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .edition-detail-panel {
        padding: 1.5rem;
    }
}

/* Edition label */
.edition-label {
    display: inline-block;
    background: var(--pale-lavender);
    color: var(--deepblue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.edition-box.current .edition-label {
    background: var(--deepblue);
    color: var(--blush);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(93, 109, 165, 0.3); }
    50% { box-shadow: 0 0 20px rgba(93, 109, 165, 0.6); }
}

/* Year badge - now shows company name */
.edition-year {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--periwinkle);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.edition-box.current .edition-year {
    color: var(--deepblue);
}

/* Company name - now shows role (bigger and more prominent) */
.edition-company {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deepblue);
    margin-bottom: 1rem;
    font-family: 'DM Serif Display', serif;
}

/* Features list */
.edition-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edition-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--deepblue);
    opacity: 0.8;
    line-height: 1.4;
}

.edition-feature::before {
    content: '✓';
    color: var(--periwinkle);
    font-weight: bold;
    flex-shrink: 0;
}

/* New badge for current */
.new-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--periwinkle), var(--lavender));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(93, 109, 165, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blush);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deepblue);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card.expanded .close-btn {
    opacity: 1;
    pointer-events: all;
}

.close-btn:hover {
    background: var(--pale-lavender);
    transform: rotate(90deg);
}

/* Side ribbon tag for basic portfolio link */
.side-tab {
    position: fixed;
    right: -10px;
    top: 100px;
    background: var(--deepblue);
    color: var(--blush);
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: -4px 4px 15px rgba(52, 73, 121, 0.3);
    z-index: 1000;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 15px));
    white-space: nowrap;
    overflow: hidden;
}

.side-tab.expanded {
    right: 0;
    max-width: 400px;
}

.side-tab.collapsed {
    right: -10px;
    max-width: 150px;
}

.side-tab:hover {
    background: var(--periwinkle);
    right: 0;
    box-shadow: -8px 6px 25px rgba(52, 73, 121, 0.4);
}

@media (max-width: 768px) {
    .side-tab {
        font-size: 0.75rem;
        padding: 0.6rem 1rem 0.6rem 1.25rem;
        top: 80px;
    }
}