/* index.css - Specific styles for the home page */

/* Values Section */
.values-section {
    padding: 8rem var(--padding);
    background: white;
}

.values-section .section-title {
    color: var(--text-color);
}

[data-theme="dark"] .values-section .section-title {
    color: #001716;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.value-card {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--background-color);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(23, 155, 149, 0.08); 
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb), 0.15);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card .feature-icon {
    font-size: 3rem;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.value-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--light-text);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    position: relative;
    padding: 8rem 3.5rem;
    background: rgba(23, 155, 149, 0.1);
}

/* Mockup Carousel */
.mockup-carousel {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
}
  
.carousel-container {
    width: 100%;
    padding: 1rem 0;
}
  
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
  
.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}
  
.mockup-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(23, 155, 149, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}
  
@media (min-width: 768px) {
    .mockup-feature {
        flex-direction: row;
        align-items: center; 
        gap: 2rem;
    }
}
  
.mockup-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb), 0.15);
}
  
.mockup-image {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}
  
.mockup-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}
  
.mockup-content {
    text-align: center;
}

@media (min-width: 768px) {
    .mockup-image {
        width: 40%;
        max-width: 350px;
        margin-bottom: 0;
    }
}
  
@media (min-width: 992px) {
    .carousel-slide {
        min-width: 50%; /* Show 2 slides on larger screens */
    }

    .mockup-image {
        width: 60%; 
        max-width: 450px;
    }
      
    .mockup-content {
        width: 40%; 
    }
}

@media (min-width: 1200px) {
    .mockup-image {
        width: 65%;
        max-width: 600px;
    }
    
    .mockup-content {
        width: 35%;
    }
}

@media (min-width: 1400px) {
    .mockup-image {
        width: 70%;
        max-width: 700px;
    }
    
    .mockup-content {
        width: 30%;
    }
}
  
@media (min-width: 768px) {
    .mockup-content {
        width: 60%;
        text-align: left;
    }
}
  
.mockup-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-color);
}
  
.mockup-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--light-text);
    line-height: 1.6;
}
  
/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}
  
.carousel-btn:hover {
    opacity: 1;
    background-color: var(--secondary-color);
    transform: translateY(-50%);
}
  
.carousel-btn.prev {
    left: 0;
}
  
.carousel-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .features-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .carousel-btn {
        width: 2.5rem; 
        height: 2.5rem;
    }

    .mockup-feature {
        flex-direction: column-reverse; /* This will put the image at the bottom */
    }
      
    .mockup-image {
        margin-top: 1.5rem; /* Add margin to the top of the image (which is now at the bottom) */
        margin-bottom: 0; /* Remove bottom margin since it's now at the bottom */
    }
      
    .mockup-content {
        width: 100%; /* Full width for the content */
    }
}
  
/* Dark mode adjustments */
[data-theme="dark"] .mockup-feature {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.1);
}
  
[data-theme="dark"] .mockup-feature:hover {
    box-shadow: 0 6px 18px rgba(9, 125, 119, 0.65);
}

/* Dark mode adjustments */
[data-theme="dark"] .value-card {
    box-shadow: 0 4px 20px rgba(23, 155, 149, 0.4);
}

[data-theme="dark"] .value-card:hover {
    box-shadow: 0 8px 30px rgba(23, 155, 149, 0.65);
}

[data-theme="dark"] .features-section {
    background: linear-gradient(to bottom, var(--background-color), rgba(23, 155, 149, 0.1));
}

/* Event Images Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.event-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(23, 155, 149, 0.2);
    opacity: 1;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-image-container:hover .event-image {
    transform: scale(1.1);
}

.events-section {
    padding: 6rem var(--padding);
}

/* Add a loading placeholder */
.event-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        var(--background-color) 25%,
        var(--primary-color) 50%,
        var(--background-color) 75%
    );
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
    opacity: 0.1;
}

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

/* Mysterious mockup styling */
.mysterious-mockup {
    position: absolute;
    bottom: -90px;
    left: 30px;
    z-index: 2;
    width: 180px;
    transform: rotate(15deg);
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    opacity: 0.85;
    animation: peekIn 1.2s ease-out forwards;
}

.mysterious-mockup img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    filter: blur(1.5px); 
}

.mysterious-mockup:hover img {
    filter: blur(0); 
}

.mysterious-mockup:hover {
    transform: rotate(5deg) translateY(-10px) scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(var(--primary-color-rgb), 0.4));
}

@keyframes peekIn {
    0% {
        transform: translateY(100%) rotate(25deg);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) rotate(10deg);
    }
    100% {
        transform: rotate(15deg);
        opacity: 0.85;
    }
}

@media (min-width: 1700px) {
    .mysterious-mockup {
        width: 220px;
        bottom: -90px;
        left: 25px;
    }
}

@media (max-width: 1699px) {
    .mysterious-mockup {
        width: 180px;
        bottom: -90px;
        left: 25px;
    }
}

@media (max-width: 1200px) {
    .mysterious-mockup {
        width: 130px;
        bottom: -60px;
        left: 24px;
    }
}

@media (max-width: 768px) {
    .mysterious-mockup {
        width: 110px;
        bottom: -60px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .mysterious-mockup {
        width: 90px;
        bottom: -40px;
        left: 15px;
    }
}

@media (max-width: 375px) {
    .mysterious-mockup {
        width: 75px;
        bottom: -35px;
        left: 10px;
    }
}

@media (max-width: 320px) {
    .mysterious-mockup {
        width: 65px;
        bottom: -35px;
        left: 8px;
    }
}