/* #region Hero Section */

.hero-container {
    margin-top: var(--spacing-4xl);
    position: relative;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-container .background-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    z-index: -1;
}

.hero-container .background-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2) blur(1px) saturate(0.5);
}

.hero-container .background-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: 
      var(--gradient-primary),
      var(--add-noise);
    opacity: 0.5;
    mix-blend-mode: multiply;
}


.hero-container .background-image .main-heading {
    position: absolute;
    text-align: center;
    bottom: 0;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 var(--radius-xl) 0 0 ; 
    background: var(--color-light);
    margin-bottom: - var(--spacing-sm);
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.main-description {
    font-size: var(--fs-lg);
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    right: 25%;
    animation-delay: 3s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* #endregion */

/* #region Products Section */

.products-container {
    max-width: 1200px;
    margin: var(--spacing-4xl) auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

/* #region Pathway Section */
.pathway-section {
    max-width: 1200px;
    margin: var(--spacing-4xl) auto var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.pathway-heading {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-gray-900);
    font-size: var(--fs-2xl);
    font-weight: 700;
}

.pathway-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.pathway-item {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 400px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-primary);
    position: relative;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out;
}

.pathway-item h2 {
    font-size: var(--fs-xl);
}

.pathway-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-primary-dark);
}

.pathway-item:nth-child(1) { animation-delay: 0.1s; }
.pathway-item:nth-child(2) { animation-delay: 0.2s; }
.pathway-item:nth-child(3) { animation-delay: 0.3s; }
.pathway-item:nth-child(4) { animation-delay: 0.4s; }
.pathway-item:nth-child(5) { animation-delay: 0.5s; }

.pathway-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.pathway-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--fs-xl);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.pathway-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition-base);
}

.pathway-item:hover .pathway-icon::before {
    opacity: 0.5;
    inset: -6px;
}

.pathway-text {
    flex: 1;
}

.pathway-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.pathway-description {
    color: var(--color-gray-700);
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-secondary);
}

.pathway-arrow {
    color: var(--color-primary);
    font-size: var(--fs-xl);
    transition: var(--transition-base);
    opacity: 0.7;
}

.pathway-item:hover .pathway-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Connecting Lines */
.pathway-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 30px;
    bottom: -20px;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    z-index: 1;
}
/* #endregion */

.product {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(191, 23, 37, 0.1);
}

.product:nth-child(1) { animation-delay: 0.1s; }
.product:nth-child(2) { animation-delay: 0.2s; }
.product:nth-child(3) { animation-delay: 0.3s; }
.product:nth-child(4) { animation-delay: 0.4s; }
.product:nth-child(5) { animation-delay: 0.5s; }
.product:nth-child(6) { animation-delay: 0.6s; }

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.product:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -moz-background-clip: text;
}

.product p {
    color: var(--color-gray-700);
    font-size: var(--fs-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    font-family: var(--font-secondary);
}

.product .capsule {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin: var(--spacing-xs) var(--spacing-xs) 0 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product .capsule:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.product .capsule:nth-of-type(2) {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
}

.product .capsule:nth-of-type(3) {
    background: linear-gradient(135deg, var(--color-accent) 0%, #f39c12 100%);
}

/* #endregion */

/* #region Product Loading States */

.product.loading {
    pointer-events: none;
    opacity: 0.7;
}

.product.loading img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* #endregion */

/* #region Level Sections */

.level-section {
    max-width: 1200px;
    margin: var(--spacing-4xl) auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.level-section:not(:last-child) {
    border-bottom: 2px solid rgba(191, 23, 37, 0.1);
    padding-bottom: var(--spacing-4xl);
}

.level-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.level-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 50%,
        transparent 100%
    );
    border-radius: var(--radius-full);
}

.level-icon-container {
    flex-shrink: 0;
}

.level-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--fs-2xl);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.level-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition-base);
}

.level-header:hover .level-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.level-header:hover .level-icon::before {
    opacity: 0.5;
    inset: -8px;
}

.level-title-container {
    flex: 1;
    min-width: 0;
}

.level-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    line-height: 1.2;
}

.level-subtitle {
    color: var(--color-gray-600);
    font-size: var(--fs-lg);
    margin: 0;
    font-weight: 500;
    font-family: var(--font-secondary);
}

