* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.section {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    cursor: pointer;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.section:hover {
    flex: 1.5;
}

.section1 {
    background: url('/assets/images/background1.jpg') center/cover no-repeat;
}

.section2 {
    background: url('/assets/images/background2.jpg') center/cover no-repeat;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    transition: all 0.5s ease;
}

.section:hover .overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    filter: brightness(0.9);
}

p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    transition: all 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 100%;
    transform: scale(0.95);
    filter: brightness(0.9);
}

.btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
      border: 2px solid white;
      color: white;
      text-decoration: none;
      border-radius: 50%;
      font-size: 1.1rem;
      opacity: 0.9;
      transition: all 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
      backdrop-filter: blur(5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
      letter-spacing: 1px;
      transform: scale(0.95);
      filter: brightness(0.9);
      display: flex;
      justify-content: center;
      align-items: center;
      width: 70px;
      height: 70px;
      margin: 0 auto;
}

.btn:hover {
    background: white;
    color: black;
    transform: translateY(-5px) scale(1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(1);
    opacity: 1;
}

.section:hover h2,
.section:hover p,
.section:hover .btn {
    transform: scale(1);
    filter: brightness(1);
    opacity: 1;
}

/* Content container with subtle zoom effect */
.section .content-container {
    transition: all 0.5s ease;
    transform: translateZ(0) scale(0.98);
}

.section:hover .content-container {
    transform: translateZ(0) scale(1);
}

/* Instructions link */
.instructions-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructions-link:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Initial state animations */
.section:nth-child(1) {
    animation: slideInLeft 1.2s ease forwards;
}

.section:nth-child(2) {
    animation: slideInRight 1.2s ease forwards;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .section {
        height: 50vh;
    }
    
    .section:hover {
        height: 65vh;
    }
    
    .section:nth-child(1) {
        animation: slideInTop 1.2s ease forwards;
    }
    
    .section:nth-child(2) {
        animation: slideInBottom 1.2s ease forwards;
    }
    
    @keyframes slideInTop {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideInBottom {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
} 