.level-products {
    margin: 0;
    animation: none; /* Override the main container animation */
}

.level-products .product {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Enhanced product styling within levels */
.level-section .product h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.product-meta {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: auto;
}

.duration-capsule {
    background: linear-gradient(135deg, var(--color-accent) 0%, #f39c12 100%) !important;
}

.level-capsule {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%) !important;
}

/* #endregion */

/* #region Level Section Responsive */

@media (max-width: 768px) {
    .level-section {
        margin: var(--spacing-2xl) auto;
        padding: 0 var(--spacing-md);
    }

    .level-section:not(:last-child) {
        padding-bottom: var(--spacing-2xl);
    }

    .level-header {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-2xl);
    }

    .level-icon {
        width: 60px;
        height: 60px;
        font-size: var(--fs-xl);
        border-radius: var(--radius-xl);
    }

    .level-title {
        font-size: var(--fs-2xl);
    }

    .level-subtitle {
        font-size: var(--fs-base);
    }

    .level-header::after {
        height: 2px;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .level-section {
        margin: var(--spacing-xl) auto;
        padding: 0 var(--spacing-sm);
    }

    .level-section:not(:last-child) {
        padding-bottom: var(--spacing-xl);
    }

    .level-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .level-icon {
        width: 50px;
        height: 50px;
        font-size: var(--fs-lg);
        border-radius: var(--radius-lg);
    }

    .level-title {
        font-size: var(--fs-xl);
        margin-bottom: var(--spacing-xs);
    }

    .level-subtitle {
        font-size: var(--fs-sm);
    }

    .level-header::after {
        left: 50%;
        right: auto;
        width: 100px;
        transform: translateX(-50%);
        height: 2px;
        bottom: -10px;
    }
}

/* #endregion */

/* #region Responsive Design */

@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-xl);
        margin: var(--spacing-3xl) auto;
    }
    
    .product {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .hero-container {
        min-height: 50vh;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .main-heading {
        font-size: var(--fs-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    .main-description {
        font-size: var(--fs-base);
    }
    
    .pathway-section {
        margin: var(--spacing-2xl) auto;
        padding: 0 var(--spacing-md);
    }
    
    .pathway-heading {
        font-size: var(--fs-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .pathway-content {
        gap: var(--spacing-md);
    }
    
    .pathway-icon {
        width: 50px;
        height: 50px;
        font-size: var(--fs-lg);
    }
    
    .pathway-title {
        font-size: var(--fs-base);
    }
    
    .pathway-description {
        font-size: var(--fs-sm);
    }
    
    .pathway-arrow {
        font-size: var(--fs-lg);
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin: var(--spacing-2xl) auto;
        padding: 0 var(--spacing-md);
    }
    
    .product {
        padding: var(--spacing-lg);
    }
    
    .product img {
        height: 180px;
        margin-bottom: var(--spacing-md);
    }
    
    .product h2 {
        font-size: var(--fs-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .product p {
        font-size: var(--fs-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .floating-shape {
        opacity: 0.05;
    }
    
    .shape-1, .shape-3 { width: 60px; height: 60px; }
    .shape-2, .shape-4, .shape-5 { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .hero-container {
        min-height: 40vh;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .main-heading {
        font-size: var(--fs-2xl);
    }
    
    .main-description {
        font-size: var(--fs-sm);
    }
    
    .products-container {
        margin: var(--spacing-xl) auto;
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-md);
    }
    
    .product {
        padding: var(--spacing-md);
        border-radius: var(--radius-xl);
    }
    
    .product img {
        height: 160px;
        border-radius: var(--radius-lg);
    }
    
    .product .capsule {
        font-size: var(--fs-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* #endregion */

/* #region Accessibility & Performance */

@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .product,
    .product img,
    .product .capsule {
        animation: none;
        transition: none;
    }
    
    .product:hover {
        transform: none;
    }
    
    .product:hover img {
        transform: none;
    }
    
    .product .capsule:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .product {
        background: var(--color-white);
        border: 2px solid var(--color-gray-800);
    }
    
    .product .capsule {
        border: 1px solid var(--color-white);
    }
}

/* Focus states for accessibility */
.product:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* #endregion */